]> code.delx.au - gnu-emacs/blob - configure
* configure.in (HAVE_GTK_FILE_CHOOSER, $HAVE_GTK_FILE_SELECTION): New
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
862
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
886
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
898
899 _ACEOF
900 fi
901
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
915 fi
916
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
932
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
937 *)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
955 *)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd $ac_popdir
988 done
989 fi
990
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1008
1009 $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1068 do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125 {
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 ;;
1133 *)
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136 ;;
1137 esac;
1138 }
1139 echo
1140
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1191
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1196
1197 # Predefined preprocessor variables.
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1222
1223
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232 fi
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1239 fi
1240 done
1241
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257 fi
1258
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1308 fi
1309
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1335
1336
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1349
1350
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1359
1360 gameuser=games
1361
1362
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1366
1367 fi;
1368
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1376
1377 else :
1378 fi
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1383
1384 fi;
1385
1386
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1393
1394 fi;
1395
1396
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1406
1407 fi
1408 fi
1409
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1413
1414 fi;
1415
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1419
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1423
1424 fi;
1425
1426
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431 fi;
1432
1433
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1444 * )
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
1456 fi;
1457
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1461
1462 fi;
1463
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1467
1468 fi;
1469
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1473
1474 fi;
1475
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1479
1480 fi;
1481
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1485
1486 fi;
1487
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492 fi;
1493
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498 fi;
1499
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1503
1504 fi;
1505
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1509
1510 fi;
1511
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516 fi;
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521 fi;
1522
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1529 fi;
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1534 fi
1535
1536
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1560
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1576 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
4282 #### Extract some information from the operating system and machine files.
4283
4284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4285 - which libraries the lib-src programs will want, and
4286 - whether the GNU malloc routines are usable..." >&5
4287 echo "$as_me: checking the machine- and system-dependent files to find out
4288 - which libraries the lib-src programs will want, and
4289 - whether the GNU malloc routines are usable..." >&6;}
4290
4291 ### First figure out CFLAGS (which we use for running the compiler here)
4292 ### and REAL_CFLAGS (which we use for real compilation).
4293 ### The two are the same except on a few systems, where they are made
4294 ### different to work around various lossages. For example,
4295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4296 ### as implying static linking.
4297
4298 ### If the CFLAGS env var is specified, we use that value
4299 ### instead of the default.
4300
4301 ### It's not important that this name contain the PID; you can't run
4302 ### two configures in the same directory and have anything work
4303 ### anyway.
4304 tempcname="conftest.c"
4305
4306 echo '
4307 #include "'${srcdir}'/src/'${opsysfile}'"
4308 #include "'${srcdir}'/src/'${machfile}'"
4309 #ifndef LIBS_MACHINE
4310 #define LIBS_MACHINE
4311 #endif
4312 #ifndef LIBS_SYSTEM
4313 #define LIBS_SYSTEM
4314 #endif
4315 #ifndef C_SWITCH_SYSTEM
4316 #define C_SWITCH_SYSTEM
4317 #endif
4318 #ifndef C_SWITCH_MACHINE
4319 #define C_SWITCH_MACHINE
4320 #endif
4321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4322 configure___ c_switch_system=C_SWITCH_SYSTEM
4323 configure___ c_switch_machine=C_SWITCH_MACHINE
4324
4325 #ifndef LIB_X11_LIB
4326 #define LIB_X11_LIB -lX11
4327 #endif
4328
4329 #ifndef LIBX11_MACHINE
4330 #define LIBX11_MACHINE
4331 #endif
4332
4333 #ifndef LIBX11_SYSTEM
4334 #define LIBX11_SYSTEM
4335 #endif
4336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4337
4338 #ifdef UNEXEC
4339 configure___ unexec=UNEXEC
4340 #else
4341 configure___ unexec=unexec.o
4342 #endif
4343
4344 #ifdef SYSTEM_MALLOC
4345 configure___ system_malloc=yes
4346 #else
4347 configure___ system_malloc=no
4348 #endif
4349
4350 #ifdef USE_MMAP_FOR_BUFFERS
4351 configure___ use_mmap_for_buffers=yes
4352 #else
4353 configure___ use_mmap_for_buffers=no
4354 #endif
4355
4356 #ifndef C_DEBUG_SWITCH
4357 #define C_DEBUG_SWITCH -g
4358 #endif
4359
4360 #ifndef C_OPTIMIZE_SWITCH
4361 #ifdef __GNUC__
4362 #define C_OPTIMIZE_SWITCH -O2
4363 #else
4364 #define C_OPTIMIZE_SWITCH -O
4365 #endif
4366 #endif
4367
4368 #ifndef LD_SWITCH_MACHINE
4369 #define LD_SWITCH_MACHINE
4370 #endif
4371
4372 #ifndef LD_SWITCH_SYSTEM
4373 #define LD_SWITCH_SYSTEM
4374 #endif
4375
4376 #ifndef LD_SWITCH_X_SITE_AUX
4377 #define LD_SWITCH_X_SITE_AUX
4378 #endif
4379
4380 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4381 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4382
4383 #ifdef THIS_IS_CONFIGURE
4384
4385 /* Get the CFLAGS for tests in configure. */
4386 #ifdef __GNUC__
4387 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4388 #else
4389 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4390 #endif
4391
4392 #else /* not THIS_IS_CONFIGURE */
4393
4394 /* Get the CFLAGS for real compilation. */
4395 #ifdef __GNUC__
4396 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4397 #else
4398 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4399 #endif
4400
4401 #endif /* not THIS_IS_CONFIGURE */
4402 ' > ${tempcname}
4403
4404 # The value of CPP is a quoted variable reference, so we need to do this
4405 # to get its actual value...
4406 CPP=`eval "echo $CPP"`
4407 eval `${CPP} -Isrc ${tempcname} \
4408 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4409 if test "x$SPECIFIED_CFLAGS" = x; then
4410 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4412 else
4413 REAL_CFLAGS="$CFLAGS"
4414 fi
4415 rm ${tempcname}
4416
4417 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4418
4419 ### Make sure subsequent tests use flags consistent with the build flags.
4420
4421 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4422 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4423 else
4424 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4425 fi
4426
4427
4428
4429
4430 cat >>confdefs.h <<\_ACEOF
4431 #define _GNU_SOURCE 1
4432 _ACEOF
4433
4434
4435
4436 # Check whether --enable-largefile or --disable-largefile was given.
4437 if test "${enable_largefile+set}" = set; then
4438 enableval="$enable_largefile"
4439
4440 fi;
4441 if test "$enable_largefile" != no; then
4442
4443 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4444 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4445 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_cv_sys_largefile_CC=no
4449 if test "$GCC" != yes; then
4450 ac_save_CC=$CC
4451 while :; do
4452 # IRIX 6.2 and later do not support large files by default,
4453 # so use the C compiler's -n32 option if that helps.
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4468 ? 1 : -1];
4469 int
4470 main ()
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 break
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 fi
4505 rm -f conftest.err conftest.$ac_objext
4506 CC="$CC -n32"
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_largefile_CC=' -n32'; break
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 fi
4535 rm -f conftest.err conftest.$ac_objext
4536 break
4537 done
4538 CC=$ac_save_CC
4539 rm -f conftest.$ac_ext
4540 fi
4541 fi
4542 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4543 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4544 if test "$ac_cv_sys_largefile_CC" != no; then
4545 CC=$CC$ac_cv_sys_largefile_CC
4546 fi
4547
4548 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4549 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 while :; do
4554 ac_cv_sys_file_offset_bits=no
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4569 ? 1 : -1];
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 break
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 fi
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4622 ? 1 : -1];
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_sys_file_offset_bits=64; break
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 fi
4659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4660 break
4661 done
4662 fi
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4664 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4665 if test "$ac_cv_sys_file_offset_bits" != no; then
4666
4667 cat >>confdefs.h <<_ACEOF
4668 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4669 _ACEOF
4670
4671 fi
4672 rm -f conftest*
4673 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_large_files+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 while :; do
4679 ac_cv_sys_large_files=no
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4694 ? 1 : -1];
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 break
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 fi
4731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #define _LARGE_FILES 1
4739 #include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4747 ? 1 : -1];
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_large_files=1; break
4779 else
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 fi
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 break
4786 done
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4789 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4790 if test "$ac_cv_sys_large_files" != no; then
4791
4792 cat >>confdefs.h <<_ACEOF
4793 #define _LARGE_FILES $ac_cv_sys_large_files
4794 _ACEOF
4795
4796 fi
4797 rm -f conftest*
4798 fi
4799
4800
4801 if test "${with_sound}" != "no"; then
4802 # Sound support for GNU/Linux and the free BSDs.
4803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805 if test "${ac_cv_header_stdc+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <stdlib.h>
4815 #include <stdarg.h>
4816 #include <string.h>
4817 #include <float.h>
4818
4819 int
4820 main ()
4821 {
4822
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc=yes
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_cv_header_stdc=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <string.h>
4867
4868 _ACEOF
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev/null 2>&1; then
4871 :
4872 else
4873 ac_cv_header_stdc=no
4874 fi
4875 rm -f conftest*
4876
4877 fi
4878
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4888
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev/null 2>&1; then
4892 :
4893 else
4894 ac_cv_header_stdc=no
4895 fi
4896 rm -f conftest*
4897
4898 fi
4899
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4903 :
4904 else
4905 cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h. */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ctype.h>
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915 #else
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4921 #endif
4922
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924 int
4925 main ()
4926 {
4927 int i;
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4931 exit(2);
4932 exit (0);
4933 }
4934 _ACEOF
4935 rm -f conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 :
4947 else
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ( exit $ac_status )
4953 ac_cv_header_stdc=no
4954 fi
4955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 fi
4958 fi
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4962
4963 cat >>confdefs.h <<\_ACEOF
4964 #define STDC_HEADERS 1
4965 _ACEOF
4966
4967 fi
4968
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980 inttypes.h stdint.h unistd.h
4981 do
4982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4995
4996 #include <$ac_header>
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 eval "$as_ac_Header=no"
5026 fi
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5034 _ACEOF
5035
5036 fi
5037
5038 done
5039
5040
5041
5042
5043
5044 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5045 do
5046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 fi
5053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5055 else
5056 # Is the header compilable?
5057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_header_compiler=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 ac_header_compiler=no
5096 fi
5097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099 echo "${ECHO_T}$ac_header_compiler" >&6
5100
5101 # Is the header present?
5102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <$ac_header>
5111 _ACEOF
5112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev/null; then
5120 if test -s conftest.err; then
5121 ac_cpp_err=$ac_c_preproc_warn_flag
5122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5123 else
5124 ac_cpp_err=
5125 fi
5126 else
5127 ac_cpp_err=yes
5128 fi
5129 if test -z "$ac_cpp_err"; then
5130 ac_header_preproc=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_header_preproc=no
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139 echo "${ECHO_T}$ac_header_preproc" >&6
5140
5141 # So? What about this header?
5142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5143 yes:no: )
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc=yes
5149 ;;
5150 no:yes:* )
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163 (
5164 cat <<\_ASBOX
5165 ## ------------------------------------------ ##
5166 ## Report this to the AC_PACKAGE_NAME lists. ##
5167 ## ------------------------------------------ ##
5168 _ASBOX
5169 ) |
5170 sed "s/^/$as_me: WARNING: /" >&2
5171 ;;
5172 esac
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 eval "$as_ac_Header=\$ac_header_preproc"
5179 fi
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5182
5183 fi
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5187 _ACEOF
5188
5189 fi
5190
5191 done
5192
5193 # Emulation library used on NetBSD.
5194 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5195 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 ac_check_lib_save_LIBS=$LIBS
5200 LIBS="-lossaudio $LIBS"
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 #ifdef __cplusplus
5210 extern "C"
5211 #endif
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5214 char _oss_ioctl ();
5215 int
5216 main ()
5217 {
5218 _oss_ioctl ();
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 rm -f conftest.$ac_objext conftest$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_cv_lib_ossaudio__oss_ioctl=no
5251 fi
5252 rm -f conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext conftest.$ac_ext
5254 LIBS=$ac_check_lib_save_LIBS
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5259 LIBSOUND=-lossaudio
5260 else
5261 LIBSOUND=
5262 fi
5263
5264
5265 fi
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5291 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5292 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5293 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5294 do
5295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297 echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 fi
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5304 else
5305 # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_header_compiler=yes
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5343
5344 ac_header_compiler=no
5345 fi
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5348 echo "${ECHO_T}$ac_header_compiler" >&6
5349
5350 # Is the header present?
5351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <$ac_header>
5360 _ACEOF
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null; then
5369 if test -s conftest.err; then
5370 ac_cpp_err=$ac_c_preproc_warn_flag
5371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372 else
5373 ac_cpp_err=
5374 fi
5375 else
5376 ac_cpp_err=yes
5377 fi
5378 if test -z "$ac_cpp_err"; then
5379 ac_header_preproc=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_header_preproc=no
5385 fi
5386 rm -f conftest.err conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5389
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5392 yes:no: )
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5397 ac_header_preproc=yes
5398 ;;
5399 no:yes:* )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5412 (
5413 cat <<\_ASBOX
5414 ## ------------------------------------------ ##
5415 ## Report this to the AC_PACKAGE_NAME lists. ##
5416 ## ------------------------------------------ ##
5417 _ASBOX
5418 ) |
5419 sed "s/^/$as_me: WARNING: /" >&2
5420 ;;
5421 esac
5422 echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 eval "$as_ac_Header=\$ac_header_preproc"
5428 fi
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5431
5432 fi
5433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5436 _ACEOF
5437
5438 fi
5439
5440 done
5441
5442
5443 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5444 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <sys/personality.h>
5452 int
5453 main ()
5454 {
5455 personality (PER_LINUX32)
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -z "$ac_c_werror_flag"
5470 || test ! -s conftest.err'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 emacs_cv_personality_linux32=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 emacs_cv_personality_linux32=no
5488 fi
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5491 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5492
5493 if test $emacs_cv_personality_linux32 = yes; then
5494
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_PERSONALITY_LINUX32 1
5497 _ACEOF
5498
5499 fi
5500
5501
5502 for ac_header in term.h
5503 do
5504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 echo "$as_me:$LINENO: checking for $ac_header" >&5
5506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <$ac_header>
5517 _ACEOF
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_c_preproc_warn_flag
5528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529 else
5530 ac_cpp_err=
5531 fi
5532 else
5533 ac_cpp_err=yes
5534 fi
5535 if test -z "$ac_cpp_err"; then
5536 eval "$as_ac_Header=yes"
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 eval "$as_ac_Header=no"
5542 fi
5543 rm -f conftest.err conftest.$ac_ext
5544 fi
5545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5550 _ACEOF
5551
5552 fi
5553
5554 done
5555
5556 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5557 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5558 if test "${ac_cv_header_stdc+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <stdlib.h>
5568 #include <stdarg.h>
5569 #include <string.h>
5570 #include <float.h>
5571
5572 int
5573 main ()
5574 {
5575
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try='test -z "$ac_c_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_header_stdc=yes
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5606
5607 ac_cv_header_stdc=no
5608 fi
5609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5610
5611 if test $ac_cv_header_stdc = yes; then
5612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <string.h>
5620
5621 _ACEOF
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev/null 2>&1; then
5624 :
5625 else
5626 ac_cv_header_stdc=no
5627 fi
5628 rm -f conftest*
5629
5630 fi
5631
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 #include <stdlib.h>
5641
5642 _ACEOF
5643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5644 $EGREP "free" >/dev/null 2>&1; then
5645 :
5646 else
5647 ac_cv_header_stdc=no
5648 fi
5649 rm -f conftest*
5650
5651 fi
5652
5653 if test $ac_cv_header_stdc = yes; then
5654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5655 if test "$cross_compiling" = yes; then
5656 :
5657 else
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <ctype.h>
5665 #if ((' ' & 0x0FF) == 0x020)
5666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5668 #else
5669 # define ISLOWER(c) \
5670 (('a' <= (c) && (c) <= 'i') \
5671 || ('j' <= (c) && (c) <= 'r') \
5672 || ('s' <= (c) && (c) <= 'z'))
5673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5674 #endif
5675
5676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5677 int
5678 main ()
5679 {
5680 int i;
5681 for (i = 0; i < 256; i++)
5682 if (XOR (islower (i), ISLOWER (i))
5683 || toupper (i) != TOUPPER (i))
5684 exit(2);
5685 exit (0);
5686 }
5687 _ACEOF
5688 rm -f conftest$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 :
5700 else
5701 echo "$as_me: program exited with status $ac_status" >&5
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 ( exit $ac_status )
5706 ac_cv_header_stdc=no
5707 fi
5708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5709 fi
5710 fi
5711 fi
5712 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5713 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5714 if test $ac_cv_header_stdc = yes; then
5715
5716 cat >>confdefs.h <<\_ACEOF
5717 #define STDC_HEADERS 1
5718 _ACEOF
5719
5720 fi
5721
5722 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5724 if test "${ac_cv_header_time+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 #include <sys/time.h>
5735 #include <time.h>
5736
5737 int
5738 main ()
5739 {
5740 if ((struct tm *) 0)
5741 return 0;
5742 ;
5743 return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag"
5756 || test ! -s conftest.err'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest.$ac_objext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_header_time=yes
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_cv_header_time=no
5774 fi
5775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5776 fi
5777 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5778 echo "${ECHO_T}$ac_cv_header_time" >&6
5779 if test $ac_cv_header_time = yes; then
5780
5781 cat >>confdefs.h <<\_ACEOF
5782 #define TIME_WITH_SYS_TIME 1
5783 _ACEOF
5784
5785 fi
5786
5787 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5788 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5789 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5799 int
5800 main ()
5801 {
5802 #ifndef sys_siglist
5803 char *p = (char *) sys_siglist;
5804 #endif
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_c_werror_flag"
5820 || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_have_decl_sys_siglist=yes
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 ac_cv_have_decl_sys_siglist=no
5838 fi
5839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840 fi
5841 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5842 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5843 if test $ac_cv_have_decl_sys_siglist = yes; then
5844
5845 cat >>confdefs.h <<_ACEOF
5846 #define HAVE_DECL_SYS_SIGLIST 1
5847 _ACEOF
5848
5849
5850 else
5851 cat >>confdefs.h <<_ACEOF
5852 #define HAVE_DECL_SYS_SIGLIST 0
5853 _ACEOF
5854
5855
5856 fi
5857
5858
5859 if test $ac_cv_have_decl_sys_siglist != yes; then
5860 # For Tru64, at least:
5861 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5862 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5863 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 $ac_includes_default
5873 int
5874 main ()
5875 {
5876 #ifndef __sys_siglist
5877 char *p = (char *) __sys_siglist;
5878 #endif
5879
5880 ;
5881 return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest.$ac_objext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_have_decl___sys_siglist=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 ac_cv_have_decl___sys_siglist=no
5912 fi
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914 fi
5915 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5916 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5917 if test $ac_cv_have_decl___sys_siglist = yes; then
5918
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_DECL___SYS_SIGLIST 1
5921 _ACEOF
5922
5923
5924 else
5925 cat >>confdefs.h <<_ACEOF
5926 #define HAVE_DECL___SYS_SIGLIST 0
5927 _ACEOF
5928
5929
5930 fi
5931
5932
5933 if test $ac_cv_have_decl___sys_siglist = yes; then
5934
5935 cat >>confdefs.h <<\_ACEOF
5936 #define sys_siglist __sys_siglist
5937 _ACEOF
5938
5939 fi
5940 fi
5941 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5942 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5943 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 #include <sys/wait.h>
5954 #ifndef WEXITSTATUS
5955 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5956 #endif
5957 #ifndef WIFEXITED
5958 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5959 #endif
5960
5961 int
5962 main ()
5963 {
5964 int s;
5965 wait (&s);
5966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_header_sys_wait_h=yes
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_cv_header_sys_wait_h=no
5999 fi
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 fi
6002 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6003 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6004 if test $ac_cv_header_sys_wait_h = yes; then
6005
6006 cat >>confdefs.h <<\_ACEOF
6007 #define HAVE_SYS_WAIT_H 1
6008 _ACEOF
6009
6010 fi
6011
6012
6013 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6014 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6015 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #ifdef TIME_WITH_SYS_TIME
6025 #include <sys/time.h>
6026 #include <time.h>
6027 #else
6028 #ifdef HAVE_SYS_TIME_H
6029 #include <sys/time.h>
6030 #else
6031 #include <time.h>
6032 #endif
6033 #endif
6034 #ifdef HAVE_UTIME_H
6035 #include <utime.h>
6036 #endif
6037 int
6038 main ()
6039 {
6040 static struct utimbuf x; x.actime = x.modtime;
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag"
6055 || test ! -s conftest.err'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; } &&
6061 { ac_try='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 emacs_cv_struct_utimbuf=yes
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 emacs_cv_struct_utimbuf=no
6073 fi
6074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6075 fi
6076 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6077 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6078 if test $emacs_cv_struct_utimbuf = yes; then
6079
6080 cat >>confdefs.h <<\_ACEOF
6081 #define HAVE_STRUCT_UTIMBUF 1
6082 _ACEOF
6083
6084 fi
6085
6086 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6087 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6088 if test "${ac_cv_type_signal+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 #include <sys/types.h>
6098 #include <signal.h>
6099 #ifdef signal
6100 # undef signal
6101 #endif
6102 #ifdef __cplusplus
6103 extern "C" void (*signal (int, void (*)(int)))(int);
6104 #else
6105 void (*signal ()) ();
6106 #endif
6107
6108 int
6109 main ()
6110 {
6111 int i;
6112 ;
6113 return 0;
6114 }
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_c_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_type_signal=void
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_cv_type_signal=int
6144 fi
6145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146 fi
6147 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6148 echo "${ECHO_T}$ac_cv_type_signal" >&6
6149
6150 cat >>confdefs.h <<_ACEOF
6151 #define RETSIGTYPE $ac_cv_type_signal
6152 _ACEOF
6153
6154
6155
6156 echo "$as_me:$LINENO: checking for speed_t" >&5
6157 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6158 if test "${emacs_cv_speed_t+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <termios.h>
6168 int
6169 main ()
6170 {
6171 speed_t x = 1;
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 emacs_cv_speed_t=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 emacs_cv_speed_t=no
6204 fi
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 fi
6207 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6208 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6209 if test $emacs_cv_speed_t = yes; then
6210
6211 cat >>confdefs.h <<\_ACEOF
6212 #define HAVE_SPEED_T 1
6213 _ACEOF
6214
6215 fi
6216
6217 echo "$as_me:$LINENO: checking for struct timeval" >&5
6218 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6219 if test "${emacs_cv_struct_timeval+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #ifdef TIME_WITH_SYS_TIME
6229 #include <sys/time.h>
6230 #include <time.h>
6231 #else
6232 #ifdef HAVE_SYS_TIME_H
6233 #include <sys/time.h>
6234 #else
6235 #include <time.h>
6236 #endif
6237 #endif
6238 int
6239 main ()
6240 {
6241 static struct timeval x; x.tv_sec = x.tv_usec;
6242 ;
6243 return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 emacs_cv_struct_timeval=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 emacs_cv_struct_timeval=no
6274 fi
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 fi
6277 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6278 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6279 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6280 if test $emacs_cv_struct_timeval = yes; then
6281
6282 cat >>confdefs.h <<\_ACEOF
6283 #define HAVE_TIMEVAL 1
6284 _ACEOF
6285
6286 fi
6287
6288 echo "$as_me:$LINENO: checking for struct exception" >&5
6289 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6290 if test "${emacs_cv_struct_exception+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <math.h>
6300 int
6301 main ()
6302 {
6303 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -z "$ac_c_werror_flag"
6318 || test ! -s conftest.err'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; } &&
6324 { ac_try='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 emacs_cv_struct_exception=yes
6331 else
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 emacs_cv_struct_exception=no
6336 fi
6337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6340 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6341 HAVE_EXCEPTION=$emacs_cv_struct_exception
6342 if test $emacs_cv_struct_exception != yes; then
6343
6344 cat >>confdefs.h <<\_ACEOF
6345 #define NO_MATHERR 1
6346 _ACEOF
6347
6348 fi
6349
6350
6351 for ac_header in sys/socket.h
6352 do
6353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355 echo "$as_me:$LINENO: checking for $ac_header" >&5
6356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 fi
6360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6362 else
6363 # Is the header compilable?
6364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6373 #include <$ac_header>
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_c_werror_flag"
6385 || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_header_compiler=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 ac_header_compiler=no
6403 fi
6404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6406 echo "${ECHO_T}$ac_header_compiler" >&6
6407
6408 # Is the header present?
6409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #include <$ac_header>
6418 _ACEOF
6419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } >/dev/null; then
6427 if test -s conftest.err; then
6428 ac_cpp_err=$ac_c_preproc_warn_flag
6429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6430 else
6431 ac_cpp_err=
6432 fi
6433 else
6434 ac_cpp_err=yes
6435 fi
6436 if test -z "$ac_cpp_err"; then
6437 ac_header_preproc=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_header_preproc=no
6443 fi
6444 rm -f conftest.err conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6446 echo "${ECHO_T}$ac_header_preproc" >&6
6447
6448 # So? What about this header?
6449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6450 yes:no: )
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6455 ac_header_preproc=yes
6456 ;;
6457 no:yes:* )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6470 (
6471 cat <<\_ASBOX
6472 ## ------------------------------------------ ##
6473 ## Report this to the AC_PACKAGE_NAME lists. ##
6474 ## ------------------------------------------ ##
6475 _ASBOX
6476 ) |
6477 sed "s/^/$as_me: WARNING: /" >&2
6478 ;;
6479 esac
6480 echo "$as_me:$LINENO: checking for $ac_header" >&5
6481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 eval "$as_ac_Header=\$ac_header_preproc"
6486 fi
6487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6489
6490 fi
6491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6492 cat >>confdefs.h <<_ACEOF
6493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6494 _ACEOF
6495
6496 fi
6497
6498 done
6499
6500
6501 for ac_header in net/if.h
6502 do
6503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516 #if HAVE_SYS_SOCKET_H
6517 #include <sys/socket.h>
6518 #endif
6519
6520 #include <$ac_header>
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try='test -s conftest.$ac_objext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 eval "$as_ac_Header=yes"
6545 else
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 eval "$as_ac_Header=no"
6550 fi
6551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556 cat >>confdefs.h <<_ACEOF
6557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558 _ACEOF
6559
6560 fi
6561
6562 done
6563
6564
6565 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6566 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6567 if test "${ac_cv_struct_tm+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <sys/types.h>
6577 #include <time.h>
6578
6579 int
6580 main ()
6581 {
6582 struct tm *tp; tp->tm_sec;
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_struct_tm=time.h
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_struct_tm=sys/time.h
6615 fi
6616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6619 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6620 if test $ac_cv_struct_tm = sys/time.h; then
6621
6622 cat >>confdefs.h <<\_ACEOF
6623 #define TM_IN_SYS_TIME 1
6624 _ACEOF
6625
6626 fi
6627
6628 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6629 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6630 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <sys/types.h>
6640 #include <$ac_cv_struct_tm>
6641
6642
6643 int
6644 main ()
6645 {
6646 static struct tm ac_aggr;
6647 if (ac_aggr.tm_zone)
6648 return 0;
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>conftest.er1
6656 ac_status=$?
6657 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -f conftest.er1
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -z "$ac_c_werror_flag"
6663 || test ! -s conftest.err'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try='test -s conftest.$ac_objext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 ac_cv_member_struct_tm_tm_zone=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <sys/types.h>
6687 #include <$ac_cv_struct_tm>
6688
6689
6690 int
6691 main ()
6692 {
6693 static struct tm ac_aggr;
6694 if (sizeof ac_aggr.tm_zone)
6695 return 0;
6696 ;
6697 return 0;
6698 }
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6702 (eval $ac_compile) 2>conftest.er1
6703 ac_status=$?
6704 grep -v '^ *+' conftest.er1 >conftest.err
6705 rm -f conftest.er1
6706 cat conftest.err >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -z "$ac_c_werror_flag"
6710 || test ! -s conftest.err'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; } &&
6716 { ac_try='test -s conftest.$ac_objext'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6722 ac_cv_member_struct_tm_tm_zone=yes
6723 else
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 ac_cv_member_struct_tm_tm_zone=no
6728 fi
6729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6730 fi
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 fi
6733 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6734 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6735 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6736
6737 cat >>confdefs.h <<_ACEOF
6738 #define HAVE_STRUCT_TM_TM_ZONE 1
6739 _ACEOF
6740
6741
6742 fi
6743
6744 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6745
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_TM_ZONE 1
6748 _ACEOF
6749
6750 else
6751 echo "$as_me:$LINENO: checking for tzname" >&5
6752 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6753 if test "${ac_cv_var_tzname+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 #include <time.h>
6763 #ifndef tzname /* For SGI. */
6764 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6765 #endif
6766
6767 int
6768 main ()
6769 {
6770 atoi(*tzname);
6771 ;
6772 return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try='test -z "$ac_c_werror_flag"
6785 || test ! -s conftest.err'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 (eval $ac_try) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_var_tzname=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6801
6802 ac_cv_var_tzname=no
6803 fi
6804 rm -f conftest.err conftest.$ac_objext \
6805 conftest$ac_exeext conftest.$ac_ext
6806 fi
6807 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6808 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6809 if test $ac_cv_var_tzname = yes; then
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_TZNAME 1
6813 _ACEOF
6814
6815 fi
6816 fi
6817
6818 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6819 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6820 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 #include <time.h>
6830
6831 int
6832 main ()
6833 {
6834 static struct tm ac_aggr;
6835 if (ac_aggr.tm_gmtoff)
6836 return 0;
6837 ;
6838 return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>conftest.er1
6844 ac_status=$?
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -z "$ac_c_werror_flag"
6851 || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 (eval $ac_try) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_cv_member_struct_tm_tm_gmtoff=yes
6864 else
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <time.h>
6875
6876 int
6877 main ()
6878 {
6879 static struct tm ac_aggr;
6880 if (sizeof ac_aggr.tm_gmtoff)
6881 return 0;
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -z "$ac_c_werror_flag"
6896 || test ! -s conftest.err'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; } &&
6902 { ac_try='test -s conftest.$ac_objext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 ac_cv_member_struct_tm_tm_gmtoff=yes
6909 else
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913 ac_cv_member_struct_tm_tm_gmtoff=no
6914 fi
6915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6916 fi
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 fi
6919 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6920 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6921 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6922
6923 cat >>confdefs.h <<\_ACEOF
6924 #define HAVE_TM_GMTOFF 1
6925 _ACEOF
6926
6927 fi
6928
6929 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6930 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6931 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6941 #if HAVE_SYS_SOCKET_H
6942 #include <sys/socket.h>
6943 #endif
6944 #if HAVE_NET_IF_H
6945 #include <net/if.h>
6946 #endif
6947
6948 int
6949 main ()
6950 {
6951 static struct ifreq ac_aggr;
6952 if (ac_aggr.ifr_flags)
6953 return 0;
6954 ;
6955 return 0;
6956 }
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_member_struct_ifreq_ifr_flags=yes
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h. */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 $ac_includes_default
6992 #if HAVE_SYS_SOCKET_H
6993 #include <sys/socket.h>
6994 #endif
6995 #if HAVE_NET_IF_H
6996 #include <net/if.h>
6997 #endif
6998
6999 int
7000 main ()
7001 {
7002 static struct ifreq ac_aggr;
7003 if (sizeof ac_aggr.ifr_flags)
7004 return 0;
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_member_struct_ifreq_ifr_flags=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_cv_member_struct_ifreq_ifr_flags=no
7037 fi
7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039 fi
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 fi
7042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7043 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7044 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7045
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7048 _ACEOF
7049
7050
7051 fi
7052 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7053 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7054 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 #if HAVE_SYS_SOCKET_H
7065 #include <sys/socket.h>
7066 #endif
7067 #if HAVE_NET_IF_H
7068 #include <net/if.h>
7069 #endif
7070
7071 int
7072 main ()
7073 {
7074 static struct ifreq ac_aggr;
7075 if (ac_aggr.ifr_hwaddr)
7076 return 0;
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -z "$ac_c_werror_flag"
7091 || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7115 #if HAVE_SYS_SOCKET_H
7116 #include <sys/socket.h>
7117 #endif
7118 #if HAVE_NET_IF_H
7119 #include <net/if.h>
7120 #endif
7121
7122 int
7123 main ()
7124 {
7125 static struct ifreq ac_aggr;
7126 if (sizeof ac_aggr.ifr_hwaddr)
7127 return 0;
7128 ;
7129 return 0;
7130 }
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } &&
7141 { ac_try='test -z "$ac_c_werror_flag"
7142 || test ! -s conftest.err'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 (eval $ac_try) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; } &&
7148 { ac_try='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7160 fi
7161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7162 fi
7163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7164 fi
7165 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7166 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7167 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7168
7169 cat >>confdefs.h <<_ACEOF
7170 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7171 _ACEOF
7172
7173
7174 fi
7175 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7176 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7177 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 #if HAVE_SYS_SOCKET_H
7188 #include <sys/socket.h>
7189 #endif
7190 #if HAVE_NET_IF_H
7191 #include <net/if.h>
7192 #endif
7193
7194 int
7195 main ()
7196 {
7197 static struct ifreq ac_aggr;
7198 if (ac_aggr.ifr_netmask)
7199 return 0;
7200 ;
7201 return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_member_struct_ifreq_ifr_netmask=yes
7227 else
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 $ac_includes_default
7238 #if HAVE_SYS_SOCKET_H
7239 #include <sys/socket.h>
7240 #endif
7241 #if HAVE_NET_IF_H
7242 #include <net/if.h>
7243 #endif
7244
7245 int
7246 main ()
7247 {
7248 static struct ifreq ac_aggr;
7249 if (sizeof ac_aggr.ifr_netmask)
7250 return 0;
7251 ;
7252 return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 (eval $ac_try) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_member_struct_ifreq_ifr_netmask=yes
7278 else
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_cv_member_struct_ifreq_ifr_netmask=no
7283 fi
7284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7285 fi
7286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7289 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7290 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7291
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7294 _ACEOF
7295
7296
7297 fi
7298 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7299 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7300 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #if HAVE_SYS_SOCKET_H
7311 #include <sys/socket.h>
7312 #endif
7313 #if HAVE_NET_IF_H
7314 #include <net/if.h>
7315 #endif
7316
7317 int
7318 main ()
7319 {
7320 static struct ifreq ac_aggr;
7321 if (ac_aggr.ifr_broadaddr)
7322 return 0;
7323 ;
7324 return 0;
7325 }
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 $ac_includes_default
7361 #if HAVE_SYS_SOCKET_H
7362 #include <sys/socket.h>
7363 #endif
7364 #if HAVE_NET_IF_H
7365 #include <net/if.h>
7366 #endif
7367
7368 int
7369 main ()
7370 {
7371 static struct ifreq ac_aggr;
7372 if (sizeof ac_aggr.ifr_broadaddr)
7373 return 0;
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 rm -f conftest.$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7401 else
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7406 fi
7407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410 fi
7411 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7412 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7413 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7414
7415 cat >>confdefs.h <<_ACEOF
7416 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7417 _ACEOF
7418
7419
7420 fi
7421 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7422 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7423 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 #if HAVE_SYS_SOCKET_H
7434 #include <sys/socket.h>
7435 #endif
7436 #if HAVE_NET_IF_H
7437 #include <net/if.h>
7438 #endif
7439
7440 int
7441 main ()
7442 {
7443 static struct ifreq ac_aggr;
7444 if (ac_aggr.ifr_addr)
7445 return 0;
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -z "$ac_c_werror_flag"
7460 || test ! -s conftest.err'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 (eval $ac_try) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_cv_member_struct_ifreq_ifr_addr=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 #if HAVE_SYS_SOCKET_H
7485 #include <sys/socket.h>
7486 #endif
7487 #if HAVE_NET_IF_H
7488 #include <net/if.h>
7489 #endif
7490
7491 int
7492 main ()
7493 {
7494 static struct ifreq ac_aggr;
7495 if (sizeof ac_aggr.ifr_addr)
7496 return 0;
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_member_struct_ifreq_ifr_addr=yes
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_cv_member_struct_ifreq_ifr_addr=no
7529 fi
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533 fi
7534 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7536 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7537
7538 cat >>confdefs.h <<_ACEOF
7539 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7540 _ACEOF
7541
7542
7543 fi
7544
7545
7546
7547 echo "$as_me:$LINENO: checking for function prototypes" >&5
7548 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7549 if test "$ac_cv_prog_cc_stdc" != no; then
7550 echo "$as_me:$LINENO: result: yes" >&5
7551 echo "${ECHO_T}yes" >&6
7552
7553 cat >>confdefs.h <<\_ACEOF
7554 #define PROTOTYPES 1
7555 _ACEOF
7556
7557
7558 cat >>confdefs.h <<\_ACEOF
7559 #define __PROTOTYPES 1
7560 _ACEOF
7561
7562 else
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7565 fi
7566
7567 echo "$as_me:$LINENO: checking for working volatile" >&5
7568 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7569 if test "${ac_cv_c_volatile+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572 cat >conftest.$ac_ext <<_ACEOF
7573 /* confdefs.h. */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7578
7579 int
7580 main ()
7581 {
7582
7583 volatile int x;
7584 int * volatile y;
7585 ;
7586 return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_c_volatile=yes
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 ac_cv_c_volatile=no
7617 fi
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7621 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7622 if test $ac_cv_c_volatile = no; then
7623
7624 cat >>confdefs.h <<\_ACEOF
7625 #define volatile
7626 _ACEOF
7627
7628 fi
7629
7630 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7632 if test "${ac_cv_c_const+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641
7642 int
7643 main ()
7644 {
7645 /* FIXME: Include the comments suggested by Paul. */
7646 #ifndef __cplusplus
7647 /* Ultrix mips cc rejects this. */
7648 typedef int charset[2];
7649 const charset x;
7650 /* SunOS 4.1.1 cc rejects this. */
7651 char const *const *ccp;
7652 char **p;
7653 /* NEC SVR4.0.2 mips cc rejects this. */
7654 struct point {int x, y;};
7655 static struct point const zero = {0,0};
7656 /* AIX XL C 1.02.0.0 rejects this.
7657 It does not let you subtract one const X* pointer from another in
7658 an arm of an if-expression whose if-part is not a constant
7659 expression */
7660 const char *g = "string";
7661 ccp = &g + (g ? g-g : 0);
7662 /* HPUX 7.0 cc rejects these. */
7663 ++ccp;
7664 p = (char**) ccp;
7665 ccp = (char const *const *) p;
7666 { /* SCO 3.2v4 cc rejects this. */
7667 char *t;
7668 char const *s = 0 ? (char *) 0 : (char const *) 0;
7669
7670 *t++ = 0;
7671 }
7672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7673 int x[] = {25, 17};
7674 const int *foo = &x[0];
7675 ++foo;
7676 }
7677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7678 typedef const int *iptr;
7679 iptr p = 0;
7680 ++p;
7681 }
7682 { /* AIX XL C 1.02.0.0 rejects this saying
7683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7684 struct s { int j; const int *ap[3]; };
7685 struct s *b; b->j = 5;
7686 }
7687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7688 const int foo = 10;
7689 }
7690 #endif
7691
7692 ;
7693 return 0;
7694 }
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_c_const=yes
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_cv_c_const=no
7724 fi
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7728 echo "${ECHO_T}$ac_cv_c_const" >&6
7729 if test $ac_cv_c_const = no; then
7730
7731 cat >>confdefs.h <<\_ACEOF
7732 #define const
7733 _ACEOF
7734
7735 fi
7736
7737 echo "$as_me:$LINENO: checking for void * support" >&5
7738 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7739 if test "${emacs_cv_void_star+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748
7749 int
7750 main ()
7751 {
7752 void * foo;
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 emacs_cv_void_star=yes
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784 emacs_cv_void_star=no
7785 fi
7786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7787 fi
7788 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7789 echo "${ECHO_T}$emacs_cv_void_star" >&6
7790 if test $emacs_cv_void_star = yes; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define POINTER_TYPE void
7793 _ACEOF
7794
7795 else
7796 cat >>confdefs.h <<\_ACEOF
7797 #define POINTER_TYPE char
7798 _ACEOF
7799
7800 fi
7801
7802
7803
7804
7805
7806 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7807 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7808 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7809 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 cat >conftest.make <<\_ACEOF
7813 all:
7814 @echo 'ac_maketemp="$(MAKE)"'
7815 _ACEOF
7816 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7817 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7818 if test -n "$ac_maketemp"; then
7819 eval ac_cv_prog_make_${ac_make}_set=yes
7820 else
7821 eval ac_cv_prog_make_${ac_make}_set=no
7822 fi
7823 rm -f conftest.make
7824 fi
7825 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827 echo "${ECHO_T}yes" >&6
7828 SET_MAKE=
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832 SET_MAKE="MAKE=${MAKE-make}"
7833 fi
7834
7835
7836 echo "$as_me:$LINENO: checking for long file names" >&5
7837 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7838 if test "${ac_cv_sys_long_file_names+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 ac_cv_sys_long_file_names=yes
7842 # Test for long file names in all the places we know might matter:
7843 # . the current directory, where building will happen
7844 # $prefix/lib where we will be installing things
7845 # $exec_prefix/lib likewise
7846 # eval it to expand exec_prefix.
7847 # $TMPDIR if set, where it might want to write temporary files
7848 # if $TMPDIR is not set:
7849 # /tmp where it might want to write temporary files
7850 # /var/tmp likewise
7851 # /usr/tmp likewise
7852 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7853 ac_tmpdirs=$TMPDIR
7854 else
7855 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7856 fi
7857 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7858 test -d $ac_dir || continue
7859 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7860 ac_xdir=$ac_dir/cf$$
7861 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7862 ac_tf1=$ac_xdir/conftest9012345
7863 ac_tf2=$ac_xdir/conftest9012346
7864 (echo 1 >$ac_tf1) 2>/dev/null
7865 (echo 2 >$ac_tf2) 2>/dev/null
7866 ac_val=`cat $ac_tf1 2>/dev/null`
7867 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7868 ac_cv_sys_long_file_names=no
7869 rm -rf $ac_xdir 2>/dev/null
7870 break
7871 fi
7872 rm -rf $ac_xdir 2>/dev/null
7873 done
7874 fi
7875 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7876 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7877 if test $ac_cv_sys_long_file_names = yes; then
7878
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_LONG_FILE_NAMES 1
7881 _ACEOF
7882
7883 fi
7884
7885
7886 #### Choose a window system.
7887
7888 echo "$as_me:$LINENO: checking for X" >&5
7889 echo $ECHO_N "checking for X... $ECHO_C" >&6
7890
7891
7892 # Check whether --with-x or --without-x was given.
7893 if test "${with_x+set}" = set; then
7894 withval="$with_x"
7895
7896 fi;
7897 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7898 if test "x$with_x" = xno; then
7899 # The user explicitly disabled X.
7900 have_x=disabled
7901 else
7902 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7903 # Both variables are already set.
7904 have_x=yes
7905 else
7906 if test "${ac_cv_have_x+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 # One or both of the vars are not set, and there is no cached value.
7910 ac_x_includes=no ac_x_libraries=no
7911 rm -fr conftest.dir
7912 if mkdir conftest.dir; then
7913 cd conftest.dir
7914 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7915 cat >Imakefile <<'_ACEOF'
7916 acfindx:
7917 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7918 _ACEOF
7919 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7921 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7922 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7923 for ac_extension in a so sl; do
7924 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7925 test -f $ac_im_libdir/libX11.$ac_extension; then
7926 ac_im_usrlibdir=$ac_im_libdir; break
7927 fi
7928 done
7929 # Screen out bogus values from the imake configuration. They are
7930 # bogus both because they are the default anyway, and because
7931 # using them would break gcc on systems where it needs fixed includes.
7932 case $ac_im_incroot in
7933 /usr/include) ;;
7934 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7935 esac
7936 case $ac_im_usrlibdir in
7937 /usr/lib | /lib) ;;
7938 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7939 esac
7940 fi
7941 cd ..
7942 rm -fr conftest.dir
7943 fi
7944
7945 # Standard set of common directories for X headers.
7946 # Check X11 before X11Rn because it is often a symlink to the current release.
7947 ac_x_header_dirs='
7948 /usr/X11/include
7949 /usr/X11R6/include
7950 /usr/X11R5/include
7951 /usr/X11R4/include
7952
7953 /usr/include/X11
7954 /usr/include/X11R6
7955 /usr/include/X11R5
7956 /usr/include/X11R4
7957
7958 /usr/local/X11/include
7959 /usr/local/X11R6/include
7960 /usr/local/X11R5/include
7961 /usr/local/X11R4/include
7962
7963 /usr/local/include/X11
7964 /usr/local/include/X11R6
7965 /usr/local/include/X11R5
7966 /usr/local/include/X11R4
7967
7968 /usr/X386/include
7969 /usr/x386/include
7970 /usr/XFree86/include/X11
7971
7972 /usr/include
7973 /usr/local/include
7974 /usr/unsupported/include
7975 /usr/athena/include
7976 /usr/local/x11r5/include
7977 /usr/lpp/Xamples/include
7978
7979 /usr/openwin/include
7980 /usr/openwin/share/include'
7981
7982 if test "$ac_x_includes" = no; then
7983 # Guess where to find include files, by looking for Intrinsic.h.
7984 # First, try using that file with no special directory specified.
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 #include <X11/Intrinsic.h>
7992 _ACEOF
7993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } >/dev/null; then
8001 if test -s conftest.err; then
8002 ac_cpp_err=$ac_c_preproc_warn_flag
8003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8004 else
8005 ac_cpp_err=
8006 fi
8007 else
8008 ac_cpp_err=yes
8009 fi
8010 if test -z "$ac_cpp_err"; then
8011 # We can compile using X headers with no special include directory.
8012 ac_x_includes=
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 for ac_dir in $ac_x_header_dirs; do
8018 if test -r "$ac_dir/X11/Intrinsic.h"; then
8019 ac_x_includes=$ac_dir
8020 break
8021 fi
8022 done
8023 fi
8024 rm -f conftest.err conftest.$ac_ext
8025 fi # $ac_x_includes = no
8026
8027 if test "$ac_x_libraries" = no; then
8028 # Check for the libraries.
8029 # See if we find them without any special options.
8030 # Don't add to $LIBS permanently.
8031 ac_save_LIBS=$LIBS
8032 LIBS="-lXt $LIBS"
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <X11/Intrinsic.h>
8040 int
8041 main ()
8042 {
8043 XtMalloc (0)
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 LIBS=$ac_save_LIBS
8071 # We can link X programs with no special library path.
8072 ac_x_libraries=
8073 else
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077 LIBS=$ac_save_LIBS
8078 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8079 do
8080 # Don't even attempt the hair of trying to link an X program!
8081 for ac_extension in a so sl; do
8082 if test -r $ac_dir/libXt.$ac_extension; then
8083 ac_x_libraries=$ac_dir
8084 break 2
8085 fi
8086 done
8087 done
8088 fi
8089 rm -f conftest.err conftest.$ac_objext \
8090 conftest$ac_exeext conftest.$ac_ext
8091 fi # $ac_x_libraries = no
8092
8093 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8094 # Didn't find X anywhere. Cache the known absence of X.
8095 ac_cv_have_x="have_x=no"
8096 else
8097 # Record where we found X for the cache.
8098 ac_cv_have_x="have_x=yes \
8099 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8100 fi
8101 fi
8102
8103 fi
8104 eval "$ac_cv_have_x"
8105 fi # $with_x != no
8106
8107 if test "$have_x" != yes; then
8108 echo "$as_me:$LINENO: result: $have_x" >&5
8109 echo "${ECHO_T}$have_x" >&6
8110 no_x=yes
8111 else
8112 # If each of the values was on the command line, it overrides each guess.
8113 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8114 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8115 # Update the cache value to reflect the command line values.
8116 ac_cv_have_x="have_x=yes \
8117 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8118 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8119 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8120 fi
8121
8122 if test "$no_x" = yes; then
8123 window_system=none
8124 else
8125 window_system=x11
8126 fi
8127
8128 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8129 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8130 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8131 x_default_search_path=""
8132 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8133 x_search_path="\
8134 ${x_library}/X11/%L/%T/%N%C%S:\
8135 ${x_library}/X11/%l/%T/%N%C%S:\
8136 ${x_library}/X11/%T/%N%C%S:\
8137 ${x_library}/X11/%L/%T/%N%S:\
8138 ${x_library}/X11/%l/%T/%N%S:\
8139 ${x_library}/X11/%T/%N%S"
8140 if test x"${x_default_search_path}" = x; then
8141 x_default_search_path=${x_search_path}
8142 else
8143 x_default_search_path="${x_search_path}:${x_default_search_path}"
8144 fi
8145 done
8146 fi
8147 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8148 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8149 fi
8150
8151 if test x"${x_includes}" = x; then
8152 bitmapdir=/usr/include/X11/bitmaps
8153 else
8154 # accumulate include directories that have X11 bitmap subdirectories
8155 bmd_acc="dummyval"
8156 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8157 if test -d "${bmd}/X11/bitmaps"; then
8158 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8159 fi
8160 if test -d "${bmd}/bitmaps"; then
8161 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8162 fi
8163 done
8164 if test ${bmd_acc} != "dummyval"; then
8165 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8166 fi
8167 fi
8168
8169 case "${window_system}" in
8170 x11 )
8171 HAVE_X_WINDOWS=yes
8172 HAVE_X11=yes
8173 case "${with_x_toolkit}" in
8174 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8175 motif ) USE_X_TOOLKIT=MOTIF ;;
8176 gtk ) with_gtk=yes
8177 USE_X_TOOLKIT=none ;;
8178 no ) USE_X_TOOLKIT=none ;;
8179 * ) USE_X_TOOLKIT=maybe ;;
8180 esac
8181 ;;
8182 none )
8183 HAVE_X_WINDOWS=no
8184 HAVE_X11=no
8185 USE_X_TOOLKIT=none
8186 ;;
8187 esac
8188
8189 ### If we're using X11, we should use the X menu package.
8190 HAVE_MENUS=no
8191 case ${HAVE_X11} in
8192 yes ) HAVE_MENUS=yes ;;
8193 esac
8194
8195 if test "${opsys}" = "hpux9"; then
8196 case "${x_libraries}" in
8197 *X11R4* )
8198 opsysfile="s/hpux9-x11r4.h"
8199 ;;
8200 esac
8201 fi
8202
8203 if test "${opsys}" = "hpux9shr"; then
8204 case "${x_libraries}" in
8205 *X11R4* )
8206 opsysfile="s/hpux9shxr4.h"
8207 ;;
8208 esac
8209 fi
8210
8211 ### Compute the unexec source name from the object name.
8212 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8213
8214 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8215 # Assume not, until told otherwise.
8216 GNU_MALLOC=yes
8217 doug_lea_malloc=yes
8218 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8219 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8220 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8231 #define malloc_get_state innocuous_malloc_get_state
8232
8233 /* System header to define __stub macros and hopefully few prototypes,
8234 which can conflict with char malloc_get_state (); below.
8235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236 <limits.h> exists even on freestanding compilers. */
8237
8238 #ifdef __STDC__
8239 # include <limits.h>
8240 #else
8241 # include <assert.h>
8242 #endif
8243
8244 #undef malloc_get_state
8245
8246 /* Override any gcc2 internal prototype to avoid an error. */
8247 #ifdef __cplusplus
8248 extern "C"
8249 {
8250 #endif
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char malloc_get_state ();
8254 /* The GNU C library defines this for functions which it implements
8255 to always fail with ENOSYS. Some functions are actually named
8256 something starting with __ and the normal name is an alias. */
8257 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8258 choke me
8259 #else
8260 char (*f) () = malloc_get_state;
8261 #endif
8262 #ifdef __cplusplus
8263 }
8264 #endif
8265
8266 int
8267 main ()
8268 {
8269 return f != malloc_get_state;
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_func_malloc_get_state=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_cv_func_malloc_get_state=no
8302 fi
8303 rm -f conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 fi
8306 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8307 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8308 if test $ac_cv_func_malloc_get_state = yes; then
8309 :
8310 else
8311 doug_lea_malloc=no
8312 fi
8313
8314 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8315 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8316 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8327 #define malloc_set_state innocuous_malloc_set_state
8328
8329 /* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char malloc_set_state (); below.
8331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8332 <limits.h> exists even on freestanding compilers. */
8333
8334 #ifdef __STDC__
8335 # include <limits.h>
8336 #else
8337 # include <assert.h>
8338 #endif
8339
8340 #undef malloc_set_state
8341
8342 /* Override any gcc2 internal prototype to avoid an error. */
8343 #ifdef __cplusplus
8344 extern "C"
8345 {
8346 #endif
8347 /* We use char because int might match the return type of a gcc2
8348 builtin and then its argument prototype would still apply. */
8349 char malloc_set_state ();
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8354 choke me
8355 #else
8356 char (*f) () = malloc_set_state;
8357 #endif
8358 #ifdef __cplusplus
8359 }
8360 #endif
8361
8362 int
8363 main ()
8364 {
8365 return f != malloc_set_state;
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_func_malloc_set_state=yes
8393 else
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 ac_cv_func_malloc_set_state=no
8398 fi
8399 rm -f conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 fi
8402 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8403 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8404 if test $ac_cv_func_malloc_set_state = yes; then
8405 :
8406 else
8407 doug_lea_malloc=no
8408 fi
8409
8410 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8411 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8412 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 extern void (* __after_morecore_hook)();
8422 int
8423 main ()
8424 {
8425 __after_morecore_hook = 0
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432 (eval $ac_link) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag"
8440 || test ! -s conftest.err'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 emacs_cv_var___after_morecore_hook=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457 emacs_cv_var___after_morecore_hook=no
8458 fi
8459 rm -f conftest.err conftest.$ac_objext \
8460 conftest$ac_exeext conftest.$ac_ext
8461 fi
8462 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8463 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8464 if test $emacs_cv_var___after_morecore_hook = no; then
8465 doug_lea_malloc=no
8466 fi
8467 if test "${system_malloc}" = "yes"; then
8468 GNU_MALLOC=no
8469 GNU_MALLOC_reason="
8470 (The GNU allocators don't work with this system configuration.)"
8471 fi
8472 if test "$doug_lea_malloc" = "yes" ; then
8473 if test "$GNU_MALLOC" = yes ; then
8474 GNU_MALLOC_reason="
8475 (Using Doug Lea's new malloc from the GNU C Library.)"
8476 fi
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define DOUG_LEA_MALLOC 1
8480 _ACEOF
8481
8482 fi
8483
8484 if test x"${REL_ALLOC}" = x; then
8485 REL_ALLOC=${GNU_MALLOC}
8486 fi
8487
8488
8489
8490
8491 for ac_header in stdlib.h unistd.h
8492 do
8493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495 echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 fi
8500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8502 else
8503 # Is the header compilable?
8504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 #include <$ac_header>
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest.$ac_objext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_header_compiler=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 ac_header_compiler=no
8543 fi
8544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8546 echo "${ECHO_T}$ac_header_compiler" >&6
8547
8548 # Is the header present?
8549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 #include <$ac_header>
8558 _ACEOF
8559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } >/dev/null; then
8567 if test -s conftest.err; then
8568 ac_cpp_err=$ac_c_preproc_warn_flag
8569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8570 else
8571 ac_cpp_err=
8572 fi
8573 else
8574 ac_cpp_err=yes
8575 fi
8576 if test -z "$ac_cpp_err"; then
8577 ac_header_preproc=yes
8578 else
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582 ac_header_preproc=no
8583 fi
8584 rm -f conftest.err conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8586 echo "${ECHO_T}$ac_header_preproc" >&6
8587
8588 # So? What about this header?
8589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8590 yes:no: )
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8595 ac_header_preproc=yes
8596 ;;
8597 no:yes:* )
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8610 (
8611 cat <<\_ASBOX
8612 ## ------------------------------------------ ##
8613 ## Report this to the AC_PACKAGE_NAME lists. ##
8614 ## ------------------------------------------ ##
8615 _ASBOX
8616 ) |
8617 sed "s/^/$as_me: WARNING: /" >&2
8618 ;;
8619 esac
8620 echo "$as_me:$LINENO: checking for $ac_header" >&5
8621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625 eval "$as_ac_Header=\$ac_header_preproc"
8626 fi
8627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8629
8630 fi
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 _ACEOF
8635
8636 fi
8637
8638 done
8639
8640
8641 for ac_func in getpagesize
8642 do
8643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8644 echo "$as_me:$LINENO: checking for $ac_func" >&5
8645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8646 if eval "test \"\${$as_ac_var+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8657 #define $ac_func innocuous_$ac_func
8658
8659 /* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char $ac_func (); below.
8661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662 <limits.h> exists even on freestanding compilers. */
8663
8664 #ifdef __STDC__
8665 # include <limits.h>
8666 #else
8667 # include <assert.h>
8668 #endif
8669
8670 #undef $ac_func
8671
8672 /* Override any gcc2 internal prototype to avoid an error. */
8673 #ifdef __cplusplus
8674 extern "C"
8675 {
8676 #endif
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8679 char $ac_func ();
8680 /* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8684 choke me
8685 #else
8686 char (*f) () = $ac_func;
8687 #endif
8688 #ifdef __cplusplus
8689 }
8690 #endif
8691
8692 int
8693 main ()
8694 {
8695 return f != $ac_func;
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 eval "$as_ac_var=yes"
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 eval "$as_ac_var=no"
8728 fi
8729 rm -f conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731 fi
8732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8734 if test `eval echo '${'$as_ac_var'}'` = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8737 _ACEOF
8738
8739 fi
8740 done
8741
8742 echo "$as_me:$LINENO: checking for working mmap" >&5
8743 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8744 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 if test "$cross_compiling" = yes; then
8748 ac_cv_func_mmap_fixed_mapped=no
8749 else
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 /* malloc might have been renamed as rpl_malloc. */
8758 #undef malloc
8759
8760 /* Thanks to Mike Haertel and Jim Avera for this test.
8761 Here is a matrix of mmap possibilities:
8762 mmap private not fixed
8763 mmap private fixed at somewhere currently unmapped
8764 mmap private fixed at somewhere already mapped
8765 mmap shared not fixed
8766 mmap shared fixed at somewhere currently unmapped
8767 mmap shared fixed at somewhere already mapped
8768 For private mappings, we should verify that changes cannot be read()
8769 back from the file, nor mmap's back from the file at a different
8770 address. (There have been systems where private was not correctly
8771 implemented like the infamous i386 svr4.0, and systems where the
8772 VM page cache was not coherent with the file system buffer cache
8773 like early versions of FreeBSD and possibly contemporary NetBSD.)
8774 For shared mappings, we should conversely verify that changes get
8775 propagated back to all the places they're supposed to be.
8776
8777 Grep wants private fixed already mapped.
8778 The main things grep needs to know about mmap are:
8779 * does it exist and is it safe to write into the mmap'd area
8780 * how to use it (BSD variants) */
8781
8782 #include <fcntl.h>
8783 #include <sys/mman.h>
8784
8785 #if !STDC_HEADERS && !HAVE_STDLIB_H
8786 char *malloc ();
8787 #endif
8788
8789 /* This mess was copied from the GNU getpagesize.h. */
8790 #if !HAVE_GETPAGESIZE
8791 /* Assume that all systems that can run configure have sys/param.h. */
8792 # if !HAVE_SYS_PARAM_H
8793 # define HAVE_SYS_PARAM_H 1
8794 # endif
8795
8796 # ifdef _SC_PAGESIZE
8797 # define getpagesize() sysconf(_SC_PAGESIZE)
8798 # else /* no _SC_PAGESIZE */
8799 # if HAVE_SYS_PARAM_H
8800 # include <sys/param.h>
8801 # ifdef EXEC_PAGESIZE
8802 # define getpagesize() EXEC_PAGESIZE
8803 # else /* no EXEC_PAGESIZE */
8804 # ifdef NBPG
8805 # define getpagesize() NBPG * CLSIZE
8806 # ifndef CLSIZE
8807 # define CLSIZE 1
8808 # endif /* no CLSIZE */
8809 # else /* no NBPG */
8810 # ifdef NBPC
8811 # define getpagesize() NBPC
8812 # else /* no NBPC */
8813 # ifdef PAGESIZE
8814 # define getpagesize() PAGESIZE
8815 # endif /* PAGESIZE */
8816 # endif /* no NBPC */
8817 # endif /* no NBPG */
8818 # endif /* no EXEC_PAGESIZE */
8819 # else /* no HAVE_SYS_PARAM_H */
8820 # define getpagesize() 8192 /* punt totally */
8821 # endif /* no HAVE_SYS_PARAM_H */
8822 # endif /* no _SC_PAGESIZE */
8823
8824 #endif /* no HAVE_GETPAGESIZE */
8825
8826 int
8827 main ()
8828 {
8829 char *data, *data2, *data3;
8830 int i, pagesize;
8831 int fd;
8832
8833 pagesize = getpagesize ();
8834
8835 /* First, make a file with some known garbage in it. */
8836 data = (char *) malloc (pagesize);
8837 if (!data)
8838 exit (1);
8839 for (i = 0; i < pagesize; ++i)
8840 *(data + i) = rand ();
8841 umask (0);
8842 fd = creat ("conftest.mmap", 0600);
8843 if (fd < 0)
8844 exit (1);
8845 if (write (fd, data, pagesize) != pagesize)
8846 exit (1);
8847 close (fd);
8848
8849 /* Next, try to mmap the file at a fixed address which already has
8850 something else allocated at it. If we can, also make sure that
8851 we see the same garbage. */
8852 fd = open ("conftest.mmap", O_RDWR);
8853 if (fd < 0)
8854 exit (1);
8855 data2 = (char *) malloc (2 * pagesize);
8856 if (!data2)
8857 exit (1);
8858 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8859 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8860 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8861 exit (1);
8862 for (i = 0; i < pagesize; ++i)
8863 if (*(data + i) != *(data2 + i))
8864 exit (1);
8865
8866 /* Finally, make sure that changes to the mapped area do not
8867 percolate back to the file as seen by read(). (This is a bug on
8868 some variants of i386 svr4.0.) */
8869 for (i = 0; i < pagesize; ++i)
8870 *(data2 + i) = *(data2 + i) + 1;
8871 data3 = (char *) malloc (pagesize);
8872 if (!data3)
8873 exit (1);
8874 if (read (fd, data3, pagesize) != pagesize)
8875 exit (1);
8876 for (i = 0; i < pagesize; ++i)
8877 if (*(data + i) != *(data3 + i))
8878 exit (1);
8879 close (fd);
8880 exit (0);
8881 }
8882 _ACEOF
8883 rm -f conftest$ac_exeext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8885 (eval $ac_link) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_func_mmap_fixed_mapped=yes
8895 else
8896 echo "$as_me: program exited with status $ac_status" >&5
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ( exit $ac_status )
8901 ac_cv_func_mmap_fixed_mapped=no
8902 fi
8903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8904 fi
8905 fi
8906 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8907 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8908 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8909
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_MMAP 1
8912 _ACEOF
8913
8914 fi
8915 rm -f conftest.mmap
8916
8917 if test $use_mmap_for_buffers = yes; then
8918 REL_ALLOC=no
8919 fi
8920
8921 LIBS="$libsrc_libs $LIBS"
8922
8923
8924 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8925 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8926 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929 ac_check_lib_save_LIBS=$LIBS
8930 LIBS="-ldnet $LIBS"
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937
8938 /* Override any gcc2 internal prototype to avoid an error. */
8939 #ifdef __cplusplus
8940 extern "C"
8941 #endif
8942 /* We use char because int might match the return type of a gcc2
8943 builtin and then its argument prototype would still apply. */
8944 char dnet_ntoa ();
8945 int
8946 main ()
8947 {
8948 dnet_ntoa ();
8949 ;
8950 return 0;
8951 }
8952 _ACEOF
8953 rm -f conftest.$ac_objext conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag"
8963 || test ! -s conftest.err'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } &&
8969 { ac_try='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_cv_lib_dnet_dnet_ntoa=yes
8976 else
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_cv_lib_dnet_dnet_ntoa=no
8981 fi
8982 rm -f conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8985 fi
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8987 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8988 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8989 cat >>confdefs.h <<_ACEOF
8990 #define HAVE_LIBDNET 1
8991 _ACEOF
8992
8993 LIBS="-ldnet $LIBS"
8994
8995 fi
8996
8997
8998 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8999 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9000 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9001 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 else
9003 ac_check_lib_save_LIBS=$LIBS
9004 LIBS="-lXbsd $LIBS"
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011
9012
9013 int
9014 main ()
9015 {
9016 main ();
9017 ;
9018 return 0;
9019 }
9020 _ACEOF
9021 rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9023 (eval $ac_link) 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try='test -z "$ac_c_werror_flag"
9031 || test ! -s conftest.err'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; } &&
9037 { ac_try='test -s conftest$ac_exeext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_lib_Xbsd_main=yes
9044 else
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9047
9048 ac_cv_lib_Xbsd_main=no
9049 fi
9050 rm -f conftest.err conftest.$ac_objext \
9051 conftest$ac_exeext conftest.$ac_ext
9052 LIBS=$ac_check_lib_save_LIBS
9053 fi
9054 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9055 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9056 if test $ac_cv_lib_Xbsd_main = yes; then
9057 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9058 fi
9059
9060
9061
9062 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9063 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9064 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067 ac_check_lib_save_LIBS=$LIBS
9068 LIBS="-lpthreads $LIBS"
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h. */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075
9076 /* Override any gcc2 internal prototype to avoid an error. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 /* We use char because int might match the return type of a gcc2
9081 builtin and then its argument prototype would still apply. */
9082 char cma_open ();
9083 int
9084 main ()
9085 {
9086 cma_open ();
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093 (eval $ac_link) 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 (eval $ac_try) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest$ac_exeext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_lib_pthreads_cma_open=yes
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118 ac_cv_lib_pthreads_cma_open=no
9119 fi
9120 rm -f conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9122 LIBS=$ac_check_lib_save_LIBS
9123 fi
9124 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9125 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9126 if test $ac_cv_lib_pthreads_cma_open = yes; then
9127 cat >>confdefs.h <<_ACEOF
9128 #define HAVE_LIBPTHREADS 1
9129 _ACEOF
9130
9131 LIBS="-lpthreads $LIBS"
9132
9133 fi
9134
9135
9136 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9137 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9138 if test -d /usr/X386/include; then
9139 HAVE_XFREE386=yes
9140 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9141 else
9142 HAVE_XFREE386=no
9143 fi
9144 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9145 echo "${ECHO_T}$HAVE_XFREE386" >&6
9146
9147
9148 case ${host_os} in
9149 aix*)
9150 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9151 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9152 if test "${gdb_cv_bigtoc+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155
9156 case $GCC in
9157 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9158 *) gdb_cv_bigtoc=-bbigtoc ;;
9159 esac
9160
9161 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168
9169 int
9170 main ()
9171 {
9172 int i;
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 :
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 gdb_cv_bigtoc=
9205 fi
9206 rm -f conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
9208
9209 fi
9210 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9211 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9212 ;;
9213 esac
9214
9215 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9216 # used for the tests that follow. We set them back to REAL_CFLAGS and
9217 # REAL_CPPFLAGS later on.
9218
9219 REAL_CPPFLAGS="$CPPFLAGS"
9220
9221 if test "${HAVE_X11}" = "yes"; then
9222 DEFS="$C_SWITCH_X_SITE $DEFS"
9223 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9224 LIBS="$LIBX $LIBS"
9225 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9226 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9227
9228 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9229 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9230 # but it's more convenient here to set LD_RUN_PATH
9231 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9232 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9233 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9234 export LD_RUN_PATH
9235 fi
9236
9237 if test "${opsys}" = "gnu-linux"; then
9238 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9239 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246
9247 int
9248 main ()
9249 {
9250 XOpenDisplay ("foo");
9251 ;
9252 return 0;
9253 }
9254 _ACEOF
9255 rm -f conftest.$ac_objext conftest$ac_exeext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257 (eval $ac_link) 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
9264 { ac_try='test -z "$ac_c_werror_flag"
9265 || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 xlinux_first_failure=no
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282 xlinux_first_failure=yes
9283 fi
9284 rm -f conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 if test "${xlinux_first_failure}" = "yes"; then
9287 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9288 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9289 OLD_CPPFLAGS="$CPPFLAGS"
9290 OLD_LIBS="$LIBS"
9291 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9292 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9293 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9294 LIBS="$LIBS -b i486-linuxaout"
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h. */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9301
9302 int
9303 main ()
9304 {
9305 XOpenDisplay ("foo");
9306 ;
9307 return 0;
9308 }
9309 _ACEOF
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try='test -s conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 xlinux_second_failure=no
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 xlinux_second_failure=yes
9338 fi
9339 rm -f conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 if test "${xlinux_second_failure}" = "yes"; then
9342 # If we get the same failure with -b, there is no use adding -b.
9343 # So take it out. This plays safe.
9344 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9345 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9346 CPPFLAGS="$OLD_CPPFLAGS"
9347 LIBS="$OLD_LIBS"
9348 echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6
9350 else
9351 echo "$as_me:$LINENO: result: yes" >&5
9352 echo "${ECHO_T}yes" >&6
9353 fi
9354 else
9355 echo "$as_me:$LINENO: result: no" >&5
9356 echo "${ECHO_T}no" >&6
9357 fi
9358 fi
9359
9360 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9361 # header files included from there.
9362 echo "$as_me:$LINENO: checking for Xkb" >&5
9363 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 #include <X11/Xlib.h>
9371 #include <X11/XKBlib.h>
9372 int
9373 main ()
9374 {
9375 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9376 ;
9377 return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 emacs_xkb=yes
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 emacs_xkb=no
9408 fi
9409 rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9412 echo "${ECHO_T}$emacs_xkb" >&6
9413 if test $emacs_xkb = yes; then
9414
9415 cat >>confdefs.h <<\_ACEOF
9416 #define HAVE_XKBGETKEYBOARD 1
9417 _ACEOF
9418
9419 fi
9420
9421
9422
9423
9424
9425 for ac_func in XrmSetDatabase XScreenResourceString \
9426 XScreenNumberOfScreen XSetWMProtocols
9427 do
9428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9429 echo "$as_me:$LINENO: checking for $ac_func" >&5
9430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9431 if eval "test \"\${$as_ac_var+set}\" = set"; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442 #define $ac_func innocuous_$ac_func
9443
9444 /* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char $ac_func (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9448
9449 #ifdef __STDC__
9450 # include <limits.h>
9451 #else
9452 # include <assert.h>
9453 #endif
9454
9455 #undef $ac_func
9456
9457 /* Override any gcc2 internal prototype to avoid an error. */
9458 #ifdef __cplusplus
9459 extern "C"
9460 {
9461 #endif
9462 /* We use char because int might match the return type of a gcc2
9463 builtin and then its argument prototype would still apply. */
9464 char $ac_func ();
9465 /* The GNU C library defines this for functions which it implements
9466 to always fail with ENOSYS. Some functions are actually named
9467 something starting with __ and the normal name is an alias. */
9468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9469 choke me
9470 #else
9471 char (*f) () = $ac_func;
9472 #endif
9473 #ifdef __cplusplus
9474 }
9475 #endif
9476
9477 int
9478 main ()
9479 {
9480 return f != $ac_func;
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>conftest.er1
9488 ac_status=$?
9489 grep -v '^ *+' conftest.er1 >conftest.err
9490 rm -f conftest.er1
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -z "$ac_c_werror_flag"
9495 || test ! -s conftest.err'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 (eval $ac_try) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 eval "$as_ac_var=yes"
9508 else
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 eval "$as_ac_var=no"
9513 fi
9514 rm -f conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 fi
9517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9519 if test `eval echo '${'$as_ac_var'}'` = yes; then
9520 cat >>confdefs.h <<_ACEOF
9521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9522 _ACEOF
9523
9524 fi
9525 done
9526
9527 fi
9528
9529 if test "${window_system}" = "x11"; then
9530 echo "$as_me:$LINENO: checking X11 version 6" >&5
9531 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9532 if test "${emacs_cv_x11_version_6+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 #include <X11/Xlib.h>
9542 int
9543 main ()
9544 {
9545 #if XlibSpecificationRelease < 6
9546 fail;
9547 #endif
9548
9549 ;
9550 return 0;
9551 }
9552 _ACEOF
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -z "$ac_c_werror_flag"
9563 || test ! -s conftest.err'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 emacs_cv_x11_version_6=yes
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 emacs_cv_x11_version_6=no
9581 fi
9582 rm -f conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 fi
9585
9586 if test $emacs_cv_x11_version_6 = yes; then
9587 echo "$as_me:$LINENO: result: 6 or newer" >&5
9588 echo "${ECHO_T}6 or newer" >&6
9589
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_X11R6 1
9592 _ACEOF
9593
9594 else
9595 echo "$as_me:$LINENO: result: before 6" >&5
9596 echo "${ECHO_T}before 6" >&6
9597 fi
9598 fi
9599
9600 if test "${window_system}" = "x11"; then
9601 echo "$as_me:$LINENO: checking X11 version 5" >&5
9602 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9603 if test "${emacs_cv_x11_version_5+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 #include <X11/Xlib.h>
9613 int
9614 main ()
9615 {
9616 #if XlibSpecificationRelease < 5
9617 fail;
9618 #endif
9619
9620 ;
9621 return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 emacs_cv_x11_version_5=yes
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 emacs_cv_x11_version_5=no
9652 fi
9653 rm -f conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 fi
9656
9657 if test $emacs_cv_x11_version_5 = yes; then
9658 echo "$as_me:$LINENO: result: 5 or newer" >&5
9659 echo "${ECHO_T}5 or newer" >&6
9660 HAVE_X11R5=yes
9661
9662 cat >>confdefs.h <<\_ACEOF
9663 #define HAVE_X11R5 1
9664 _ACEOF
9665
9666 else
9667 HAVE_X11R5=no
9668 echo "$as_me:$LINENO: result: before 5" >&5
9669 echo "${ECHO_T}before 5" >&6
9670 fi
9671 fi
9672
9673
9674
9675 HAVE_GTK=no
9676 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9677 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9678 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9679 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9680 { (exit 1); exit 1; }; };
9681 fi
9682 GLIB_REQUIRED=2.0.1
9683 GTK_REQUIRED=2.0.1
9684 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9685
9686 if test "X${with_pkg_config_prog}" != X; then
9687 PKG_CONFIG="${with_pkg_config_prog}"
9688 fi
9689
9690 succeeded=no
9691
9692 if test -z "$PKG_CONFIG"; then
9693 # Extract the first word of "pkg-config", so it can be a program name with args.
9694 set dummy pkg-config; ac_word=$2
9695 echo "$as_me:$LINENO: checking for $ac_word" >&5
9696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9697 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 case $PKG_CONFIG in
9701 [\\/]* | ?:[\\/]*)
9702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9703 ;;
9704 *)
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9715 fi
9716 done
9717 done
9718
9719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9720 ;;
9721 esac
9722 fi
9723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9724
9725 if test -n "$PKG_CONFIG"; then
9726 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9727 echo "${ECHO_T}$PKG_CONFIG" >&6
9728 else
9729 echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6
9731 fi
9732
9733 fi
9734
9735 if test "$PKG_CONFIG" = "no" ; then
9736 echo "*** The pkg-config script could not be found. Make sure it is"
9737 echo "*** in your path, or give the full path to pkg-config with"
9738 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9739 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9740 else
9741 PKG_CONFIG_MIN_VERSION=0.9.0
9742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9743 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9744 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9745
9746 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9747 echo "$as_me:$LINENO: result: yes" >&5
9748 echo "${ECHO_T}yes" >&6
9749 succeeded=yes
9750
9751 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9752 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9753 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9754 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9755 echo "${ECHO_T}$GTK_CFLAGS" >&6
9756
9757 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9758 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9759 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9760 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9761 echo "${ECHO_T}$GTK_LIBS" >&6
9762 else
9763 GTK_CFLAGS=""
9764 GTK_LIBS=""
9765 ## If we have a custom action on failure, don't print errors, but
9766 ## do set a variable so people can do so.
9767 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9768 echo $GTK_PKG_ERRORS
9769 fi
9770
9771
9772
9773 else
9774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9776 fi
9777 fi
9778
9779 if test $succeeded = yes; then
9780 :
9781 else
9782 { { 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
9783 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;}
9784 { (exit 1); exit 1; }; }
9785 fi
9786
9787
9788
9789 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9790 CFLAGS="$CFLAGS $GTK_CFLAGS"
9791 LIBS="$GTK_LIBS $LIBS"
9792 HAVE_GTK=yes
9793
9794 cat >>confdefs.h <<\_ACEOF
9795 #define HAVE_GTK 1
9796 _ACEOF
9797
9798 USE_X_TOOLKIT=none
9799
9800 with_toolkit_scroll_bars=yes
9801
9802 HAVE_GTK_MULTIDISPLAY=no
9803
9804 for ac_func in gdk_display_open
9805 do
9806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9807 echo "$as_me:$LINENO: checking for $ac_func" >&5
9808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9809 if eval "test \"\${$as_ac_var+set}\" = set"; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h. */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9820 #define $ac_func innocuous_$ac_func
9821
9822 /* System header to define __stub macros and hopefully few prototypes,
9823 which can conflict with char $ac_func (); below.
9824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9825 <limits.h> exists even on freestanding compilers. */
9826
9827 #ifdef __STDC__
9828 # include <limits.h>
9829 #else
9830 # include <assert.h>
9831 #endif
9832
9833 #undef $ac_func
9834
9835 /* Override any gcc2 internal prototype to avoid an error. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 {
9839 #endif
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9842 char $ac_func ();
9843 /* The GNU C library defines this for functions which it implements
9844 to always fail with ENOSYS. Some functions are actually named
9845 something starting with __ and the normal name is an alias. */
9846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9847 choke me
9848 #else
9849 char (*f) () = $ac_func;
9850 #endif
9851 #ifdef __cplusplus
9852 }
9853 #endif
9854
9855 int
9856 main ()
9857 {
9858 return f != $ac_func;
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag"
9873 || test ! -s conftest.err'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 eval "$as_ac_var=yes"
9886 else
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 eval "$as_ac_var=no"
9891 fi
9892 rm -f conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 fi
9895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9897 if test `eval echo '${'$as_ac_var'}'` = yes; then
9898 cat >>confdefs.h <<_ACEOF
9899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9900 _ACEOF
9901 HAVE_GTK_MULTIDISPLAY=yes
9902 fi
9903 done
9904
9905 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9906
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_GTK_MULTIDISPLAY 1
9909 _ACEOF
9910
9911 fi
9912 HAVE_GTK_FILE_SELECTION=no
9913
9914 for ac_func in gtk_file_selection_new
9915 do
9916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9917 echo "$as_me:$LINENO: checking for $ac_func" >&5
9918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9919 if eval "test \"\${$as_ac_var+set}\" = set"; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h. */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9930 #define $ac_func innocuous_$ac_func
9931
9932 /* System header to define __stub macros and hopefully few prototypes,
9933 which can conflict with char $ac_func (); below.
9934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9935 <limits.h> exists even on freestanding compilers. */
9936
9937 #ifdef __STDC__
9938 # include <limits.h>
9939 #else
9940 # include <assert.h>
9941 #endif
9942
9943 #undef $ac_func
9944
9945 /* Override any gcc2 internal prototype to avoid an error. */
9946 #ifdef __cplusplus
9947 extern "C"
9948 {
9949 #endif
9950 /* We use char because int might match the return type of a gcc2
9951 builtin and then its argument prototype would still apply. */
9952 char $ac_func ();
9953 /* The GNU C library defines this for functions which it implements
9954 to always fail with ENOSYS. Some functions are actually named
9955 something starting with __ and the normal name is an alias. */
9956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9957 choke me
9958 #else
9959 char (*f) () = $ac_func;
9960 #endif
9961 #ifdef __cplusplus
9962 }
9963 #endif
9964
9965 int
9966 main ()
9967 {
9968 return f != $ac_func;
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag"
9983 || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 eval "$as_ac_var=yes"
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 eval "$as_ac_var=no"
10001 fi
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 fi
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10010 _ACEOF
10011 HAVE_GTK_FILE_SELECTION=yes
10012 fi
10013 done
10014
10015
10016 HAVE_GTK_FILE_CHOOSER=no
10017
10018 for ac_func in gtk_file_chooser_dialog_new
10019 do
10020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10021 echo "$as_me:$LINENO: checking for $ac_func" >&5
10022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10023 if eval "test \"\${$as_ac_var+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10034 #define $ac_func innocuous_$ac_func
10035
10036 /* System header to define __stub macros and hopefully few prototypes,
10037 which can conflict with char $ac_func (); below.
10038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10039 <limits.h> exists even on freestanding compilers. */
10040
10041 #ifdef __STDC__
10042 # include <limits.h>
10043 #else
10044 # include <assert.h>
10045 #endif
10046
10047 #undef $ac_func
10048
10049 /* Override any gcc2 internal prototype to avoid an error. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 {
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10056 char $ac_func ();
10057 /* The GNU C library defines this for functions which it implements
10058 to always fail with ENOSYS. Some functions are actually named
10059 something starting with __ and the normal name is an alias. */
10060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10061 choke me
10062 #else
10063 char (*f) () = $ac_func;
10064 #endif
10065 #ifdef __cplusplus
10066 }
10067 #endif
10068
10069 int
10070 main ()
10071 {
10072 return f != $ac_func;
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 eval "$as_ac_var=yes"
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 eval "$as_ac_var=no"
10105 fi
10106 rm -f conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 fi
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10111 if test `eval echo '${'$as_ac_var'}'` = yes; then
10112 cat >>confdefs.h <<_ACEOF
10113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114 _ACEOF
10115 HAVE_GTK_FILE_CHOOSER=yes
10116 fi
10117 done
10118
10119
10120 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10121 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10122
10123 cat >>confdefs.h <<\_ACEOF
10124 #define HAVE_GTK_FILE_BOTH 1
10125 _ACEOF
10126
10127 fi
10128 fi
10129
10130 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10131 if test x"${HAVE_X11R5}" = xyes; then
10132 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10133 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10134 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h. */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143
10144 #include <X11/Intrinsic.h>
10145 #include <X11/Xaw/Simple.h>
10146 int
10147 main ()
10148 {
10149
10150 ;
10151 return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156 (eval $ac_link) 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -z "$ac_c_werror_flag"
10164 || test ! -s conftest.err'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; } &&
10170 { ac_try='test -s conftest$ac_exeext'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 emacs_cv_x11_version_5_with_xaw=yes
10177 else
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181 emacs_cv_x11_version_5_with_xaw=no
10182 fi
10183 rm -f conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 fi
10186
10187 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10188 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10189 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10190 USE_X_TOOLKIT=LUCID
10191 else
10192 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10193 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10194 USE_X_TOOLKIT=none
10195 fi
10196 else
10197 USE_X_TOOLKIT=none
10198 fi
10199 fi
10200
10201 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10202
10203 if test "${USE_X_TOOLKIT}" != "none"; then
10204 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10205 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10206 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 #include <X11/Intrinsic.h>
10216 int
10217 main ()
10218 {
10219 #if XtSpecificationRelease < 6
10220 fail;
10221 #endif
10222
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 emacs_cv_x11_toolkit_version_6=yes
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10253
10254 emacs_cv_x11_toolkit_version_6=no
10255 fi
10256 rm -f conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 fi
10259
10260 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10261 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10262 echo "$as_me:$LINENO: result: 6 or newer" >&5
10263 echo "${ECHO_T}6 or newer" >&6
10264
10265 cat >>confdefs.h <<\_ACEOF
10266 #define HAVE_X11XTR6 1
10267 _ACEOF
10268
10269 else
10270 echo "$as_me:$LINENO: result: before 6" >&5
10271 echo "${ECHO_T}before 6" >&6
10272 fi
10273
10274 OLDLIBS="$LIBS"
10275 if test x$HAVE_X11XTR6 = xyes; then
10276 LIBS="-lXt -lSM -lICE $LIBS"
10277 else
10278 LIBS="-lXt $LIBS"
10279 fi
10280
10281 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10282 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10283 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286 ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lXmu $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294
10295 /* Override any gcc2 internal prototype to avoid an error. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 /* We use char because int might match the return type of a gcc2
10300 builtin and then its argument prototype would still apply. */
10301 char XmuConvertStandardSelection ();
10302 int
10303 main ()
10304 {
10305 XmuConvertStandardSelection ();
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag"
10320 || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest$ac_exeext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10333 else
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10338 fi
10339 rm -f conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10342 fi
10343 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10344 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10345 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_LIBXMU 1
10348 _ACEOF
10349
10350 LIBS="-lXmu $LIBS"
10351
10352 fi
10353
10354 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10355 fi
10356
10357 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10358 if test "${HAVE_X11}" = "yes"; then
10359 if test "${USE_X_TOOLKIT}" != "none"; then
10360
10361 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10362 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10363 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-lXext $LIBS"
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374
10375 /* Override any gcc2 internal prototype to avoid an error. */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 /* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10381 char XShapeQueryExtension ();
10382 int
10383 main ()
10384 {
10385 XShapeQueryExtension ();
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 ac_cv_lib_Xext_XShapeQueryExtension=yes
10413 else
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ac_cv_lib_Xext_XShapeQueryExtension=no
10418 fi
10419 rm -f conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421 LIBS=$ac_check_lib_save_LIBS
10422 fi
10423 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10424 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10425 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10426 cat >>confdefs.h <<_ACEOF
10427 #define HAVE_LIBXEXT 1
10428 _ACEOF
10429
10430 LIBS="-lXext $LIBS"
10431
10432 fi
10433
10434 fi
10435 fi
10436
10437 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10438 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10439 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10440 if test "${emacs_cv_lesstif+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443 # We put this in CFLAGS temporarily to precede other -I options
10444 # that might be in CFLAGS temporarily.
10445 # We put this in CPPFLAGS where it precedes the other -I options.
10446 OLD_CPPFLAGS=$CPPFLAGS
10447 OLD_CFLAGS=$CFLAGS
10448 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10449 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10457 int
10458 main ()
10459 {
10460 int x = 5;
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467 (eval $ac_compile) 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 emacs_cv_lesstif=yes
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 emacs_cv_lesstif=no
10493 fi
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10495 fi
10496 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10497 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10498 if test $emacs_cv_lesstif = yes; then
10499 # Make sure this -I option remains in CPPFLAGS after it is set
10500 # back to REAL_CPPFLAGS.
10501 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10502 # have those other -I options anyway. Ultimately, having this
10503 # directory ultimately in CPPFLAGS will be enough.
10504 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10505 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10506 else
10507 CFLAGS=$OLD_CFLAGS
10508 CPPFLAGS=$OLD_CPPFLAGS
10509 fi
10510 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10511 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10512 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
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 #include <Xm/Xm.h>
10522 int
10523 main ()
10524 {
10525 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10526 int x = 5;
10527 #else
10528 Motif version prior to 2.1.
10529 #endif
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10536 (eval $ac_compile) 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag"
10544 || test ! -s conftest.err'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest.$ac_objext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 emacs_cv_motif_version_2_1=yes
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 emacs_cv_motif_version_2_1=no
10562 fi
10563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10564 fi
10565 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10566 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10567 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10568 if test $emacs_cv_motif_version_2_1 = yes; then
10569 HAVE_LIBXP=no
10570
10571 cat >>confdefs.h <<\_ACEOF
10572 #define HAVE_MOTIF_2_1 1
10573 _ACEOF
10574
10575 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10576 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10577 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 ac_check_lib_save_LIBS=$LIBS
10581 LIBS="-lXp $LIBS"
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588
10589 /* Override any gcc2 internal prototype to avoid an error. */
10590 #ifdef __cplusplus
10591 extern "C"
10592 #endif
10593 /* We use char because int might match the return type of a gcc2
10594 builtin and then its argument prototype would still apply. */
10595 char XpCreateContext ();
10596 int
10597 main ()
10598 {
10599 XpCreateContext ();
10600 ;
10601 return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -z "$ac_c_werror_flag"
10614 || test ! -s conftest.err'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try='test -s conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_lib_Xp_XpCreateContext=yes
10627 else
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_cv_lib_Xp_XpCreateContext=no
10632 fi
10633 rm -f conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_check_lib_save_LIBS
10636 fi
10637 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10638 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10639 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10640 HAVE_LIBXP=yes
10641 fi
10642
10643 if test ${HAVE_LIBXP} = yes; then
10644
10645 cat >>confdefs.h <<\_ACEOF
10646 #define HAVE_LIBXP 1
10647 _ACEOF
10648
10649 fi
10650 fi
10651 fi
10652
10653 ### Is -lXaw3d available?
10654 HAVE_XAW3D=no
10655 if test "${HAVE_X11}" = "yes"; then
10656 if test "${USE_X_TOOLKIT}" != "none"; then
10657 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10658 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10659 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h. */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 #include <X11/Xaw3d/Scrollbar.h>
10669 _ACEOF
10670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } >/dev/null; then
10678 if test -s conftest.err; then
10679 ac_cpp_err=$ac_c_preproc_warn_flag
10680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10681 else
10682 ac_cpp_err=
10683 fi
10684 else
10685 ac_cpp_err=yes
10686 fi
10687 if test -z "$ac_cpp_err"; then
10688 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10689 else
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10694 fi
10695 rm -f conftest.err conftest.$ac_ext
10696 fi
10697 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10698 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10699 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10700 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10701 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10702 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 ac_check_lib_save_LIBS=$LIBS
10706 LIBS="-lXaw3d $LIBS"
10707 cat >conftest.$ac_ext <<_ACEOF
10708 /* confdefs.h. */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713
10714 /* Override any gcc2 internal prototype to avoid an error. */
10715 #ifdef __cplusplus
10716 extern "C"
10717 #endif
10718 /* We use char because int might match the return type of a gcc2
10719 builtin and then its argument prototype would still apply. */
10720 char XawScrollbarSetThumb ();
10721 int
10722 main ()
10723 {
10724 XawScrollbarSetThumb ();
10725 ;
10726 return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>conftest.er1
10732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -z "$ac_c_werror_flag"
10739 || test ! -s conftest.err'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest$ac_exeext'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10752 else
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10757 fi
10758 rm -f conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10761 fi
10762 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10763 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10764 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10765 HAVE_XAW3D=yes
10766 fi
10767
10768 fi
10769
10770
10771 if test "${HAVE_XAW3D}" = "yes"; then
10772
10773 cat >>confdefs.h <<\_ACEOF
10774 #define HAVE_XAW3D 1
10775 _ACEOF
10776
10777 fi
10778 fi
10779 fi
10780
10781
10782
10783 USE_TOOLKIT_SCROLL_BARS=no
10784 if test "${with_toolkit_scroll_bars}" != "no"; then
10785 if test "${USE_X_TOOLKIT}" != "none"; then
10786 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10787 cat >>confdefs.h <<\_ACEOF
10788 #define USE_TOOLKIT_SCROLL_BARS 1
10789 _ACEOF
10790
10791 HAVE_XAW3D=no
10792 USE_TOOLKIT_SCROLL_BARS=yes
10793 elif test "${HAVE_XAW3D}" = "yes"; then
10794 cat >>confdefs.h <<\_ACEOF
10795 #define USE_TOOLKIT_SCROLL_BARS 1
10796 _ACEOF
10797
10798 USE_TOOLKIT_SCROLL_BARS=yes
10799 fi
10800 elif test "${HAVE_GTK}" = "yes"; then
10801 cat >>confdefs.h <<\_ACEOF
10802 #define USE_TOOLKIT_SCROLL_BARS 1
10803 _ACEOF
10804
10805 USE_TOOLKIT_SCROLL_BARS=yes
10806 fi
10807 fi
10808
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815
10816 #include <X11/Xlib.h>
10817 #include <X11/Xresource.h>
10818 int
10819 main ()
10820 {
10821 XIMProc callback;
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10828 (eval $ac_compile) 2>conftest.er1
10829 ac_status=$?
10830 grep -v '^ *+' conftest.er1 >conftest.err
10831 rm -f conftest.er1
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -z "$ac_c_werror_flag"
10836 || test ! -s conftest.err'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; } &&
10842 { ac_try='test -s conftest.$ac_objext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 HAVE_XIM=yes
10849
10850 cat >>confdefs.h <<\_ACEOF
10851 #define HAVE_XIM 1
10852 _ACEOF
10853
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 HAVE_XIM=no
10859 fi
10860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10861
10862
10863 if test "${with_xim}" != "no"; then
10864
10865 cat >>confdefs.h <<\_ACEOF
10866 #define USE_XIM 1
10867 _ACEOF
10868
10869 fi
10870
10871
10872 if test "${HAVE_XIM}" != "no"; then
10873 late_CFLAGS=$CFLAGS
10874 if test "$GCC" = yes; then
10875 CFLAGS="$CFLAGS --pedantic-errors"
10876 fi
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h. */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883
10884 #include <X11/Xlib.h>
10885 #include <X11/Xresource.h>
10886 int
10887 main ()
10888 {
10889 Display *display;
10890 XrmDatabase db;
10891 char *res_name;
10892 char *res_class;
10893 XIMProc callback;
10894 XPointer *client_data;
10895 #ifndef __GNUC__
10896 /* If we're not using GCC, it's probably not XFree86, and this is
10897 probably right, but we can't use something like --pedantic-errors. */
10898 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10899 char*, XIMProc, XPointer*);
10900 #endif
10901 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10902 client_data);
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -z "$ac_c_werror_flag"
10917 || test ! -s conftest.err'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; } &&
10923 { ac_try='test -s conftest.$ac_objext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 emacs_cv_arg6_star=yes
10930 else
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 fi
10935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10936
10937 if test "$emacs_cv_arg6_star" = yes; then
10938 cat >>confdefs.h <<\_ACEOF
10939 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10940 _ACEOF
10941
10942 else
10943 cat >>confdefs.h <<\_ACEOF
10944 #define XRegisterIMInstantiateCallback_arg6 XPointer
10945 _ACEOF
10946
10947 fi
10948 CFLAGS=$late_CFLAGS
10949 fi
10950
10951 ### Use -lXpm if available, unless `--with-xpm=no'.
10952 HAVE_XPM=no
10953 if test "${HAVE_X11}" = "yes"; then
10954 if test "${with_xpm}" != "no"; then
10955 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10956 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10957 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10958 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 fi
10961 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10962 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10963 else
10964 # Is the header compilable?
10965 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10966 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 $ac_includes_default
10974 #include <X11/xpm.h>
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10978 (eval $ac_compile) 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_c_werror_flag"
10986 || test ! -s conftest.err'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try='test -s conftest.$ac_objext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_header_compiler=yes
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_header_compiler=no
11004 fi
11005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11007 echo "${ECHO_T}$ac_header_compiler" >&6
11008
11009 # Is the header present?
11010 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11011 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <X11/xpm.h>
11019 _ACEOF
11020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } >/dev/null; then
11028 if test -s conftest.err; then
11029 ac_cpp_err=$ac_c_preproc_warn_flag
11030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11031 else
11032 ac_cpp_err=
11033 fi
11034 else
11035 ac_cpp_err=yes
11036 fi
11037 if test -z "$ac_cpp_err"; then
11038 ac_header_preproc=yes
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_header_preproc=no
11044 fi
11045 rm -f conftest.err conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11047 echo "${ECHO_T}$ac_header_preproc" >&6
11048
11049 # So? What about this header?
11050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11051 yes:no: )
11052 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11053 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11055 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11056 ac_header_preproc=yes
11057 ;;
11058 no:yes:* )
11059 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11060 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11062 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11064 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11066 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11068 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11070 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11071 (
11072 cat <<\_ASBOX
11073 ## ------------------------------------------ ##
11074 ## Report this to the AC_PACKAGE_NAME lists. ##
11075 ## ------------------------------------------ ##
11076 _ASBOX
11077 ) |
11078 sed "s/^/$as_me: WARNING: /" >&2
11079 ;;
11080 esac
11081 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11082 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11083 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 ac_cv_header_X11_xpm_h=$ac_header_preproc
11087 fi
11088 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11089 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11090
11091 fi
11092 if test $ac_cv_header_X11_xpm_h = yes; then
11093 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11094 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11095 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 ac_check_lib_save_LIBS=$LIBS
11099 LIBS="-lXpm -lX11 $LIBS"
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106
11107 /* Override any gcc2 internal prototype to avoid an error. */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113 char XpmReadFileToPixmap ();
11114 int
11115 main ()
11116 {
11117 XpmReadFileToPixmap ();
11118 ;
11119 return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124 (eval $ac_link) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest$ac_exeext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11150 fi
11151 rm -f conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
11153 LIBS=$ac_check_lib_save_LIBS
11154 fi
11155 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11156 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11157 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11158 HAVE_XPM=yes
11159 fi
11160
11161 fi
11162
11163
11164 if test "${HAVE_XPM}" = "yes"; then
11165 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11166 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h. */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 #include "X11/xpm.h"
11174 #ifndef XpmReturnAllocPixels
11175 no_return_alloc_pixels
11176 #endif
11177
11178 _ACEOF
11179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11180 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11181 HAVE_XPM=no
11182 else
11183 HAVE_XPM=yes
11184 fi
11185 rm -f conftest*
11186
11187
11188 if test "${HAVE_XPM}" = "yes"; then
11189 echo "$as_me:$LINENO: result: yes" >&5
11190 echo "${ECHO_T}yes" >&6
11191 else
11192 echo "$as_me:$LINENO: result: no" >&5
11193 echo "${ECHO_T}no" >&6
11194 fi
11195 fi
11196 fi
11197
11198 if test "${HAVE_XPM}" = "yes"; then
11199
11200 cat >>confdefs.h <<\_ACEOF
11201 #define HAVE_XPM 1
11202 _ACEOF
11203
11204 fi
11205 fi
11206
11207 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11208 HAVE_JPEG=no
11209 if test "${HAVE_X11}" = "yes"; then
11210 if test "${with_jpeg}" != "no"; then
11211 if test "${ac_cv_header_jerror_h+set}" = set; then
11212 echo "$as_me:$LINENO: checking for jerror.h" >&5
11213 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11214 if test "${ac_cv_header_jerror_h+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 fi
11217 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11218 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11219 else
11220 # Is the header compilable?
11221 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11222 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 $ac_includes_default
11230 #include <jerror.h>
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_header_compiler=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 ac_header_compiler=no
11260 fi
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11263 echo "${ECHO_T}$ac_header_compiler" >&6
11264
11265 # Is the header present?
11266 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11267 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h. */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 #include <jerror.h>
11275 _ACEOF
11276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } >/dev/null; then
11284 if test -s conftest.err; then
11285 ac_cpp_err=$ac_c_preproc_warn_flag
11286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11287 else
11288 ac_cpp_err=
11289 fi
11290 else
11291 ac_cpp_err=yes
11292 fi
11293 if test -z "$ac_cpp_err"; then
11294 ac_header_preproc=yes
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_header_preproc=no
11300 fi
11301 rm -f conftest.err conftest.$ac_ext
11302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6
11304
11305 # So? What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 yes:no: )
11308 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11313 ;;
11314 no:yes:* )
11315 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11327 (
11328 cat <<\_ASBOX
11329 ## ------------------------------------------ ##
11330 ## Report this to the AC_PACKAGE_NAME lists. ##
11331 ## ------------------------------------------ ##
11332 _ASBOX
11333 ) |
11334 sed "s/^/$as_me: WARNING: /" >&2
11335 ;;
11336 esac
11337 echo "$as_me:$LINENO: checking for jerror.h" >&5
11338 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11339 if test "${ac_cv_header_jerror_h+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342 ac_cv_header_jerror_h=$ac_header_preproc
11343 fi
11344 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11345 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11346
11347 fi
11348 if test $ac_cv_header_jerror_h = yes; then
11349 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11350 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11351 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354 ac_check_lib_save_LIBS=$LIBS
11355 LIBS="-ljpeg $LIBS"
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362
11363 /* Override any gcc2 internal prototype to avoid an error. */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 /* We use char because int might match the return type of a gcc2
11368 builtin and then its argument prototype would still apply. */
11369 char jpeg_destroy_compress ();
11370 int
11371 main ()
11372 {
11373 jpeg_destroy_compress ();
11374 ;
11375 return 0;
11376 }
11377 _ACEOF
11378 rm -f conftest.$ac_objext conftest$ac_exeext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11380 (eval $ac_link) 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } &&
11387 { ac_try='test -z "$ac_c_werror_flag"
11388 || test ! -s conftest.err'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest$ac_exeext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11406 fi
11407 rm -f conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LIBS=$ac_check_lib_save_LIBS
11410 fi
11411 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11412 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11413 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11414 HAVE_JPEG=yes
11415 fi
11416
11417 fi
11418
11419
11420 fi
11421
11422
11423 if test "${HAVE_JPEG}" = "yes"; then
11424 cat >>confdefs.h <<\_ACEOF
11425 #define HAVE_JPEG 1
11426 _ACEOF
11427
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h. */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 #include <jpeglib.h>
11435 version=JPEG_LIB_VERSION
11436
11437 _ACEOF
11438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11439 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_JPEG 1
11442 _ACEOF
11443
11444 else
11445 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11446 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11447 HAVE_JPEG=no
11448 fi
11449 rm -f conftest*
11450
11451 fi
11452 fi
11453
11454 ### Use -lpng if available, unless `--with-png=no'.
11455 HAVE_PNG=no
11456 if test "${HAVE_X11}" = "yes"; then
11457 if test "${with_png}" != "no"; then
11458 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11459 # in /usr/include/libpng.
11460
11461
11462 for ac_header in png.h libpng/png.h
11463 do
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11466 echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 fi
11471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11473 else
11474 # Is the header compilable?
11475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 $ac_includes_default
11484 #include <$ac_header>
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488 (eval $ac_compile) 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag"
11496 || test ! -s conftest.err'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest.$ac_objext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_header_compiler=yes
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 ac_header_compiler=no
11514 fi
11515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11517 echo "${ECHO_T}$ac_header_compiler" >&6
11518
11519 # Is the header present?
11520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h. */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 #include <$ac_header>
11529 _ACEOF
11530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11532 ac_status=$?
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } >/dev/null; then
11538 if test -s conftest.err; then
11539 ac_cpp_err=$ac_c_preproc_warn_flag
11540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11541 else
11542 ac_cpp_err=
11543 fi
11544 else
11545 ac_cpp_err=yes
11546 fi
11547 if test -z "$ac_cpp_err"; then
11548 ac_header_preproc=yes
11549 else
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 ac_header_preproc=no
11554 fi
11555 rm -f conftest.err conftest.$ac_ext
11556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11557 echo "${ECHO_T}$ac_header_preproc" >&6
11558
11559 # So? What about this header?
11560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11561 yes:no: )
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11566 ac_header_preproc=yes
11567 ;;
11568 no:yes:* )
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11581 (
11582 cat <<\_ASBOX
11583 ## ------------------------------------------ ##
11584 ## Report this to the AC_PACKAGE_NAME lists. ##
11585 ## ------------------------------------------ ##
11586 _ASBOX
11587 ) |
11588 sed "s/^/$as_me: WARNING: /" >&2
11589 ;;
11590 esac
11591 echo "$as_me:$LINENO: checking for $ac_header" >&5
11592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596 eval "$as_ac_Header=\$ac_header_preproc"
11597 fi
11598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11600
11601 fi
11602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11603 cat >>confdefs.h <<_ACEOF
11604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11605 _ACEOF
11606
11607 fi
11608
11609 done
11610
11611 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11612 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11613 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11614 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lpng -lz -lm $LIBS"
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h. */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625
11626 /* Override any gcc2 internal prototype to avoid an error. */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11632 char png_get_channels ();
11633 int
11634 main ()
11635 {
11636 png_get_channels ();
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 rm -f conftest.$ac_objext conftest$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest$ac_exeext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_lib_png_png_get_channels=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_cv_lib_png_png_get_channels=no
11669 fi
11670 rm -f conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11673 fi
11674 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11675 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11676 if test $ac_cv_lib_png_png_get_channels = yes; then
11677 HAVE_PNG=yes
11678 fi
11679
11680 fi
11681 fi
11682
11683 if test "${HAVE_PNG}" = "yes"; then
11684
11685 cat >>confdefs.h <<\_ACEOF
11686 #define HAVE_PNG 1
11687 _ACEOF
11688
11689 fi
11690 fi
11691
11692 ### Use -ltiff if available, unless `--with-tiff=no'.
11693 HAVE_TIFF=no
11694 if test "${HAVE_X11}" = "yes"; then
11695 if test "${with_tiff}" != "no"; then
11696 if test "${ac_cv_header_tiffio_h+set}" = set; then
11697 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11698 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11699 if test "${ac_cv_header_tiffio_h+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701 fi
11702 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11703 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11704 else
11705 # Is the header compilable?
11706 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11707 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11715 #include <tiffio.h>
11716 _ACEOF
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_c_werror_flag"
11727 || test ! -s conftest.err'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest.$ac_objext'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 ac_header_compiler=yes
11740 else
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744 ac_header_compiler=no
11745 fi
11746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11748 echo "${ECHO_T}$ac_header_compiler" >&6
11749
11750 # Is the header present?
11751 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11752 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h. */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <tiffio.h>
11760 _ACEOF
11761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } >/dev/null; then
11769 if test -s conftest.err; then
11770 ac_cpp_err=$ac_c_preproc_warn_flag
11771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11772 else
11773 ac_cpp_err=
11774 fi
11775 else
11776 ac_cpp_err=yes
11777 fi
11778 if test -z "$ac_cpp_err"; then
11779 ac_header_preproc=yes
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_header_preproc=no
11785 fi
11786 rm -f conftest.err conftest.$ac_ext
11787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11788 echo "${ECHO_T}$ac_header_preproc" >&6
11789
11790 # So? What about this header?
11791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11792 yes:no: )
11793 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11794 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11796 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11797 ac_header_preproc=yes
11798 ;;
11799 no:yes:* )
11800 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11801 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11802 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11803 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11804 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11805 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11807 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11809 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11811 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11812 (
11813 cat <<\_ASBOX
11814 ## ------------------------------------------ ##
11815 ## Report this to the AC_PACKAGE_NAME lists. ##
11816 ## ------------------------------------------ ##
11817 _ASBOX
11818 ) |
11819 sed "s/^/$as_me: WARNING: /" >&2
11820 ;;
11821 esac
11822 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11823 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11824 if test "${ac_cv_header_tiffio_h+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 ac_cv_header_tiffio_h=$ac_header_preproc
11828 fi
11829 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11830 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11831
11832 fi
11833 if test $ac_cv_header_tiffio_h = yes; then
11834 tifflibs="-lz -lm"
11835 # At least one tiff package requires the jpeg library.
11836 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11837 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11838 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11839 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-ltiff $tifflibs $LIBS"
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850
11851 /* Override any gcc2 internal prototype to avoid an error. */
11852 #ifdef __cplusplus
11853 extern "C"
11854 #endif
11855 /* We use char because int might match the return type of a gcc2
11856 builtin and then its argument prototype would still apply. */
11857 char TIFFGetVersion ();
11858 int
11859 main ()
11860 {
11861 TIFFGetVersion ();
11862 ;
11863 return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext conftest$ac_exeext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11868 (eval $ac_link) 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_lib_tiff_TIFFGetVersion=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_lib_tiff_TIFFGetVersion=no
11894 fi
11895 rm -f conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11898 fi
11899 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11900 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11901 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11902 HAVE_TIFF=yes
11903 fi
11904
11905 fi
11906
11907
11908 fi
11909
11910 if test "${HAVE_TIFF}" = "yes"; then
11911
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_TIFF 1
11914 _ACEOF
11915
11916 fi
11917 fi
11918
11919 ### Use -lgif if available, unless `--with-gif=no'.
11920 HAVE_GIF=no
11921 if test "${HAVE_X11}" = "yes"; then
11922 if test "${with_gif}" != "no"; then
11923 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11924 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11925 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11926 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 fi
11929 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11930 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11931 else
11932 # Is the header compilable?
11933 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11934 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h. */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 $ac_includes_default
11942 #include <gif_lib.h>
11943 _ACEOF
11944 rm -f conftest.$ac_objext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11946 (eval $ac_compile) 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag"
11954 || test ! -s conftest.err'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; } &&
11960 { ac_try='test -s conftest.$ac_objext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 ac_header_compiler=yes
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 ac_header_compiler=no
11972 fi
11973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11975 echo "${ECHO_T}$ac_header_compiler" >&6
11976
11977 # Is the header present?
11978 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11979 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 #include <gif_lib.h>
11987 _ACEOF
11988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } >/dev/null; then
11996 if test -s conftest.err; then
11997 ac_cpp_err=$ac_c_preproc_warn_flag
11998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11999 else
12000 ac_cpp_err=
12001 fi
12002 else
12003 ac_cpp_err=yes
12004 fi
12005 if test -z "$ac_cpp_err"; then
12006 ac_header_preproc=yes
12007 else
12008 echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12010
12011 ac_header_preproc=no
12012 fi
12013 rm -f conftest.err conftest.$ac_ext
12014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12015 echo "${ECHO_T}$ac_header_preproc" >&6
12016
12017 # So? What about this header?
12018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12019 yes:no: )
12020 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12021 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12023 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12024 ac_header_preproc=yes
12025 ;;
12026 no:yes:* )
12027 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12028 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12030 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12032 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12034 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12036 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12038 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12039 (
12040 cat <<\_ASBOX
12041 ## ------------------------------------------ ##
12042 ## Report this to the AC_PACKAGE_NAME lists. ##
12043 ## ------------------------------------------ ##
12044 _ASBOX
12045 ) |
12046 sed "s/^/$as_me: WARNING: /" >&2
12047 ;;
12048 esac
12049 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12050 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12051 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 ac_cv_header_gif_lib_h=$ac_header_preproc
12055 fi
12056 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12057 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12058
12059 fi
12060 if test $ac_cv_header_gif_lib_h = yes; then
12061 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12062 # Earlier versions can crash Emacs.
12063 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12064 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12065 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068 ac_check_lib_save_LIBS=$LIBS
12069 LIBS="-lungif $LIBS"
12070 cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h. */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076
12077 /* Override any gcc2 internal prototype to avoid an error. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 /* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */
12083 char EGifPutExtensionLast ();
12084 int
12085 main ()
12086 {
12087 EGifPutExtensionLast ();
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -z "$ac_c_werror_flag"
12102 || test ! -s conftest.err'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; } &&
12108 { ac_try='test -s conftest$ac_exeext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 ac_cv_lib_ungif_EGifPutExtensionLast=no
12120 fi
12121 rm -f conftest.err conftest.$ac_objext \
12122 conftest$ac_exeext conftest.$ac_ext
12123 LIBS=$ac_check_lib_save_LIBS
12124 fi
12125 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12126 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12127 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12128 HAVE_GIF=yes
12129 fi
12130
12131 fi
12132
12133
12134 fi
12135
12136 if test "${HAVE_GIF}" = "yes"; then
12137
12138 cat >>confdefs.h <<\_ACEOF
12139 #define HAVE_GIF 1
12140 _ACEOF
12141
12142 fi
12143 fi
12144
12145 ### Use Mac OS X Carbon API to implement GUI.
12146 HAVE_CARBON=no
12147 if test "${with_carbon}" != "no"; then
12148 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12149 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12150 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12151 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 fi
12154 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12156 else
12157 # Is the header compilable?
12158 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12159 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 $ac_includes_default
12167 #include <Carbon/Carbon.h>
12168 _ACEOF
12169 rm -f conftest.$ac_objext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171 (eval $ac_compile) 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest.$ac_objext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 ac_header_compiler=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 ac_header_compiler=no
12197 fi
12198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12200 echo "${ECHO_T}$ac_header_compiler" >&6
12201
12202 # Is the header present?
12203 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12204 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 #include <Carbon/Carbon.h>
12212 _ACEOF
12213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } >/dev/null; then
12221 if test -s conftest.err; then
12222 ac_cpp_err=$ac_c_preproc_warn_flag
12223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12224 else
12225 ac_cpp_err=
12226 fi
12227 else
12228 ac_cpp_err=yes
12229 fi
12230 if test -z "$ac_cpp_err"; then
12231 ac_header_preproc=yes
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_header_preproc=no
12237 fi
12238 rm -f conftest.err conftest.$ac_ext
12239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12240 echo "${ECHO_T}$ac_header_preproc" >&6
12241
12242 # So? What about this header?
12243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12244 yes:no: )
12245 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12246 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12248 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12249 ac_header_preproc=yes
12250 ;;
12251 no:yes:* )
12252 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12253 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12255 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12257 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12259 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12261 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12263 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12264 (
12265 cat <<\_ASBOX
12266 ## ------------------------------------------ ##
12267 ## Report this to the AC_PACKAGE_NAME lists. ##
12268 ## ------------------------------------------ ##
12269 _ASBOX
12270 ) |
12271 sed "s/^/$as_me: WARNING: /" >&2
12272 ;;
12273 esac
12274 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12275 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12276 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12280 fi
12281 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12282 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12283
12284 fi
12285 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12286 HAVE_CARBON=yes
12287 fi
12288
12289
12290 fi
12291
12292 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12293 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12294 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12295 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 fi
12298 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12299 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12300 else
12301 # Is the header compilable?
12302 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12303 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12311 #include <malloc/malloc.h>
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_header_compiler=yes
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 ac_header_compiler=no
12341 fi
12342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12344 echo "${ECHO_T}$ac_header_compiler" >&6
12345
12346 # Is the header present?
12347 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12348 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 #include <malloc/malloc.h>
12356 _ACEOF
12357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } >/dev/null; then
12365 if test -s conftest.err; then
12366 ac_cpp_err=$ac_c_preproc_warn_flag
12367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12368 else
12369 ac_cpp_err=
12370 fi
12371 else
12372 ac_cpp_err=yes
12373 fi
12374 if test -z "$ac_cpp_err"; then
12375 ac_header_preproc=yes
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_header_preproc=no
12381 fi
12382 rm -f conftest.err conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12384 echo "${ECHO_T}$ac_header_preproc" >&6
12385
12386 # So? What about this header?
12387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12388 yes:no: )
12389 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12390 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12391 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12392 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12393 ac_header_preproc=yes
12394 ;;
12395 no:yes:* )
12396 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12397 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12399 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12401 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12403 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12405 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12406 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12407 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12408 (
12409 cat <<\_ASBOX
12410 ## ------------------------------------------ ##
12411 ## Report this to the AC_PACKAGE_NAME lists. ##
12412 ## ------------------------------------------ ##
12413 _ASBOX
12414 ) |
12415 sed "s/^/$as_me: WARNING: /" >&2
12416 ;;
12417 esac
12418 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12419 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12420 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12424 fi
12425 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12426 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12427
12428 fi
12429 if test $ac_cv_header_malloc_malloc_h = yes; then
12430
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_MALLOC_MALLOC_H 1
12433 _ACEOF
12434
12435 fi
12436
12437
12438
12439 if test "${HAVE_CARBON}" = "yes"; then
12440
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_CARBON 1
12443 _ACEOF
12444
12445 window_system=mac
12446 ## Specify the install directory
12447 carbon_appdir=
12448 if test "${carbon_appdir_x}" != ""; then
12449 case ${carbon_appdir_x} in
12450 y | ye | yes) carbon_appdir=/Applications ;;
12451 * ) carbon_appdir=${carbon_appdir_x} ;;
12452 esac
12453 fi
12454 # We also have mouse menus.
12455 HAVE_MENUS=yes
12456 fi
12457
12458 ### Use session management (-lSM -lICE) if available
12459 HAVE_X_SM=no
12460 if test "${HAVE_X11}" = "yes"; then
12461 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12462 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12463 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12464 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 fi
12467 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12468 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12469 else
12470 # Is the header compilable?
12471 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12472 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 $ac_includes_default
12480 #include <X11/SM/SMlib.h>
12481 _ACEOF
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_header_compiler=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 ac_header_compiler=no
12510 fi
12511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12513 echo "${ECHO_T}$ac_header_compiler" >&6
12514
12515 # Is the header present?
12516 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12517 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 #include <X11/SM/SMlib.h>
12525 _ACEOF
12526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } >/dev/null; then
12534 if test -s conftest.err; then
12535 ac_cpp_err=$ac_c_preproc_warn_flag
12536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12537 else
12538 ac_cpp_err=
12539 fi
12540 else
12541 ac_cpp_err=yes
12542 fi
12543 if test -z "$ac_cpp_err"; then
12544 ac_header_preproc=yes
12545 else
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_header_preproc=no
12550 fi
12551 rm -f conftest.err conftest.$ac_ext
12552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12553 echo "${ECHO_T}$ac_header_preproc" >&6
12554
12555 # So? What about this header?
12556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12557 yes:no: )
12558 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12559 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12561 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12562 ac_header_preproc=yes
12563 ;;
12564 no:yes:* )
12565 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12566 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12568 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12570 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12572 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12574 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12576 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12577 (
12578 cat <<\_ASBOX
12579 ## ------------------------------------------ ##
12580 ## Report this to the AC_PACKAGE_NAME lists. ##
12581 ## ------------------------------------------ ##
12582 _ASBOX
12583 ) |
12584 sed "s/^/$as_me: WARNING: /" >&2
12585 ;;
12586 esac
12587 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12588 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12589 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12593 fi
12594 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12595 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12596
12597 fi
12598 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12599 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12600 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12601 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-lSM -lICE $LIBS"
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612
12613 /* Override any gcc2 internal prototype to avoid an error. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 /* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12619 char SmcOpenConnection ();
12620 int
12621 main ()
12622 {
12623 SmcOpenConnection ();
12624 ;
12625 return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630 (eval $ac_link) 2>conftest.er1
12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try='test -z "$ac_c_werror_flag"
12638 || test ! -s conftest.err'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_lib_SM_SmcOpenConnection=yes
12651 else
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 ac_cv_lib_SM_SmcOpenConnection=no
12656 fi
12657 rm -f conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12660 fi
12661 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12662 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12663 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12664 HAVE_X_SM=yes
12665 fi
12666
12667 fi
12668
12669
12670
12671 if test "${HAVE_X_SM}" = "yes"; then
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_X_SM 1
12675 _ACEOF
12676
12677 case "$LIBS" in
12678 *-lSM*) ;;
12679 *) LIBS="-lSM -lICE $LIBS" ;;
12680 esac
12681 fi
12682 fi
12683
12684 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12685 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12686 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12687 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 #include <netdb.h>
12697 int
12698 main ()
12699 {
12700 return h_errno;
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest$ac_exeext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 emacs_cv_netdb_declares_h_errno=yes
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 emacs_cv_netdb_declares_h_errno=no
12733 fi
12734 rm -f conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 fi
12737 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12738 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12739 if test $emacs_cv_netdb_declares_h_errno = yes; then
12740
12741 cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_H_ERRNO 1
12743 _ACEOF
12744
12745 fi
12746
12747 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12748 # for constant arguments. Useless!
12749 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12750 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12751 if test "${ac_cv_working_alloca_h+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 #include <alloca.h>
12761 int
12762 main ()
12763 {
12764 char *p = (char *) alloca (2 * sizeof (int));
12765 ;
12766 return 0;
12767 }
12768 _ACEOF
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try='test -z "$ac_c_werror_flag"
12779 || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 ac_cv_working_alloca_h=yes
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796 ac_cv_working_alloca_h=no
12797 fi
12798 rm -f conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 fi
12801 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12802 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12803 if test $ac_cv_working_alloca_h = yes; then
12804
12805 cat >>confdefs.h <<\_ACEOF
12806 #define HAVE_ALLOCA_H 1
12807 _ACEOF
12808
12809 fi
12810
12811 echo "$as_me:$LINENO: checking for alloca" >&5
12812 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12813 if test "${ac_cv_func_alloca_works+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 #ifdef __GNUC__
12823 # define alloca __builtin_alloca
12824 #else
12825 # ifdef _MSC_VER
12826 # include <malloc.h>
12827 # define alloca _alloca
12828 # else
12829 # if HAVE_ALLOCA_H
12830 # include <alloca.h>
12831 # else
12832 # ifdef _AIX
12833 #pragma alloca
12834 # else
12835 # ifndef alloca /* predefined by HP cc +Olibcalls */
12836 char *alloca ();
12837 # endif
12838 # endif
12839 # endif
12840 # endif
12841 #endif
12842
12843 int
12844 main ()
12845 {
12846 char *p = (char *) alloca (1);
12847 ;
12848 return 0;
12849 }
12850 _ACEOF
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853 (eval $ac_link) 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_func_alloca_works=yes
12874 else
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 ac_cv_func_alloca_works=no
12879 fi
12880 rm -f conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882 fi
12883 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12884 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12885
12886 if test $ac_cv_func_alloca_works = yes; then
12887
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_ALLOCA 1
12890 _ACEOF
12891
12892 else
12893 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12894 # that cause trouble. Some versions do not even contain alloca or
12895 # contain a buggy version. If you still want to use their alloca,
12896 # use ar to extract alloca.o from them instead of compiling alloca.c.
12897
12898 ALLOCA=alloca.$ac_objext
12899
12900 cat >>confdefs.h <<\_ACEOF
12901 #define C_ALLOCA 1
12902 _ACEOF
12903
12904
12905 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12906 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12907 if test "${ac_cv_os_cray+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 else
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h. */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 #if defined(CRAY) && ! defined(CRAY2)
12917 webecray
12918 #else
12919 wenotbecray
12920 #endif
12921
12922 _ACEOF
12923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12924 $EGREP "webecray" >/dev/null 2>&1; then
12925 ac_cv_os_cray=yes
12926 else
12927 ac_cv_os_cray=no
12928 fi
12929 rm -f conftest*
12930
12931 fi
12932 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12933 echo "${ECHO_T}$ac_cv_os_cray" >&6
12934 if test $ac_cv_os_cray = yes; then
12935 for ac_func in _getb67 GETB67 getb67; do
12936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12937 echo "$as_me:$LINENO: checking for $ac_func" >&5
12938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12939 if eval "test \"\${$as_ac_var+set}\" = set"; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h. */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12950 #define $ac_func innocuous_$ac_func
12951
12952 /* System header to define __stub macros and hopefully few prototypes,
12953 which can conflict with char $ac_func (); below.
12954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12955 <limits.h> exists even on freestanding compilers. */
12956
12957 #ifdef __STDC__
12958 # include <limits.h>
12959 #else
12960 # include <assert.h>
12961 #endif
12962
12963 #undef $ac_func
12964
12965 /* Override any gcc2 internal prototype to avoid an error. */
12966 #ifdef __cplusplus
12967 extern "C"
12968 {
12969 #endif
12970 /* We use char because int might match the return type of a gcc2
12971 builtin and then its argument prototype would still apply. */
12972 char $ac_func ();
12973 /* The GNU C library defines this for functions which it implements
12974 to always fail with ENOSYS. Some functions are actually named
12975 something starting with __ and the normal name is an alias. */
12976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12977 choke me
12978 #else
12979 char (*f) () = $ac_func;
12980 #endif
12981 #ifdef __cplusplus
12982 }
12983 #endif
12984
12985 int
12986 main ()
12987 {
12988 return f != $ac_func;
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 rm -f conftest.$ac_objext conftest$ac_exeext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12995 (eval $ac_link) 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_c_werror_flag"
13003 || test ! -s conftest.err'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 eval "$as_ac_var=yes"
13016 else
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020 eval "$as_ac_var=no"
13021 fi
13022 rm -f conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 fi
13025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13027 if test `eval echo '${'$as_ac_var'}'` = yes; then
13028
13029 cat >>confdefs.h <<_ACEOF
13030 #define CRAY_STACKSEG_END $ac_func
13031 _ACEOF
13032
13033 break
13034 fi
13035
13036 done
13037 fi
13038
13039 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13040 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13041 if test "${ac_cv_c_stack_direction+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044 if test "$cross_compiling" = yes; then
13045 ac_cv_c_stack_direction=0
13046 else
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 int
13054 find_stack_direction ()
13055 {
13056 static char *addr = 0;
13057 auto char dummy;
13058 if (addr == 0)
13059 {
13060 addr = &dummy;
13061 return find_stack_direction ();
13062 }
13063 else
13064 return (&dummy > addr) ? 1 : -1;
13065 }
13066
13067 int
13068 main ()
13069 {
13070 exit (find_stack_direction () < 0);
13071 }
13072 _ACEOF
13073 rm -f conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13084 ac_cv_c_stack_direction=1
13085 else
13086 echo "$as_me: program exited with status $ac_status" >&5
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 ( exit $ac_status )
13091 ac_cv_c_stack_direction=-1
13092 fi
13093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13094 fi
13095 fi
13096 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13097 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13098
13099 cat >>confdefs.h <<_ACEOF
13100 #define STACK_DIRECTION $ac_cv_c_stack_direction
13101 _ACEOF
13102
13103
13104 fi
13105
13106
13107 # fmod, logb, and frexp are found in -lm on most systems.
13108 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13109
13110 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13111 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13112 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115 ac_check_lib_save_LIBS=$LIBS
13116 LIBS="-lm $LIBS"
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123
13124 /* Override any gcc2 internal prototype to avoid an error. */
13125 #ifdef __cplusplus
13126 extern "C"
13127 #endif
13128 /* We use char because int might match the return type of a gcc2
13129 builtin and then its argument prototype would still apply. */
13130 char sqrt ();
13131 int
13132 main ()
13133 {
13134 sqrt ();
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13141 (eval $ac_link) 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -z "$ac_c_werror_flag"
13149 || test ! -s conftest.err'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest$ac_exeext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_lib_m_sqrt=yes
13162 else
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166 ac_cv_lib_m_sqrt=no
13167 fi
13168 rm -f conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13171 fi
13172 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13173 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13174 if test $ac_cv_lib_m_sqrt = yes; then
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_LIBM 1
13177 _ACEOF
13178
13179 LIBS="-lm $LIBS"
13180
13181 fi
13182
13183
13184 # Check for mail-locking functions in a "mail" library. Probably this should
13185 # have the same check as for liblockfile below.
13186
13187 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13188 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13189 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lmail $LIBS"
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200
13201 /* Override any gcc2 internal prototype to avoid an error. */
13202 #ifdef __cplusplus
13203 extern "C"
13204 #endif
13205 /* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207 char maillock ();
13208 int
13209 main ()
13210 {
13211 maillock ();
13212 ;
13213 return 0;
13214 }
13215 _ACEOF
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_mail_maillock=yes
13239 else
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243 ac_cv_lib_mail_maillock=no
13244 fi
13245 rm -f conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13248 fi
13249 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13250 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13251 if test $ac_cv_lib_mail_maillock = yes; then
13252 cat >>confdefs.h <<_ACEOF
13253 #define HAVE_LIBMAIL 1
13254 _ACEOF
13255
13256 LIBS="-lmail $LIBS"
13257
13258 fi
13259
13260
13261 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13262 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13263 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-llockfile $LIBS"
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274
13275 /* Override any gcc2 internal prototype to avoid an error. */
13276 #ifdef __cplusplus
13277 extern "C"
13278 #endif
13279 /* We use char because int might match the return type of a gcc2
13280 builtin and then its argument prototype would still apply. */
13281 char maillock ();
13282 int
13283 main ()
13284 {
13285 maillock ();
13286 ;
13287 return 0;
13288 }
13289 _ACEOF
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13292 (eval $ac_link) 2>conftest.er1
13293 ac_status=$?
13294 grep -v '^ *+' conftest.er1 >conftest.err
13295 rm -f conftest.er1
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try='test -z "$ac_c_werror_flag"
13300 || test ! -s conftest.err'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try='test -s conftest$ac_exeext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_lib_lockfile_maillock=yes
13313 else
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_cv_lib_lockfile_maillock=no
13318 fi
13319 rm -f conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13322 fi
13323 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13324 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13325 if test $ac_cv_lib_lockfile_maillock = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_LIBLOCKFILE 1
13328 _ACEOF
13329
13330 LIBS="-llockfile $LIBS"
13331
13332 fi
13333
13334 # If we have the shared liblockfile, assume we must use it for mail
13335 # locking (e.g. Debian). If we couldn't link against liblockfile
13336 # (no liblockfile.a installed), ensure that we don't need to.
13337 if test "$ac_cv_lib_lockfile_maillock" = no; then
13338 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13339 set dummy liblockfile.so; ac_word=$2
13340 echo "$as_me:$LINENO: checking for $ac_word" >&5
13341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13342 if test "${ac_cv_prog_liblockfile+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345 if test -n "$liblockfile"; then
13346 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13347 else
13348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13350 for as_dir in $as_dummy
13351 do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
13355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356 ac_cv_prog_liblockfile="yes"
13357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360 done
13361 done
13362
13363 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13364 fi
13365 fi
13366 liblockfile=$ac_cv_prog_liblockfile
13367 if test -n "$liblockfile"; then
13368 echo "$as_me:$LINENO: result: $liblockfile" >&5
13369 echo "${ECHO_T}$liblockfile" >&6
13370 else
13371 echo "$as_me:$LINENO: result: no" >&5
13372 echo "${ECHO_T}no" >&6
13373 fi
13374
13375 if test $ac_cv_prog_liblockfile = yes; then
13376 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13377 This probably means that movemail could lose mail.
13378 There may be a \`development' package to install containing liblockfile." >&5
13379 echo "$as_me: error: Shared liblockfile found but can't link against it.
13380 This probably means that movemail could lose mail.
13381 There may be a \`development' package to install containing liblockfile." >&2;}
13382 { (exit 1); exit 1; }; }
13383 else :
13384 fi
13385 fi
13386
13387 for ac_func in touchlock
13388 do
13389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13390 echo "$as_me:$LINENO: checking for $ac_func" >&5
13391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13392 if eval "test \"\${$as_ac_var+set}\" = set"; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13403 #define $ac_func innocuous_$ac_func
13404
13405 /* System header to define __stub macros and hopefully few prototypes,
13406 which can conflict with char $ac_func (); below.
13407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13408 <limits.h> exists even on freestanding compilers. */
13409
13410 #ifdef __STDC__
13411 # include <limits.h>
13412 #else
13413 # include <assert.h>
13414 #endif
13415
13416 #undef $ac_func
13417
13418 /* Override any gcc2 internal prototype to avoid an error. */
13419 #ifdef __cplusplus
13420 extern "C"
13421 {
13422 #endif
13423 /* We use char because int might match the return type of a gcc2
13424 builtin and then its argument prototype would still apply. */
13425 char $ac_func ();
13426 /* The GNU C library defines this for functions which it implements
13427 to always fail with ENOSYS. Some functions are actually named
13428 something starting with __ and the normal name is an alias. */
13429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13430 choke me
13431 #else
13432 char (*f) () = $ac_func;
13433 #endif
13434 #ifdef __cplusplus
13435 }
13436 #endif
13437
13438 int
13439 main ()
13440 {
13441 return f != $ac_func;
13442 ;
13443 return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 eval "$as_ac_var=yes"
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 eval "$as_ac_var=no"
13474 fi
13475 rm -f conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477 fi
13478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13480 if test `eval echo '${'$as_ac_var'}'` = yes; then
13481 cat >>confdefs.h <<_ACEOF
13482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13483 _ACEOF
13484
13485 fi
13486 done
13487
13488
13489 for ac_header in maillock.h
13490 do
13491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13493 echo "$as_me:$LINENO: checking for $ac_header" >&5
13494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 fi
13498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13500 else
13501 # Is the header compilable?
13502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 $ac_includes_default
13511 #include <$ac_header>
13512 _ACEOF
13513 rm -f conftest.$ac_objext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -z "$ac_c_werror_flag"
13523 || test ! -s conftest.err'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest.$ac_objext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_header_compiler=yes
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_header_compiler=no
13541 fi
13542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13544 echo "${ECHO_T}$ac_header_compiler" >&6
13545
13546 # Is the header present?
13547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h. */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <$ac_header>
13556 _ACEOF
13557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } >/dev/null; then
13565 if test -s conftest.err; then
13566 ac_cpp_err=$ac_c_preproc_warn_flag
13567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13568 else
13569 ac_cpp_err=
13570 fi
13571 else
13572 ac_cpp_err=yes
13573 fi
13574 if test -z "$ac_cpp_err"; then
13575 ac_header_preproc=yes
13576 else
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 ac_header_preproc=no
13581 fi
13582 rm -f conftest.err conftest.$ac_ext
13583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13584 echo "${ECHO_T}$ac_header_preproc" >&6
13585
13586 # So? What about this header?
13587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13588 yes:no: )
13589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13593 ac_header_preproc=yes
13594 ;;
13595 no:yes:* )
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13608 (
13609 cat <<\_ASBOX
13610 ## ------------------------------------------ ##
13611 ## Report this to the AC_PACKAGE_NAME lists. ##
13612 ## ------------------------------------------ ##
13613 _ASBOX
13614 ) |
13615 sed "s/^/$as_me: WARNING: /" >&2
13616 ;;
13617 esac
13618 echo "$as_me:$LINENO: checking for $ac_header" >&5
13619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 eval "$as_ac_Header=\$ac_header_preproc"
13624 fi
13625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13627
13628 fi
13629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13630 cat >>confdefs.h <<_ACEOF
13631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13632 _ACEOF
13633
13634 fi
13635
13636 done
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705 for ac_func in gethostname getdomainname dup2 \
13706 rename closedir mkdir rmdir sysinfo \
13707 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13708 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13709 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13710 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13711 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13712 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13713 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13714 do
13715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13716 echo "$as_me:$LINENO: checking for $ac_func" >&5
13717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13718 if eval "test \"\${$as_ac_var+set}\" = set"; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13729 #define $ac_func innocuous_$ac_func
13730
13731 /* System header to define __stub macros and hopefully few prototypes,
13732 which can conflict with char $ac_func (); below.
13733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13734 <limits.h> exists even on freestanding compilers. */
13735
13736 #ifdef __STDC__
13737 # include <limits.h>
13738 #else
13739 # include <assert.h>
13740 #endif
13741
13742 #undef $ac_func
13743
13744 /* Override any gcc2 internal prototype to avoid an error. */
13745 #ifdef __cplusplus
13746 extern "C"
13747 {
13748 #endif
13749 /* We use char because int might match the return type of a gcc2
13750 builtin and then its argument prototype would still apply. */
13751 char $ac_func ();
13752 /* The GNU C library defines this for functions which it implements
13753 to always fail with ENOSYS. Some functions are actually named
13754 something starting with __ and the normal name is an alias. */
13755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13756 choke me
13757 #else
13758 char (*f) () = $ac_func;
13759 #endif
13760 #ifdef __cplusplus
13761 }
13762 #endif
13763
13764 int
13765 main ()
13766 {
13767 return f != $ac_func;
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774 (eval $ac_link) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 eval "$as_ac_var=yes"
13795 else
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 eval "$as_ac_var=no"
13800 fi
13801 rm -f conftest.err conftest.$ac_objext \
13802 conftest$ac_exeext conftest.$ac_ext
13803 fi
13804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13806 if test `eval echo '${'$as_ac_var'}'` = yes; then
13807 cat >>confdefs.h <<_ACEOF
13808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13809 _ACEOF
13810
13811 fi
13812 done
13813
13814
13815
13816 for ac_header in sys/un.h
13817 do
13818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13820 echo "$as_me:$LINENO: checking for $ac_header" >&5
13821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 fi
13825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13827 else
13828 # Is the header compilable?
13829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13838 #include <$ac_header>
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag"
13850 || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_header_compiler=yes
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867 ac_header_compiler=no
13868 fi
13869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13871 echo "${ECHO_T}$ac_header_compiler" >&6
13872
13873 # Is the header present?
13874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 #include <$ac_header>
13883 _ACEOF
13884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } >/dev/null; then
13892 if test -s conftest.err; then
13893 ac_cpp_err=$ac_c_preproc_warn_flag
13894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13895 else
13896 ac_cpp_err=
13897 fi
13898 else
13899 ac_cpp_err=yes
13900 fi
13901 if test -z "$ac_cpp_err"; then
13902 ac_header_preproc=yes
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_header_preproc=no
13908 fi
13909 rm -f conftest.err conftest.$ac_ext
13910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13911 echo "${ECHO_T}$ac_header_preproc" >&6
13912
13913 # So? What about this header?
13914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13915 yes:no: )
13916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13920 ac_header_preproc=yes
13921 ;;
13922 no:yes:* )
13923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13935 (
13936 cat <<\_ASBOX
13937 ## ------------------------------------------ ##
13938 ## Report this to the AC_PACKAGE_NAME lists. ##
13939 ## ------------------------------------------ ##
13940 _ASBOX
13941 ) |
13942 sed "s/^/$as_me: WARNING: /" >&2
13943 ;;
13944 esac
13945 echo "$as_me:$LINENO: checking for $ac_header" >&5
13946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950 eval "$as_ac_Header=\$ac_header_preproc"
13951 fi
13952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13954
13955 fi
13956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13957 cat >>confdefs.h <<_ACEOF
13958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13959 _ACEOF
13960
13961 fi
13962
13963 done
13964
13965
13966
13967
13968
13969 for ac_header in stdlib.h sys/time.h unistd.h
13970 do
13971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13973 echo "$as_me:$LINENO: checking for $ac_header" >&5
13974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 fi
13978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13980 else
13981 # Is the header compilable?
13982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13984 cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h. */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 $ac_includes_default
13991 #include <$ac_header>
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995 (eval $ac_compile) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -z "$ac_c_werror_flag"
14003 || test ! -s conftest.err'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; } &&
14009 { ac_try='test -s conftest.$ac_objext'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_header_compiler=yes
14016 else
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_header_compiler=no
14021 fi
14022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14024 echo "${ECHO_T}$ac_header_compiler" >&6
14025
14026 # Is the header present?
14027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 #include <$ac_header>
14036 _ACEOF
14037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } >/dev/null; then
14045 if test -s conftest.err; then
14046 ac_cpp_err=$ac_c_preproc_warn_flag
14047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14048 else
14049 ac_cpp_err=
14050 fi
14051 else
14052 ac_cpp_err=yes
14053 fi
14054 if test -z "$ac_cpp_err"; then
14055 ac_header_preproc=yes
14056 else
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14059
14060 ac_header_preproc=no
14061 fi
14062 rm -f conftest.err conftest.$ac_ext
14063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14064 echo "${ECHO_T}$ac_header_preproc" >&6
14065
14066 # So? What about this header?
14067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14068 yes:no: )
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14073 ac_header_preproc=yes
14074 ;;
14075 no:yes:* )
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14088 (
14089 cat <<\_ASBOX
14090 ## ------------------------------------------ ##
14091 ## Report this to the AC_PACKAGE_NAME lists. ##
14092 ## ------------------------------------------ ##
14093 _ASBOX
14094 ) |
14095 sed "s/^/$as_me: WARNING: /" >&2
14096 ;;
14097 esac
14098 echo "$as_me:$LINENO: checking for $ac_header" >&5
14099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103 eval "$as_ac_Header=\$ac_header_preproc"
14104 fi
14105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14107
14108 fi
14109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14110 cat >>confdefs.h <<_ACEOF
14111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14112 _ACEOF
14113
14114 fi
14115
14116 done
14117
14118
14119 for ac_func in alarm
14120 do
14121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14122 echo "$as_me:$LINENO: checking for $ac_func" >&5
14123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_var+set}\" = set"; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14135 #define $ac_func innocuous_$ac_func
14136
14137 /* System header to define __stub macros and hopefully few prototypes,
14138 which can conflict with char $ac_func (); below.
14139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14140 <limits.h> exists even on freestanding compilers. */
14141
14142 #ifdef __STDC__
14143 # include <limits.h>
14144 #else
14145 # include <assert.h>
14146 #endif
14147
14148 #undef $ac_func
14149
14150 /* Override any gcc2 internal prototype to avoid an error. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 {
14154 #endif
14155 /* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14157 char $ac_func ();
14158 /* The GNU C library defines this for functions which it implements
14159 to always fail with ENOSYS. Some functions are actually named
14160 something starting with __ and the normal name is an alias. */
14161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14162 choke me
14163 #else
14164 char (*f) () = $ac_func;
14165 #endif
14166 #ifdef __cplusplus
14167 }
14168 #endif
14169
14170 int
14171 main ()
14172 {
14173 return f != $ac_func;
14174 ;
14175 return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180 (eval $ac_link) 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest$ac_exeext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 eval "$as_ac_var=yes"
14201 else
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 eval "$as_ac_var=no"
14206 fi
14207 rm -f conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14209 fi
14210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14212 if test `eval echo '${'$as_ac_var'}'` = yes; then
14213 cat >>confdefs.h <<_ACEOF
14214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14215 _ACEOF
14216
14217 fi
14218 done
14219
14220 echo "$as_me:$LINENO: checking for working mktime" >&5
14221 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14222 if test "${ac_cv_func_working_mktime+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225 if test "$cross_compiling" = yes; then
14226 ac_cv_func_working_mktime=no
14227 else
14228 cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h. */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 /* Test program from Paul Eggert and Tony Leneis. */
14235 #if TIME_WITH_SYS_TIME
14236 # include <sys/time.h>
14237 # include <time.h>
14238 #else
14239 # if HAVE_SYS_TIME_H
14240 # include <sys/time.h>
14241 # else
14242 # include <time.h>
14243 # endif
14244 #endif
14245
14246 #if HAVE_STDLIB_H
14247 # include <stdlib.h>
14248 #endif
14249
14250 #if HAVE_UNISTD_H
14251 # include <unistd.h>
14252 #endif
14253
14254 #if !HAVE_ALARM
14255 # define alarm(X) /* empty */
14256 #endif
14257
14258 /* Work around redefinition to rpl_putenv by other config tests. */
14259 #undef putenv
14260
14261 static time_t time_t_max;
14262 static time_t time_t_min;
14263
14264 /* Values we'll use to set the TZ environment variable. */
14265 static char *tz_strings[] = {
14266 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14267 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14268 };
14269 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14270
14271 /* Fail if mktime fails to convert a date in the spring-forward gap.
14272 Based on a problem report from Andreas Jaeger. */
14273 static void
14274 spring_forward_gap ()
14275 {
14276 /* glibc (up to about 1998-10-07) failed this test. */
14277 struct tm tm;
14278
14279 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14280 instead of "TZ=America/Vancouver" in order to detect the bug even
14281 on systems that don't support the Olson extension, or don't have the
14282 full zoneinfo tables installed. */
14283 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14284
14285 tm.tm_year = 98;
14286 tm.tm_mon = 3;
14287 tm.tm_mday = 5;
14288 tm.tm_hour = 2;
14289 tm.tm_min = 0;
14290 tm.tm_sec = 0;
14291 tm.tm_isdst = -1;
14292 if (mktime (&tm) == (time_t)-1)
14293 exit (1);
14294 }
14295
14296 static void
14297 mktime_test1 (now)
14298 time_t now;
14299 {
14300 struct tm *lt;
14301 if ((lt = localtime (&now)) && mktime (lt) != now)
14302 exit (1);
14303 }
14304
14305 static void
14306 mktime_test (now)
14307 time_t now;
14308 {
14309 mktime_test1 (now);
14310 mktime_test1 ((time_t) (time_t_max - now));
14311 mktime_test1 ((time_t) (time_t_min + now));
14312 }
14313
14314 static void
14315 irix_6_4_bug ()
14316 {
14317 /* Based on code from Ariel Faigon. */
14318 struct tm tm;
14319 tm.tm_year = 96;
14320 tm.tm_mon = 3;
14321 tm.tm_mday = 0;
14322 tm.tm_hour = 0;
14323 tm.tm_min = 0;
14324 tm.tm_sec = 0;
14325 tm.tm_isdst = -1;
14326 mktime (&tm);
14327 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14328 exit (1);
14329 }
14330
14331 static void
14332 bigtime_test (j)
14333 int j;
14334 {
14335 struct tm tm;
14336 time_t now;
14337 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14338 now = mktime (&tm);
14339 if (now != (time_t) -1)
14340 {
14341 struct tm *lt = localtime (&now);
14342 if (! (lt
14343 && lt->tm_year == tm.tm_year
14344 && lt->tm_mon == tm.tm_mon
14345 && lt->tm_mday == tm.tm_mday
14346 && lt->tm_hour == tm.tm_hour
14347 && lt->tm_min == tm.tm_min
14348 && lt->tm_sec == tm.tm_sec
14349 && lt->tm_yday == tm.tm_yday
14350 && lt->tm_wday == tm.tm_wday
14351 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14352 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14353 exit (1);
14354 }
14355 }
14356
14357 int
14358 main ()
14359 {
14360 time_t t, delta;
14361 int i, j;
14362
14363 /* This test makes some buggy mktime implementations loop.
14364 Give up after 60 seconds; a mktime slower than that
14365 isn't worth using anyway. */
14366 alarm (60);
14367
14368 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14369 continue;
14370 time_t_max--;
14371 if ((time_t) -1 < 0)
14372 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14373 continue;
14374 delta = time_t_max / 997; /* a suitable prime number */
14375 for (i = 0; i < N_STRINGS; i++)
14376 {
14377 if (tz_strings[i])
14378 putenv (tz_strings[i]);
14379
14380 for (t = 0; t <= time_t_max - delta; t += delta)
14381 mktime_test (t);
14382 mktime_test ((time_t) 1);
14383 mktime_test ((time_t) (60 * 60));
14384 mktime_test ((time_t) (60 * 60 * 24));
14385
14386 for (j = 1; 0 < j; j *= 2)
14387 bigtime_test (j);
14388 bigtime_test (j - 1);
14389 }
14390 irix_6_4_bug ();
14391 spring_forward_gap ();
14392 exit (0);
14393 }
14394 _ACEOF
14395 rm -f conftest$ac_exeext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14397 (eval $ac_link) 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_cv_func_working_mktime=yes
14407 else
14408 echo "$as_me: program exited with status $ac_status" >&5
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14411
14412 ( exit $ac_status )
14413 ac_cv_func_working_mktime=no
14414 fi
14415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14416 fi
14417 fi
14418 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14419 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14420 if test $ac_cv_func_working_mktime = no; then
14421 case $LIBOBJS in
14422 "mktime.$ac_objext" | \
14423 *" mktime.$ac_objext" | \
14424 "mktime.$ac_objext "* | \
14425 *" mktime.$ac_objext "* ) ;;
14426 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14427 esac
14428
14429 fi
14430
14431 if test "$ac_cv_func_working_mktime" = no; then
14432
14433 cat >>confdefs.h <<\_ACEOF
14434 #define BROKEN_MKTIME 1
14435 _ACEOF
14436
14437 fi
14438
14439 ac_have_func=no # yes means we've found a way to get the load average.
14440
14441 # Make sure getloadavg.c is where it belongs, at configure-time.
14442 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14443 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14444 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14445 { (exit 1); exit 1; }; }
14446
14447 ac_save_LIBS=$LIBS
14448
14449 # Check for getloadavg, but be sure not to touch the cache variable.
14450 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14451 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14452 if test "${ac_cv_func_getloadavg+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14463 #define getloadavg innocuous_getloadavg
14464
14465 /* System header to define __stub macros and hopefully few prototypes,
14466 which can conflict with char getloadavg (); below.
14467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14468 <limits.h> exists even on freestanding compilers. */
14469
14470 #ifdef __STDC__
14471 # include <limits.h>
14472 #else
14473 # include <assert.h>
14474 #endif
14475
14476 #undef getloadavg
14477
14478 /* Override any gcc2 internal prototype to avoid an error. */
14479 #ifdef __cplusplus
14480 extern "C"
14481 {
14482 #endif
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14485 char getloadavg ();
14486 /* The GNU C library defines this for functions which it implements
14487 to always fail with ENOSYS. Some functions are actually named
14488 something starting with __ and the normal name is an alias. */
14489 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14490 choke me
14491 #else
14492 char (*f) () = getloadavg;
14493 #endif
14494 #ifdef __cplusplus
14495 }
14496 #endif
14497
14498 int
14499 main ()
14500 {
14501 return f != getloadavg;
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag"
14516 || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest$ac_exeext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_func_getloadavg=yes
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 ac_cv_func_getloadavg=no
14534 fi
14535 rm -f conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14537 fi
14538 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14539 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14540 if test $ac_cv_func_getloadavg = yes; then
14541 exit 0
14542 else
14543 exit 1
14544 fi
14545 ) && ac_have_func=yes
14546
14547 # On HPUX9, an unprivileged user can get load averages through this function.
14548
14549 for ac_func in pstat_getdynamic
14550 do
14551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14552 echo "$as_me:$LINENO: checking for $ac_func" >&5
14553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14554 if eval "test \"\${$as_ac_var+set}\" = set"; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557 cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h. */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14565 #define $ac_func innocuous_$ac_func
14566
14567 /* System header to define __stub macros and hopefully few prototypes,
14568 which can conflict with char $ac_func (); below.
14569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14570 <limits.h> exists even on freestanding compilers. */
14571
14572 #ifdef __STDC__
14573 # include <limits.h>
14574 #else
14575 # include <assert.h>
14576 #endif
14577
14578 #undef $ac_func
14579
14580 /* Override any gcc2 internal prototype to avoid an error. */
14581 #ifdef __cplusplus
14582 extern "C"
14583 {
14584 #endif
14585 /* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14587 char $ac_func ();
14588 /* The GNU C library defines this for functions which it implements
14589 to always fail with ENOSYS. Some functions are actually named
14590 something starting with __ and the normal name is an alias. */
14591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14592 choke me
14593 #else
14594 char (*f) () = $ac_func;
14595 #endif
14596 #ifdef __cplusplus
14597 }
14598 #endif
14599
14600 int
14601 main ()
14602 {
14603 return f != $ac_func;
14604 ;
14605 return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610 (eval $ac_link) 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag"
14618 || test ! -s conftest.err'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest$ac_exeext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 eval "$as_ac_var=yes"
14631 else
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 eval "$as_ac_var=no"
14636 fi
14637 rm -f conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14639 fi
14640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14642 if test `eval echo '${'$as_ac_var'}'` = yes; then
14643 cat >>confdefs.h <<_ACEOF
14644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14645 _ACEOF
14646
14647 fi
14648 done
14649
14650
14651 # Solaris has libkstat which does not require root.
14652
14653 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14654 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14655 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658 ac_check_lib_save_LIBS=$LIBS
14659 LIBS="-lkstat $LIBS"
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h. */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666
14667 /* Override any gcc2 internal prototype to avoid an error. */
14668 #ifdef __cplusplus
14669 extern "C"
14670 #endif
14671 /* We use char because int might match the return type of a gcc2
14672 builtin and then its argument prototype would still apply. */
14673 char kstat_open ();
14674 int
14675 main ()
14676 {
14677 kstat_open ();
14678 ;
14679 return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684 (eval $ac_link) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest$ac_exeext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_lib_kstat_kstat_open=yes
14705 else
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 ac_cv_lib_kstat_kstat_open=no
14710 fi
14711 rm -f conftest.err conftest.$ac_objext \
14712 conftest$ac_exeext conftest.$ac_ext
14713 LIBS=$ac_check_lib_save_LIBS
14714 fi
14715 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14716 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14717 if test $ac_cv_lib_kstat_kstat_open = yes; then
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_LIBKSTAT 1
14720 _ACEOF
14721
14722 LIBS="-lkstat $LIBS"
14723
14724 fi
14725
14726 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14727
14728 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14729 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14730 # to get the right answer into the cache.
14731 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14732 if test $ac_have_func = no; then
14733 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14734 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14735 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738 ac_check_lib_save_LIBS=$LIBS
14739 LIBS="-lelf $LIBS"
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746
14747 /* Override any gcc2 internal prototype to avoid an error. */
14748 #ifdef __cplusplus
14749 extern "C"
14750 #endif
14751 /* We use char because int might match the return type of a gcc2
14752 builtin and then its argument prototype would still apply. */
14753 char elf_begin ();
14754 int
14755 main ()
14756 {
14757 elf_begin ();
14758 ;
14759 return 0;
14760 }
14761 _ACEOF
14762 rm -f conftest.$ac_objext conftest$ac_exeext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14764 (eval $ac_link) 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } &&
14771 { ac_try='test -z "$ac_c_werror_flag"
14772 || test ! -s conftest.err'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest$ac_exeext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_cv_lib_elf_elf_begin=yes
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14788
14789 ac_cv_lib_elf_elf_begin=no
14790 fi
14791 rm -f conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_check_lib_save_LIBS
14794 fi
14795 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14796 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14797 if test $ac_cv_lib_elf_elf_begin = yes; then
14798 LIBS="-lelf $LIBS"
14799 fi
14800
14801 fi
14802 if test $ac_have_func = no; then
14803 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14804 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14805 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808 ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lkvm $LIBS"
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816
14817 /* Override any gcc2 internal prototype to avoid an error. */
14818 #ifdef __cplusplus
14819 extern "C"
14820 #endif
14821 /* We use char because int might match the return type of a gcc2
14822 builtin and then its argument prototype would still apply. */
14823 char kvm_open ();
14824 int
14825 main ()
14826 {
14827 kvm_open ();
14828 ;
14829 return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834 (eval $ac_link) 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest$ac_exeext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_lib_kvm_kvm_open=yes
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 ac_cv_lib_kvm_kvm_open=no
14860 fi
14861 rm -f conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14864 fi
14865 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14866 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14867 if test $ac_cv_lib_kvm_kvm_open = yes; then
14868 LIBS="-lkvm $LIBS"
14869 fi
14870
14871 # Check for the 4.4BSD definition of getloadavg.
14872 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14873 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14874 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 ac_check_lib_save_LIBS=$LIBS
14878 LIBS="-lutil $LIBS"
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885
14886 /* Override any gcc2 internal prototype to avoid an error. */
14887 #ifdef __cplusplus
14888 extern "C"
14889 #endif
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14892 char getloadavg ();
14893 int
14894 main ()
14895 {
14896 getloadavg ();
14897 ;
14898 return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_lib_util_getloadavg=yes
14924 else
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_cv_lib_util_getloadavg=no
14929 fi
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14933 fi
14934 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14935 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14936 if test $ac_cv_lib_util_getloadavg = yes; then
14937 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14938 fi
14939
14940 fi
14941
14942 if test $ac_have_func = no; then
14943 # There is a commonly available library for RS/6000 AIX.
14944 # Since it is not a standard part of AIX, it might be installed locally.
14945 ac_getloadavg_LIBS=$LIBS
14946 LIBS="-L/usr/local/lib $LIBS"
14947 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14948 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14949 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-lgetloadavg $LIBS"
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 #ifdef __cplusplus
14963 extern "C"
14964 #endif
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967 char getloadavg ();
14968 int
14969 main ()
14970 {
14971 getloadavg ();
14972 ;
14973 return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978 (eval $ac_link) 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -z "$ac_c_werror_flag"
14986 || test ! -s conftest.err'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; } &&
14992 { ac_try='test -s conftest$ac_exeext'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_cv_lib_getloadavg_getloadavg=yes
14999 else
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_cv_lib_getloadavg_getloadavg=no
15004 fi
15005 rm -f conftest.err conftest.$ac_objext \
15006 conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15008 fi
15009 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15010 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15011 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15012 LIBS="-lgetloadavg $LIBS"
15013 else
15014 LIBS=$ac_getloadavg_LIBS
15015 fi
15016
15017 fi
15018
15019 # Make sure it is really in the library, if we think we found it,
15020 # otherwise set up the replacement function.
15021
15022 for ac_func in getloadavg
15023 do
15024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15025 echo "$as_me:$LINENO: checking for $ac_func" >&5
15026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15027 if eval "test \"\${$as_ac_var+set}\" = set"; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030 cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h. */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15038 #define $ac_func innocuous_$ac_func
15039
15040 /* System header to define __stub macros and hopefully few prototypes,
15041 which can conflict with char $ac_func (); below.
15042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15043 <limits.h> exists even on freestanding compilers. */
15044
15045 #ifdef __STDC__
15046 # include <limits.h>
15047 #else
15048 # include <assert.h>
15049 #endif
15050
15051 #undef $ac_func
15052
15053 /* Override any gcc2 internal prototype to avoid an error. */
15054 #ifdef __cplusplus
15055 extern "C"
15056 {
15057 #endif
15058 /* We use char because int might match the return type of a gcc2
15059 builtin and then its argument prototype would still apply. */
15060 char $ac_func ();
15061 /* The GNU C library defines this for functions which it implements
15062 to always fail with ENOSYS. Some functions are actually named
15063 something starting with __ and the normal name is an alias. */
15064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15065 choke me
15066 #else
15067 char (*f) () = $ac_func;
15068 #endif
15069 #ifdef __cplusplus
15070 }
15071 #endif
15072
15073 int
15074 main ()
15075 {
15076 return f != $ac_func;
15077 ;
15078 return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15083 (eval $ac_link) 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag"
15091 || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest$ac_exeext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 eval "$as_ac_var=yes"
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108 eval "$as_ac_var=no"
15109 fi
15110 rm -f conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
15112 fi
15113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15115 if test `eval echo '${'$as_ac_var'}'` = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15118 _ACEOF
15119
15120 else
15121 case $LIBOBJS in
15122 "getloadavg.$ac_objext" | \
15123 *" getloadavg.$ac_objext" | \
15124 "getloadavg.$ac_objext "* | \
15125 *" getloadavg.$ac_objext "* ) ;;
15126 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15127 esac
15128
15129
15130 cat >>confdefs.h <<\_ACEOF
15131 #define C_GETLOADAVG 1
15132 _ACEOF
15133
15134 # Figure out what our getloadavg.c needs.
15135 ac_have_func=no
15136 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15137 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15138 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15139 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 fi
15142 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15143 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15144 else
15145 # Is the header compilable?
15146 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15147 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 $ac_includes_default
15155 #include <sys/dg_sys_info.h>
15156 _ACEOF
15157 rm -f conftest.$ac_objext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159 (eval $ac_compile) 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag"
15167 || test ! -s conftest.err'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_header_compiler=yes
15180 else
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 ac_header_compiler=no
15185 fi
15186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15188 echo "${ECHO_T}$ac_header_compiler" >&6
15189
15190 # Is the header present?
15191 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15192 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #include <sys/dg_sys_info.h>
15200 _ACEOF
15201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } >/dev/null; then
15209 if test -s conftest.err; then
15210 ac_cpp_err=$ac_c_preproc_warn_flag
15211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15212 else
15213 ac_cpp_err=
15214 fi
15215 else
15216 ac_cpp_err=yes
15217 fi
15218 if test -z "$ac_cpp_err"; then
15219 ac_header_preproc=yes
15220 else
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_header_preproc=no
15225 fi
15226 rm -f conftest.err conftest.$ac_ext
15227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15228 echo "${ECHO_T}$ac_header_preproc" >&6
15229
15230 # So? What about this header?
15231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15232 yes:no: )
15233 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15234 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15236 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15237 ac_header_preproc=yes
15238 ;;
15239 no:yes:* )
15240 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15241 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15243 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15245 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15247 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15249 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15251 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15252 (
15253 cat <<\_ASBOX
15254 ## ------------------------------------------ ##
15255 ## Report this to the AC_PACKAGE_NAME lists. ##
15256 ## ------------------------------------------ ##
15257 _ASBOX
15258 ) |
15259 sed "s/^/$as_me: WARNING: /" >&2
15260 ;;
15261 esac
15262 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15263 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15264 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15268 fi
15269 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15270 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15271
15272 fi
15273 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15274 ac_have_func=yes
15275
15276 cat >>confdefs.h <<\_ACEOF
15277 #define DGUX 1
15278 _ACEOF
15279
15280
15281 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15282 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15283 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286 ac_check_lib_save_LIBS=$LIBS
15287 LIBS="-ldgc $LIBS"
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h. */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294
15295 /* Override any gcc2 internal prototype to avoid an error. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 /* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15301 char dg_sys_info ();
15302 int
15303 main ()
15304 {
15305 dg_sys_info ();
15306 ;
15307 return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312 (eval $ac_link) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag"
15320 || test ! -s conftest.err'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest$ac_exeext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_cv_lib_dgc_dg_sys_info=yes
15333 else
15334 echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15336
15337 ac_cv_lib_dgc_dg_sys_info=no
15338 fi
15339 rm -f conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15341 LIBS=$ac_check_lib_save_LIBS
15342 fi
15343 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15344 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15345 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15346 cat >>confdefs.h <<_ACEOF
15347 #define HAVE_LIBDGC 1
15348 _ACEOF
15349
15350 LIBS="-ldgc $LIBS"
15351
15352 fi
15353
15354 fi
15355
15356
15357
15358 if test "${ac_cv_header_locale_h+set}" = set; then
15359 echo "$as_me:$LINENO: checking for locale.h" >&5
15360 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15361 if test "${ac_cv_header_locale_h+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 fi
15364 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15365 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15366 else
15367 # Is the header compilable?
15368 echo "$as_me:$LINENO: checking locale.h usability" >&5
15369 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15370 cat >conftest.$ac_ext <<_ACEOF
15371 /* confdefs.h. */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h. */
15376 $ac_includes_default
15377 #include <locale.h>
15378 _ACEOF
15379 rm -f conftest.$ac_objext
15380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15381 (eval $ac_compile) 2>conftest.er1
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -z "$ac_c_werror_flag"
15389 || test ! -s conftest.err'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest.$ac_objext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15398 ac_status=$?
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_header_compiler=yes
15402 else
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 ac_header_compiler=no
15407 fi
15408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15410 echo "${ECHO_T}$ac_header_compiler" >&6
15411
15412 # Is the header present?
15413 echo "$as_me:$LINENO: checking locale.h presence" >&5
15414 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 #include <locale.h>
15422 _ACEOF
15423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } >/dev/null; then
15431 if test -s conftest.err; then
15432 ac_cpp_err=$ac_c_preproc_warn_flag
15433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15434 else
15435 ac_cpp_err=
15436 fi
15437 else
15438 ac_cpp_err=yes
15439 fi
15440 if test -z "$ac_cpp_err"; then
15441 ac_header_preproc=yes
15442 else
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 ac_header_preproc=no
15447 fi
15448 rm -f conftest.err conftest.$ac_ext
15449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15450 echo "${ECHO_T}$ac_header_preproc" >&6
15451
15452 # So? What about this header?
15453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15454 yes:no: )
15455 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15456 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15458 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15459 ac_header_preproc=yes
15460 ;;
15461 no:yes:* )
15462 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15463 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15465 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15467 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15469 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15471 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15473 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15474 (
15475 cat <<\_ASBOX
15476 ## ------------------------------------------ ##
15477 ## Report this to the AC_PACKAGE_NAME lists. ##
15478 ## ------------------------------------------ ##
15479 _ASBOX
15480 ) |
15481 sed "s/^/$as_me: WARNING: /" >&2
15482 ;;
15483 esac
15484 echo "$as_me:$LINENO: checking for locale.h" >&5
15485 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15486 if test "${ac_cv_header_locale_h+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489 ac_cv_header_locale_h=$ac_header_preproc
15490 fi
15491 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15492 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15493
15494 fi
15495
15496
15497
15498 for ac_func in setlocale
15499 do
15500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15501 echo "$as_me:$LINENO: checking for $ac_func" >&5
15502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15503 if eval "test \"\${$as_ac_var+set}\" = set"; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 cat >conftest.$ac_ext <<_ACEOF
15507 /* confdefs.h. */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15514 #define $ac_func innocuous_$ac_func
15515
15516 /* System header to define __stub macros and hopefully few prototypes,
15517 which can conflict with char $ac_func (); below.
15518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15519 <limits.h> exists even on freestanding compilers. */
15520
15521 #ifdef __STDC__
15522 # include <limits.h>
15523 #else
15524 # include <assert.h>
15525 #endif
15526
15527 #undef $ac_func
15528
15529 /* Override any gcc2 internal prototype to avoid an error. */
15530 #ifdef __cplusplus
15531 extern "C"
15532 {
15533 #endif
15534 /* We use char because int might match the return type of a gcc2
15535 builtin and then its argument prototype would still apply. */
15536 char $ac_func ();
15537 /* The GNU C library defines this for functions which it implements
15538 to always fail with ENOSYS. Some functions are actually named
15539 something starting with __ and the normal name is an alias. */
15540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15541 choke me
15542 #else
15543 char (*f) () = $ac_func;
15544 #endif
15545 #ifdef __cplusplus
15546 }
15547 #endif
15548
15549 int
15550 main ()
15551 {
15552 return f != $ac_func;
15553 ;
15554 return 0;
15555 }
15556 _ACEOF
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15559 (eval $ac_link) 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -z "$ac_c_werror_flag"
15567 || test ! -s conftest.err'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } &&
15573 { ac_try='test -s conftest$ac_exeext'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15579 eval "$as_ac_var=yes"
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 eval "$as_ac_var=no"
15585 fi
15586 rm -f conftest.err conftest.$ac_objext \
15587 conftest$ac_exeext conftest.$ac_ext
15588 fi
15589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15591 if test `eval echo '${'$as_ac_var'}'` = yes; then
15592 cat >>confdefs.h <<_ACEOF
15593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15594 _ACEOF
15595
15596 fi
15597 done
15598
15599
15600 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15601 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15602 # Irix 4.0.5F has the header but not the library.
15603 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15604 ac_have_func=yes
15605
15606 cat >>confdefs.h <<\_ACEOF
15607 #define SVR4 1
15608 _ACEOF
15609
15610 fi
15611
15612 if test $ac_have_func = no; then
15613 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15614 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15615 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15616 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 fi
15619 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15620 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15621 else
15622 # Is the header compilable?
15623 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15624 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 $ac_includes_default
15632 #include <inq_stats/cpustats.h>
15633 _ACEOF
15634 rm -f conftest.$ac_objext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -z "$ac_c_werror_flag"
15644 || test ! -s conftest.err'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } &&
15650 { ac_try='test -s conftest.$ac_objext'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_header_compiler=yes
15657 else
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15660
15661 ac_header_compiler=no
15662 fi
15663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15665 echo "${ECHO_T}$ac_header_compiler" >&6
15666
15667 # Is the header present?
15668 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15669 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h. */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 #include <inq_stats/cpustats.h>
15677 _ACEOF
15678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15680 ac_status=$?
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } >/dev/null; then
15686 if test -s conftest.err; then
15687 ac_cpp_err=$ac_c_preproc_warn_flag
15688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15689 else
15690 ac_cpp_err=
15691 fi
15692 else
15693 ac_cpp_err=yes
15694 fi
15695 if test -z "$ac_cpp_err"; then
15696 ac_header_preproc=yes
15697 else
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15700
15701 ac_header_preproc=no
15702 fi
15703 rm -f conftest.err conftest.$ac_ext
15704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15705 echo "${ECHO_T}$ac_header_preproc" >&6
15706
15707 # So? What about this header?
15708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15709 yes:no: )
15710 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15711 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15713 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15714 ac_header_preproc=yes
15715 ;;
15716 no:yes:* )
15717 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15718 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15720 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15722 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15724 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15726 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15728 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15729 (
15730 cat <<\_ASBOX
15731 ## ------------------------------------------ ##
15732 ## Report this to the AC_PACKAGE_NAME lists. ##
15733 ## ------------------------------------------ ##
15734 _ASBOX
15735 ) |
15736 sed "s/^/$as_me: WARNING: /" >&2
15737 ;;
15738 esac
15739 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15740 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15741 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15745 fi
15746 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15747 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15748
15749 fi
15750 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15751 ac_have_func=yes
15752
15753 cat >>confdefs.h <<\_ACEOF
15754 #define UMAX 1
15755 _ACEOF
15756
15757
15758 cat >>confdefs.h <<\_ACEOF
15759 #define UMAX4_3 1
15760 _ACEOF
15761
15762 fi
15763
15764
15765 fi
15766
15767 if test $ac_have_func = no; then
15768 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15769 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15770 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15771 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 fi
15774 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15775 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15776 else
15777 # Is the header compilable?
15778 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15779 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h. */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 $ac_includes_default
15787 #include <sys/cpustats.h>
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -z "$ac_c_werror_flag"
15799 || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_header_compiler=yes
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ac_header_compiler=no
15817 fi
15818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820 echo "${ECHO_T}$ac_header_compiler" >&6
15821
15822 # Is the header present?
15823 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15824 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <sys/cpustats.h>
15832 _ACEOF
15833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } >/dev/null; then
15841 if test -s conftest.err; then
15842 ac_cpp_err=$ac_c_preproc_warn_flag
15843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15844 else
15845 ac_cpp_err=
15846 fi
15847 else
15848 ac_cpp_err=yes
15849 fi
15850 if test -z "$ac_cpp_err"; then
15851 ac_header_preproc=yes
15852 else
15853 echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 ac_header_preproc=no
15857 fi
15858 rm -f conftest.err conftest.$ac_ext
15859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15860 echo "${ECHO_T}$ac_header_preproc" >&6
15861
15862 # So? What about this header?
15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15864 yes:no: )
15865 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15866 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15868 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15869 ac_header_preproc=yes
15870 ;;
15871 no:yes:* )
15872 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15873 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15875 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15877 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15879 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15881 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15883 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15884 (
15885 cat <<\_ASBOX
15886 ## ------------------------------------------ ##
15887 ## Report this to the AC_PACKAGE_NAME lists. ##
15888 ## ------------------------------------------ ##
15889 _ASBOX
15890 ) |
15891 sed "s/^/$as_me: WARNING: /" >&2
15892 ;;
15893 esac
15894 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15895 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15896 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898 else
15899 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15900 fi
15901 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15902 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15903
15904 fi
15905 if test $ac_cv_header_sys_cpustats_h = yes; then
15906 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15907 #define UMAX 1
15908 _ACEOF
15909
15910 fi
15911
15912
15913 fi
15914
15915 if test $ac_have_func = no; then
15916
15917 for ac_header in mach/mach.h
15918 do
15919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15921 echo "$as_me:$LINENO: checking for $ac_header" >&5
15922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 fi
15926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15928 else
15929 # Is the header compilable?
15930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 $ac_includes_default
15939 #include <$ac_header>
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943 (eval $ac_compile) 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_c_werror_flag"
15951 || test ! -s conftest.err'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; } &&
15957 { ac_try='test -s conftest.$ac_objext'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 ac_header_compiler=yes
15964 else
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 ac_header_compiler=no
15969 fi
15970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15972 echo "${ECHO_T}$ac_header_compiler" >&6
15973
15974 # Is the header present?
15975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <$ac_header>
15984 _ACEOF
15985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } >/dev/null; then
15993 if test -s conftest.err; then
15994 ac_cpp_err=$ac_c_preproc_warn_flag
15995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15996 else
15997 ac_cpp_err=
15998 fi
15999 else
16000 ac_cpp_err=yes
16001 fi
16002 if test -z "$ac_cpp_err"; then
16003 ac_header_preproc=yes
16004 else
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 ac_header_preproc=no
16009 fi
16010 rm -f conftest.err conftest.$ac_ext
16011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16012 echo "${ECHO_T}$ac_header_preproc" >&6
16013
16014 # So? What about this header?
16015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16016 yes:no: )
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16021 ac_header_preproc=yes
16022 ;;
16023 no:yes:* )
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16036 (
16037 cat <<\_ASBOX
16038 ## ------------------------------------------ ##
16039 ## Report this to the AC_PACKAGE_NAME lists. ##
16040 ## ------------------------------------------ ##
16041 _ASBOX
16042 ) |
16043 sed "s/^/$as_me: WARNING: /" >&2
16044 ;;
16045 esac
16046 echo "$as_me:$LINENO: checking for $ac_header" >&5
16047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 else
16051 eval "$as_ac_Header=\$ac_header_preproc"
16052 fi
16053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16055
16056 fi
16057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16058 cat >>confdefs.h <<_ACEOF
16059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16060 _ACEOF
16061
16062 fi
16063
16064 done
16065
16066 fi
16067
16068
16069 for ac_header in nlist.h
16070 do
16071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16073 echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 fi
16078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16080 else
16081 # Is the header compilable?
16082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16084 cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h. */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 $ac_includes_default
16091 #include <$ac_header>
16092 _ACEOF
16093 rm -f conftest.$ac_objext
16094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16095 (eval $ac_compile) 2>conftest.er1
16096 ac_status=$?
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
16102 { ac_try='test -z "$ac_c_werror_flag"
16103 || test ! -s conftest.err'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; } &&
16109 { ac_try='test -s conftest.$ac_objext'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ac_header_compiler=yes
16116 else
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16119
16120 ac_header_compiler=no
16121 fi
16122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16124 echo "${ECHO_T}$ac_header_compiler" >&6
16125
16126 # Is the header present?
16127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16129 cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h. */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16135 #include <$ac_header>
16136 _ACEOF
16137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } >/dev/null; then
16145 if test -s conftest.err; then
16146 ac_cpp_err=$ac_c_preproc_warn_flag
16147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16148 else
16149 ac_cpp_err=
16150 fi
16151 else
16152 ac_cpp_err=yes
16153 fi
16154 if test -z "$ac_cpp_err"; then
16155 ac_header_preproc=yes
16156 else
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16159
16160 ac_header_preproc=no
16161 fi
16162 rm -f conftest.err conftest.$ac_ext
16163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164 echo "${ECHO_T}$ac_header_preproc" >&6
16165
16166 # So? What about this header?
16167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168 yes:no: )
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173 ac_header_preproc=yes
16174 ;;
16175 no:yes:* )
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16188 (
16189 cat <<\_ASBOX
16190 ## ------------------------------------------ ##
16191 ## Report this to the AC_PACKAGE_NAME lists. ##
16192 ## ------------------------------------------ ##
16193 _ASBOX
16194 ) |
16195 sed "s/^/$as_me: WARNING: /" >&2
16196 ;;
16197 esac
16198 echo "$as_me:$LINENO: checking for $ac_header" >&5
16199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203 eval "$as_ac_Header=\$ac_header_preproc"
16204 fi
16205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16207
16208 fi
16209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16210 cat >>confdefs.h <<_ACEOF
16211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16212 _ACEOF
16213 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16214 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16215 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 #include <nlist.h>
16225
16226 int
16227 main ()
16228 {
16229 static struct nlist ac_aggr;
16230 if (ac_aggr.n_un.n_name)
16231 return 0;
16232 ;
16233 return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext
16237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16238 (eval $ac_compile) 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } &&
16245 { ac_try='test -z "$ac_c_werror_flag"
16246 || test ! -s conftest.err'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest.$ac_objext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_member_struct_nlist_n_un_n_name=yes
16259 else
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h. */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 #include <nlist.h>
16270
16271 int
16272 main ()
16273 {
16274 static struct nlist ac_aggr;
16275 if (sizeof ac_aggr.n_un.n_name)
16276 return 0;
16277 ;
16278 return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16283 (eval $ac_compile) 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
16290 { ac_try='test -z "$ac_c_werror_flag"
16291 || test ! -s conftest.err'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; } &&
16297 { ac_try='test -s conftest.$ac_objext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 ac_cv_member_struct_nlist_n_un_n_name=yes
16304 else
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16307
16308 ac_cv_member_struct_nlist_n_un_n_name=no
16309 fi
16310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16311 fi
16312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16313 fi
16314 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16315 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16316 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16317
16318 cat >>confdefs.h <<_ACEOF
16319 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16320 _ACEOF
16321
16322
16323 cat >>confdefs.h <<\_ACEOF
16324 #define NLIST_NAME_UNION 1
16325 _ACEOF
16326
16327 fi
16328
16329
16330 fi
16331
16332 done
16333
16334 fi
16335 done
16336
16337
16338 # Some definitions of getloadavg require that the program be installed setgid.
16339 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16340 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16341 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16351 #ifdef LDAV_PRIVILEGED
16352 Yowza Am I SETGID yet
16353 #endif
16354 _ACEOF
16355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16356 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16357 ac_cv_func_getloadavg_setgid=yes
16358 else
16359 ac_cv_func_getloadavg_setgid=no
16360 fi
16361 rm -f conftest*
16362
16363 fi
16364 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16365 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16366 if test $ac_cv_func_getloadavg_setgid = yes; then
16367 NEED_SETGID=true
16368
16369 cat >>confdefs.h <<\_ACEOF
16370 #define GETLOADAVG_PRIVILEGED 1
16371 _ACEOF
16372
16373 else
16374 NEED_SETGID=false
16375 fi
16376
16377 if test $ac_cv_func_getloadavg_setgid = yes; then
16378 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16379 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16380 if test "${ac_cv_group_kmem+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16384 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16385 # If we got an error (system does not support symlinks), try without -L.
16386 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16387 ac_cv_group_kmem=`echo $ac_ls_output \
16388 | sed -ne 's/[ ][ ]*/ /g;
16389 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16390 / /s/.* //;p;'`
16391
16392 fi
16393 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16394 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16395 KMEM_GROUP=$ac_cv_group_kmem
16396 fi
16397 if test "x$ac_save_LIBS" = x; then
16398 GETLOADAVG_LIBS=$LIBS
16399 else
16400 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16401 fi
16402 LIBS=$ac_save_LIBS
16403
16404
16405
16406 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16407 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16408 if test "${ac_cv_sys_largefile_source+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411 while :; do
16412 ac_cv_sys_largefile_source=no
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 #include <stdio.h>
16420 int
16421 main ()
16422 {
16423 return !fseeko;
16424 ;
16425 return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext
16429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16430 (eval $ac_compile) 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag"
16438 || test ! -s conftest.err'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest.$ac_objext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 break
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 fi
16456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h. */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 #define _LARGEFILE_SOURCE 1
16464 #include <stdio.h>
16465 int
16466 main ()
16467 {
16468 return !fseeko;
16469 ;
16470 return 0;
16471 }
16472 _ACEOF
16473 rm -f conftest.$ac_objext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16475 (eval $ac_compile) 2>conftest.er1
16476 ac_status=$?
16477 grep -v '^ *+' conftest.er1 >conftest.err
16478 rm -f conftest.er1
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } &&
16482 { ac_try='test -z "$ac_c_werror_flag"
16483 || test ! -s conftest.err'
16484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; } &&
16489 { ac_try='test -s conftest.$ac_objext'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }; then
16495 ac_cv_sys_largefile_source=1; break
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 fi
16501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16502 break
16503 done
16504 fi
16505 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16506 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16507 if test "$ac_cv_sys_largefile_source" != no; then
16508
16509 cat >>confdefs.h <<_ACEOF
16510 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16511 _ACEOF
16512
16513 fi
16514 rm -f conftest*
16515
16516 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16517 # in glibc 2.1.3, but that breaks too many other things.
16518 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16519 echo "$as_me:$LINENO: checking for fseeko" >&5
16520 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16521 if test "${ac_cv_func_fseeko+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524 cat >conftest.$ac_ext <<_ACEOF
16525 /* confdefs.h. */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 #include <stdio.h>
16531 int
16532 main ()
16533 {
16534 return fseeko && fseeko (stdin, 0, 0);
16535 ;
16536 return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext conftest$ac_exeext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 (eval $ac_link) 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -z "$ac_c_werror_flag"
16549 || test ! -s conftest.err'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16561 ac_cv_func_fseeko=yes
16562 else
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16565
16566 ac_cv_func_fseeko=no
16567 fi
16568 rm -f conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 fi
16571 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16572 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16573 if test $ac_cv_func_fseeko = yes; then
16574
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_FSEEKO 1
16577 _ACEOF
16578
16579 fi
16580
16581
16582 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16583 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16584 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587 # Use it with a single arg.
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 int
16596 main ()
16597 {
16598 getpgrp (0);
16599 ;
16600 return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16605 (eval $ac_compile) 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
16612 { ac_try='test -z "$ac_c_werror_flag"
16613 || test ! -s conftest.err'
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; } &&
16619 { ac_try='test -s conftest.$ac_objext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_func_getpgrp_void=no
16626 else
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_cv_func_getpgrp_void=yes
16631 fi
16632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16633
16634 fi
16635 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16636 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16637 if test $ac_cv_func_getpgrp_void = yes; then
16638
16639 cat >>confdefs.h <<\_ACEOF
16640 #define GETPGRP_VOID 1
16641 _ACEOF
16642
16643 fi
16644
16645
16646
16647 for ac_func in strftime
16648 do
16649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16650 echo "$as_me:$LINENO: checking for $ac_func" >&5
16651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16652 if eval "test \"\${$as_ac_var+set}\" = set"; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655 cat >conftest.$ac_ext <<_ACEOF
16656 /* confdefs.h. */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16663 #define $ac_func innocuous_$ac_func
16664
16665 /* System header to define __stub macros and hopefully few prototypes,
16666 which can conflict with char $ac_func (); below.
16667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668 <limits.h> exists even on freestanding compilers. */
16669
16670 #ifdef __STDC__
16671 # include <limits.h>
16672 #else
16673 # include <assert.h>
16674 #endif
16675
16676 #undef $ac_func
16677
16678 /* Override any gcc2 internal prototype to avoid an error. */
16679 #ifdef __cplusplus
16680 extern "C"
16681 {
16682 #endif
16683 /* We use char because int might match the return type of a gcc2
16684 builtin and then its argument prototype would still apply. */
16685 char $ac_func ();
16686 /* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16690 choke me
16691 #else
16692 char (*f) () = $ac_func;
16693 #endif
16694 #ifdef __cplusplus
16695 }
16696 #endif
16697
16698 int
16699 main ()
16700 {
16701 return f != $ac_func;
16702 ;
16703 return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16708 (eval $ac_link) 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag"
16716 || test ! -s conftest.err'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest$ac_exeext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 eval "$as_ac_var=yes"
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 eval "$as_ac_var=no"
16734 fi
16735 rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16737 fi
16738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743 _ACEOF
16744
16745 else
16746 # strftime is in -lintl on SCO UNIX.
16747 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16748 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16749 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 ac_check_lib_save_LIBS=$LIBS
16753 LIBS="-lintl $LIBS"
16754 cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h. */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16760
16761 /* Override any gcc2 internal prototype to avoid an error. */
16762 #ifdef __cplusplus
16763 extern "C"
16764 #endif
16765 /* We use char because int might match the return type of a gcc2
16766 builtin and then its argument prototype would still apply. */
16767 char strftime ();
16768 int
16769 main ()
16770 {
16771 strftime ();
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 rm -f conftest.$ac_objext conftest$ac_exeext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16778 (eval $ac_link) 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag"
16786 || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_lib_intl_strftime=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_cv_lib_intl_strftime=no
16804 fi
16805 rm -f conftest.err conftest.$ac_objext \
16806 conftest$ac_exeext conftest.$ac_ext
16807 LIBS=$ac_check_lib_save_LIBS
16808 fi
16809 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16810 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16811 if test $ac_cv_lib_intl_strftime = yes; then
16812 cat >>confdefs.h <<\_ACEOF
16813 #define HAVE_STRFTIME 1
16814 _ACEOF
16815
16816 LIBS="-lintl $LIBS"
16817 fi
16818
16819 fi
16820 done
16821
16822
16823 # UNIX98 PTYs.
16824
16825 for ac_func in grantpt
16826 do
16827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 echo "$as_me:$LINENO: checking for $ac_func" >&5
16829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16830 if eval "test \"\${$as_ac_var+set}\" = set"; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841 #define $ac_func innocuous_$ac_func
16842
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char $ac_func (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16847
16848 #ifdef __STDC__
16849 # include <limits.h>
16850 #else
16851 # include <assert.h>
16852 #endif
16853
16854 #undef $ac_func
16855
16856 /* Override any gcc2 internal prototype to avoid an error. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 {
16860 #endif
16861 /* We use char because int might match the return type of a gcc2
16862 builtin and then its argument prototype would still apply. */
16863 char $ac_func ();
16864 /* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16868 choke me
16869 #else
16870 char (*f) () = $ac_func;
16871 #endif
16872 #ifdef __cplusplus
16873 }
16874 #endif
16875
16876 int
16877 main ()
16878 {
16879 return f != $ac_func;
16880 ;
16881 return 0;
16882 }
16883 _ACEOF
16884 rm -f conftest.$ac_objext conftest$ac_exeext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16886 (eval $ac_link) 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag"
16894 || test ! -s conftest.err'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest$ac_exeext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 eval "$as_ac_var=yes"
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911 eval "$as_ac_var=no"
16912 fi
16913 rm -f conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
16915 fi
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16918 if test `eval echo '${'$as_ac_var'}'` = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16921 _ACEOF
16922
16923 fi
16924 done
16925
16926
16927 # PTY-related GNU extensions.
16928
16929 for ac_func in getpt
16930 do
16931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16932 echo "$as_me:$LINENO: checking for $ac_func" >&5
16933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16934 if eval "test \"\${$as_ac_var+set}\" = set"; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937 cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h. */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16945 #define $ac_func innocuous_$ac_func
16946
16947 /* System header to define __stub macros and hopefully few prototypes,
16948 which can conflict with char $ac_func (); below.
16949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 <limits.h> exists even on freestanding compilers. */
16951
16952 #ifdef __STDC__
16953 # include <limits.h>
16954 #else
16955 # include <assert.h>
16956 #endif
16957
16958 #undef $ac_func
16959
16960 /* Override any gcc2 internal prototype to avoid an error. */
16961 #ifdef __cplusplus
16962 extern "C"
16963 {
16964 #endif
16965 /* We use char because int might match the return type of a gcc2
16966 builtin and then its argument prototype would still apply. */
16967 char $ac_func ();
16968 /* The GNU C library defines this for functions which it implements
16969 to always fail with ENOSYS. Some functions are actually named
16970 something starting with __ and the normal name is an alias. */
16971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16972 choke me
16973 #else
16974 char (*f) () = $ac_func;
16975 #endif
16976 #ifdef __cplusplus
16977 }
16978 #endif
16979
16980 int
16981 main ()
16982 {
16983 return f != $ac_func;
16984 ;
16985 return 0;
16986 }
16987 _ACEOF
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16990 (eval $ac_link) 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
16997 { ac_try='test -z "$ac_c_werror_flag"
16998 || test ! -s conftest.err'
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 eval "$as_ac_var=yes"
17011 else
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014
17015 eval "$as_ac_var=no"
17016 fi
17017 rm -f conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019 fi
17020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17022 if test `eval echo '${'$as_ac_var'}'` = yes; then
17023 cat >>confdefs.h <<_ACEOF
17024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17025 _ACEOF
17026
17027 fi
17028 done
17029
17030
17031 # Check this now, so that we will NOT find the above functions in ncurses.
17032 # That is because we have not set up to link ncurses in lib-src.
17033 # It's better to believe a function is not available
17034 # than to expect to find it in ncurses.
17035
17036 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17037 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17038 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 ac_check_lib_save_LIBS=$LIBS
17042 LIBS="-lncurses $LIBS"
17043 cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h. */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049
17050 /* Override any gcc2 internal prototype to avoid an error. */
17051 #ifdef __cplusplus
17052 extern "C"
17053 #endif
17054 /* We use char because int might match the return type of a gcc2
17055 builtin and then its argument prototype would still apply. */
17056 char tparm ();
17057 int
17058 main ()
17059 {
17060 tparm ();
17061 ;
17062 return 0;
17063 }
17064 _ACEOF
17065 rm -f conftest.$ac_objext conftest$ac_exeext
17066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17067 (eval $ac_link) 2>conftest.er1
17068 ac_status=$?
17069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } &&
17074 { ac_try='test -z "$ac_c_werror_flag"
17075 || test ! -s conftest.err'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; } &&
17081 { ac_try='test -s conftest$ac_exeext'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 ac_cv_lib_ncurses_tparm=yes
17088 else
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17091
17092 ac_cv_lib_ncurses_tparm=no
17093 fi
17094 rm -f conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096 LIBS=$ac_check_lib_save_LIBS
17097 fi
17098 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17099 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17100 if test $ac_cv_lib_ncurses_tparm = yes; then
17101 cat >>confdefs.h <<_ACEOF
17102 #define HAVE_LIBNCURSES 1
17103 _ACEOF
17104
17105 LIBS="-lncurses $LIBS"
17106
17107 fi
17108
17109
17110 # Do we need the Hesiod library to provide the support routines?
17111 if test "$with_hesiod" = yes ; then
17112 # Don't set $LIBS here -- see comments above.
17113 resolv=no
17114 echo "$as_me:$LINENO: checking for res_send" >&5
17115 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17116 if test "${ac_cv_func_res_send+set}" = set; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h. */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17127 #define res_send innocuous_res_send
17128
17129 /* System header to define __stub macros and hopefully few prototypes,
17130 which can conflict with char res_send (); below.
17131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17132 <limits.h> exists even on freestanding compilers. */
17133
17134 #ifdef __STDC__
17135 # include <limits.h>
17136 #else
17137 # include <assert.h>
17138 #endif
17139
17140 #undef res_send
17141
17142 /* Override any gcc2 internal prototype to avoid an error. */
17143 #ifdef __cplusplus
17144 extern "C"
17145 {
17146 #endif
17147 /* We use char because int might match the return type of a gcc2
17148 builtin and then its argument prototype would still apply. */
17149 char res_send ();
17150 /* The GNU C library defines this for functions which it implements
17151 to always fail with ENOSYS. Some functions are actually named
17152 something starting with __ and the normal name is an alias. */
17153 #if defined (__stub_res_send) || defined (__stub___res_send)
17154 choke me
17155 #else
17156 char (*f) () = res_send;
17157 #endif
17158 #ifdef __cplusplus
17159 }
17160 #endif
17161
17162 int
17163 main ()
17164 {
17165 return f != res_send;
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172 (eval $ac_link) 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest$ac_exeext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_func_res_send=yes
17193 else
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_cv_func_res_send=no
17198 fi
17199 rm -f conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17201 fi
17202 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17203 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17204 if test $ac_cv_func_res_send = yes; then
17205 :
17206 else
17207 echo "$as_me:$LINENO: checking for __res_send" >&5
17208 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17209 if test "${ac_cv_func___res_send+set}" = set; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 else
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 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17220 #define __res_send innocuous___res_send
17221
17222 /* System header to define __stub macros and hopefully few prototypes,
17223 which can conflict with char __res_send (); below.
17224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17225 <limits.h> exists even on freestanding compilers. */
17226
17227 #ifdef __STDC__
17228 # include <limits.h>
17229 #else
17230 # include <assert.h>
17231 #endif
17232
17233 #undef __res_send
17234
17235 /* Override any gcc2 internal prototype to avoid an error. */
17236 #ifdef __cplusplus
17237 extern "C"
17238 {
17239 #endif
17240 /* We use char because int might match the return type of a gcc2
17241 builtin and then its argument prototype would still apply. */
17242 char __res_send ();
17243 /* The GNU C library defines this for functions which it implements
17244 to always fail with ENOSYS. Some functions are actually named
17245 something starting with __ and the normal name is an alias. */
17246 #if defined (__stub___res_send) || defined (__stub_____res_send)
17247 choke me
17248 #else
17249 char (*f) () = __res_send;
17250 #endif
17251 #ifdef __cplusplus
17252 }
17253 #endif
17254
17255 int
17256 main ()
17257 {
17258 return f != __res_send;
17259 ;
17260 return 0;
17261 }
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265 (eval $ac_link) 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag"
17273 || test ! -s conftest.err'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_cv_func___res_send=yes
17286 else
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290 ac_cv_func___res_send=no
17291 fi
17292 rm -f conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17294 fi
17295 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17296 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17297 if test $ac_cv_func___res_send = yes; then
17298 :
17299 else
17300 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17301 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17302 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 ac_check_lib_save_LIBS=$LIBS
17306 LIBS="-lresolv $LIBS"
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313
17314 /* Override any gcc2 internal prototype to avoid an error. */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 /* We use char because int might match the return type of a gcc2
17319 builtin and then its argument prototype would still apply. */
17320 char res_send ();
17321 int
17322 main ()
17323 {
17324 res_send ();
17325 ;
17326 return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17331 (eval $ac_link) 2>conftest.er1
17332 ac_status=$?
17333 grep -v '^ *+' conftest.er1 >conftest.err
17334 rm -f conftest.er1
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag"
17339 || test ! -s conftest.err'
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest$ac_exeext'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 ac_cv_lib_resolv_res_send=yes
17352 else
17353 echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356 ac_cv_lib_resolv_res_send=no
17357 fi
17358 rm -f conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17360 LIBS=$ac_check_lib_save_LIBS
17361 fi
17362 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17363 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17364 if test $ac_cv_lib_resolv_res_send = yes; then
17365 resolv=yes
17366 else
17367 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17368 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17369 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372 ac_check_lib_save_LIBS=$LIBS
17373 LIBS="-lresolv $LIBS"
17374 cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h. */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380
17381 /* Override any gcc2 internal prototype to avoid an error. */
17382 #ifdef __cplusplus
17383 extern "C"
17384 #endif
17385 /* We use char because int might match the return type of a gcc2
17386 builtin and then its argument prototype would still apply. */
17387 char __res_send ();
17388 int
17389 main ()
17390 {
17391 __res_send ();
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398 (eval $ac_link) 2>conftest.er1
17399 ac_status=$?
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try='test -z "$ac_c_werror_flag"
17406 || test ! -s conftest.err'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; } &&
17412 { ac_try='test -s conftest$ac_exeext'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 ac_cv_lib_resolv___res_send=yes
17419 else
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423 ac_cv_lib_resolv___res_send=no
17424 fi
17425 rm -f conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17428 fi
17429 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17430 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17431 if test $ac_cv_lib_resolv___res_send = yes; then
17432 resolv=yes
17433 fi
17434
17435 fi
17436
17437 fi
17438
17439 fi
17440
17441 if test "$resolv" = yes ; then
17442 RESOLVLIB=-lresolv
17443
17444 cat >>confdefs.h <<\_ACEOF
17445 #define HAVE_LIBRESOLV 1
17446 _ACEOF
17447
17448 else
17449 RESOLVLIB=
17450 fi
17451 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17452 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17453 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456 cat >conftest.$ac_ext <<_ACEOF
17457 /* confdefs.h. */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17464 #define hes_getmailhost innocuous_hes_getmailhost
17465
17466 /* System header to define __stub macros and hopefully few prototypes,
17467 which can conflict with char hes_getmailhost (); below.
17468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17469 <limits.h> exists even on freestanding compilers. */
17470
17471 #ifdef __STDC__
17472 # include <limits.h>
17473 #else
17474 # include <assert.h>
17475 #endif
17476
17477 #undef hes_getmailhost
17478
17479 /* Override any gcc2 internal prototype to avoid an error. */
17480 #ifdef __cplusplus
17481 extern "C"
17482 {
17483 #endif
17484 /* We use char because int might match the return type of a gcc2
17485 builtin and then its argument prototype would still apply. */
17486 char hes_getmailhost ();
17487 /* The GNU C library defines this for functions which it implements
17488 to always fail with ENOSYS. Some functions are actually named
17489 something starting with __ and the normal name is an alias. */
17490 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17491 choke me
17492 #else
17493 char (*f) () = hes_getmailhost;
17494 #endif
17495 #ifdef __cplusplus
17496 }
17497 #endif
17498
17499 int
17500 main ()
17501 {
17502 return f != hes_getmailhost;
17503 ;
17504 return 0;
17505 }
17506 _ACEOF
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>conftest.er1
17510 ac_status=$?
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try='test -z "$ac_c_werror_flag"
17517 || test ! -s conftest.err'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 ac_cv_func_hes_getmailhost=yes
17530 else
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534 ac_cv_func_hes_getmailhost=no
17535 fi
17536 rm -f conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538 fi
17539 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17540 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17541 if test $ac_cv_func_hes_getmailhost = yes; then
17542 :
17543 else
17544 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17545 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17546 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549 ac_check_lib_save_LIBS=$LIBS
17550 LIBS="-lhesiod $RESOLVLIB $LIBS"
17551 cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h. */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557
17558 /* Override any gcc2 internal prototype to avoid an error. */
17559 #ifdef __cplusplus
17560 extern "C"
17561 #endif
17562 /* We use char because int might match the return type of a gcc2
17563 builtin and then its argument prototype would still apply. */
17564 char hes_getmailhost ();
17565 int
17566 main ()
17567 {
17568 hes_getmailhost ();
17569 ;
17570 return 0;
17571 }
17572 _ACEOF
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17575 (eval $ac_link) 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag"
17583 || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest$ac_exeext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_lib_hesiod_hes_getmailhost=yes
17596 else
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 ac_cv_lib_hesiod_hes_getmailhost=no
17601 fi
17602 rm -f conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
17604 LIBS=$ac_check_lib_save_LIBS
17605 fi
17606 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17607 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17608 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17609
17610 cat >>confdefs.h <<\_ACEOF
17611 #define HAVE_LIBHESIOD 1
17612 _ACEOF
17613
17614 else
17615 :
17616 fi
17617
17618 fi
17619
17620 fi
17621
17622 # These tell us which Kerberos-related libraries to use.
17623 if test "${with_kerberos+set}" = set; then
17624
17625 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17626 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17627 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 ac_check_lib_save_LIBS=$LIBS
17631 LIBS="-lcom_err $LIBS"
17632 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638
17639 /* Override any gcc2 internal prototype to avoid an error. */
17640 #ifdef __cplusplus
17641 extern "C"
17642 #endif
17643 /* We use char because int might match the return type of a gcc2
17644 builtin and then its argument prototype would still apply. */
17645 char com_err ();
17646 int
17647 main ()
17648 {
17649 com_err ();
17650 ;
17651 return 0;
17652 }
17653 _ACEOF
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17656 (eval $ac_link) 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try='test -z "$ac_c_werror_flag"
17664 || test ! -s conftest.err'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest$ac_exeext'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_cv_lib_com_err_com_err=yes
17677 else
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ac_cv_lib_com_err_com_err=no
17682 fi
17683 rm -f conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS=$ac_check_lib_save_LIBS
17686 fi
17687 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17688 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17689 if test $ac_cv_lib_com_err_com_err = yes; then
17690 cat >>confdefs.h <<_ACEOF
17691 #define HAVE_LIBCOM_ERR 1
17692 _ACEOF
17693
17694 LIBS="-lcom_err $LIBS"
17695
17696 fi
17697
17698
17699 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17700 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17701 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704 ac_check_lib_save_LIBS=$LIBS
17705 LIBS="-lk5crypto $LIBS"
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712
17713 /* Override any gcc2 internal prototype to avoid an error. */
17714 #ifdef __cplusplus
17715 extern "C"
17716 #endif
17717 /* We use char because int might match the return type of a gcc2
17718 builtin and then its argument prototype would still apply. */
17719 char mit_des_cbc_encrypt ();
17720 int
17721 main ()
17722 {
17723 mit_des_cbc_encrypt ();
17724 ;
17725 return 0;
17726 }
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17751 else
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17756 fi
17757 rm -f conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17759 LIBS=$ac_check_lib_save_LIBS
17760 fi
17761 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17762 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17763 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17764 cat >>confdefs.h <<_ACEOF
17765 #define HAVE_LIBK5CRYPTO 1
17766 _ACEOF
17767
17768 LIBS="-lk5crypto $LIBS"
17769
17770 fi
17771
17772
17773 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17774 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17775 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778 ac_check_lib_save_LIBS=$LIBS
17779 LIBS="-lcrypto $LIBS"
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h. */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786
17787 /* Override any gcc2 internal prototype to avoid an error. */
17788 #ifdef __cplusplus
17789 extern "C"
17790 #endif
17791 /* We use char because int might match the return type of a gcc2
17792 builtin and then its argument prototype would still apply. */
17793 char mit_des_cbc_encrypt ();
17794 int
17795 main ()
17796 {
17797 mit_des_cbc_encrypt ();
17798 ;
17799 return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17804 (eval $ac_link) 2>conftest.er1
17805 ac_status=$?
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag"
17812 || test ! -s conftest.err'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest$ac_exeext'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17825 else
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17830 fi
17831 rm -f conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17834 fi
17835 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17836 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17837 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_LIBCRYPTO 1
17840 _ACEOF
17841
17842 LIBS="-lcrypto $LIBS"
17843
17844 fi
17845
17846
17847 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17848 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17849 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852 ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-lkrb5 $LIBS"
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860
17861 /* Override any gcc2 internal prototype to avoid an error. */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 /* We use char because int might match the return type of a gcc2
17866 builtin and then its argument prototype would still apply. */
17867 char krb5_init_context ();
17868 int
17869 main ()
17870 {
17871 krb5_init_context ();
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_lib_krb5_krb5_init_context=yes
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903 ac_cv_lib_krb5_krb5_init_context=no
17904 fi
17905 rm -f conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17908 fi
17909 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17910 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17911 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17912 cat >>confdefs.h <<_ACEOF
17913 #define HAVE_LIBKRB5 1
17914 _ACEOF
17915
17916 LIBS="-lkrb5 $LIBS"
17917
17918 fi
17919
17920 if test "${with_kerberos5+set}" != set; then
17921
17922 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17923 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17924 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927 ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-ldes425 $LIBS"
17929 cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h. */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17935
17936 /* Override any gcc2 internal prototype to avoid an error. */
17937 #ifdef __cplusplus
17938 extern "C"
17939 #endif
17940 /* We use char because int might match the return type of a gcc2
17941 builtin and then its argument prototype would still apply. */
17942 char des_cbc_encrypt ();
17943 int
17944 main ()
17945 {
17946 des_cbc_encrypt ();
17947 ;
17948 return 0;
17949 }
17950 _ACEOF
17951 rm -f conftest.$ac_objext conftest$ac_exeext
17952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17953 (eval $ac_link) 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); } &&
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_cv_lib_des425_des_cbc_encrypt=yes
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 ac_cv_lib_des425_des_cbc_encrypt=no
17979 fi
17980 rm -f conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17983 fi
17984 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17985 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17986 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17987 cat >>confdefs.h <<_ACEOF
17988 #define HAVE_LIBDES425 1
17989 _ACEOF
17990
17991 LIBS="-ldes425 $LIBS"
17992
17993 else
17994
17995 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17996 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17997 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000 ac_check_lib_save_LIBS=$LIBS
18001 LIBS="-ldes $LIBS"
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h. */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008
18009 /* Override any gcc2 internal prototype to avoid an error. */
18010 #ifdef __cplusplus
18011 extern "C"
18012 #endif
18013 /* We use char because int might match the return type of a gcc2
18014 builtin and then its argument prototype would still apply. */
18015 char des_cbc_encrypt ();
18016 int
18017 main ()
18018 {
18019 des_cbc_encrypt ();
18020 ;
18021 return 0;
18022 }
18023 _ACEOF
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18026 (eval $ac_link) 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag"
18034 || test ! -s conftest.err'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest$ac_exeext'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 ac_cv_lib_des_des_cbc_encrypt=yes
18047 else
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 ac_cv_lib_des_des_cbc_encrypt=no
18052 fi
18053 rm -f conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18055 LIBS=$ac_check_lib_save_LIBS
18056 fi
18057 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18058 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18059 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18060 cat >>confdefs.h <<_ACEOF
18061 #define HAVE_LIBDES 1
18062 _ACEOF
18063
18064 LIBS="-ldes $LIBS"
18065
18066 fi
18067
18068 fi
18069
18070
18071 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18072 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18073 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076 ac_check_lib_save_LIBS=$LIBS
18077 LIBS="-lkrb4 $LIBS"
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h. */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084
18085 /* Override any gcc2 internal prototype to avoid an error. */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 /* We use char because int might match the return type of a gcc2
18090 builtin and then its argument prototype would still apply. */
18091 char krb_get_cred ();
18092 int
18093 main ()
18094 {
18095 krb_get_cred ();
18096 ;
18097 return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 ac_cv_lib_krb4_krb_get_cred=yes
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_cv_lib_krb4_krb_get_cred=no
18128 fi
18129 rm -f conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18132 fi
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18134 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18135 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18136 cat >>confdefs.h <<_ACEOF
18137 #define HAVE_LIBKRB4 1
18138 _ACEOF
18139
18140 LIBS="-lkrb4 $LIBS"
18141
18142 else
18143
18144 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18145 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18146 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 ac_check_lib_save_LIBS=$LIBS
18150 LIBS="-lkrb $LIBS"
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157
18158 /* Override any gcc2 internal prototype to avoid an error. */
18159 #ifdef __cplusplus
18160 extern "C"
18161 #endif
18162 /* We use char because int might match the return type of a gcc2
18163 builtin and then its argument prototype would still apply. */
18164 char krb_get_cred ();
18165 int
18166 main ()
18167 {
18168 krb_get_cred ();
18169 ;
18170 return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175 (eval $ac_link) 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest$ac_exeext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 ac_cv_lib_krb_krb_get_cred=yes
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200 ac_cv_lib_krb_krb_get_cred=no
18201 fi
18202 rm -f conftest.err conftest.$ac_objext \
18203 conftest$ac_exeext conftest.$ac_ext
18204 LIBS=$ac_check_lib_save_LIBS
18205 fi
18206 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18207 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18208 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define HAVE_LIBKRB 1
18211 _ACEOF
18212
18213 LIBS="-lkrb $LIBS"
18214
18215 fi
18216
18217 fi
18218
18219 fi
18220
18221 if test "${with_kerberos5+set}" = set; then
18222
18223 for ac_header in krb5.h
18224 do
18225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18227 echo "$as_me:$LINENO: checking for $ac_header" >&5
18228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 fi
18232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18234 else
18235 # Is the header compilable?
18236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h. */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 $ac_includes_default
18245 #include <$ac_header>
18246 _ACEOF
18247 rm -f conftest.$ac_objext
18248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18249 (eval $ac_compile) 2>conftest.er1
18250 ac_status=$?
18251 grep -v '^ *+' conftest.er1 >conftest.err
18252 rm -f conftest.er1
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } &&
18256 { ac_try='test -z "$ac_c_werror_flag"
18257 || test ! -s conftest.err'
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; } &&
18263 { ac_try='test -s conftest.$ac_objext'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 ac_header_compiler=yes
18270 else
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18273
18274 ac_header_compiler=no
18275 fi
18276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18278 echo "${ECHO_T}$ac_header_compiler" >&6
18279
18280 # Is the header present?
18281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18283 cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h. */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 #include <$ac_header>
18290 _ACEOF
18291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } >/dev/null; then
18299 if test -s conftest.err; then
18300 ac_cpp_err=$ac_c_preproc_warn_flag
18301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18302 else
18303 ac_cpp_err=
18304 fi
18305 else
18306 ac_cpp_err=yes
18307 fi
18308 if test -z "$ac_cpp_err"; then
18309 ac_header_preproc=yes
18310 else
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314 ac_header_preproc=no
18315 fi
18316 rm -f conftest.err conftest.$ac_ext
18317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18318 echo "${ECHO_T}$ac_header_preproc" >&6
18319
18320 # So? What about this header?
18321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18322 yes:no: )
18323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18327 ac_header_preproc=yes
18328 ;;
18329 no:yes:* )
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18342 (
18343 cat <<\_ASBOX
18344 ## ------------------------------------------ ##
18345 ## Report this to the AC_PACKAGE_NAME lists. ##
18346 ## ------------------------------------------ ##
18347 _ASBOX
18348 ) |
18349 sed "s/^/$as_me: WARNING: /" >&2
18350 ;;
18351 esac
18352 echo "$as_me:$LINENO: checking for $ac_header" >&5
18353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18356 else
18357 eval "$as_ac_Header=\$ac_header_preproc"
18358 fi
18359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18361
18362 fi
18363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18364 cat >>confdefs.h <<_ACEOF
18365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18366 _ACEOF
18367
18368 fi
18369
18370 done
18371
18372 else
18373
18374 for ac_header in des.h
18375 do
18376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18378 echo "$as_me:$LINENO: checking for $ac_header" >&5
18379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 fi
18383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18385 else
18386 # Is the header compilable?
18387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18388 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
18396 #include <$ac_header>
18397 _ACEOF
18398 rm -f conftest.$ac_objext
18399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18400 (eval $ac_compile) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
18407 { ac_try='test -z "$ac_c_werror_flag"
18408 || test ! -s conftest.err'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_header_compiler=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18424
18425 ac_header_compiler=no
18426 fi
18427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18429 echo "${ECHO_T}$ac_header_compiler" >&6
18430
18431 # Is the header present?
18432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h. */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 #include <$ac_header>
18441 _ACEOF
18442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18444 ac_status=$?
18445 grep -v '^ *+' conftest.er1 >conftest.err
18446 rm -f conftest.er1
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } >/dev/null; then
18450 if test -s conftest.err; then
18451 ac_cpp_err=$ac_c_preproc_warn_flag
18452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18453 else
18454 ac_cpp_err=
18455 fi
18456 else
18457 ac_cpp_err=yes
18458 fi
18459 if test -z "$ac_cpp_err"; then
18460 ac_header_preproc=yes
18461 else
18462 echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18464
18465 ac_header_preproc=no
18466 fi
18467 rm -f conftest.err conftest.$ac_ext
18468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18469 echo "${ECHO_T}$ac_header_preproc" >&6
18470
18471 # So? What about this header?
18472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18473 yes:no: )
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18478 ac_header_preproc=yes
18479 ;;
18480 no:yes:* )
18481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18493 (
18494 cat <<\_ASBOX
18495 ## ------------------------------------------ ##
18496 ## Report this to the AC_PACKAGE_NAME lists. ##
18497 ## ------------------------------------------ ##
18498 _ASBOX
18499 ) |
18500 sed "s/^/$as_me: WARNING: /" >&2
18501 ;;
18502 esac
18503 echo "$as_me:$LINENO: checking for $ac_header" >&5
18504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508 eval "$as_ac_Header=\$ac_header_preproc"
18509 fi
18510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18512
18513 fi
18514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18515 cat >>confdefs.h <<_ACEOF
18516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18517 _ACEOF
18518
18519 else
18520
18521 for ac_header in kerberosIV/des.h
18522 do
18523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18525 echo "$as_me:$LINENO: checking for $ac_header" >&5
18526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 fi
18530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18532 else
18533 # Is the header compilable?
18534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18536 cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h. */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 $ac_includes_default
18543 #include <$ac_header>
18544 _ACEOF
18545 rm -f conftest.$ac_objext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18547 (eval $ac_compile) 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest.$ac_objext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_header_compiler=yes
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 ac_header_compiler=no
18573 fi
18574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18576 echo "${ECHO_T}$ac_header_compiler" >&6
18577
18578 # Is the header present?
18579 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18581 cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h. */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18587 #include <$ac_header>
18588 _ACEOF
18589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } >/dev/null; then
18597 if test -s conftest.err; then
18598 ac_cpp_err=$ac_c_preproc_warn_flag
18599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18600 else
18601 ac_cpp_err=
18602 fi
18603 else
18604 ac_cpp_err=yes
18605 fi
18606 if test -z "$ac_cpp_err"; then
18607 ac_header_preproc=yes
18608 else
18609 echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 ac_header_preproc=no
18613 fi
18614 rm -f conftest.err conftest.$ac_ext
18615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18616 echo "${ECHO_T}$ac_header_preproc" >&6
18617
18618 # So? What about this header?
18619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18620 yes:no: )
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18625 ac_header_preproc=yes
18626 ;;
18627 no:yes:* )
18628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18640 (
18641 cat <<\_ASBOX
18642 ## ------------------------------------------ ##
18643 ## Report this to the AC_PACKAGE_NAME lists. ##
18644 ## ------------------------------------------ ##
18645 _ASBOX
18646 ) |
18647 sed "s/^/$as_me: WARNING: /" >&2
18648 ;;
18649 esac
18650 echo "$as_me:$LINENO: checking for $ac_header" >&5
18651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 else
18655 eval "$as_ac_Header=\$ac_header_preproc"
18656 fi
18657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18659
18660 fi
18661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18662 cat >>confdefs.h <<_ACEOF
18663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18664 _ACEOF
18665
18666 else
18667
18668 for ac_header in kerberos/des.h
18669 do
18670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18672 echo "$as_me:$LINENO: checking for $ac_header" >&5
18673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 fi
18677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18679 else
18680 # Is the header compilable?
18681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18683 cat >conftest.$ac_ext <<_ACEOF
18684 /* confdefs.h. */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 $ac_includes_default
18690 #include <$ac_header>
18691 _ACEOF
18692 rm -f conftest.$ac_objext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18694 (eval $ac_compile) 2>conftest.er1
18695 ac_status=$?
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag"
18702 || test ! -s conftest.err'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest.$ac_objext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_header_compiler=yes
18715 else
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 ac_header_compiler=no
18720 fi
18721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18723 echo "${ECHO_T}$ac_header_compiler" >&6
18724
18725 # Is the header present?
18726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h. */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 #include <$ac_header>
18735 _ACEOF
18736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18738 ac_status=$?
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } >/dev/null; then
18744 if test -s conftest.err; then
18745 ac_cpp_err=$ac_c_preproc_warn_flag
18746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18747 else
18748 ac_cpp_err=
18749 fi
18750 else
18751 ac_cpp_err=yes
18752 fi
18753 if test -z "$ac_cpp_err"; then
18754 ac_header_preproc=yes
18755 else
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18758
18759 ac_header_preproc=no
18760 fi
18761 rm -f conftest.err conftest.$ac_ext
18762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18763 echo "${ECHO_T}$ac_header_preproc" >&6
18764
18765 # So? What about this header?
18766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18767 yes:no: )
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18772 ac_header_preproc=yes
18773 ;;
18774 no:yes:* )
18775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18787 (
18788 cat <<\_ASBOX
18789 ## ------------------------------------------ ##
18790 ## Report this to the AC_PACKAGE_NAME lists. ##
18791 ## ------------------------------------------ ##
18792 _ASBOX
18793 ) |
18794 sed "s/^/$as_me: WARNING: /" >&2
18795 ;;
18796 esac
18797 echo "$as_me:$LINENO: checking for $ac_header" >&5
18798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802 eval "$as_ac_Header=\$ac_header_preproc"
18803 fi
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18806
18807 fi
18808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18809 cat >>confdefs.h <<_ACEOF
18810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18811 _ACEOF
18812
18813 fi
18814
18815 done
18816
18817 fi
18818
18819 done
18820
18821 fi
18822
18823 done
18824
18825
18826 for ac_header in krb.h
18827 do
18828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18830 echo "$as_me:$LINENO: checking for $ac_header" >&5
18831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 fi
18835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18837 else
18838 # Is the header compilable?
18839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18840 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
18848 #include <$ac_header>
18849 _ACEOF
18850 rm -f conftest.$ac_objext
18851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18852 (eval $ac_compile) 2>conftest.er1
18853 ac_status=$?
18854 grep -v '^ *+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } &&
18859 { ac_try='test -z "$ac_c_werror_flag"
18860 || test ! -s conftest.err'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest.$ac_objext'
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_header_compiler=yes
18873 else
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877 ac_header_compiler=no
18878 fi
18879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18881 echo "${ECHO_T}$ac_header_compiler" >&6
18882
18883 # Is the header present?
18884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h. */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 #include <$ac_header>
18893 _ACEOF
18894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } >/dev/null; then
18902 if test -s conftest.err; then
18903 ac_cpp_err=$ac_c_preproc_warn_flag
18904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18905 else
18906 ac_cpp_err=
18907 fi
18908 else
18909 ac_cpp_err=yes
18910 fi
18911 if test -z "$ac_cpp_err"; then
18912 ac_header_preproc=yes
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 ac_header_preproc=no
18918 fi
18919 rm -f conftest.err conftest.$ac_ext
18920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18921 echo "${ECHO_T}$ac_header_preproc" >&6
18922
18923 # So? What about this header?
18924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18925 yes:no: )
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18930 ac_header_preproc=yes
18931 ;;
18932 no:yes:* )
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18945 (
18946 cat <<\_ASBOX
18947 ## ------------------------------------------ ##
18948 ## Report this to the AC_PACKAGE_NAME lists. ##
18949 ## ------------------------------------------ ##
18950 _ASBOX
18951 ) |
18952 sed "s/^/$as_me: WARNING: /" >&2
18953 ;;
18954 esac
18955 echo "$as_me:$LINENO: checking for $ac_header" >&5
18956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960 eval "$as_ac_Header=\$ac_header_preproc"
18961 fi
18962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18964
18965 fi
18966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18967 cat >>confdefs.h <<_ACEOF
18968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18969 _ACEOF
18970
18971 else
18972
18973 for ac_header in kerberosIV/krb.h
18974 do
18975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18977 echo "$as_me:$LINENO: checking for $ac_header" >&5
18978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 fi
18982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18984 else
18985 # Is the header compilable?
18986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18988 cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h. */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 $ac_includes_default
18995 #include <$ac_header>
18996 _ACEOF
18997 rm -f conftest.$ac_objext
18998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18999 (eval $ac_compile) 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag"
19007 || test ! -s conftest.err'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_header_compiler=yes
19020 else
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 ac_header_compiler=no
19025 fi
19026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19028 echo "${ECHO_T}$ac_header_compiler" >&6
19029
19030 # Is the header present?
19031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include <$ac_header>
19040 _ACEOF
19041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19043 ac_status=$?
19044 grep -v '^ *+' conftest.er1 >conftest.err
19045 rm -f conftest.er1
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } >/dev/null; then
19049 if test -s conftest.err; then
19050 ac_cpp_err=$ac_c_preproc_warn_flag
19051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19052 else
19053 ac_cpp_err=
19054 fi
19055 else
19056 ac_cpp_err=yes
19057 fi
19058 if test -z "$ac_cpp_err"; then
19059 ac_header_preproc=yes
19060 else
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064 ac_header_preproc=no
19065 fi
19066 rm -f conftest.err conftest.$ac_ext
19067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19068 echo "${ECHO_T}$ac_header_preproc" >&6
19069
19070 # So? What about this header?
19071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19072 yes:no: )
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19077 ac_header_preproc=yes
19078 ;;
19079 no:yes:* )
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19092 (
19093 cat <<\_ASBOX
19094 ## ------------------------------------------ ##
19095 ## Report this to the AC_PACKAGE_NAME lists. ##
19096 ## ------------------------------------------ ##
19097 _ASBOX
19098 ) |
19099 sed "s/^/$as_me: WARNING: /" >&2
19100 ;;
19101 esac
19102 echo "$as_me:$LINENO: checking for $ac_header" >&5
19103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 eval "$as_ac_Header=\$ac_header_preproc"
19108 fi
19109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19111
19112 fi
19113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19116 _ACEOF
19117
19118 else
19119
19120 for ac_header in kerberos/krb.h
19121 do
19122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19124 echo "$as_me:$LINENO: checking for $ac_header" >&5
19125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 fi
19129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19131 else
19132 # Is the header compilable?
19133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 $ac_includes_default
19142 #include <$ac_header>
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19146 (eval $ac_compile) 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_c_werror_flag"
19154 || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest.$ac_objext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_header_compiler=yes
19167 else
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 ac_header_compiler=no
19172 fi
19173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19175 echo "${ECHO_T}$ac_header_compiler" >&6
19176
19177 # Is the header present?
19178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h. */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 #include <$ac_header>
19187 _ACEOF
19188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } >/dev/null; then
19196 if test -s conftest.err; then
19197 ac_cpp_err=$ac_c_preproc_warn_flag
19198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19199 else
19200 ac_cpp_err=
19201 fi
19202 else
19203 ac_cpp_err=yes
19204 fi
19205 if test -z "$ac_cpp_err"; then
19206 ac_header_preproc=yes
19207 else
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_header_preproc=no
19212 fi
19213 rm -f conftest.err conftest.$ac_ext
19214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19215 echo "${ECHO_T}$ac_header_preproc" >&6
19216
19217 # So? What about this header?
19218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19219 yes:no: )
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19224 ac_header_preproc=yes
19225 ;;
19226 no:yes:* )
19227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19239 (
19240 cat <<\_ASBOX
19241 ## ------------------------------------------ ##
19242 ## Report this to the AC_PACKAGE_NAME lists. ##
19243 ## ------------------------------------------ ##
19244 _ASBOX
19245 ) |
19246 sed "s/^/$as_me: WARNING: /" >&2
19247 ;;
19248 esac
19249 echo "$as_me:$LINENO: checking for $ac_header" >&5
19250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 eval "$as_ac_Header=\$ac_header_preproc"
19255 fi
19256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19258
19259 fi
19260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19261 cat >>confdefs.h <<_ACEOF
19262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19263 _ACEOF
19264
19265 fi
19266
19267 done
19268
19269 fi
19270
19271 done
19272
19273 fi
19274
19275 done
19276
19277 fi
19278
19279 for ac_header in com_err.h
19280 do
19281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19283 echo "$as_me:$LINENO: checking for $ac_header" >&5
19284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 fi
19288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19290 else
19291 # Is the header compilable?
19292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 $ac_includes_default
19301 #include <$ac_header>
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305 (eval $ac_compile) 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_header_compiler=yes
19326 else
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 ac_header_compiler=no
19331 fi
19332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19334 echo "${ECHO_T}$ac_header_compiler" >&6
19335
19336 # Is the header present?
19337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345 #include <$ac_header>
19346 _ACEOF
19347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } >/dev/null; then
19355 if test -s conftest.err; then
19356 ac_cpp_err=$ac_c_preproc_warn_flag
19357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19358 else
19359 ac_cpp_err=
19360 fi
19361 else
19362 ac_cpp_err=yes
19363 fi
19364 if test -z "$ac_cpp_err"; then
19365 ac_header_preproc=yes
19366 else
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370 ac_header_preproc=no
19371 fi
19372 rm -f conftest.err conftest.$ac_ext
19373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19374 echo "${ECHO_T}$ac_header_preproc" >&6
19375
19376 # So? What about this header?
19377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19378 yes:no: )
19379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19383 ac_header_preproc=yes
19384 ;;
19385 no:yes:* )
19386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19398 (
19399 cat <<\_ASBOX
19400 ## ------------------------------------------ ##
19401 ## Report this to the AC_PACKAGE_NAME lists. ##
19402 ## ------------------------------------------ ##
19403 _ASBOX
19404 ) |
19405 sed "s/^/$as_me: WARNING: /" >&2
19406 ;;
19407 esac
19408 echo "$as_me:$LINENO: checking for $ac_header" >&5
19409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 else
19413 eval "$as_ac_Header=\$ac_header_preproc"
19414 fi
19415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19417
19418 fi
19419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19420 cat >>confdefs.h <<_ACEOF
19421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19422 _ACEOF
19423
19424 fi
19425
19426 done
19427
19428 fi
19429
19430 # Solaris requires -lintl if you want strerror (which calls dgettext)
19431 # to return localized messages.
19432
19433 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19434 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19435 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438 ac_check_lib_save_LIBS=$LIBS
19439 LIBS="-lintl $LIBS"
19440 cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h. */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19446
19447 /* Override any gcc2 internal prototype to avoid an error. */
19448 #ifdef __cplusplus
19449 extern "C"
19450 #endif
19451 /* We use char because int might match the return type of a gcc2
19452 builtin and then its argument prototype would still apply. */
19453 char dgettext ();
19454 int
19455 main ()
19456 {
19457 dgettext ();
19458 ;
19459 return 0;
19460 }
19461 _ACEOF
19462 rm -f conftest.$ac_objext conftest$ac_exeext
19463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19464 (eval $ac_link) 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
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); }; } &&
19478 { ac_try='test -s conftest$ac_exeext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_cv_lib_intl_dgettext=yes
19485 else
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 ac_cv_lib_intl_dgettext=no
19490 fi
19491 rm -f conftest.err conftest.$ac_objext \
19492 conftest$ac_exeext conftest.$ac_ext
19493 LIBS=$ac_check_lib_save_LIBS
19494 fi
19495 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19496 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19497 if test $ac_cv_lib_intl_dgettext = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define HAVE_LIBINTL 1
19500 _ACEOF
19501
19502 LIBS="-lintl $LIBS"
19503
19504 fi
19505
19506
19507 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19508 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19509 if test "${emacs_cv_localtime_cache+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512 if test x$ac_cv_func_tzset = xyes; then
19513 if test "$cross_compiling" = yes; then
19514 # If we have tzset, assume the worst when cross-compiling.
19515 emacs_cv_localtime_cache=yes
19516 else
19517 cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h. */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 #include <time.h>
19524 extern char **environ;
19525 unset_TZ ()
19526 {
19527 char **from, **to;
19528 for (to = from = environ; (*to = *from); from++)
19529 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19530 to++;
19531 }
19532 char TZ_GMT0[] = "TZ=GMT0";
19533 char TZ_PST8[] = "TZ=PST8";
19534 main()
19535 {
19536 time_t now = time ((time_t *) 0);
19537 int hour_GMT0, hour_unset;
19538 if (putenv (TZ_GMT0) != 0)
19539 exit (1);
19540 hour_GMT0 = localtime (&now)->tm_hour;
19541 unset_TZ ();
19542 hour_unset = localtime (&now)->tm_hour;
19543 if (putenv (TZ_PST8) != 0)
19544 exit (1);
19545 if (localtime (&now)->tm_hour == hour_GMT0)
19546 exit (1);
19547 unset_TZ ();
19548 if (localtime (&now)->tm_hour != hour_unset)
19549 exit (1);
19550 exit (0);
19551 }
19552 _ACEOF
19553 rm -f conftest$ac_exeext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19555 (eval $ac_link) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 emacs_cv_localtime_cache=no
19565 else
19566 echo "$as_me: program exited with status $ac_status" >&5
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 ( exit $ac_status )
19571 emacs_cv_localtime_cache=yes
19572 fi
19573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19574 fi
19575 else
19576 # If we lack tzset, report that localtime does not cache TZ,
19577 # since we can't invalidate the cache if we don't have tzset.
19578 emacs_cv_localtime_cache=no
19579 fi
19580 fi
19581 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19582 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19583 if test $emacs_cv_localtime_cache = yes; then
19584
19585 cat >>confdefs.h <<\_ACEOF
19586 #define LOCALTIME_CACHE 1
19587 _ACEOF
19588
19589 fi
19590
19591 if test "x$HAVE_TIMEVAL" = xyes; then
19592
19593 for ac_func in gettimeofday
19594 do
19595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19596 echo "$as_me:$LINENO: checking for $ac_func" >&5
19597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19598 if eval "test \"\${$as_ac_var+set}\" = set"; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h. */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19609 #define $ac_func innocuous_$ac_func
19610
19611 /* System header to define __stub macros and hopefully few prototypes,
19612 which can conflict with char $ac_func (); below.
19613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19614 <limits.h> exists even on freestanding compilers. */
19615
19616 #ifdef __STDC__
19617 # include <limits.h>
19618 #else
19619 # include <assert.h>
19620 #endif
19621
19622 #undef $ac_func
19623
19624 /* Override any gcc2 internal prototype to avoid an error. */
19625 #ifdef __cplusplus
19626 extern "C"
19627 {
19628 #endif
19629 /* We use char because int might match the return type of a gcc2
19630 builtin and then its argument prototype would still apply. */
19631 char $ac_func ();
19632 /* The GNU C library defines this for functions which it implements
19633 to always fail with ENOSYS. Some functions are actually named
19634 something starting with __ and the normal name is an alias. */
19635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19636 choke me
19637 #else
19638 char (*f) () = $ac_func;
19639 #endif
19640 #ifdef __cplusplus
19641 }
19642 #endif
19643
19644 int
19645 main ()
19646 {
19647 return f != $ac_func;
19648 ;
19649 return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654 (eval $ac_link) 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest$ac_exeext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 eval "$as_ac_var=yes"
19675 else
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 eval "$as_ac_var=no"
19680 fi
19681 rm -f conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19683 fi
19684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19686 if test `eval echo '${'$as_ac_var'}'` = yes; then
19687 cat >>confdefs.h <<_ACEOF
19688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19689 _ACEOF
19690
19691 fi
19692 done
19693
19694 if test $ac_cv_func_gettimeofday = yes; then
19695 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19696 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19697 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706
19707 #ifdef TIME_WITH_SYS_TIME
19708 #include <sys/time.h>
19709 #include <time.h>
19710 #else
19711 #ifdef HAVE_SYS_TIME_H
19712 #include <sys/time.h>
19713 #else
19714 #include <time.h>
19715 #endif
19716 #endif
19717 int
19718 main ()
19719 {
19720 struct timeval time;
19721 gettimeofday (&time, 0);
19722 ;
19723 return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728 (eval $ac_compile) 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest.$ac_objext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 emacs_cv_gettimeofday_two_arguments=yes
19749 else
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 emacs_cv_gettimeofday_two_arguments=no
19754 fi
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 fi
19757 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19758 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19759 if test $emacs_cv_gettimeofday_two_arguments = no; then
19760
19761 cat >>confdefs.h <<\_ACEOF
19762 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19763 _ACEOF
19764
19765 fi
19766 fi
19767 fi
19768
19769 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19770 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19771 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19772 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 #include <sys/types.h>
19782 #include <$ac_cv_struct_tm>
19783
19784
19785 int
19786 main ()
19787 {
19788 static struct tm ac_aggr;
19789 if (ac_aggr.tm_zone)
19790 return 0;
19791 ;
19792 return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest.$ac_objext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ac_cv_member_struct_tm_tm_zone=yes
19818 else
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h. */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 #include <sys/types.h>
19829 #include <$ac_cv_struct_tm>
19830
19831
19832 int
19833 main ()
19834 {
19835 static struct tm ac_aggr;
19836 if (sizeof ac_aggr.tm_zone)
19837 return 0;
19838 ;
19839 return 0;
19840 }
19841 _ACEOF
19842 rm -f conftest.$ac_objext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19844 (eval $ac_compile) 2>conftest.er1
19845 ac_status=$?
19846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
19851 { ac_try='test -z "$ac_c_werror_flag"
19852 || test ! -s conftest.err'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest.$ac_objext'
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19861 ac_status=$?
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_cv_member_struct_tm_tm_zone=yes
19865 else
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19868
19869 ac_cv_member_struct_tm_tm_zone=no
19870 fi
19871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19872 fi
19873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19874 fi
19875 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19876 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19877 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19878
19879 cat >>confdefs.h <<_ACEOF
19880 #define HAVE_STRUCT_TM_TM_ZONE 1
19881 _ACEOF
19882
19883
19884 fi
19885
19886 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19887
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE_TM_ZONE 1
19890 _ACEOF
19891
19892 else
19893 echo "$as_me:$LINENO: checking for tzname" >&5
19894 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19895 if test "${ac_cv_var_tzname+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 #include <time.h>
19905 #ifndef tzname /* For SGI. */
19906 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19907 #endif
19908
19909 int
19910 main ()
19911 {
19912 atoi(*tzname);
19913 ;
19914 return 0;
19915 }
19916 _ACEOF
19917 rm -f conftest.$ac_objext conftest$ac_exeext
19918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>conftest.er1
19920 ac_status=$?
19921 grep -v '^ *+' conftest.er1 >conftest.err
19922 rm -f conftest.er1
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } &&
19926 { ac_try='test -z "$ac_c_werror_flag"
19927 || test ! -s conftest.err'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; } &&
19933 { ac_try='test -s conftest$ac_exeext'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; }; then
19939 ac_cv_var_tzname=yes
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944 ac_cv_var_tzname=no
19945 fi
19946 rm -f conftest.err conftest.$ac_objext \
19947 conftest$ac_exeext conftest.$ac_ext
19948 fi
19949 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19950 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19951 if test $ac_cv_var_tzname = yes; then
19952
19953 cat >>confdefs.h <<\_ACEOF
19954 #define HAVE_TZNAME 1
19955 _ACEOF
19956
19957 fi
19958 fi
19959
19960
19961 if test "$ac_cv_func_gettimeofday" = yes; then
19962 echo "$as_me:$LINENO: checking for struct timezone" >&5
19963 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19964 if test "${emacs_cv_struct_timezone+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 #include <sys/time.h>
19974 int
19975 main ()
19976 {
19977 struct timezone tz;
19978 ;
19979 return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984 (eval $ac_compile) 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 if test "$cross_compiling" = yes; then
20005 emacs_cv_struct_timezone=yes
20006 else
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h. */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013
20014 #ifdef TIME_WITH_SYS_TIME
20015 #include <sys/time.h>
20016 #include <time.h>
20017 #else
20018 #ifdef HAVE_SYS_TIME_H
20019 #include <sys/time.h>
20020 #else
20021 #include <time.h>
20022 #endif
20023 #endif
20024 main () {
20025 struct timeval time;
20026 struct timezone dummy;
20027 exit (gettimeofday (&time, &dummy));
20028 }
20029 _ACEOF
20030 rm -f conftest$ac_exeext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20032 (eval $ac_link) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20041 emacs_cv_struct_timezone=yes
20042 else
20043 echo "$as_me: program exited with status $ac_status" >&5
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047 ( exit $ac_status )
20048 emacs_cv_struct_timezone=no
20049 fi
20050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20051 fi
20052 else
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 emacs_cv_struct_timezone=no
20057 fi
20058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20059 fi
20060 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20061 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20062 fi
20063
20064 ok_so_far=yes
20065 echo "$as_me:$LINENO: checking for socket" >&5
20066 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20067 if test "${ac_cv_func_socket+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20078 #define socket innocuous_socket
20079
20080 /* System header to define __stub macros and hopefully few prototypes,
20081 which can conflict with char socket (); below.
20082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083 <limits.h> exists even on freestanding compilers. */
20084
20085 #ifdef __STDC__
20086 # include <limits.h>
20087 #else
20088 # include <assert.h>
20089 #endif
20090
20091 #undef socket
20092
20093 /* Override any gcc2 internal prototype to avoid an error. */
20094 #ifdef __cplusplus
20095 extern "C"
20096 {
20097 #endif
20098 /* We use char because int might match the return type of a gcc2
20099 builtin and then its argument prototype would still apply. */
20100 char socket ();
20101 /* The GNU C library defines this for functions which it implements
20102 to always fail with ENOSYS. Some functions are actually named
20103 something starting with __ and the normal name is an alias. */
20104 #if defined (__stub_socket) || defined (__stub___socket)
20105 choke me
20106 #else
20107 char (*f) () = socket;
20108 #endif
20109 #ifdef __cplusplus
20110 }
20111 #endif
20112
20113 int
20114 main ()
20115 {
20116 return f != socket;
20117 ;
20118 return 0;
20119 }
20120 _ACEOF
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20123 (eval $ac_link) 2>conftest.er1
20124 ac_status=$?
20125 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
20130 { ac_try='test -z "$ac_c_werror_flag"
20131 || test ! -s conftest.err'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_func_socket=yes
20144 else
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148 ac_cv_func_socket=no
20149 fi
20150 rm -f conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152 fi
20153 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20154 echo "${ECHO_T}$ac_cv_func_socket" >&6
20155 if test $ac_cv_func_socket = yes; then
20156 :
20157 else
20158 ok_so_far=no
20159 fi
20160
20161 if test $ok_so_far = yes; then
20162 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20163 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20164 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20165 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167 fi
20168 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20169 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20170 else
20171 # Is the header compilable?
20172 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20173 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h. */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 $ac_includes_default
20181 #include <netinet/in.h>
20182 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest.$ac_objext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_header_compiler=yes
20206 else
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210 ac_header_compiler=no
20211 fi
20212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20214 echo "${ECHO_T}$ac_header_compiler" >&6
20215
20216 # Is the header present?
20217 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20218 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 #include <netinet/in.h>
20226 _ACEOF
20227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } >/dev/null; then
20235 if test -s conftest.err; then
20236 ac_cpp_err=$ac_c_preproc_warn_flag
20237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20238 else
20239 ac_cpp_err=
20240 fi
20241 else
20242 ac_cpp_err=yes
20243 fi
20244 if test -z "$ac_cpp_err"; then
20245 ac_header_preproc=yes
20246 else
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250 ac_header_preproc=no
20251 fi
20252 rm -f conftest.err conftest.$ac_ext
20253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20254 echo "${ECHO_T}$ac_header_preproc" >&6
20255
20256 # So? What about this header?
20257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20258 yes:no: )
20259 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20260 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20262 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20263 ac_header_preproc=yes
20264 ;;
20265 no:yes:* )
20266 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20267 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20269 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20271 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20272 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20273 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20274 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20275 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20276 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20277 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20278 (
20279 cat <<\_ASBOX
20280 ## ------------------------------------------ ##
20281 ## Report this to the AC_PACKAGE_NAME lists. ##
20282 ## ------------------------------------------ ##
20283 _ASBOX
20284 ) |
20285 sed "s/^/$as_me: WARNING: /" >&2
20286 ;;
20287 esac
20288 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20289 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20290 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293 ac_cv_header_netinet_in_h=$ac_header_preproc
20294 fi
20295 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20296 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20297
20298 fi
20299 if test $ac_cv_header_netinet_in_h = yes; then
20300 :
20301 else
20302 ok_so_far=no
20303 fi
20304
20305
20306 fi
20307 if test $ok_so_far = yes; then
20308 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20309 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20310 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20311 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 fi
20314 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20315 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20316 else
20317 # Is the header compilable?
20318 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20319 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h. */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20327 #include <arpa/inet.h>
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331 (eval $ac_compile) 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
20338 { ac_try='test -z "$ac_c_werror_flag"
20339 || test ! -s conftest.err'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_header_compiler=yes
20352 else
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356 ac_header_compiler=no
20357 fi
20358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20360 echo "${ECHO_T}$ac_header_compiler" >&6
20361
20362 # Is the header present?
20363 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20364 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 #include <arpa/inet.h>
20372 _ACEOF
20373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } >/dev/null; then
20381 if test -s conftest.err; then
20382 ac_cpp_err=$ac_c_preproc_warn_flag
20383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20384 else
20385 ac_cpp_err=
20386 fi
20387 else
20388 ac_cpp_err=yes
20389 fi
20390 if test -z "$ac_cpp_err"; then
20391 ac_header_preproc=yes
20392 else
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396 ac_header_preproc=no
20397 fi
20398 rm -f conftest.err conftest.$ac_ext
20399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20400 echo "${ECHO_T}$ac_header_preproc" >&6
20401
20402 # So? What about this header?
20403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20404 yes:no: )
20405 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20406 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20407 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20408 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20409 ac_header_preproc=yes
20410 ;;
20411 no:yes:* )
20412 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20413 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20415 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20417 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20419 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20421 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20422 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20423 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20424 (
20425 cat <<\_ASBOX
20426 ## ------------------------------------------ ##
20427 ## Report this to the AC_PACKAGE_NAME lists. ##
20428 ## ------------------------------------------ ##
20429 _ASBOX
20430 ) |
20431 sed "s/^/$as_me: WARNING: /" >&2
20432 ;;
20433 esac
20434 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20435 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20436 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 else
20439 ac_cv_header_arpa_inet_h=$ac_header_preproc
20440 fi
20441 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20442 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20443
20444 fi
20445 if test $ac_cv_header_arpa_inet_h = yes; then
20446 :
20447 else
20448 ok_so_far=no
20449 fi
20450
20451
20452 fi
20453 if test $ok_so_far = yes; then
20454
20455 cat >>confdefs.h <<\_ACEOF
20456 #define HAVE_INET_SOCKETS 1
20457 _ACEOF
20458
20459 fi
20460
20461
20462 for ac_header in sys/ioctl.h
20463 do
20464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20466 echo "$as_me:$LINENO: checking for $ac_header" >&5
20467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 fi
20471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20473 else
20474 # Is the header compilable?
20475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h. */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 #include <$ac_header>
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20488 (eval $ac_compile) 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag"
20496 || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest.$ac_objext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_header_compiler=yes
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513 ac_header_compiler=no
20514 fi
20515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20517 echo "${ECHO_T}$ac_header_compiler" >&6
20518
20519 # Is the header present?
20520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20522 cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h. */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 #include <$ac_header>
20529 _ACEOF
20530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20532 ac_status=$?
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } >/dev/null; then
20538 if test -s conftest.err; then
20539 ac_cpp_err=$ac_c_preproc_warn_flag
20540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20541 else
20542 ac_cpp_err=
20543 fi
20544 else
20545 ac_cpp_err=yes
20546 fi
20547 if test -z "$ac_cpp_err"; then
20548 ac_header_preproc=yes
20549 else
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553 ac_header_preproc=no
20554 fi
20555 rm -f conftest.err conftest.$ac_ext
20556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20557 echo "${ECHO_T}$ac_header_preproc" >&6
20558
20559 # So? What about this header?
20560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20561 yes:no: )
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20566 ac_header_preproc=yes
20567 ;;
20568 no:yes:* )
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20581 (
20582 cat <<\_ASBOX
20583 ## ------------------------------------------ ##
20584 ## Report this to the AC_PACKAGE_NAME lists. ##
20585 ## ------------------------------------------ ##
20586 _ASBOX
20587 ) |
20588 sed "s/^/$as_me: WARNING: /" >&2
20589 ;;
20590 esac
20591 echo "$as_me:$LINENO: checking for $ac_header" >&5
20592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596 eval "$as_ac_Header=\$ac_header_preproc"
20597 fi
20598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20600
20601 fi
20602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20603 cat >>confdefs.h <<_ACEOF
20604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20605 _ACEOF
20606
20607 fi
20608
20609 done
20610
20611
20612 if test -f /usr/lpp/X11/bin/smt.exp; then
20613
20614 cat >>confdefs.h <<\_ACEOF
20615 #define HAVE_AIX_SMT_EXP 1
20616 _ACEOF
20617
20618 fi
20619
20620 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20621 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20622 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20623 echo "$as_me:$LINENO: result: yes" >&5
20624 echo "${ECHO_T}yes" >&6
20625
20626 cat >>confdefs.h <<\_ACEOF
20627 #define HAVE_DEV_PTMX 1
20628 _ACEOF
20629
20630 else
20631 echo "$as_me:$LINENO: result: no" >&5
20632 echo "${ECHO_T}no" >&6
20633 fi
20634
20635 echo "$as_me:$LINENO: checking for pid_t" >&5
20636 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20637 if test "${ac_cv_type_pid_t+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640 cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h. */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 $ac_includes_default
20647 int
20648 main ()
20649 {
20650 if ((pid_t *) 0)
20651 return 0;
20652 if (sizeof (pid_t))
20653 return 0;
20654 ;
20655 return 0;
20656 }
20657 _ACEOF
20658 rm -f conftest.$ac_objext
20659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20660 (eval $ac_compile) 2>conftest.er1
20661 ac_status=$?
20662 grep -v '^ *+' conftest.er1 >conftest.err
20663 rm -f conftest.er1
20664 cat conftest.err >&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } &&
20667 { ac_try='test -z "$ac_c_werror_flag"
20668 || test ! -s conftest.err'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; } &&
20674 { ac_try='test -s conftest.$ac_objext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_type_pid_t=yes
20681 else
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 ac_cv_type_pid_t=no
20686 fi
20687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20688 fi
20689 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20690 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20691 if test $ac_cv_type_pid_t = yes; then
20692 :
20693 else
20694
20695 cat >>confdefs.h <<_ACEOF
20696 #define pid_t int
20697 _ACEOF
20698
20699 fi
20700
20701
20702
20703 for ac_header in unistd.h vfork.h
20704 do
20705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20707 echo "$as_me:$LINENO: checking for $ac_header" >&5
20708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 fi
20712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20714 else
20715 # Is the header compilable?
20716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20718 cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h. */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20724 $ac_includes_default
20725 #include <$ac_header>
20726 _ACEOF
20727 rm -f conftest.$ac_objext
20728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729 (eval $ac_compile) 2>conftest.er1
20730 ac_status=$?
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
20736 { ac_try='test -z "$ac_c_werror_flag"
20737 || test ! -s conftest.err'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest.$ac_objext'
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; }; then
20749 ac_header_compiler=yes
20750 else
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20753
20754 ac_header_compiler=no
20755 fi
20756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20758 echo "${ECHO_T}$ac_header_compiler" >&6
20759
20760 # Is the header present?
20761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h. */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 #include <$ac_header>
20770 _ACEOF
20771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20773 ac_status=$?
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } >/dev/null; then
20779 if test -s conftest.err; then
20780 ac_cpp_err=$ac_c_preproc_warn_flag
20781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20782 else
20783 ac_cpp_err=
20784 fi
20785 else
20786 ac_cpp_err=yes
20787 fi
20788 if test -z "$ac_cpp_err"; then
20789 ac_header_preproc=yes
20790 else
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 ac_header_preproc=no
20795 fi
20796 rm -f conftest.err conftest.$ac_ext
20797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20798 echo "${ECHO_T}$ac_header_preproc" >&6
20799
20800 # So? What about this header?
20801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20802 yes:no: )
20803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20807 ac_header_preproc=yes
20808 ;;
20809 no:yes:* )
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20822 (
20823 cat <<\_ASBOX
20824 ## ------------------------------------------ ##
20825 ## Report this to the AC_PACKAGE_NAME lists. ##
20826 ## ------------------------------------------ ##
20827 _ASBOX
20828 ) |
20829 sed "s/^/$as_me: WARNING: /" >&2
20830 ;;
20831 esac
20832 echo "$as_me:$LINENO: checking for $ac_header" >&5
20833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837 eval "$as_ac_Header=\$ac_header_preproc"
20838 fi
20839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20841
20842 fi
20843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20844 cat >>confdefs.h <<_ACEOF
20845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20846 _ACEOF
20847
20848 fi
20849
20850 done
20851
20852
20853
20854 for ac_func in fork vfork
20855 do
20856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20857 echo "$as_me:$LINENO: checking for $ac_func" >&5
20858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20859 if eval "test \"\${$as_ac_var+set}\" = set"; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20870 #define $ac_func innocuous_$ac_func
20871
20872 /* System header to define __stub macros and hopefully few prototypes,
20873 which can conflict with char $ac_func (); below.
20874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875 <limits.h> exists even on freestanding compilers. */
20876
20877 #ifdef __STDC__
20878 # include <limits.h>
20879 #else
20880 # include <assert.h>
20881 #endif
20882
20883 #undef $ac_func
20884
20885 /* Override any gcc2 internal prototype to avoid an error. */
20886 #ifdef __cplusplus
20887 extern "C"
20888 {
20889 #endif
20890 /* We use char because int might match the return type of a gcc2
20891 builtin and then its argument prototype would still apply. */
20892 char $ac_func ();
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20897 choke me
20898 #else
20899 char (*f) () = $ac_func;
20900 #endif
20901 #ifdef __cplusplus
20902 }
20903 #endif
20904
20905 int
20906 main ()
20907 {
20908 return f != $ac_func;
20909 ;
20910 return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try='test -z "$ac_c_werror_flag"
20923 || test ! -s conftest.err'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 eval "$as_ac_var=yes"
20936 else
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 eval "$as_ac_var=no"
20941 fi
20942 rm -f conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20944 fi
20945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20947 if test `eval echo '${'$as_ac_var'}'` = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20950 _ACEOF
20951
20952 fi
20953 done
20954
20955 if test "x$ac_cv_func_fork" = xyes; then
20956 echo "$as_me:$LINENO: checking for working fork" >&5
20957 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20958 if test "${ac_cv_func_fork_works+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 if test "$cross_compiling" = yes; then
20962 ac_cv_func_fork_works=cross
20963 else
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* By Ruediger Kuhlmann. */
20966 #include <sys/types.h>
20967 #if HAVE_UNISTD_H
20968 # include <unistd.h>
20969 #endif
20970 /* Some systems only have a dummy stub for fork() */
20971 int main ()
20972 {
20973 if (fork() < 0)
20974 exit (1);
20975 exit (0);
20976 }
20977 _ACEOF
20978 rm -f conftest$ac_exeext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980 (eval $ac_link) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }; then
20989 ac_cv_func_fork_works=yes
20990 else
20991 echo "$as_me: program exited with status $ac_status" >&5
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ( exit $ac_status )
20996 ac_cv_func_fork_works=no
20997 fi
20998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20999 fi
21000 fi
21001 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21002 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21003
21004 else
21005 ac_cv_func_fork_works=$ac_cv_func_fork
21006 fi
21007 if test "x$ac_cv_func_fork_works" = xcross; then
21008 case $host in
21009 *-*-amigaos* | *-*-msdosdjgpp*)
21010 # Override, as these systems have only a dummy fork() stub
21011 ac_cv_func_fork_works=no
21012 ;;
21013 *)
21014 ac_cv_func_fork_works=yes
21015 ;;
21016 esac
21017 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21018 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21019 fi
21020 ac_cv_func_vfork_works=$ac_cv_func_vfork
21021 if test "x$ac_cv_func_vfork" = xyes; then
21022 echo "$as_me:$LINENO: checking for working vfork" >&5
21023 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21024 if test "${ac_cv_func_vfork_works+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027 if test "$cross_compiling" = yes; then
21028 ac_cv_func_vfork_works=cross
21029 else
21030 cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h. */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 /* Thanks to Paul Eggert for this test. */
21037 #include <stdio.h>
21038 #include <stdlib.h>
21039 #include <sys/types.h>
21040 #include <sys/stat.h>
21041 #include <sys/wait.h>
21042 #if HAVE_UNISTD_H
21043 # include <unistd.h>
21044 #endif
21045 #if HAVE_VFORK_H
21046 # include <vfork.h>
21047 #endif
21048 /* On some sparc systems, changes by the child to local and incoming
21049 argument registers are propagated back to the parent. The compiler
21050 is told about this with #include <vfork.h>, but some compilers
21051 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21052 static variable whose address is put into a register that is
21053 clobbered by the vfork. */
21054 static void
21055 #ifdef __cplusplus
21056 sparc_address_test (int arg)
21057 # else
21058 sparc_address_test (arg) int arg;
21059 #endif
21060 {
21061 static pid_t child;
21062 if (!child) {
21063 child = vfork ();
21064 if (child < 0) {
21065 perror ("vfork");
21066 _exit(2);
21067 }
21068 if (!child) {
21069 arg = getpid();
21070 write(-1, "", 0);
21071 _exit (arg);
21072 }
21073 }
21074 }
21075
21076 int
21077 main ()
21078 {
21079 pid_t parent = getpid ();
21080 pid_t child;
21081
21082 sparc_address_test (0);
21083
21084 child = vfork ();
21085
21086 if (child == 0) {
21087 /* Here is another test for sparc vfork register problems. This
21088 test uses lots of local variables, at least as many local
21089 variables as main has allocated so far including compiler
21090 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21091 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21092 reuse the register of parent for one of the local variables,
21093 since it will think that parent can't possibly be used any more
21094 in this routine. Assigning to the local variable will thus
21095 munge parent in the parent process. */
21096 pid_t
21097 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21098 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21099 /* Convince the compiler that p..p7 are live; otherwise, it might
21100 use the same hardware register for all 8 local variables. */
21101 if (p != p1 || p != p2 || p != p3 || p != p4
21102 || p != p5 || p != p6 || p != p7)
21103 _exit(1);
21104
21105 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21106 from child file descriptors. If the child closes a descriptor
21107 before it execs or exits, this munges the parent's descriptor
21108 as well. Test for this by closing stdout in the child. */
21109 _exit(close(fileno(stdout)) != 0);
21110 } else {
21111 int status;
21112 struct stat st;
21113
21114 while (wait(&status) != child)
21115 ;
21116 exit(
21117 /* Was there some problem with vforking? */
21118 child < 0
21119
21120 /* Did the child fail? (This shouldn't happen.) */
21121 || status
21122
21123 /* Did the vfork/compiler bug occur? */
21124 || parent != getpid()
21125
21126 /* Did the file descriptor bug occur? */
21127 || fstat(fileno(stdout), &st) != 0
21128 );
21129 }
21130 }
21131 _ACEOF
21132 rm -f conftest$ac_exeext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21134 (eval $ac_link) 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21140 ac_status=$?
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21143 ac_cv_func_vfork_works=yes
21144 else
21145 echo "$as_me: program exited with status $ac_status" >&5
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149 ( exit $ac_status )
21150 ac_cv_func_vfork_works=no
21151 fi
21152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21153 fi
21154 fi
21155 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21156 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21157
21158 fi;
21159 if test "x$ac_cv_func_fork_works" = xcross; then
21160 ac_cv_func_vfork_works=$ac_cv_func_vfork
21161 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21162 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21163 fi
21164
21165 if test "x$ac_cv_func_vfork_works" = xyes; then
21166
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_WORKING_VFORK 1
21169 _ACEOF
21170
21171 else
21172
21173 cat >>confdefs.h <<\_ACEOF
21174 #define vfork fork
21175 _ACEOF
21176
21177 fi
21178 if test "x$ac_cv_func_fork_works" = xyes; then
21179
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_WORKING_FORK 1
21182 _ACEOF
21183
21184 fi
21185
21186
21187 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21188 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21189 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192 cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h. */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 #include <langinfo.h>
21199 int
21200 main ()
21201 {
21202 char* cs = nl_langinfo(CODESET);
21203 ;
21204 return 0;
21205 }
21206 _ACEOF
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21209 (eval $ac_link) 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_c_werror_flag"
21217 || test ! -s conftest.err'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest$ac_exeext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 emacs_cv_langinfo_codeset=yes
21230 else
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 emacs_cv_langinfo_codeset=no
21235 fi
21236 rm -f conftest.err conftest.$ac_objext \
21237 conftest$ac_exeext conftest.$ac_ext
21238
21239 fi
21240 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21241 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21242 if test $emacs_cv_langinfo_codeset = yes; then
21243
21244 cat >>confdefs.h <<\_ACEOF
21245 #define HAVE_LANGINFO_CODESET 1
21246 _ACEOF
21247
21248 fi
21249
21250 echo "$as_me:$LINENO: checking for size_t" >&5
21251 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21252 if test "${ac_cv_type_size_t+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 else
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h. */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21261 $ac_includes_default
21262 int
21263 main ()
21264 {
21265 if ((size_t *) 0)
21266 return 0;
21267 if (sizeof (size_t))
21268 return 0;
21269 ;
21270 return 0;
21271 }
21272 _ACEOF
21273 rm -f conftest.$ac_objext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275 (eval $ac_compile) 2>conftest.er1
21276 ac_status=$?
21277 grep -v '^ *+' conftest.er1 >conftest.err
21278 rm -f conftest.er1
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_c_werror_flag"
21283 || test ! -s conftest.err'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try='test -s conftest.$ac_objext'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21295 ac_cv_type_size_t=yes
21296 else
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300 ac_cv_type_size_t=no
21301 fi
21302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21303 fi
21304 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21305 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21306 if test $ac_cv_type_size_t = yes; then
21307
21308 cat >>confdefs.h <<_ACEOF
21309 #define HAVE_SIZE_T 1
21310 _ACEOF
21311
21312
21313 fi
21314
21315
21316 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21317 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21318 if test "${ac_cv_type_mbstate_t+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21320 else
21321 cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h. */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 $ac_includes_default
21328 # include <wchar.h>
21329 int
21330 main ()
21331 {
21332 mbstate_t x; return sizeof x;
21333 ;
21334 return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21339 (eval $ac_compile) 2>conftest.er1
21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try='test -s conftest.$ac_objext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_type_mbstate_t=yes
21360 else
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_cv_type_mbstate_t=no
21365 fi
21366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21367 fi
21368 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21369 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21370 if test $ac_cv_type_mbstate_t = yes; then
21371
21372 cat >>confdefs.h <<\_ACEOF
21373 #define HAVE_MBSTATE_T 1
21374 _ACEOF
21375
21376 else
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define mbstate_t int
21380 _ACEOF
21381
21382 fi
21383
21384 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21385 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21386 if test "${emacs_cv_c_restrict+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 void fred (int *restrict x);
21396 int
21397 main ()
21398 {
21399
21400 ;
21401 return 0;
21402 }
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21406 (eval $ac_compile) 2>conftest.er1
21407 ac_status=$?
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } &&
21413 { ac_try='test -z "$ac_c_werror_flag"
21414 || test ! -s conftest.err'
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; } &&
21420 { ac_try='test -s conftest.$ac_objext'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21423 ac_status=$?
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 emacs_cv_c_restrict=yes
21427 else
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 cat >conftest.$ac_ext <<_ACEOF
21432 /* confdefs.h. */
21433 _ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h. */
21437 void fred (int *__restrict x);
21438 int
21439 main ()
21440 {
21441
21442 ;
21443 return 0;
21444 }
21445 _ACEOF
21446 rm -f conftest.$ac_objext
21447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21448 (eval $ac_compile) 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
21455 { ac_try='test -z "$ac_c_werror_flag"
21456 || test ! -s conftest.err'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try='test -s conftest.$ac_objext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 emacs_cv_c_restrict=__restrict
21469 else
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 emacs_cv_c_restrict=no
21474 fi
21475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476 fi
21477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21478 fi
21479 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21480 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21481 case "$emacs_cv_c_restrict" in
21482 yes) emacs_restrict=restrict;;
21483 no) emacs_restrict="";;
21484 *) emacs_restrict="$emacs_cv_c_restrict";;
21485 esac
21486 if test "$emacs_restrict" != __restrict; then
21487
21488 cat >>confdefs.h <<_ACEOF
21489 #define __restrict $emacs_restrict
21490 _ACEOF
21491
21492 fi
21493
21494 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21495 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21496 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 else
21499 cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h. */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 void fred (int x[__restrict]);
21506 int
21507 main ()
21508 {
21509
21510 ;
21511 return 0;
21512 }
21513 _ACEOF
21514 rm -f conftest.$ac_objext
21515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21516 (eval $ac_compile) 2>conftest.er1
21517 ac_status=$?
21518 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } &&
21523 { ac_try='test -z "$ac_c_werror_flag"
21524 || test ! -s conftest.err'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; } &&
21530 { ac_try='test -s conftest.$ac_objext'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; }; then
21536 emacs_cv_c_restrict_arr=yes
21537 else
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541 emacs_cv_c_restrict_arr=no
21542 fi
21543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21544 fi
21545 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21546 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21547 if test "$emacs_cv_c_restrict_arr" = yes; then
21548
21549 cat >>confdefs.h <<\_ACEOF
21550 #define __restrict_arr __restrict
21551 _ACEOF
21552
21553 fi
21554
21555
21556
21557 # Set up the CFLAGS for real compilation, so we can substitute it.
21558 CFLAGS="$REAL_CFLAGS"
21559 CPPFLAGS="$REAL_CPPFLAGS"
21560
21561 #### Find out which version of Emacs this is.
21562 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21563 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21564 if test x"${version}" = x; then
21565 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21566 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21567 { (exit 1); exit 1; }; }
21568 fi
21569
21570 ### Specify what sort of things we'll be editing into Makefile and config.h.
21571 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607 cat >>confdefs.h <<_ACEOF
21608 #define EMACS_CONFIGURATION "${canonical}"
21609 _ACEOF
21610
21611
21612 cat >>confdefs.h <<_ACEOF
21613 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21614 _ACEOF
21615
21616
21617 cat >>confdefs.h <<_ACEOF
21618 #define config_machfile "${machfile}"
21619 _ACEOF
21620
21621
21622 cat >>confdefs.h <<_ACEOF
21623 #define config_opsysfile "${opsysfile}"
21624 _ACEOF
21625
21626
21627 cat >>confdefs.h <<_ACEOF
21628 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21629 _ACEOF
21630
21631
21632 cat >>confdefs.h <<_ACEOF
21633 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21634 _ACEOF
21635
21636
21637 cat >>confdefs.h <<_ACEOF
21638 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21639 _ACEOF
21640
21641
21642 cat >>confdefs.h <<_ACEOF
21643 #define UNEXEC_SRC ${UNEXEC_SRC}
21644 _ACEOF
21645
21646
21647 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21648
21649 cat >>confdefs.h <<\_ACEOF
21650 #define HAVE_X_WINDOWS 1
21651 _ACEOF
21652
21653 fi
21654 if test "${USE_X_TOOLKIT}" != "none" ; then
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define USE_X_TOOLKIT 1
21658 _ACEOF
21659
21660 fi
21661 if test "${HAVE_X11}" = "yes" ; then
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define HAVE_X11 1
21665 _ACEOF
21666
21667 fi
21668 if test "${HAVE_XFREE386}" = "yes" ; then
21669
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_XFREE386 1
21672 _ACEOF
21673
21674 fi
21675 if test "${HAVE_MENUS}" = "yes" ; then
21676
21677 cat >>confdefs.h <<\_ACEOF
21678 #define HAVE_MENUS 1
21679 _ACEOF
21680
21681 fi
21682 if test "${GNU_MALLOC}" = "yes" ; then
21683
21684 cat >>confdefs.h <<\_ACEOF
21685 #define GNU_MALLOC 1
21686 _ACEOF
21687
21688 fi
21689 if test "${REL_ALLOC}" = "yes" ; then
21690
21691 cat >>confdefs.h <<\_ACEOF
21692 #define REL_ALLOC 1
21693 _ACEOF
21694
21695 fi
21696
21697
21698
21699
21700
21701 #### Report on what we decided to do.
21702 #### Report GTK as a toolkit, even if it doesn't use Xt.
21703 #### It makes printing result more understandable as using GTK sets
21704 #### toolkit_scroll_bars to yes by default.
21705 if test "${HAVE_GTK}" = "yes"; then
21706 USE_X_TOOLKIT=GTK
21707 fi
21708
21709 echo "
21710 Configured for \`${canonical}'.
21711
21712 Where should the build process find the source code? ${srcdir}
21713 What operating system and machine description files should Emacs use?
21714 \`${opsysfile}' and \`${machfile}'
21715 What compiler should emacs be built with? ${CC} ${CFLAGS}
21716 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21717 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21718 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21719 What window system should Emacs use? ${window_system}
21720 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21721
21722 if test -n "${x_includes}"; then
21723 echo " Where do we find X Windows header files? ${x_includes}"
21724 else
21725 echo " Where do we find X Windows header files? Standard dirs"
21726 fi
21727 if test -n "${x_libraries}"; then
21728 echo " Where do we find X Windows libraries? ${x_libraries}"
21729 else
21730 echo " Where do we find X Windows libraries? Standard dirs"
21731 fi
21732
21733 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21734 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21735 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21736 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21737 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21738 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21739 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21740 echo
21741
21742 if test "$emacs_cv_randomheap" = warn; then
21743 { echo "$as_me:$LINENO: WARNING:
21744 **********************************************************************
21745
21746 Heap start address is randomized and no workaround is known.
21747 Emacs will probably dump core when temacs is run in the build phase.
21748 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21749 for further information.
21750
21751 **********************************************************************
21752 " >&5
21753 echo "$as_me: WARNING:
21754 **********************************************************************
21755
21756 Heap start address is randomized and no workaround is known.
21757 Emacs will probably dump core when temacs is run in the build phase.
21758 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21759 for further information.
21760
21761 **********************************************************************
21762 " >&2;}
21763 fi
21764
21765 # Remove any trailing slashes in these variables.
21766 test "${prefix}" != NONE &&
21767 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21768 test "${exec_prefix}" != NONE &&
21769 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21770
21771 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21772 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21773 ## from Makefile.c can correctly provide the arg `-traditional' to the
21774 ## C preprocessor.
21775
21776 cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h. */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 yes..yes
21783 _ACEOF
21784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21785 $EGREP "yes..yes" >/dev/null 2>&1; then
21786 CPP_NEED_TRADITIONAL=no
21787 else
21788 CPP_NEED_TRADITIONAL=yes
21789 fi
21790 rm -f conftest*
21791
21792
21793 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"
21794 ac_config_commands="$ac_config_commands default"
21795 cat >confcache <<\_ACEOF
21796 # This file is a shell script that caches the results of configure
21797 # tests run on this system so they can be shared between configure
21798 # scripts and configure runs, see configure's option --config-cache.
21799 # It is not useful on other systems. If it contains results you don't
21800 # want to keep, you may remove or edit it.
21801 #
21802 # config.status only pays attention to the cache file if you give it
21803 # the --recheck option to rerun configure.
21804 #
21805 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21806 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21807 # following values.
21808
21809 _ACEOF
21810
21811 # The following way of writing the cache mishandles newlines in values,
21812 # but we know of no workaround that is simple, portable, and efficient.
21813 # So, don't put newlines in cache variables' values.
21814 # Ultrix sh set writes to stderr and can't be redirected directly,
21815 # and sets the high bit in the cache file unless we assign to the vars.
21816 {
21817 (set) 2>&1 |
21818 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21819 *ac_space=\ *)
21820 # `set' does not quote correctly, so add quotes (double-quote
21821 # substitution turns \\\\ into \\, and sed turns \\ into \).
21822 sed -n \
21823 "s/'/'\\\\''/g;
21824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21825 ;;
21826 *)
21827 # `set' quotes correctly as required by POSIX, so do not add quotes.
21828 sed -n \
21829 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21830 ;;
21831 esac;
21832 } |
21833 sed '
21834 t clear
21835 : clear
21836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21837 t end
21838 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21839 : end' >>confcache
21840 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21841 if test -w $cache_file; then
21842 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21843 cat confcache >$cache_file
21844 else
21845 echo "not updating unwritable cache $cache_file"
21846 fi
21847 fi
21848 rm -f confcache
21849
21850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21851 # Let make expand exec_prefix.
21852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21853
21854 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21855 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21856 # trailing colons and then remove the whole line if VPATH becomes empty
21857 # (actually we leave an empty line to preserve line numbers).
21858 if test "x$srcdir" = x.; then
21859 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21860 s/:*\$(srcdir):*/:/;
21861 s/:*\${srcdir}:*/:/;
21862 s/:*@srcdir@:*/:/;
21863 s/^\([^=]*=[ ]*\):*/\1/;
21864 s/:*$//;
21865 s/^[^=]*=[ ]*$//;
21866 }'
21867 fi
21868
21869 DEFS=-DHAVE_CONFIG_H
21870
21871 ac_libobjs=
21872 ac_ltlibobjs=
21873 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21874 # 1. Remove the extension, and $U if already installed.
21875 ac_i=`echo "$ac_i" |
21876 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21877 # 2. Add them.
21878 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21879 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21880 done
21881 LIBOBJS=$ac_libobjs
21882
21883 LTLIBOBJS=$ac_ltlibobjs
21884
21885
21886
21887 : ${CONFIG_STATUS=./config.status}
21888 ac_clean_files_save=$ac_clean_files
21889 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21890 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21891 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21892 cat >$CONFIG_STATUS <<_ACEOF
21893 #! $SHELL
21894 # Generated by $as_me.
21895 # Run this file to recreate the current configuration.
21896 # Compiler output produced by configure, useful for debugging
21897 # configure, is in config.log if it exists.
21898
21899 debug=false
21900 ac_cs_recheck=false
21901 ac_cs_silent=false
21902 SHELL=\${CONFIG_SHELL-$SHELL}
21903 _ACEOF
21904
21905 cat >>$CONFIG_STATUS <<\_ACEOF
21906 ## --------------------- ##
21907 ## M4sh Initialization. ##
21908 ## --------------------- ##
21909
21910 # Be Bourne compatible
21911 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21912 emulate sh
21913 NULLCMD=:
21914 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21915 # is contrary to our usage. Disable this feature.
21916 alias -g '${1+"$@"}'='"$@"'
21917 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21918 set -o posix
21919 fi
21920 DUALCASE=1; export DUALCASE # for MKS sh
21921
21922 # Support unset when possible.
21923 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21924 as_unset=unset
21925 else
21926 as_unset=false
21927 fi
21928
21929
21930 # Work around bugs in pre-3.0 UWIN ksh.
21931 $as_unset ENV MAIL MAILPATH
21932 PS1='$ '
21933 PS2='> '
21934 PS4='+ '
21935
21936 # NLS nuisances.
21937 for as_var in \
21938 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21939 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21940 LC_TELEPHONE LC_TIME
21941 do
21942 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21943 eval $as_var=C; export $as_var
21944 else
21945 $as_unset $as_var
21946 fi
21947 done
21948
21949 # Required to use basename.
21950 if expr a : '\(a\)' >/dev/null 2>&1; then
21951 as_expr=expr
21952 else
21953 as_expr=false
21954 fi
21955
21956 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21957 as_basename=basename
21958 else
21959 as_basename=false
21960 fi
21961
21962
21963 # Name of the executable.
21964 as_me=`$as_basename "$0" ||
21965 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21966 X"$0" : 'X\(//\)$' \| \
21967 X"$0" : 'X\(/\)$' \| \
21968 . : '\(.\)' 2>/dev/null ||
21969 echo X/"$0" |
21970 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21971 /^X\/\(\/\/\)$/{ s//\1/; q; }
21972 /^X\/\(\/\).*/{ s//\1/; q; }
21973 s/.*/./; q'`
21974
21975
21976 # PATH needs CR, and LINENO needs CR and PATH.
21977 # Avoid depending upon Character Ranges.
21978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21981 as_cr_digits='0123456789'
21982 as_cr_alnum=$as_cr_Letters$as_cr_digits
21983
21984 # The user is always right.
21985 if test "${PATH_SEPARATOR+set}" != set; then
21986 echo "#! /bin/sh" >conf$$.sh
21987 echo "exit 0" >>conf$$.sh
21988 chmod +x conf$$.sh
21989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21990 PATH_SEPARATOR=';'
21991 else
21992 PATH_SEPARATOR=:
21993 fi
21994 rm -f conf$$.sh
21995 fi
21996
21997
21998 as_lineno_1=$LINENO
21999 as_lineno_2=$LINENO
22000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22001 test "x$as_lineno_1" != "x$as_lineno_2" &&
22002 test "x$as_lineno_3" = "x$as_lineno_2" || {
22003 # Find who we are. Look in the path if we contain no path at all
22004 # relative or not.
22005 case $0 in
22006 *[\\/]* ) as_myself=$0 ;;
22007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22008 for as_dir in $PATH
22009 do
22010 IFS=$as_save_IFS
22011 test -z "$as_dir" && as_dir=.
22012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22013 done
22014
22015 ;;
22016 esac
22017 # We did not find ourselves, most probably we were run as `sh COMMAND'
22018 # in which case we are not to be found in the path.
22019 if test "x$as_myself" = x; then
22020 as_myself=$0
22021 fi
22022 if test ! -f "$as_myself"; then
22023 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22024 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22025 { (exit 1); exit 1; }; }
22026 fi
22027 case $CONFIG_SHELL in
22028 '')
22029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22030 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22031 do
22032 IFS=$as_save_IFS
22033 test -z "$as_dir" && as_dir=.
22034 for as_base in sh bash ksh sh5; do
22035 case $as_dir in
22036 /*)
22037 if ("$as_dir/$as_base" -c '
22038 as_lineno_1=$LINENO
22039 as_lineno_2=$LINENO
22040 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22041 test "x$as_lineno_1" != "x$as_lineno_2" &&
22042 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22043 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22044 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22045 CONFIG_SHELL=$as_dir/$as_base
22046 export CONFIG_SHELL
22047 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22048 fi;;
22049 esac
22050 done
22051 done
22052 ;;
22053 esac
22054
22055 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22056 # uniformly replaced by the line number. The first 'sed' inserts a
22057 # line-number line before each line; the second 'sed' does the real
22058 # work. The second script uses 'N' to pair each line-number line
22059 # with the numbered line, and appends trailing '-' during
22060 # substitution so that $LINENO is not a special case at line end.
22061 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22062 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22063 sed '=' <$as_myself |
22064 sed '
22065 N
22066 s,$,-,
22067 : loop
22068 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22069 t loop
22070 s,-$,,
22071 s,^['$as_cr_digits']*\n,,
22072 ' >$as_me.lineno &&
22073 chmod +x $as_me.lineno ||
22074 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22075 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22076 { (exit 1); exit 1; }; }
22077
22078 # Don't try to exec as it changes $[0], causing all sort of problems
22079 # (the dirname of $[0] is not the place where we might find the
22080 # original and so on. Autoconf is especially sensible to this).
22081 . ./$as_me.lineno
22082 # Exit status is that of the last command.
22083 exit
22084 }
22085
22086
22087 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22088 *c*,-n*) ECHO_N= ECHO_C='
22089 ' ECHO_T=' ' ;;
22090 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22091 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22092 esac
22093
22094 if expr a : '\(a\)' >/dev/null 2>&1; then
22095 as_expr=expr
22096 else
22097 as_expr=false
22098 fi
22099
22100 rm -f conf$$ conf$$.exe conf$$.file
22101 echo >conf$$.file
22102 if ln -s conf$$.file conf$$ 2>/dev/null; then
22103 # We could just check for DJGPP; but this test a) works b) is more generic
22104 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22105 if test -f conf$$.exe; then
22106 # Don't use ln at all; we don't have any links
22107 as_ln_s='cp -p'
22108 else
22109 as_ln_s='ln -s'
22110 fi
22111 elif ln conf$$.file conf$$ 2>/dev/null; then
22112 as_ln_s=ln
22113 else
22114 as_ln_s='cp -p'
22115 fi
22116 rm -f conf$$ conf$$.exe conf$$.file
22117
22118 if mkdir -p . 2>/dev/null; then
22119 as_mkdir_p=:
22120 else
22121 test -d ./-p && rmdir ./-p
22122 as_mkdir_p=false
22123 fi
22124
22125 as_executable_p="test -f"
22126
22127 # Sed expression to map a string onto a valid CPP name.
22128 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22129
22130 # Sed expression to map a string onto a valid variable name.
22131 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22132
22133
22134 # IFS
22135 # We need space, tab and new line, in precisely that order.
22136 as_nl='
22137 '
22138 IFS=" $as_nl"
22139
22140 # CDPATH.
22141 $as_unset CDPATH
22142
22143 exec 6>&1
22144
22145 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22146 # report actual input values of CONFIG_FILES etc. instead of their
22147 # values after options handling. Logging --version etc. is OK.
22148 exec 5>>config.log
22149 {
22150 echo
22151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22152 ## Running $as_me. ##
22153 _ASBOX
22154 } >&5
22155 cat >&5 <<_CSEOF
22156
22157 This file was extended by $as_me, which was
22158 generated by GNU Autoconf 2.59. Invocation command line was
22159
22160 CONFIG_FILES = $CONFIG_FILES
22161 CONFIG_HEADERS = $CONFIG_HEADERS
22162 CONFIG_LINKS = $CONFIG_LINKS
22163 CONFIG_COMMANDS = $CONFIG_COMMANDS
22164 $ $0 $@
22165
22166 _CSEOF
22167 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22168 echo >&5
22169 _ACEOF
22170
22171 # Files that config.status was made for.
22172 if test -n "$ac_config_files"; then
22173 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22174 fi
22175
22176 if test -n "$ac_config_headers"; then
22177 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22178 fi
22179
22180 if test -n "$ac_config_links"; then
22181 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22182 fi
22183
22184 if test -n "$ac_config_commands"; then
22185 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22186 fi
22187
22188 cat >>$CONFIG_STATUS <<\_ACEOF
22189
22190 ac_cs_usage="\
22191 \`$as_me' instantiates files from templates according to the
22192 current configuration.
22193
22194 Usage: $0 [OPTIONS] [FILE]...
22195
22196 -h, --help print this help, then exit
22197 -V, --version print version number, then exit
22198 -q, --quiet do not print progress messages
22199 -d, --debug don't remove temporary files
22200 --recheck update $as_me by reconfiguring in the same conditions
22201 --file=FILE[:TEMPLATE]
22202 instantiate the configuration file FILE
22203 --header=FILE[:TEMPLATE]
22204 instantiate the configuration header FILE
22205
22206 Configuration files:
22207 $config_files
22208
22209 Configuration headers:
22210 $config_headers
22211
22212 Configuration commands:
22213 $config_commands
22214
22215 Report bugs to <bug-autoconf@gnu.org>."
22216 _ACEOF
22217
22218 cat >>$CONFIG_STATUS <<_ACEOF
22219 ac_cs_version="\\
22220 config.status
22221 configured by $0, generated by GNU Autoconf 2.59,
22222 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22223
22224 Copyright (C) 2003 Free Software Foundation, Inc.
22225 This config.status script is free software; the Free Software Foundation
22226 gives unlimited permission to copy, distribute and modify it."
22227 srcdir=$srcdir
22228 INSTALL="$INSTALL"
22229 _ACEOF
22230
22231 cat >>$CONFIG_STATUS <<\_ACEOF
22232 # If no file are specified by the user, then we need to provide default
22233 # value. By we need to know if files were specified by the user.
22234 ac_need_defaults=:
22235 while test $# != 0
22236 do
22237 case $1 in
22238 --*=*)
22239 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22240 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22241 ac_shift=:
22242 ;;
22243 -*)
22244 ac_option=$1
22245 ac_optarg=$2
22246 ac_shift=shift
22247 ;;
22248 *) # This is not an option, so the user has probably given explicit
22249 # arguments.
22250 ac_option=$1
22251 ac_need_defaults=false;;
22252 esac
22253
22254 case $ac_option in
22255 # Handling of the options.
22256 _ACEOF
22257 cat >>$CONFIG_STATUS <<\_ACEOF
22258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22259 ac_cs_recheck=: ;;
22260 --version | --vers* | -V )
22261 echo "$ac_cs_version"; exit 0 ;;
22262 --he | --h)
22263 # Conflict between --help and --header
22264 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22265 Try \`$0 --help' for more information." >&5
22266 echo "$as_me: error: ambiguous option: $1
22267 Try \`$0 --help' for more information." >&2;}
22268 { (exit 1); exit 1; }; };;
22269 --help | --hel | -h )
22270 echo "$ac_cs_usage"; exit 0 ;;
22271 --debug | --d* | -d )
22272 debug=: ;;
22273 --file | --fil | --fi | --f )
22274 $ac_shift
22275 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22276 ac_need_defaults=false;;
22277 --header | --heade | --head | --hea )
22278 $ac_shift
22279 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22280 ac_need_defaults=false;;
22281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22283 ac_cs_silent=: ;;
22284
22285 # This is an error.
22286 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22287 Try \`$0 --help' for more information." >&5
22288 echo "$as_me: error: unrecognized option: $1
22289 Try \`$0 --help' for more information." >&2;}
22290 { (exit 1); exit 1; }; } ;;
22291
22292 *) ac_config_targets="$ac_config_targets $1" ;;
22293
22294 esac
22295 shift
22296 done
22297
22298 ac_configure_extra_args=
22299
22300 if $ac_cs_silent; then
22301 exec 6>/dev/null
22302 ac_configure_extra_args="$ac_configure_extra_args --silent"
22303 fi
22304
22305 _ACEOF
22306 cat >>$CONFIG_STATUS <<_ACEOF
22307 if \$ac_cs_recheck; then
22308 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22309 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22310 fi
22311
22312 _ACEOF
22313
22314 cat >>$CONFIG_STATUS <<_ACEOF
22315 #
22316 # INIT-COMMANDS section.
22317 #
22318
22319 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22320
22321 _ACEOF
22322
22323
22324
22325 cat >>$CONFIG_STATUS <<\_ACEOF
22326 for ac_config_target in $ac_config_targets
22327 do
22328 case "$ac_config_target" in
22329 # Handling of arguments.
22330 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22331 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22332 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22333 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22334 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22335 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22336 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22337 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22338 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22339 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22340 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22341 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22342 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22343 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22344 { (exit 1); exit 1; }; };;
22345 esac
22346 done
22347
22348 # If the user did not use the arguments to specify the items to instantiate,
22349 # then the envvar interface is used. Set only those that are not.
22350 # We use the long form for the default assignment because of an extremely
22351 # bizarre bug on SunOS 4.1.3.
22352 if $ac_need_defaults; then
22353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22354 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22355 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22356 fi
22357
22358 # Have a temporary directory for convenience. Make it in the build tree
22359 # simply because there is no reason to put it here, and in addition,
22360 # creating and moving files from /tmp can sometimes cause problems.
22361 # Create a temporary directory, and hook for its removal unless debugging.
22362 $debug ||
22363 {
22364 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22365 trap '{ (exit 1); exit 1; }' 1 2 13 15
22366 }
22367
22368 # Create a (secure) tmp directory for tmp files.
22369
22370 {
22371 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22372 test -n "$tmp" && test -d "$tmp"
22373 } ||
22374 {
22375 tmp=./confstat$$-$RANDOM
22376 (umask 077 && mkdir $tmp)
22377 } ||
22378 {
22379 echo "$me: cannot create a temporary directory in ." >&2
22380 { (exit 1); exit 1; }
22381 }
22382
22383 _ACEOF
22384
22385 cat >>$CONFIG_STATUS <<_ACEOF
22386
22387 #
22388 # CONFIG_FILES section.
22389 #
22390
22391 # No need to generate the scripts if there are no CONFIG_FILES.
22392 # This happens for instance when ./config.status config.h
22393 if test -n "\$CONFIG_FILES"; then
22394 # Protect against being on the right side of a sed subst in config.status.
22395 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22396 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22397 s,@SHELL@,$SHELL,;t t
22398 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22399 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22400 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22401 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22402 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22403 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22404 s,@exec_prefix@,$exec_prefix,;t t
22405 s,@prefix@,$prefix,;t t
22406 s,@program_transform_name@,$program_transform_name,;t t
22407 s,@bindir@,$bindir,;t t
22408 s,@sbindir@,$sbindir,;t t
22409 s,@libexecdir@,$libexecdir,;t t
22410 s,@datadir@,$datadir,;t t
22411 s,@sysconfdir@,$sysconfdir,;t t
22412 s,@sharedstatedir@,$sharedstatedir,;t t
22413 s,@localstatedir@,$localstatedir,;t t
22414 s,@libdir@,$libdir,;t t
22415 s,@includedir@,$includedir,;t t
22416 s,@oldincludedir@,$oldincludedir,;t t
22417 s,@infodir@,$infodir,;t t
22418 s,@mandir@,$mandir,;t t
22419 s,@build_alias@,$build_alias,;t t
22420 s,@host_alias@,$host_alias,;t t
22421 s,@target_alias@,$target_alias,;t t
22422 s,@DEFS@,$DEFS,;t t
22423 s,@ECHO_C@,$ECHO_C,;t t
22424 s,@ECHO_N@,$ECHO_N,;t t
22425 s,@ECHO_T@,$ECHO_T,;t t
22426 s,@LIBS@,$LIBS,;t t
22427 s,@MAINT@,$MAINT,;t t
22428 s,@build@,$build,;t t
22429 s,@build_cpu@,$build_cpu,;t t
22430 s,@build_vendor@,$build_vendor,;t t
22431 s,@build_os@,$build_os,;t t
22432 s,@host@,$host,;t t
22433 s,@host_cpu@,$host_cpu,;t t
22434 s,@host_vendor@,$host_vendor,;t t
22435 s,@host_os@,$host_os,;t t
22436 s,@CC@,$CC,;t t
22437 s,@CFLAGS@,$CFLAGS,;t t
22438 s,@LDFLAGS@,$LDFLAGS,;t t
22439 s,@CPPFLAGS@,$CPPFLAGS,;t t
22440 s,@ac_ct_CC@,$ac_ct_CC,;t t
22441 s,@EXEEXT@,$EXEEXT,;t t
22442 s,@OBJEXT@,$OBJEXT,;t t
22443 s,@LN_S@,$LN_S,;t t
22444 s,@CPP@,$CPP,;t t
22445 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22446 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22447 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22448 s,@RANLIB@,$RANLIB,;t t
22449 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22450 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22451 s,@EGREP@,$EGREP,;t t
22452 s,@LIBSOUND@,$LIBSOUND,;t t
22453 s,@SET_MAKE@,$SET_MAKE,;t t
22454 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22455 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22456 s,@GTK_LIBS@,$GTK_LIBS,;t t
22457 s,@ALLOCA@,$ALLOCA,;t t
22458 s,@liblockfile@,$liblockfile,;t t
22459 s,@LIBOBJS@,$LIBOBJS,;t t
22460 s,@NEED_SETGID@,$NEED_SETGID,;t t
22461 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22462 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22463 s,@version@,$version,;t t
22464 s,@configuration@,$configuration,;t t
22465 s,@canonical@,$canonical,;t t
22466 s,@srcdir@,$srcdir,;t t
22467 s,@lispdir@,$lispdir,;t t
22468 s,@locallisppath@,$locallisppath,;t t
22469 s,@lisppath@,$lisppath,;t t
22470 s,@x_default_search_path@,$x_default_search_path,;t t
22471 s,@etcdir@,$etcdir,;t t
22472 s,@archlibdir@,$archlibdir,;t t
22473 s,@docdir@,$docdir,;t t
22474 s,@bitmapdir@,$bitmapdir,;t t
22475 s,@gamedir@,$gamedir,;t t
22476 s,@gameuser@,$gameuser,;t t
22477 s,@c_switch_system@,$c_switch_system,;t t
22478 s,@c_switch_machine@,$c_switch_machine,;t t
22479 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22480 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22481 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22482 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22483 s,@machfile@,$machfile,;t t
22484 s,@opsysfile@,$opsysfile,;t t
22485 s,@carbon_appdir@,$carbon_appdir,;t t
22486 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22487 CEOF
22488
22489 _ACEOF
22490
22491 cat >>$CONFIG_STATUS <<\_ACEOF
22492 # Split the substitutions into bite-sized pieces for seds with
22493 # small command number limits, like on Digital OSF/1 and HP-UX.
22494 ac_max_sed_lines=48
22495 ac_sed_frag=1 # Number of current file.
22496 ac_beg=1 # First line for current file.
22497 ac_end=$ac_max_sed_lines # Line after last line for current file.
22498 ac_more_lines=:
22499 ac_sed_cmds=
22500 while $ac_more_lines; do
22501 if test $ac_beg -gt 1; then
22502 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22503 else
22504 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22505 fi
22506 if test ! -s $tmp/subs.frag; then
22507 ac_more_lines=false
22508 else
22509 # The purpose of the label and of the branching condition is to
22510 # speed up the sed processing (if there are no `@' at all, there
22511 # is no need to browse any of the substitutions).
22512 # These are the two extra sed commands mentioned above.
22513 (echo ':t
22514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22515 if test -z "$ac_sed_cmds"; then
22516 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22517 else
22518 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22519 fi
22520 ac_sed_frag=`expr $ac_sed_frag + 1`
22521 ac_beg=$ac_end
22522 ac_end=`expr $ac_end + $ac_max_sed_lines`
22523 fi
22524 done
22525 if test -z "$ac_sed_cmds"; then
22526 ac_sed_cmds=cat
22527 fi
22528 fi # test -n "$CONFIG_FILES"
22529
22530 _ACEOF
22531 cat >>$CONFIG_STATUS <<\_ACEOF
22532 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22533 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22534 case $ac_file in
22535 - | *:- | *:-:* ) # input from stdin
22536 cat >$tmp/stdin
22537 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22538 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22539 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22540 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22541 * ) ac_file_in=$ac_file.in ;;
22542 esac
22543
22544 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22545 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22546 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22547 X"$ac_file" : 'X\(//\)[^/]' \| \
22548 X"$ac_file" : 'X\(//\)$' \| \
22549 X"$ac_file" : 'X\(/\)' \| \
22550 . : '\(.\)' 2>/dev/null ||
22551 echo X"$ac_file" |
22552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22554 /^X\(\/\/\)$/{ s//\1/; q; }
22555 /^X\(\/\).*/{ s//\1/; q; }
22556 s/.*/./; q'`
22557 { if $as_mkdir_p; then
22558 mkdir -p "$ac_dir"
22559 else
22560 as_dir="$ac_dir"
22561 as_dirs=
22562 while test ! -d "$as_dir"; do
22563 as_dirs="$as_dir $as_dirs"
22564 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566 X"$as_dir" : 'X\(//\)[^/]' \| \
22567 X"$as_dir" : 'X\(//\)$' \| \
22568 X"$as_dir" : 'X\(/\)' \| \
22569 . : '\(.\)' 2>/dev/null ||
22570 echo X"$as_dir" |
22571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22573 /^X\(\/\/\)$/{ s//\1/; q; }
22574 /^X\(\/\).*/{ s//\1/; q; }
22575 s/.*/./; q'`
22576 done
22577 test ! -n "$as_dirs" || mkdir $as_dirs
22578 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22579 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22580 { (exit 1); exit 1; }; }; }
22581
22582 ac_builddir=.
22583
22584 if test "$ac_dir" != .; then
22585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22586 # A "../" for each directory in $ac_dir_suffix.
22587 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22588 else
22589 ac_dir_suffix= ac_top_builddir=
22590 fi
22591
22592 case $srcdir in
22593 .) # No --srcdir option. We are building in place.
22594 ac_srcdir=.
22595 if test -z "$ac_top_builddir"; then
22596 ac_top_srcdir=.
22597 else
22598 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22599 fi ;;
22600 [\\/]* | ?:[\\/]* ) # Absolute path.
22601 ac_srcdir=$srcdir$ac_dir_suffix;
22602 ac_top_srcdir=$srcdir ;;
22603 *) # Relative path.
22604 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22605 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22606 esac
22607
22608 # Do not use `cd foo && pwd` to compute absolute paths, because
22609 # the directories may not exist.
22610 case `pwd` in
22611 .) ac_abs_builddir="$ac_dir";;
22612 *)
22613 case "$ac_dir" in
22614 .) ac_abs_builddir=`pwd`;;
22615 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22616 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22617 esac;;
22618 esac
22619 case $ac_abs_builddir in
22620 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22621 *)
22622 case ${ac_top_builddir}. in
22623 .) ac_abs_top_builddir=$ac_abs_builddir;;
22624 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22625 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22626 esac;;
22627 esac
22628 case $ac_abs_builddir in
22629 .) ac_abs_srcdir=$ac_srcdir;;
22630 *)
22631 case $ac_srcdir in
22632 .) ac_abs_srcdir=$ac_abs_builddir;;
22633 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22634 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22635 esac;;
22636 esac
22637 case $ac_abs_builddir in
22638 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22639 *)
22640 case $ac_top_srcdir in
22641 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22642 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22643 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22644 esac;;
22645 esac
22646
22647
22648 case $INSTALL in
22649 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22650 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22651 esac
22652
22653 if test x"$ac_file" != x-; then
22654 { echo "$as_me:$LINENO: creating $ac_file" >&5
22655 echo "$as_me: creating $ac_file" >&6;}
22656 rm -f "$ac_file"
22657 fi
22658 # Let's still pretend it is `configure' which instantiates (i.e., don't
22659 # use $as_me), people would be surprised to read:
22660 # /* config.h. Generated by config.status. */
22661 if test x"$ac_file" = x-; then
22662 configure_input=
22663 else
22664 configure_input="$ac_file. "
22665 fi
22666 configure_input=$configure_input"Generated from `echo $ac_file_in |
22667 sed 's,.*/,,'` by configure."
22668
22669 # First look for the input files in the build tree, otherwise in the
22670 # src tree.
22671 ac_file_inputs=`IFS=:
22672 for f in $ac_file_in; do
22673 case $f in
22674 -) echo $tmp/stdin ;;
22675 [\\/$]*)
22676 # Absolute (can't be DOS-style, as IFS=:)
22677 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22678 echo "$as_me: error: cannot find input file: $f" >&2;}
22679 { (exit 1); exit 1; }; }
22680 echo "$f";;
22681 *) # Relative
22682 if test -f "$f"; then
22683 # Build tree
22684 echo "$f"
22685 elif test -f "$srcdir/$f"; then
22686 # Source tree
22687 echo "$srcdir/$f"
22688 else
22689 # /dev/null tree
22690 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22691 echo "$as_me: error: cannot find input file: $f" >&2;}
22692 { (exit 1); exit 1; }; }
22693 fi;;
22694 esac
22695 done` || { (exit 1); exit 1; }
22696 _ACEOF
22697 cat >>$CONFIG_STATUS <<_ACEOF
22698 sed "$ac_vpsub
22699 $extrasub
22700 _ACEOF
22701 cat >>$CONFIG_STATUS <<\_ACEOF
22702 :t
22703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22704 s,@configure_input@,$configure_input,;t t
22705 s,@srcdir@,$ac_srcdir,;t t
22706 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22707 s,@top_srcdir@,$ac_top_srcdir,;t t
22708 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22709 s,@builddir@,$ac_builddir,;t t
22710 s,@abs_builddir@,$ac_abs_builddir,;t t
22711 s,@top_builddir@,$ac_top_builddir,;t t
22712 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22713 s,@INSTALL@,$ac_INSTALL,;t t
22714 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22715 rm -f $tmp/stdin
22716 if test x"$ac_file" != x-; then
22717 mv $tmp/out $ac_file
22718 else
22719 cat $tmp/out
22720 rm -f $tmp/out
22721 fi
22722
22723 done
22724 _ACEOF
22725 cat >>$CONFIG_STATUS <<\_ACEOF
22726
22727 #
22728 # CONFIG_HEADER section.
22729 #
22730
22731 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22732 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22733 #
22734 # ac_d sets the value in "#define NAME VALUE" lines.
22735 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22736 ac_dB='[ ].*$,\1#\2'
22737 ac_dC=' '
22738 ac_dD=',;t'
22739 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22740 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22741 ac_uB='$,\1#\2define\3'
22742 ac_uC=' '
22743 ac_uD=',;t'
22744
22745 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22746 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22747 case $ac_file in
22748 - | *:- | *:-:* ) # input from stdin
22749 cat >$tmp/stdin
22750 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22751 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22752 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22754 * ) ac_file_in=$ac_file.in ;;
22755 esac
22756
22757 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22758 echo "$as_me: creating $ac_file" >&6;}
22759
22760 # First look for the input files in the build tree, otherwise in the
22761 # src tree.
22762 ac_file_inputs=`IFS=:
22763 for f in $ac_file_in; do
22764 case $f in
22765 -) echo $tmp/stdin ;;
22766 [\\/$]*)
22767 # Absolute (can't be DOS-style, as IFS=:)
22768 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22769 echo "$as_me: error: cannot find input file: $f" >&2;}
22770 { (exit 1); exit 1; }; }
22771 # Do quote $f, to prevent DOS paths from being IFS'd.
22772 echo "$f";;
22773 *) # Relative
22774 if test -f "$f"; then
22775 # Build tree
22776 echo "$f"
22777 elif test -f "$srcdir/$f"; then
22778 # Source tree
22779 echo "$srcdir/$f"
22780 else
22781 # /dev/null tree
22782 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22783 echo "$as_me: error: cannot find input file: $f" >&2;}
22784 { (exit 1); exit 1; }; }
22785 fi;;
22786 esac
22787 done` || { (exit 1); exit 1; }
22788 # Remove the trailing spaces.
22789 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22790
22791 _ACEOF
22792
22793 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22794 # `conftest.undefs', that substitutes the proper values into
22795 # config.h.in to produce config.h. The first handles `#define'
22796 # templates, and the second `#undef' templates.
22797 # And first: Protect against being on the right side of a sed subst in
22798 # config.status. Protect against being in an unquoted here document
22799 # in config.status.
22800 rm -f conftest.defines conftest.undefs
22801 # Using a here document instead of a string reduces the quoting nightmare.
22802 # Putting comments in sed scripts is not portable.
22803 #
22804 # `end' is used to avoid that the second main sed command (meant for
22805 # 0-ary CPP macros) applies to n-ary macro definitions.
22806 # See the Autoconf documentation for `clear'.
22807 cat >confdef2sed.sed <<\_ACEOF
22808 s/[\\&,]/\\&/g
22809 s,[\\$`],\\&,g
22810 t clear
22811 : clear
22812 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22813 t end
22814 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22815 : end
22816 _ACEOF
22817 # If some macros were called several times there might be several times
22818 # the same #defines, which is useless. Nevertheless, we may not want to
22819 # sort them, since we want the *last* AC-DEFINE to be honored.
22820 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22821 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22822 rm -f confdef2sed.sed
22823
22824 # This sed command replaces #undef with comments. This is necessary, for
22825 # example, in the case of _POSIX_SOURCE, which is predefined and required
22826 # on some systems where configure will not decide to define it.
22827 cat >>conftest.undefs <<\_ACEOF
22828 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22829 _ACEOF
22830
22831 # Break up conftest.defines because some shells have a limit on the size
22832 # of here documents, and old seds have small limits too (100 cmds).
22833 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22834 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22835 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22836 echo ' :' >>$CONFIG_STATUS
22837 rm -f conftest.tail
22838 while grep . conftest.defines >/dev/null
22839 do
22840 # Write a limited-size here document to $tmp/defines.sed.
22841 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22842 # Speed up: don't consider the non `#define' lines.
22843 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22844 # Work around the forget-to-reset-the-flag bug.
22845 echo 't clr' >>$CONFIG_STATUS
22846 echo ': clr' >>$CONFIG_STATUS
22847 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22848 echo 'CEOF
22849 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22850 rm -f $tmp/in
22851 mv $tmp/out $tmp/in
22852 ' >>$CONFIG_STATUS
22853 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22854 rm -f conftest.defines
22855 mv conftest.tail conftest.defines
22856 done
22857 rm -f conftest.defines
22858 echo ' fi # grep' >>$CONFIG_STATUS
22859 echo >>$CONFIG_STATUS
22860
22861 # Break up conftest.undefs because some shells have a limit on the size
22862 # of here documents, and old seds have small limits too (100 cmds).
22863 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22864 rm -f conftest.tail
22865 while grep . conftest.undefs >/dev/null
22866 do
22867 # Write a limited-size here document to $tmp/undefs.sed.
22868 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22869 # Speed up: don't consider the non `#undef'
22870 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22871 # Work around the forget-to-reset-the-flag bug.
22872 echo 't clr' >>$CONFIG_STATUS
22873 echo ': clr' >>$CONFIG_STATUS
22874 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22875 echo 'CEOF
22876 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22877 rm -f $tmp/in
22878 mv $tmp/out $tmp/in
22879 ' >>$CONFIG_STATUS
22880 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22881 rm -f conftest.undefs
22882 mv conftest.tail conftest.undefs
22883 done
22884 rm -f conftest.undefs
22885
22886 cat >>$CONFIG_STATUS <<\_ACEOF
22887 # Let's still pretend it is `configure' which instantiates (i.e., don't
22888 # use $as_me), people would be surprised to read:
22889 # /* config.h. Generated by config.status. */
22890 if test x"$ac_file" = x-; then
22891 echo "/* Generated by configure. */" >$tmp/config.h
22892 else
22893 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22894 fi
22895 cat $tmp/in >>$tmp/config.h
22896 rm -f $tmp/in
22897 if test x"$ac_file" != x-; then
22898 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22899 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22900 echo "$as_me: $ac_file is unchanged" >&6;}
22901 else
22902 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22904 X"$ac_file" : 'X\(//\)[^/]' \| \
22905 X"$ac_file" : 'X\(//\)$' \| \
22906 X"$ac_file" : 'X\(/\)' \| \
22907 . : '\(.\)' 2>/dev/null ||
22908 echo X"$ac_file" |
22909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22911 /^X\(\/\/\)$/{ s//\1/; q; }
22912 /^X\(\/\).*/{ s//\1/; q; }
22913 s/.*/./; q'`
22914 { if $as_mkdir_p; then
22915 mkdir -p "$ac_dir"
22916 else
22917 as_dir="$ac_dir"
22918 as_dirs=
22919 while test ! -d "$as_dir"; do
22920 as_dirs="$as_dir $as_dirs"
22921 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22923 X"$as_dir" : 'X\(//\)[^/]' \| \
22924 X"$as_dir" : 'X\(//\)$' \| \
22925 X"$as_dir" : 'X\(/\)' \| \
22926 . : '\(.\)' 2>/dev/null ||
22927 echo X"$as_dir" |
22928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22930 /^X\(\/\/\)$/{ s//\1/; q; }
22931 /^X\(\/\).*/{ s//\1/; q; }
22932 s/.*/./; q'`
22933 done
22934 test ! -n "$as_dirs" || mkdir $as_dirs
22935 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22936 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22937 { (exit 1); exit 1; }; }; }
22938
22939 rm -f $ac_file
22940 mv $tmp/config.h $ac_file
22941 fi
22942 else
22943 cat $tmp/config.h
22944 rm -f $tmp/config.h
22945 fi
22946 done
22947 _ACEOF
22948 cat >>$CONFIG_STATUS <<\_ACEOF
22949
22950 #
22951 # CONFIG_COMMANDS section.
22952 #
22953 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22954 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22955 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22956 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22957 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22958 X"$ac_dest" : 'X\(//\)[^/]' \| \
22959 X"$ac_dest" : 'X\(//\)$' \| \
22960 X"$ac_dest" : 'X\(/\)' \| \
22961 . : '\(.\)' 2>/dev/null ||
22962 echo X"$ac_dest" |
22963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22965 /^X\(\/\/\)$/{ s//\1/; q; }
22966 /^X\(\/\).*/{ s//\1/; q; }
22967 s/.*/./; q'`
22968 { if $as_mkdir_p; then
22969 mkdir -p "$ac_dir"
22970 else
22971 as_dir="$ac_dir"
22972 as_dirs=
22973 while test ! -d "$as_dir"; do
22974 as_dirs="$as_dir $as_dirs"
22975 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22977 X"$as_dir" : 'X\(//\)[^/]' \| \
22978 X"$as_dir" : 'X\(//\)$' \| \
22979 X"$as_dir" : 'X\(/\)' \| \
22980 . : '\(.\)' 2>/dev/null ||
22981 echo X"$as_dir" |
22982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22984 /^X\(\/\/\)$/{ s//\1/; q; }
22985 /^X\(\/\).*/{ s//\1/; q; }
22986 s/.*/./; q'`
22987 done
22988 test ! -n "$as_dirs" || mkdir $as_dirs
22989 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22991 { (exit 1); exit 1; }; }; }
22992
22993 ac_builddir=.
22994
22995 if test "$ac_dir" != .; then
22996 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22997 # A "../" for each directory in $ac_dir_suffix.
22998 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22999 else
23000 ac_dir_suffix= ac_top_builddir=
23001 fi
23002
23003 case $srcdir in
23004 .) # No --srcdir option. We are building in place.
23005 ac_srcdir=.
23006 if test -z "$ac_top_builddir"; then
23007 ac_top_srcdir=.
23008 else
23009 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23010 fi ;;
23011 [\\/]* | ?:[\\/]* ) # Absolute path.
23012 ac_srcdir=$srcdir$ac_dir_suffix;
23013 ac_top_srcdir=$srcdir ;;
23014 *) # Relative path.
23015 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23016 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23017 esac
23018
23019 # Do not use `cd foo && pwd` to compute absolute paths, because
23020 # the directories may not exist.
23021 case `pwd` in
23022 .) ac_abs_builddir="$ac_dir";;
23023 *)
23024 case "$ac_dir" in
23025 .) ac_abs_builddir=`pwd`;;
23026 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23027 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23028 esac;;
23029 esac
23030 case $ac_abs_builddir in
23031 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23032 *)
23033 case ${ac_top_builddir}. in
23034 .) ac_abs_top_builddir=$ac_abs_builddir;;
23035 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23036 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23037 esac;;
23038 esac
23039 case $ac_abs_builddir in
23040 .) ac_abs_srcdir=$ac_srcdir;;
23041 *)
23042 case $ac_srcdir in
23043 .) ac_abs_srcdir=$ac_abs_builddir;;
23044 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23045 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23046 esac;;
23047 esac
23048 case $ac_abs_builddir in
23049 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23050 *)
23051 case $ac_top_srcdir in
23052 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23053 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23054 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23055 esac;;
23056 esac
23057
23058
23059 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23060 echo "$as_me: executing $ac_dest commands" >&6;}
23061 case $ac_dest in
23062 default )
23063
23064 ### Make the necessary directories, if they don't exist.
23065 for dir in etc lisp ; do
23066 test -d ${dir} || mkdir ${dir}
23067 done
23068
23069 # Build src/Makefile from ${srcdir}/src/Makefile.c
23070 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23071 # This must be done after src/config.h is built, since we rely on that file.
23072
23073 # Now get this: Some word that is part of the ${srcdir} directory name
23074 # or the ${configuration} value might, just might, happen to be an
23075 # identifier like `sun4' or `i386' or something, and be predefined by
23076 # the C preprocessor to some helpful value like 1, or maybe the empty
23077 # string. Needless to say consequent macro substitutions are less
23078 # than conducive to the makefile finding the correct directory.
23079 undefs="`echo $top_srcdir $configuration $canonical |
23080 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23081 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23082 `"
23083
23084 echo creating src/epaths.h
23085 ${MAKE-make} epaths-force
23086
23087 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23088 # `..' to `. .' unless invoked with -traditional
23089
23090 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23091 CPPFLAGS="$CPPFLAGS -traditional"
23092 fi
23093
23094 echo creating lib-src/Makefile
23095 ( cd lib-src
23096 rm -f junk.c junk1.c junk2.c
23097 sed -e '/start of cpp stuff/q' \
23098 < Makefile.c > junk1.c
23099 sed -e '1,/start of cpp stuff/d'\
23100 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23101 < Makefile.c > junk.c
23102 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23103 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23104 cat junk1.c junk2.c > Makefile.new
23105 rm -f junk.c junk1.c junk2.c
23106 chmod 444 Makefile.new
23107 mv -f Makefile.new Makefile
23108 )
23109
23110 echo creating src/Makefile
23111 ( cd src
23112 rm -f junk.c junk1.c junk2.c
23113 sed -e '/start of cpp stuff/q' \
23114 < Makefile.c > junk1.c
23115 sed -e '1,/start of cpp stuff/d'\
23116 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23117 < Makefile.c > junk.c
23118 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23119 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23120 cat junk1.c junk2.c > Makefile.new
23121 rm -f junk.c junk1.c junk2.c
23122 chmod 444 Makefile.new
23123 mv -f Makefile.new Makefile
23124 )
23125
23126 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23127 echo creating src/.gdbinit
23128 echo source $srcdir/src/.gdbinit > src/.gdbinit
23129 fi
23130
23131 # This is how we know whether to re-run configure in certain cases.
23132 touch src/config.stamp
23133
23134 ;;
23135 esac
23136 done
23137 _ACEOF
23138
23139 cat >>$CONFIG_STATUS <<\_ACEOF
23140
23141 { (exit 0); exit 0; }
23142 _ACEOF
23143 chmod +x $CONFIG_STATUS
23144 ac_clean_files=$ac_clean_files_save
23145
23146
23147 # configure is writing to config.log, and then calls config.status.
23148 # config.status does its own redirection, appending to config.log.
23149 # Unfortunately, on DOS this fails, as config.log is still kept open
23150 # by configure, so config.status won't be able to write to it; its
23151 # output is simply discarded. So we exec the FD to /dev/null,
23152 # effectively closing config.log, so it can be properly (re)opened and
23153 # appended to by config.status. When coming back to configure, we
23154 # need to make the FD available again.
23155 if test "$no_create" != yes; then
23156 ac_cs_success=:
23157 ac_config_status_args=
23158 test "$silent" = yes &&
23159 ac_config_status_args="$ac_config_status_args --quiet"
23160 exec 5>/dev/null
23161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23162 exec 5>>config.log
23163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23164 # would make configure fail if this is the last instruction.
23165 $ac_cs_success || { (exit 1); exit 1; }
23166 fi
23167
23168