(Finsert_file_contents): Give a more appropriate error
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
45 fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94 fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
150 ;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS=" $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="src/lisp.h"
271 ac_config_libobj_dir=src
272 # Factoring default headers for most tests.
273 ac_includes_default="\
274 #include <stdio.h>
275 #if HAVE_SYS_TYPES_H
276 # include <sys/types.h>
277 #endif
278 #if HAVE_SYS_STAT_H
279 # include <sys/stat.h>
280 #endif
281 #if STDC_HEADERS
282 # include <stdlib.h>
283 # include <stddef.h>
284 #else
285 # if HAVE_STDLIB_H
286 # include <stdlib.h>
287 # endif
288 #endif
289 #if HAVE_STRING_H
290 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <memory.h>
292 # endif
293 # include <string.h>
294 #endif
295 #if HAVE_STRINGS_H
296 # include <strings.h>
297 #endif
298 #if HAVE_INTTYPES_H
299 # include <inttypes.h>
300 #else
301 # if HAVE_STDINT_H
302 # include <stdint.h>
303 # endif
304 #endif
305 #if HAVE_UNISTD_H
306 # include <unistd.h>
307 #endif"
308
309 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 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 EGREP LIBSOUND SET_MAKE 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 LTLIBOBJS'
310 ac_subst_files=''
311
312 # Initialize some variables set by options.
313 ac_init_help=
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
317 cache_file=/dev/null
318 exec_prefix=NONE
319 no_create=
320 no_recursion=
321 prefix=NONE
322 program_prefix=NONE
323 program_suffix=NONE
324 program_transform_name=s,x,x,
325 silent=
326 site=
327 srcdir=
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
331
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
349
350 ac_prev=
351 for ac_option
352 do
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
356 ac_prev=
357 continue
358 fi
359
360 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361
362 # Accept the important Cygnus configure options, so we can diagnose typos.
363
364 case $ac_option in
365
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 ac_prev=bindir ;;
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369 bindir=$ac_optarg ;;
370
371 -build | --build | --buil | --bui | --bu)
372 ac_prev=build_alias ;;
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build_alias=$ac_optarg ;;
375
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file=$ac_optarg ;;
382
383 --config-cache | -C)
384 cache_file=config.cache ;;
385
386 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 ac_prev=datadir ;;
388 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 | --da=*)
390 datadir=$ac_optarg ;;
391
392 -disable-* | --disable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
400
401 -enable-* | --enable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 case $ac_option in
409 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "enable_$ac_feature='$ac_optarg'" ;;
413
414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416 | --exec | --exe | --ex)
417 ac_prev=exec_prefix ;;
418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420 | --exec=* | --exe=* | --ex=*)
421 exec_prefix=$ac_optarg ;;
422
423 -gas | --gas | --ga | --g)
424 # Obsolete; use --with-gas.
425 with_gas=yes ;;
426
427 -help | --help | --hel | --he | -h)
428 ac_init_help=long ;;
429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430 ac_init_help=recursive ;;
431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432 ac_init_help=short ;;
433
434 -host | --host | --hos | --ho)
435 ac_prev=host_alias ;;
436 -host=* | --host=* | --hos=* | --ho=*)
437 host_alias=$ac_optarg ;;
438
439 -includedir | --includedir | --includedi | --included | --include \
440 | --includ | --inclu | --incl | --inc)
441 ac_prev=includedir ;;
442 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443 | --includ=* | --inclu=* | --incl=* | --inc=*)
444 includedir=$ac_optarg ;;
445
446 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 ac_prev=infodir ;;
448 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 infodir=$ac_optarg ;;
450
451 -libdir | --libdir | --libdi | --libd)
452 ac_prev=libdir ;;
453 -libdir=* | --libdir=* | --libdi=* | --libd=*)
454 libdir=$ac_optarg ;;
455
456 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457 | --libexe | --libex | --libe)
458 ac_prev=libexecdir ;;
459 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460 | --libexe=* | --libex=* | --libe=*)
461 libexecdir=$ac_optarg ;;
462
463 -localstatedir | --localstatedir | --localstatedi | --localstated \
464 | --localstate | --localstat | --localsta | --localst \
465 | --locals | --local | --loca | --loc | --lo)
466 ac_prev=localstatedir ;;
467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 localstatedir=$ac_optarg ;;
471
472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 ac_prev=mandir ;;
474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475 mandir=$ac_optarg ;;
476
477 -nfp | --nfp | --nf)
478 # Obsolete; use --without-fp.
479 with_fp=no ;;
480
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c | -n)
483 no_create=yes ;;
484
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487 no_recursion=yes ;;
488
489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491 | --oldin | --oldi | --old | --ol | --o)
492 ac_prev=oldincludedir ;;
493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 oldincludedir=$ac_optarg ;;
497
498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 ac_prev=prefix ;;
500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501 prefix=$ac_optarg ;;
502
503 -program-prefix | --program-prefix | --program-prefi | --program-pref \
504 | --program-pre | --program-pr | --program-p)
505 ac_prev=program_prefix ;;
506 -program-prefix=* | --program-prefix=* | --program-prefi=* \
507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 program_prefix=$ac_optarg ;;
509
510 -program-suffix | --program-suffix | --program-suffi | --program-suff \
511 | --program-suf | --program-su | --program-s)
512 ac_prev=program_suffix ;;
513 -program-suffix=* | --program-suffix=* | --program-suffi=* \
514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 program_suffix=$ac_optarg ;;
516
517 -program-transform-name | --program-transform-name \
518 | --program-transform-nam | --program-transform-na \
519 | --program-transform-n | --program-transform- \
520 | --program-transform | --program-transfor \
521 | --program-transfo | --program-transf \
522 | --program-trans | --program-tran \
523 | --progr-tra | --program-tr | --program-t)
524 ac_prev=program_transform_name ;;
525 -program-transform-name=* | --program-transform-name=* \
526 | --program-transform-nam=* | --program-transform-na=* \
527 | --program-transform-n=* | --program-transform-=* \
528 | --program-transform=* | --program-transfor=* \
529 | --program-transfo=* | --program-transf=* \
530 | --program-trans=* | --program-tran=* \
531 | --progr-tra=* | --program-tr=* | --program-t=*)
532 program_transform_name=$ac_optarg ;;
533
534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535 | -silent | --silent | --silen | --sile | --sil)
536 silent=yes ;;
537
538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 ac_prev=sbindir ;;
540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 | --sbi=* | --sb=*)
542 sbindir=$ac_optarg ;;
543
544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546 | --sharedst | --shareds | --shared | --share | --shar \
547 | --sha | --sh)
548 ac_prev=sharedstatedir ;;
549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 | --sha=* | --sh=*)
553 sharedstatedir=$ac_optarg ;;
554
555 -site | --site | --sit)
556 ac_prev=site ;;
557 -site=* | --site=* | --sit=*)
558 site=$ac_optarg ;;
559
560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 ac_prev=srcdir ;;
562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563 srcdir=$ac_optarg ;;
564
565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566 | --syscon | --sysco | --sysc | --sys | --sy)
567 ac_prev=sysconfdir ;;
568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 sysconfdir=$ac_optarg ;;
571
572 -target | --target | --targe | --targ | --tar | --ta | --t)
573 ac_prev=target_alias ;;
574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 target_alias=$ac_optarg ;;
576
577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
578 verbose=yes ;;
579
580 -version | --version | --versio | --versi | --vers | -V)
581 ac_init_version=: ;;
582
583 -with-* | --with-*)
584 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 case $ac_option in
591 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592 *) ac_optarg=yes ;;
593 esac
594 eval "with_$ac_package='$ac_optarg'" ;;
595
596 -without-* | --without-*)
597 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
604
605 --x)
606 # Obsolete; use --with-x.
607 with_x=yes ;;
608
609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610 | --x-incl | --x-inc | --x-in | --x-i)
611 ac_prev=x_includes ;;
612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 x_includes=$ac_optarg ;;
615
616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618 ac_prev=x_libraries ;;
619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 x_libraries=$ac_optarg ;;
622
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
626 ;;
627
628 *=*)
629 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
636 export $ac_envvar ;;
637
638 *)
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644 ;;
645
646 esac
647 done
648
649 if test -n "$ac_prev"; then
650 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
653 fi
654
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
657 do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
665
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
669 do
670 eval ac_val=$`echo $ac_var`
671 case $ac_val in
672 [\\/$]* | ?:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
675 esac
676 done
677
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
681 build=$build_alias
682 host=$host_alias
683 target=$target_alias
684
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687 if test "x$build_alias" = x; then
688 cross_compiling=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
692 cross_compiling=yes
693 fi
694 fi
695
696 ac_tool_prefix=
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698
699 test "$silent" = yes && exec 6>/dev/null
700
701
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
712 echo X"$0" |
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
717 s/.*/./; q'`
718 srcdir=$ac_confdir
719 if test ! -r $srcdir/$ac_unique_file; then
720 srcdir=..
721 fi
722 else
723 ac_srcdir_defaulted=no
724 fi
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
729 else
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
732 fi
733 fi
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
751 ac_env_CC_value=$CC
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
777 cat <<_ACEOF
778 \`configure' configures this package to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800 cat <<_ACEOF
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
803 [$ac_default_prefix]
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
827 _ACEOF
828
829 cat <<\_ACEOF
830
831 Program names:
832 --program-prefix=PREFIX prepend PREFIX to installed program names
833 --program-suffix=SUFFIX append SUFFIX to installed program names
834 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
835
836 X features:
837 --x-includes=DIR X include files are in DIR
838 --x-libraries=DIR X library files are in DIR
839
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-largefile omit support for large files
854
855 Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --without-gcc don't use GCC to compile Emacs if GCC is found
859 --without-pop don't support POP mail retrieval with movemail
860 --with-kerberos support Kerberos-authenticated POP
861 --with-kerberos5 support Kerberos version 5 authenticated POP
862 --with-hesiod support Hesiod to get the POP server host
863 --without-sound don't compile with sound support
864 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
865 --with-xpm use -lXpm for displaying XPM images
866 --with-jpeg use -ljpeg for displaying JPEG images
867 --with-tiff use -ltiff for displaying TIFF images
868 --with-gif use -lungif for displaying GIF images
869 --with-png use -lpng for displaying PNG images
870 --without-toolkit-scroll-bars
871 don't use Motif or Xaw3d scroll bars
872 --without-xim don't use X11 XIM
873 --without-carbon don't use Carbon GUI on Mac OS X
874 --with-x use the X Window System
875
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922 # absolute.
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
927
928 cd $ac_dir
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
931 echo
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
934 echo
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
938 echo
939 $ac_configure --help
940 else
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
942 fi
943 cd $ac_popdir
944 done
945 fi
946
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
949 cat <<\_ACEOF
950
951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
955 _ACEOF
956 exit 0
957 fi
958 exec 5>config.log
959 cat >&5 <<_ACEOF
960 This file contains any messages produced by compilers while
961 running configure, to aid debugging if configure makes a mistake.
962
963 It was created by $as_me, which was
964 generated by GNU Autoconf 2.54. Invocation command line was
965
966 $ $0 $@
967
968 _ACEOF
969 {
970 cat <<_ASUNAME
971 ## --------- ##
972 ## Platform. ##
973 ## --------- ##
974
975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
980
981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
983
984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
991
992 _ASUNAME
993
994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
995 for as_dir in $PATH
996 do
997 IFS=$as_save_IFS
998 test -z "$as_dir" && as_dir=.
999 echo "PATH: $as_dir"
1000 done
1001
1002 } >&5
1003
1004 cat >&5 <<_ACEOF
1005
1006
1007 ## ----------- ##
1008 ## Core tests. ##
1009 ## ----------- ##
1010
1011 _ACEOF
1012
1013
1014 # Keep a trace of the command line.
1015 # Strip out --no-create and --no-recursion so they do not pile up.
1016 # Also quote any args containing shell meta-characters.
1017 ac_configure_args=
1018 ac_sep=
1019 for ac_arg
1020 do
1021 case $ac_arg in
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n ) continue ;;
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 continue ;;
1027 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1028 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1029 esac
1030 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1031 # Get rid of the leading space.
1032 ac_sep=" "
1033 done
1034
1035 # When interrupted or exit'd, cleanup temporary files, and complete
1036 # config.log. We remove comments because anyway the quotes in there
1037 # would cause problems or look ugly.
1038 # WARNING: Be sure not to use single quotes in there, as some shells,
1039 # such as our DU 5.0 friend, will then `close' the trap.
1040 trap 'exit_status=$?
1041 # Save into config.log some information that might help in debugging.
1042 {
1043 echo
1044
1045 cat <<\_ASBOX
1046 ## ---------------- ##
1047 ## Cache variables. ##
1048 ## ---------------- ##
1049 _ASBOX
1050 echo
1051 # The following way of writing the cache mishandles newlines in values,
1052 {
1053 (set) 2>&1 |
1054 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1055 *ac_space=\ *)
1056 sed -n \
1057 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1059 ;;
1060 *)
1061 sed -n \
1062 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1063 ;;
1064 esac;
1065 }
1066 echo
1067
1068 cat <<\_ASBOX
1069 ## ----------------- ##
1070 ## Output variables. ##
1071 ## ----------------- ##
1072 _ASBOX
1073 echo
1074 for ac_var in $ac_subst_vars
1075 do
1076 eval ac_val=$`echo $ac_var`
1077 echo "$ac_var='"'"'$ac_val'"'"'"
1078 done | sort
1079 echo
1080
1081 if test -n "$ac_subst_files"; then
1082 cat <<\_ASBOX
1083 ## ------------- ##
1084 ## Output files. ##
1085 ## ------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_files
1089 do
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1094 fi
1095
1096 if test -s confdefs.h; then
1097 cat <<\_ASBOX
1098 ## ----------- ##
1099 ## confdefs.h. ##
1100 ## ----------- ##
1101 _ASBOX
1102 echo
1103 sed "/^$/d" confdefs.h | sort
1104 echo
1105 fi
1106 test "$ac_signal" != 0 &&
1107 echo "$as_me: caught signal $ac_signal"
1108 echo "$as_me: exit $exit_status"
1109 } >&5
1110 rm -f core core.* *.core &&
1111 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1112 exit $exit_status
1113 ' 0
1114 for ac_signal in 1 2 13 15; do
1115 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1116 done
1117 ac_signal=0
1118
1119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1120 rm -rf conftest* confdefs.h
1121 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1122 echo >confdefs.h
1123
1124 # Predefined preprocessor variables.
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_NAME "$PACKAGE_NAME"
1128 _ACEOF
1129
1130
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1133 _ACEOF
1134
1135
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1138 _ACEOF
1139
1140
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_STRING "$PACKAGE_STRING"
1143 _ACEOF
1144
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1148 _ACEOF
1149
1150
1151 # Let the site file select an alternate cache file if it wants to.
1152 # Prefer explicitly selected file to automatically selected ones.
1153 if test -z "$CONFIG_SITE"; then
1154 if test "x$prefix" != xNONE; then
1155 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1156 else
1157 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1158 fi
1159 fi
1160 for ac_site_file in $CONFIG_SITE; do
1161 if test -r "$ac_site_file"; then
1162 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1163 echo "$as_me: loading site script $ac_site_file" >&6;}
1164 sed 's/^/| /' "$ac_site_file" >&5
1165 . "$ac_site_file"
1166 fi
1167 done
1168
1169 if test -r "$cache_file"; then
1170 # Some versions of bash will fail to source /dev/null (special
1171 # files actually), so we avoid doing that.
1172 if test -f "$cache_file"; then
1173 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1174 echo "$as_me: loading cache $cache_file" >&6;}
1175 case $cache_file in
1176 [\\/]* | ?:[\\/]* ) . $cache_file;;
1177 *) . ./$cache_file;;
1178 esac
1179 fi
1180 else
1181 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1182 echo "$as_me: creating cache $cache_file" >&6;}
1183 >$cache_file
1184 fi
1185
1186 # Check that the precious variables saved in the cache have kept the same
1187 # value.
1188 ac_cache_corrupted=false
1189 for ac_var in `(set) 2>&1 |
1190 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1191 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1192 eval ac_new_set=\$ac_env_${ac_var}_set
1193 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1194 eval ac_new_val="\$ac_env_${ac_var}_value"
1195 case $ac_old_set,$ac_new_set in
1196 set,)
1197 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1198 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1199 ac_cache_corrupted=: ;;
1200 ,set)
1201 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1202 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1203 ac_cache_corrupted=: ;;
1204 ,);;
1205 *)
1206 if test "x$ac_old_val" != "x$ac_new_val"; then
1207 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1208 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1209 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1210 echo "$as_me: former value: $ac_old_val" >&2;}
1211 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1212 echo "$as_me: current value: $ac_new_val" >&2;}
1213 ac_cache_corrupted=:
1214 fi;;
1215 esac
1216 # Pass precious variables to config.status.
1217 if test "$ac_new_set" = set; then
1218 case $ac_new_val in
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 *) ac_arg=$ac_var=$ac_new_val ;;
1222 esac
1223 case " $ac_configure_args " in
1224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1225 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1226 esac
1227 fi
1228 done
1229 if $ac_cache_corrupted; then
1230 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1231 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1232 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1233 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1234 { (exit 1); exit 1; }; }
1235 fi
1236
1237 ac_ext=c
1238 ac_cpp='$CPP $CPPFLAGS'
1239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1262
1263
1264 test "$program_prefix" != NONE &&
1265 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1266 # Use a double $ so make ignores it.
1267 test "$program_suffix" != NONE &&
1268 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1269 # Double any \ or $. echo might interpret backslashes.
1270 # By default was `s,x,x', remove it if useless.
1271 cat <<\_ACEOF >conftest.sed
1272 s/[\\$]/&&/g;s/;s,x,x,$//
1273 _ACEOF
1274 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1275 rm conftest.sed
1276
1277
1278 lispdir='${datadir}/emacs/${version}/lisp'
1279 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1280 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1281 lisppath='${locallisppath}:${lispdir}'
1282 etcdir='${datadir}/emacs/${version}/etc'
1283 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1284 docdir='${datadir}/emacs/${version}/etc'
1285 gamedir='${localstatedir}/games/emacs'
1286
1287 gameuser=games
1288
1289
1290 # Check whether --with-gcc or --without-gcc was given.
1291 if test "${with_gcc+set}" = set; then
1292 withval="$with_gcc"
1293
1294 fi;
1295
1296 # Check whether --with-pop or --without-pop was given.
1297 if test "${with_pop+set}" = set; then
1298 withval="$with_pop"
1299 if test "$withval" = yes; then
1300 cat >>confdefs.h <<\_ACEOF
1301 #define MAIL_USE_POP 1
1302 _ACEOF
1303
1304 else :
1305 fi
1306 else
1307 cat >>confdefs.h <<\_ACEOF
1308 #define MAIL_USE_POP 1
1309 _ACEOF
1310
1311 fi;
1312
1313
1314 # Check whether --with-kerberos or --without-kerberos was given.
1315 if test "${with_kerberos+set}" = set; then
1316 withval="$with_kerberos"
1317 cat >>confdefs.h <<\_ACEOF
1318 #define KERBEROS 1
1319 _ACEOF
1320
1321 fi;
1322
1323
1324 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1325 if test "${with_kerberos5+set}" = set; then
1326 withval="$with_kerberos5"
1327 if test "${with_kerberos5+set}" = set; then
1328 if test "${with_kerberos+set}" != set; then
1329 with_kerberos=yes
1330 cat >>confdefs.h <<\_ACEOF
1331 #define KERBEROS 1
1332 _ACEOF
1333
1334 fi
1335 fi
1336
1337 cat >>confdefs.h <<\_ACEOF
1338 #define KERBEROS5 1
1339 _ACEOF
1340
1341 fi;
1342
1343 # Check whether --with-hesiod or --without-hesiod was given.
1344 if test "${with_hesiod+set}" = set; then
1345 withval="$with_hesiod"
1346
1347 cat >>confdefs.h <<\_ACEOF
1348 #define HESIOD 1
1349 _ACEOF
1350
1351 fi;
1352
1353
1354 # Check whether --with-sound or --without-sound was given.
1355 if test "${with_sound+set}" = set; then
1356 withval="$with_sound"
1357
1358 fi;
1359
1360
1361 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1362 if test "${with_x_toolkit+set}" = set; then
1363 withval="$with_x_toolkit"
1364 case "${withval}" in
1365 y | ye | yes ) val=athena ;;
1366 n | no ) val=no ;;
1367 l | lu | luc | luci | lucid ) val=lucid ;;
1368 a | at | ath | athe | athen | athena ) val=athena ;;
1369 m | mo | mot | moti | motif ) val=motif ;;
1370 * )
1371 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1372 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1373 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1374 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1375 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1376 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1377 { (exit 1); exit 1; }; }
1378 ;;
1379 esac
1380 with_x_toolkit=$val
1381
1382 fi;
1383
1384 # Check whether --with-xpm or --without-xpm was given.
1385 if test "${with_xpm+set}" = set; then
1386 withval="$with_xpm"
1387
1388 fi;
1389
1390 # Check whether --with-jpeg or --without-jpeg was given.
1391 if test "${with_jpeg+set}" = set; then
1392 withval="$with_jpeg"
1393
1394 fi;
1395
1396 # Check whether --with-tiff or --without-tiff was given.
1397 if test "${with_tiff+set}" = set; then
1398 withval="$with_tiff"
1399
1400 fi;
1401
1402 # Check whether --with-gif or --without-gif was given.
1403 if test "${with_gif+set}" = set; then
1404 withval="$with_gif"
1405
1406 fi;
1407
1408 # Check whether --with-png or --without-png was given.
1409 if test "${with_png+set}" = set; then
1410 withval="$with_png"
1411
1412 fi;
1413
1414 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1415 if test "${with_toolkit_scroll_bars+set}" = set; then
1416 withval="$with_toolkit_scroll_bars"
1417
1418 fi;
1419
1420 # Check whether --with-xim or --without-xim was given.
1421 if test "${with_xim+set}" = set; then
1422 withval="$with_xim"
1423
1424 fi;
1425
1426 # Check whether --with-carbon or --without-carbon was given.
1427 if test "${with_carbon+set}" = set; then
1428 withval="$with_carbon"
1429
1430 fi;
1431
1432 #### Make srcdir absolute, if it isn't already. It's important to
1433 #### avoid running the path through pwd unnecessarily, since pwd can
1434 #### give you automounter prefixes, which can go away. We do all this
1435 #### so Emacs can find its files when run uninstalled.
1436 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1437 unset CDPATH
1438 case "${srcdir}" in
1439 /* ) ;;
1440 . )
1441 ## We may be able to use the $PWD environment variable to make this
1442 ## absolute. But sometimes PWD is inaccurate.
1443 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1444 ## but that tested only for a well-formed and valid PWD,
1445 ## it did not object when PWD was well-formed and valid but just wrong.
1446 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1447 then
1448 srcdir="$PWD"
1449 else
1450 srcdir="`(cd ${srcdir}; pwd)`"
1451 fi
1452 ;;
1453 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1454 esac
1455
1456 #### Check if the source directory already has a configured system in it.
1457 if test `pwd` != `(cd ${srcdir} && pwd)` \
1458 && test -f "${srcdir}/src/config.h" ; then
1459 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1460 as a build directory right now; it has been configured in its own
1461 right. To configure in another directory as well, you MUST
1462 use GNU make. If you do not have GNU make, then you must
1463 now do \`make distclean' in ${srcdir},
1464 and then run $0 again." >&5
1465 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1466 as a build directory right now; it has been configured in its own
1467 right. To configure in another directory as well, you MUST
1468 use GNU make. If you do not have GNU make, then you must
1469 now do \`make distclean' in ${srcdir},
1470 and then run $0 again." >&2;}
1471
1472 extrasub='/^VPATH[ ]*=/c\
1473 vpath %.c $(srcdir)\
1474 vpath %.h $(srcdir)\
1475 vpath %.y $(srcdir)\
1476 vpath %.l $(srcdir)\
1477 vpath %.s $(srcdir)\
1478 vpath %.in $(srcdir)\
1479 vpath %.texi $(srcdir)'
1480 fi
1481
1482 #### Given the configuration name, set machfile and opsysfile to the
1483 #### names of the m/*.h and s/*.h files we should use.
1484
1485 ### Canonicalize the configuration name.
1486
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1507 fi
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1517
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1534
1535 fi
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
1543
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 ac_cv_host_alias=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias=$ac_cv_build_alias
1552 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1556
1557 fi
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1560 host=$ac_cv_host
1561 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
1565
1566 canonical=$host
1567 configuration=${host_alias-$host}
1568
1569
1570
1571 ### If you add support for a new configuration, add code to this
1572 ### switch statement to recognize your configuration name and select
1573 ### the appropriate operating system and machine description files.
1574
1575 ### You would hope that you could choose an m/*.h file pretty much
1576 ### based on the machine portion of the configuration name, and an s-
1577 ### file based on the operating system portion. However, it turns out
1578 ### that each m/*.h file is pretty manufacturer-specific - for
1579 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1580 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1581 ### machines. So we basically have to have a special case for each
1582 ### configuration name.
1583 ###
1584 ### As far as handling version numbers on operating systems is
1585 ### concerned, make sure things will fail in a fixable way. If
1586 ### /etc/MACHINES doesn't say anything about version numbers, be
1587 ### prepared to handle anything reasonably. If version numbers
1588 ### matter, be sure /etc/MACHINES says something about it.
1589 ###
1590 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1591 ### "System V Release 4"; he writes, "The old convention encouraged
1592 ### confusion between `system' and `release' levels'."
1593
1594 machine='' opsys='' unported=no
1595 case "${canonical}" in
1596
1597 ## FreeBSD ports
1598 *-*-freebsd* )
1599 opsys=freebsd
1600 case "${canonical}" in
1601 alpha*-*-freebsd*) machine=alpha ;;
1602 i[3456]86-*-freebsd*) machine=intel386 ;;
1603 esac
1604 ;;
1605
1606 ## NetBSD ports
1607 *-*-netbsd* )
1608 opsys=netbsd
1609 case "${canonical}" in
1610 alpha*-*-netbsd*) machine=alpha ;;
1611 i[3456]86-*-netbsd*) machine=intel386 ;;
1612 m68k-*-netbsd*)
1613 # This is somewhat bogus.
1614 machine=hp9000s300 ;;
1615 powerpc-apple-netbsd*) machine=macppc ;;
1616 mips-*-netbsd*) machine=pmax ;;
1617 mipsel-*-netbsd*) machine=pmax ;;
1618 mipseb-*-netbsd*) machine=pmax ;;
1619 ns32k-*-netbsd*) machine=ns32000 ;;
1620 powerpc-*-netbsd*) machine=macppc ;;
1621 sparc*-*-netbsd*) machine=sparc ;;
1622 vax-*-netbsd*) machine=vax ;;
1623 arm-*-netbsd*) machine=arm ;;
1624 esac
1625 ;;
1626
1627 ## OpenBSD ports
1628 *-*-openbsd* )
1629 opsys=openbsd
1630 case "${canonical}" in
1631 alpha*-*-openbsd*) machine=alpha ;;
1632 i386-*-openbsd*) machine=intel386 ;;
1633 m68k-*-openbsd*) machine=hp9000s300 ;;
1634 mipsel-*-openbsd*) machine=pmax ;;
1635 ns32k-*-openbsd*) machine=ns32000 ;;
1636 sparc-*-openbsd*) machine=sparc ;;
1637 vax-*-openbsd*) machine=vax ;;
1638 esac
1639 ;;
1640
1641 ## Acorn RISCiX:
1642 arm-acorn-riscix1.1* )
1643 machine=acorn opsys=riscix1-1
1644 ;;
1645 arm-acorn-riscix1.2* | arm-acorn-riscix )
1646 ## This name is riscix12 instead of riscix1.2
1647 ## to avoid a file name conflict on MSDOS.
1648 machine=acorn opsys=riscix12
1649 ;;
1650
1651 ## BSDI ports
1652 *-*-bsdi* )
1653 opsys=bsdi
1654 case "${canonical}" in
1655 i[345]86-*-bsdi*) machine=intel386 ;;
1656 sparc-*-bsdi*) machine=sparc ;;
1657 powerpc-*-bsdi*) machine=macppc ;;
1658 esac
1659 case "${canonical}" in
1660 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1661 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1662 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1663 *-*-bsdi3* ) opsys=bsdos3 ;;
1664 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1665 esac
1666 ;;
1667
1668 ## Alliant machines
1669 ## Strictly speaking, we need the version of the alliant operating
1670 ## system to choose the right machine file, but currently the
1671 ## configuration name doesn't tell us enough to choose the right
1672 ## one; we need to give alliants their own operating system name to
1673 ## do this right. When someone cares, they can help us.
1674 fx80-alliant-* )
1675 machine=alliant4 opsys=bsd4-2
1676 ;;
1677 i860-alliant-* )
1678 machine=alliant-2800 opsys=bsd4-3
1679 ;;
1680
1681 ## Alpha (DEC) machines.
1682 alpha*-dec-osf* )
1683 machine=alpha opsys=osf1
1684 # This is needed to find X11R6.1 libraries for certain tests.
1685 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1686 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1687 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1688 # due to non-traditional preprocessing with the current compiler
1689 # defaults. OSF 4 can also have that compiler version, and there
1690 # seems always to have been a usable /usr/bin/cpp.
1691 NON_GNU_CPP=/usr/bin/cpp
1692 case "${canonical}" in
1693 alpha*-dec-osf[5-9]*)
1694 opsys=osf5-0 ;;
1695 esac
1696 ;;
1697
1698 alpha*-*-linux-gnu* )
1699 machine=alpha opsys=gnu-linux
1700 ;;
1701
1702 arm*-*-linux-gnu* )
1703 machine=arm opsys=gnu-linux
1704 ;;
1705
1706 ppc-*-linux | \
1707 powerpc-*-linux* )
1708 machine=macppc opsys=gnu-linux
1709 ;;
1710
1711 ## Altos 3068
1712 m68*-altos-sysv* )
1713 machine=altos opsys=usg5-2
1714 ;;
1715
1716 ## Amdahl UTS
1717 580-amdahl-sysv* )
1718 machine=amdahl opsys=usg5-2-2
1719 ;;
1720
1721 ## Apollo, Domain/OS
1722 m68*-apollo-* )
1723 machine=apollo opsys=bsd4-3
1724 ;;
1725
1726 ## AT&T 3b2, 3b5, 3b15, 3b20
1727 we32k-att-sysv* )
1728 machine=att3b opsys=usg5-2-2
1729 ;;
1730
1731 ## AT&T 3b1 - The Mighty Unix PC!
1732 m68*-att-sysv* )
1733 machine=7300 opsys=usg5-2-2
1734 ;;
1735
1736 ## Bull dpx20
1737 rs6000-bull-bosx* )
1738 machine=ibmrs6000 opsys=aix3-2
1739 ;;
1740
1741 ## Bull dpx2
1742 m68*-bull-sysv3* )
1743 machine=dpx2 opsys=usg5-3
1744 ;;
1745
1746 ## Bull sps7
1747 m68*-bull-sysv2* )
1748 machine=sps7 opsys=usg5-2
1749 ;;
1750
1751 ## CCI 5/32, 6/32 -- see "Tahoe".
1752
1753 ## Celerity
1754 ## I don't know what configuration name to use for this; config.sub
1755 ## doesn't seem to know anything about it. Hey, Celerity users, get
1756 ## in touch with us!
1757 celerity-celerity-bsd* )
1758 machine=celerity opsys=bsd4-2
1759 ;;
1760
1761 ## Clipper
1762 ## What operating systems does this chip run that Emacs has been
1763 ## tested on?
1764 clipper-* )
1765 machine=clipper
1766 ## We'll use the catch-all code at the bottom to guess the
1767 ## operating system.
1768 ;;
1769
1770 ## Compaq Nonstop
1771 mips-compaq-nonstopux* )
1772 machine=nonstopux opsys=nonstopux
1773 ;;
1774
1775 ## Convex
1776 *-convex-bsd* | *-convex-convexos* )
1777 machine=convex opsys=bsd4-3
1778 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1779 NON_GNU_CPP="cc -E -P"
1780 ;;
1781
1782 ## Cubix QBx/386
1783 i[3456]86-cubix-sysv* )
1784 machine=intel386 opsys=usg5-3
1785 ;;
1786
1787 ## Cydra 5
1788 cydra*-cydrome-sysv* )
1789 machine=cydra5 opsys=usg5-3
1790 ;;
1791
1792 ## Data General AViiON Machines
1793 ## DG changed naming conventions with the release of 5.4.4.10, they
1794 ## dropped the initial 5.4 but left the intervening R. Because of the
1795 ## R this shouldn't conflict with older versions of the OS (which I
1796 ## think were named like dgux4.*). In addition, DG new AViiONs series
1797 ## uses either Motorola M88k or Intel Pentium CPUs.
1798 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1799 machine=aviion opsys=dgux4
1800 ;;
1801 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1802 ## This name is dgux5-4-3 instead of dgux5-4r3
1803 ## to avoid a file name conflict on MSDOS.
1804 machine=aviion opsys=dgux5-4-3
1805 ;;
1806 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1807 machine=aviion opsys=dgux5-4r2
1808 ;;
1809 m88k-dg-dgux* )
1810 machine=aviion opsys=dgux
1811 ;;
1812
1813 ## Data General AViiON Intel (x86) Machines
1814 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1815 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1816 i[345]86-dg-dguxR4* )
1817 machine=aviion-intel opsys=dgux4
1818 ;;
1819
1820 ## DECstations
1821 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1822 machine=pmax opsys=bsd4-2
1823 ;;
1824 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1825 machine=pmax opsys=bsd4-3
1826 ;;
1827 mips-dec-ultrix* )
1828 machine=pmax opsys=ultrix4-3
1829 ;;
1830 mips-dec-osf* )
1831 machine=pmax opsys=osf1
1832 ;;
1833 mips-dec-mach_bsd4.3* )
1834 machine=pmax opsys=mach-bsd4-3
1835 ;;
1836
1837 ## Motorola Delta machines
1838 m68k-motorola-sysv* | m68000-motorola-sysv* )
1839 machine=delta opsys=usg5-3
1840 if test -z "`type gnucc | grep 'not found'`"
1841 then
1842 if test -s /etc/167config
1843 then CC="gnucc -m68040"
1844 else CC="gnucc -m68881"
1845 fi
1846 else
1847 if test -z "`type gcc | grep 'not found'`"
1848 then CC=gcc
1849 else CC=cc
1850 fi
1851 fi
1852 ;;
1853 m88k-motorola-sysv4* )
1854 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1855 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1856 # I hope there are not other 4.0 versions for this machine
1857 # which really need usg5-4 instead.
1858 machine=delta88k opsys=usg5-4-2
1859 ;;
1860 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1861 machine=delta88k opsys=usg5-3
1862 ;;
1863
1864 ## Dual machines
1865 m68*-dual-sysv* )
1866 machine=dual opsys=usg5-2
1867 ;;
1868 m68*-dual-uniplus* )
1869 machine=dual opsys=unipl5-2
1870 ;;
1871
1872 ## Elxsi 6400
1873 elxsi-elxsi-sysv* )
1874 machine=elxsi opsys=usg5-2
1875 ;;
1876
1877 ## Encore machines
1878 ns16k-encore-bsd* )
1879 machine=ns16000 opsys=umax
1880 ;;
1881
1882 ## The GEC 63 - apparently, this port isn't really finished yet.
1883 # I'm sure we finished off the last of the machines, though. -- fx
1884
1885 ## Gould Power Node and NP1
1886 pn-gould-bsd4.2* )
1887 machine=gould opsys=bsd4-2
1888 ;;
1889 pn-gould-bsd4.3* )
1890 machine=gould opsys=bsd4-3
1891 ;;
1892 np1-gould-bsd* )
1893 machine=gould-np1 opsys=bsd4-3
1894 ;;
1895
1896 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1897 ## as far as Emacs is concerned).
1898 m88k-harris-cxux* )
1899 # Build needs to be different on 7.0 and later releases
1900 case "`uname -r`" in
1901 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1902 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1903 esac
1904 NON_GNU_CPP="/lib/cpp"
1905 ;;
1906 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1907 m68k-harris-cxux* )
1908 machine=nh3000 opsys=cxux
1909 ;;
1910 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1911 powerpc-harris-powerunix )
1912 machine=nh6000 opsys=powerunix
1913 NON_GNU_CPP="cc -Xo -E -P"
1914 ;;
1915 ## SR2001/SR2201 running HI-UX/MPP
1916 hppa1.1-hitachi-hiuxmpp* )
1917 machine=sr2k opsys=hiuxmpp
1918 ;;
1919 hppa1.1-hitachi-hiuxwe2* )
1920 machine=sr2k opsys=hiuxwe2
1921 ;;
1922 ## Honeywell XPS100
1923 xps*-honeywell-sysv* )
1924 machine=xps100 opsys=usg5-2
1925 ;;
1926
1927 ## HP 9000 series 200 or 300
1928 m68*-hp-bsd* )
1929 machine=hp9000s300 opsys=bsd4-3
1930 ;;
1931 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1932 m68*-hp-hpux* )
1933 case "`uname -r`" in
1934 ## Someone's system reports A.B8.05 for this.
1935 ## I wonder what other possibilities there are.
1936 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1937 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1938 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1939 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1940 *) machine=hp9000s300 opsys=hpux ;;
1941 esac
1942 ;;
1943
1944 ## HP 9000 series 700 and 800, running HP/UX
1945 hppa*-hp-hpux7* )
1946 machine=hp800 opsys=hpux
1947 ;;
1948 hppa*-hp-hpux8* )
1949 machine=hp800 opsys=hpux8
1950 ;;
1951 hppa*-hp-hpux9shr* )
1952 machine=hp800 opsys=hpux9shr
1953 ;;
1954 hppa*-hp-hpux9* )
1955 machine=hp800 opsys=hpux9
1956 ;;
1957 hppa*-hp-hpux10* )
1958 machine=hp800 opsys=hpux10
1959 ;;
1960 hppa*-hp-hpux1[1-9]* )
1961 machine=hp800 opsys=hpux11
1962 ;;
1963
1964 hppa*-*-linux-gnu* )
1965 machine=hp800 opsys=gnu-linux
1966 ;;
1967
1968 ## HP 9000 series 700 and 800, running HP/UX
1969 hppa*-hp-hpux* )
1970 ## Cross-compilation? Nah!
1971 case "`uname -r`" in
1972 ## Someone's system reports A.B8.05 for this.
1973 ## I wonder what other possibilities there are.
1974 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1975 *.08.* ) machine=hp800 opsys=hpux8 ;;
1976 *.09.* ) machine=hp800 opsys=hpux9 ;;
1977 *) machine=hp800 opsys=hpux10 ;;
1978 esac
1979 ;;
1980 hppa*-*-nextstep* )
1981 machine=hp800 opsys=nextstep
1982 ;;
1983
1984 ## Orion machines
1985 orion-orion-bsd* )
1986 machine=orion opsys=bsd4-2
1987 ;;
1988 clipper-orion-bsd* )
1989 machine=orion105 opsys=bsd4-2
1990 ;;
1991
1992 ## IBM machines
1993 i[3456]86-ibm-aix1.1* )
1994 machine=ibmps2-aix opsys=usg5-2-2
1995 ;;
1996 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1997 machine=ibmps2-aix opsys=usg5-3
1998 ;;
1999 i370-ibm-aix*)
2000 machine=ibm370aix opsys=usg5-3
2001 ;;
2002 s390-*-linux-gnu)
2003 machine=ibms390 opsys=gnu-linux
2004 ;;
2005 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2006 machine=ibmrs6000 opsys=aix3-1
2007 ;;
2008 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2009 machine=ibmrs6000 opsys=aix3-2-5
2010 ;;
2011 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2012 machine=ibmrs6000 opsys=aix4-1
2013 ;;
2014 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2015 machine=ibmrs6000 opsys=aix4-2
2016 ;;
2017 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2018 machine=ibmrs6000 opsys=aix4-2
2019 ;;
2020 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2021 machine=ibmrs6000 opsys=aix4
2022 ;;
2023 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2024 machine=ibmrs6000 opsys=aix4-1
2025 ;;
2026 rs6000-ibm-aix* | powerpc-ibm-aix* )
2027 machine=ibmrs6000 opsys=aix3-2
2028 ;;
2029 romp-ibm-bsd4.3* )
2030 machine=ibmrt opsys=bsd4-3
2031 ;;
2032 romp-ibm-bsd4.2* )
2033 machine=ibmrt opsys=bsd4-2
2034 ;;
2035 romp-ibm-aos4.3* )
2036 machine=ibmrt opsys=bsd4-3
2037 ;;
2038 romp-ibm-aos4.2* )
2039 machine=ibmrt opsys=bsd4-2
2040 ;;
2041 romp-ibm-aos* )
2042 machine=ibmrt opsys=bsd4-3
2043 ;;
2044 romp-ibm-bsd* )
2045 machine=ibmrt opsys=bsd4-3
2046 ;;
2047 romp-ibm-aix* )
2048 machine=ibmrt-aix opsys=usg5-2-2
2049 ;;
2050
2051 ## Integrated Solutions `Optimum V'
2052 m68*-isi-bsd4.2* )
2053 machine=isi-ov opsys=bsd4-2
2054 ;;
2055 m68*-isi-bsd4.3* )
2056 machine=isi-ov opsys=bsd4-3
2057 ;;
2058
2059 ## Intel 386 machines where we do care about the manufacturer
2060 i[3456]86-intsys-sysv* )
2061 machine=is386 opsys=usg5-2-2
2062 ;;
2063
2064 ## Prime EXL
2065 i[3456]86-prime-sysv* )
2066 machine=i386 opsys=usg5-3
2067 ;;
2068
2069 ## Sequent Symmetry running Dynix
2070 i[3456]86-sequent-bsd* )
2071 machine=symmetry opsys=bsd4-3
2072 ;;
2073
2074 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2075 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2076 machine=sequent-ptx opsys=ptx4
2077 NON_GNU_CPP=/lib/cpp
2078 ;;
2079
2080 ## Sequent Symmetry running DYNIX/ptx
2081 ## Use the old cpp rather than the newer ANSI one.
2082 i[3456]86-sequent-ptx* )
2083 machine=sequent-ptx opsys=ptx
2084 NON_GNU_CPP="/lib/cpp"
2085 ;;
2086
2087 ## ncr machine running svr4.3.
2088 i[3456]86-ncr-sysv4.3 )
2089 machine=ncr386 opsys=usg5-4-3
2090 ;;
2091
2092 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2093 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2094 i[3456]86-ncr-sysv* )
2095 machine=ncr386 opsys=usg5-4-2
2096 ;;
2097
2098 ## Intel Paragon OSF/1
2099 i860-intel-osf1* )
2100 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2101 ;;
2102
2103 ## Intel 860
2104 i860-*-sysv4* )
2105 machine=i860 opsys=usg5-4
2106 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2107 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2108 ;;
2109
2110 ## Macintosh PowerPC
2111 powerpc*-*-linux-gnu* )
2112 machine=macppc opsys=gnu-linux
2113 ;;
2114
2115 ## Masscomp machines
2116 m68*-masscomp-rtu* )
2117 machine=masscomp opsys=rtu
2118 ;;
2119
2120 ## Megatest machines
2121 m68*-megatest-bsd* )
2122 machine=mega68 opsys=bsd4-2
2123 ;;
2124
2125 ## Workstations sold by MIPS
2126 ## This is not necessarily all workstations using the MIPS processor -
2127 ## Irises are produced by SGI, and DECstations by DEC.
2128
2129 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2130 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2131 ## it gives for choosing between the alternatives seems to be "Use
2132 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2133 ## the BSD world." I'll assume that these are instructions for
2134 ## handling two odd situations, and that every other situation
2135 ## should use mips.h and usg5-2-2, they being listed first.
2136 mips-mips-usg* )
2137 machine=mips4
2138 ## Fall through to the general code at the bottom to decide on the OS.
2139 ;;
2140 mips-mips-riscos4* )
2141 machine=mips4 opsys=bsd4-3
2142 NON_GNU_CC="cc -systype bsd43"
2143 NON_GNU_CPP="cc -systype bsd43 -E"
2144 ;;
2145 mips-mips-riscos5* )
2146 machine=mips4 opsys=riscos5
2147 NON_GNU_CC="cc -systype bsd43"
2148 NON_GNU_CPP="cc -systype bsd43 -E"
2149 ;;
2150 mips-mips-bsd* )
2151 machine=mips opsys=bsd4-3
2152 ;;
2153 mips-mips-* )
2154 machine=mips opsys=usg5-2-2
2155 ;;
2156
2157 ## NeXT
2158 m68*-next-* | m68k-*-nextstep* )
2159 machine=m68k opsys=nextstep
2160 ;;
2161
2162 ## The complete machine from National Semiconductor
2163 ns32k-ns-genix* )
2164 machine=ns32000 opsys=usg5-2
2165 ;;
2166
2167 ## NCR machines
2168 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2169 machine=tower32 opsys=usg5-2-2
2170 ;;
2171 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2172 machine=tower32v3 opsys=usg5-3
2173 ;;
2174
2175 ## NEC EWS4800
2176 mips-nec-sysv4*)
2177 machine=ews4800 opsys=ux4800
2178 ;;
2179
2180 ## Nixdorf Targon 31
2181 m68*-nixdorf-sysv* )
2182 machine=targon31 opsys=usg5-2-2
2183 ;;
2184
2185 ## Nu (TI or LMI)
2186 m68*-nu-sysv* )
2187 machine=nu opsys=usg5-2
2188 ;;
2189
2190 ## Plexus
2191 m68*-plexus-sysv* )
2192 machine=plexus opsys=usg5-2
2193 ;;
2194
2195 ## Pyramid machines
2196 ## I don't really have any idea what sort of processor the Pyramid has,
2197 ## so I'm assuming it is its own architecture.
2198 pyramid-pyramid-bsd* )
2199 machine=pyramid opsys=bsd4-2
2200 ;;
2201
2202 ## Sequent Balance
2203 ns32k-sequent-bsd4.2* )
2204 machine=sequent opsys=bsd4-2
2205 ;;
2206 ns32k-sequent-bsd4.3* )
2207 machine=sequent opsys=bsd4-3
2208 ;;
2209
2210 ## Siemens Nixdorf
2211 mips-siemens-sysv* | mips-sni-sysv*)
2212 machine=mips-siemens opsys=usg5-4
2213 NON_GNU_CC=/usr/ccs/bin/cc
2214 NON_GNU_CPP=/usr/ccs/lib/cpp
2215 ;;
2216
2217 ## Silicon Graphics machines
2218 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2219 m68*-sgi-iris3.5* )
2220 machine=irist opsys=iris3-5
2221 ;;
2222 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2223 machine=irist opsys=iris3-6
2224 ;;
2225 ## Iris 4D
2226 mips-sgi-irix3* )
2227 machine=iris4d opsys=irix3-3
2228 ;;
2229 mips-sgi-irix4* )
2230 machine=iris4d opsys=irix4-0
2231 ;;
2232 mips-sgi-irix6.5 )
2233 machine=iris4d opsys=irix6-5
2234 # Without defining _LANGUAGE_C, things get masked out in the headers
2235 # so that, for instance, grepping for `free' in stdlib.h fails and
2236 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2237 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2238 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2239 ;;
2240 mips-sgi-irix6* )
2241 machine=iris4d opsys=irix6-0
2242 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2243 # but presumably it does no harm.
2244 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2245 # -32 probably isn't necessary in later v.6s -- anyone know which?
2246 NON_GCC_TEST_OPTIONS=-32
2247 ;;
2248 mips-sgi-irix5.[01]* )
2249 machine=iris4d opsys=irix5-0
2250 ;;
2251 mips-sgi-irix5* | mips-sgi-irix* )
2252 machine=iris4d opsys=irix5-2
2253 ;;
2254
2255 ## SONY machines
2256 m68*-sony-bsd4.2* )
2257 machine=news opsys=bsd4-2
2258 ;;
2259 m68*-sony-bsd4.3* )
2260 machine=news opsys=bsd4-3
2261 ;;
2262 m68*-sony-newsos3* | m68*-sony-news3*)
2263 machine=news opsys=bsd4-3
2264 ;;
2265 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2266 machine=news-risc opsys=bsd4-3
2267 ;;
2268 mips-sony-newsos6* )
2269 machine=news-r6 opsys=newsos6
2270 ;;
2271 mips-sony-news* )
2272 machine=news-risc opsys=newsos5
2273 ;;
2274
2275 ## Stride
2276 m68*-stride-sysv* )
2277 machine=stride opsys=usg5-2
2278 ;;
2279
2280 ## Suns
2281 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2282 machine=sparc opsys=gnu-linux
2283 ;;
2284
2285 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2286 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2287 | rs6000-*-solaris2*)
2288 case "${canonical}" in
2289 m68*-sunos1* ) machine=sun1 ;;
2290 m68*-sunos2* ) machine=sun2 ;;
2291 m68* ) machine=sun3 ;;
2292 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2293 i[3456]86-*-* ) machine=intel386 ;;
2294 powerpcle* ) machine=powerpcle ;;
2295 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2296 sparc* ) machine=sparc ;;
2297 * ) unported=yes ;;
2298 esac
2299 case "${canonical}" in
2300 ## The Sun386 didn't get past 4.0.
2301 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2302 *-sunos4.0* ) opsys=sunos4-0 ;;
2303 *-sunos4.1.[3-9]*noshare )
2304 ## This name is sunos413 instead of sunos4-1-3
2305 ## to avoid a file name conflict on MSDOS.
2306 opsys=sunos413
2307 NON_GNU_CPP=/usr/lib/cpp
2308 NON_GCC_TEST_OPTIONS=-Bstatic
2309 GCC_TEST_OPTIONS=-static
2310 ;;
2311 *-sunos4.1.[3-9]* | *-sunos4shr*)
2312 opsys=sunos4shr
2313 NON_GNU_CPP=/usr/lib/cpp
2314 ;;
2315 *-sunos4* | *-sunos )
2316 opsys=sunos4-1
2317 NON_GCC_TEST_OPTIONS=-Bstatic
2318 GCC_TEST_OPTIONS=-static
2319 ;;
2320 *-sunos5.3* | *-solaris2.3* )
2321 opsys=sol2-3
2322 NON_GNU_CPP=/usr/ccs/lib/cpp
2323 ;;
2324 *-sunos5.4* | *-solaris2.4* )
2325 opsys=sol2-4
2326 NON_GNU_CPP=/usr/ccs/lib/cpp
2327 RANLIB="ar -ts"
2328 ;;
2329 *-sunos5.5* | *-solaris2.5* )
2330 opsys=sol2-5
2331 NON_GNU_CPP=/usr/ccs/lib/cpp
2332 RANLIB="ar -ts"
2333 ;;
2334 *-sunos5.6* | *-solaris2.6* )
2335 opsys=sol2-6
2336 NON_GNU_CPP=/usr/ccs/lib/cpp
2337 RANLIB="ar -ts"
2338 ;;
2339 *-sunos5.8* | *-solaris2.8* )
2340 opsys=sol2-8
2341 NON_GNU_CPP=/usr/ccs/lib/cpp
2342 RANLIB="ar -ts"
2343 ;;
2344 *-sunos5* | *-solaris* )
2345 opsys=sol2-8
2346 NON_GNU_CPP=/usr/ccs/lib/cpp
2347 ;;
2348 * ) opsys=bsd4-2 ;;
2349 esac
2350 ## Watch out for a compiler that we know will not work.
2351 case "${canonical}" in
2352 *-solaris* | *-sunos5* )
2353 if [ "x$CC" = x/usr/ucb/cc ]; then
2354 ## /usr/ucb/cc doesn't work;
2355 ## we should find some other compiler that does work.
2356 unset CC
2357 fi
2358 ;;
2359 *) ;;
2360 esac
2361 ;;
2362 sparc-*-nextstep* )
2363 machine=sparc opsys=nextstep
2364 ;;
2365
2366 ## Tadpole 68k
2367 m68*-tadpole-sysv* )
2368 machine=tad68k opsys=usg5-3
2369 ;;
2370
2371 ## Tahoe machines
2372 tahoe-tahoe-bsd4.2* )
2373 machine=tahoe opsys=bsd4-2
2374 ;;
2375 tahoe-tahoe-bsd4.3* )
2376 machine=tahoe opsys=bsd4-3
2377 ;;
2378
2379 ## Tandem Integrity S2
2380 mips-tandem-sysv* )
2381 machine=tandem-s2 opsys=usg5-3
2382 ;;
2383
2384 ## Tektronix XD88
2385 m88k-tektronix-sysv3* )
2386 machine=tekxd88 opsys=usg5-3
2387 ;;
2388
2389 ## Tektronix 16000 box (6130?)
2390 ns16k-tektronix-bsd* )
2391 machine=ns16000 opsys=bsd4-2
2392 ;;
2393 ## Tektronix 4300
2394 ## src/m/tek4300.h hints that this is a m68k machine.
2395 m68*-tektronix-bsd* )
2396 machine=tek4300 opsys=bsd4-3
2397 ;;
2398
2399 ## Titan P2 or P3
2400 ## We seem to have lost the machine-description file titan.h!
2401 titan-titan-sysv* )
2402 machine=titan opsys=usg5-3
2403 ;;
2404
2405 ## Ustation E30 (SS5E)
2406 m68*-unisys-uniplus* )
2407 machine=ustation opsystem=unipl5-2
2408 ;;
2409
2410 ## Vaxen.
2411 vax-dec-* )
2412 machine=vax
2413 case "${canonical}" in
2414 *-bsd4.1* ) opsys=bsd4-1 ;;
2415 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2416 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2417 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2418 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2419 *-vms* ) opsys=vms ;;
2420 * ) unported=yes
2421 esac
2422 ;;
2423
2424 ## Whitechapel MG1
2425 ns16k-whitechapel-* )
2426 machine=mg1
2427 ## We don't know what sort of OS runs on these; we'll let the
2428 ## operating system guessing code below try.
2429 ;;
2430
2431 ## Wicat
2432 m68*-wicat-sysv* )
2433 machine=wicat opsys=usg5-2
2434 ;;
2435
2436 ## IA-64
2437 ia64*-*-linux* )
2438 machine=ia64 opsys=gnu-linux
2439 ;;
2440
2441 ## Intel 386 machines where we don't care about the manufacturer
2442 i[3456]86-*-* )
2443 machine=intel386
2444 case "${canonical}" in
2445 *-lynxos* ) opsys=lynxos ;;
2446 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2447 *-isc2.2* ) opsys=isc2-2 ;;
2448 *-isc4.0* ) opsys=isc4-0 ;;
2449 *-isc4.* ) opsys=isc4-1
2450 GCC_TEST_OPTIONS=-posix
2451 NON_GCC_TEST_OPTIONS=-Xp
2452 ;;
2453 *-isc* ) opsys=isc3-0 ;;
2454 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2455 *-esix* ) opsys=esix ;;
2456 *-xenix* ) opsys=xenix ;;
2457 *-linux-gnu* ) opsys=gnu-linux ;;
2458 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2459 *-sco3.2v5* ) opsys=sco5
2460 NON_GNU_CPP=/lib/cpp
2461 # Prevent -belf from being passed to $CPP.
2462 # /lib/cpp does not accept it.
2463 OVERRIDE_CPPFLAGS=" "
2464 ;;
2465 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2466 *-386bsd* ) opsys=386bsd ;;
2467 *-nextstep* ) opsys=nextstep ;;
2468 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2469 esac
2470 ;;
2471
2472 ## m68k Linux-based GNU system
2473 m68k-*-linux-gnu* )
2474 machine=m68k opsys=gnu-linux
2475 ;;
2476
2477 ## Mips Linux-based GNU system
2478 mips-*-linux-gnu* )
2479 machine=mips opsys=gnu-linux
2480 ;;
2481
2482 ## UXP/DS
2483 sparc-fujitsu-sysv4* )
2484 machine=sparc opsys=uxpds
2485 NON_GNU_CPP=/usr/ccs/lib/cpp
2486 RANLIB="ar -ts"
2487 ;;
2488
2489 ## UXP/V
2490 f301-fujitsu-uxpv4.1)
2491 machine=f301 opsys=uxpv
2492 ;;
2493
2494 ## Darwin / Mac OS X
2495 powerpc-apple-darwin* )
2496 machine=powermac opsys=darwin
2497 # Define CPP as follows to make autoconf work correctly.
2498 CPP="cc -E -traditional-cpp"
2499 ;;
2500
2501 ## AMD x86-64 Linux-based GNU system
2502 x86_64-*-linux-gnu* )
2503 machine=amdx86-64 opsys=gnu-linux
2504 ;;
2505
2506 * )
2507 unported=yes
2508 ;;
2509 esac
2510
2511 ### If the code above didn't choose an operating system, just choose
2512 ### an operating system based on the configuration name. You really
2513 ### only want to use this when you have no idea what the right
2514 ### operating system is; if you know what operating systems a machine
2515 ### runs, it's cleaner to make it explicit in the case statement
2516 ### above.
2517 if test x"${opsys}" = x; then
2518 case "${canonical}" in
2519 *-gnu* ) opsys=gnu ;;
2520 *-bsd4.[01] ) opsys=bsd4-1 ;;
2521 *-bsd4.2 ) opsys=bsd4-2 ;;
2522 *-bsd4.3 ) opsys=bsd4-3 ;;
2523 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2524 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2525 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2526 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2527 *-sysv4.2uw* ) opsys=unixware ;;
2528 *-sysv4.1* | *-sysvr4.1* )
2529 NON_GNU_CPP=/usr/lib/cpp
2530 opsys=usg5-4 ;;
2531 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2532 if [ x$NON_GNU_CPP = x ]; then
2533 if [ -f /usr/ccs/lib/cpp ]; then
2534 NON_GNU_CPP=/usr/ccs/lib/cpp
2535 else
2536 NON_GNU_CPP=/lib/cpp
2537 fi
2538 fi
2539 opsys=usg5-4-2 ;;
2540 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2541 * )
2542 unported=yes
2543 ;;
2544 esac
2545 fi
2546
2547
2548
2549 if test $unported = yes; then
2550 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2551 Check \`etc/MACHINES' for recognized configuration names." >&5
2552 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2553 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2554 { (exit 1); exit 1; }; }
2555 fi
2556
2557 machfile="m/${machine}.h"
2558 opsysfile="s/${opsys}.h"
2559
2560
2561 #### Choose a compiler.
2562 test -n "$CC" && cc_specified=yes
2563
2564 # Save the value of CFLAGS that the user specified.
2565 SPECIFIED_CFLAGS="$CFLAGS"
2566
2567 case ${with_gcc} in
2568 "yes" ) CC="gcc" GCC=yes ;;
2569 "no" ) : ${CC=cc} ;;
2570 * )
2571 esac
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2580 echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599 done
2600 done
2601
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6
2608 else
2609 echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2611 fi
2612
2613 fi
2614 if test -z "$ac_cv_prog_CC"; then
2615 ac_ct_CC=$CC
2616 # Extract the first word of "gcc", so it can be a program name with args.
2617 set dummy gcc; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_ac_ct_CC="gcc"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637 done
2638 done
2639
2640 fi
2641 fi
2642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643 if test -n "$ac_ct_CC"; then
2644 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645 echo "${ECHO_T}$ac_ct_CC" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649 fi
2650
2651 CC=$ac_ct_CC
2652 else
2653 CC="$ac_cv_prog_CC"
2654 fi
2655
2656 if test -z "$CC"; then
2657 if test -n "$ac_tool_prefix"; then
2658 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2659 set dummy ${ac_tool_prefix}cc; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_CC="${ac_tool_prefix}cc"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681
2682 fi
2683 fi
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686 echo "$as_me:$LINENO: result: $CC" >&5
2687 echo "${ECHO_T}$CC" >&6
2688 else
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2691 fi
2692
2693 fi
2694 if test -z "$ac_cv_prog_CC"; then
2695 ac_ct_CC=$CC
2696 # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc; ac_word=$2
2698 echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 if test -n "$ac_ct_CC"; then
2704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_ac_ct_CC="cc"
2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719
2720 fi
2721 fi
2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723 if test -n "$ac_ct_CC"; then
2724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2725 echo "${ECHO_T}$ac_ct_CC" >&6
2726 else
2727 echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6
2729 fi
2730
2731 CC=$ac_ct_CC
2732 else
2733 CC="$ac_cv_prog_CC"
2734 fi
2735
2736 fi
2737 if test -z "$CC"; then
2738 # Extract the first word of "cc", so it can be a program name with args.
2739 set dummy cc; ac_word=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 ac_prog_rejected=no
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2757 ac_prog_rejected=yes
2758 continue
2759 fi
2760 ac_cv_prog_CC="cc"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766
2767 if test $ac_prog_rejected = yes; then
2768 # We found a bogon in the path, so make sure we never use it.
2769 set dummy $ac_cv_prog_CC
2770 shift
2771 if test $# != 0; then
2772 # We chose a different compiler from the bogus one.
2773 # However, it has the same basename, so the bogon will be chosen
2774 # first if we set CC to just the basename; use the full file name.
2775 shift
2776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2777 fi
2778 fi
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6
2785 else
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2788 fi
2789
2790 fi
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in cl
2794 do
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816 done
2817 done
2818
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 echo "$as_me:$LINENO: result: $CC" >&5
2824 echo "${ECHO_T}$CC" >&6
2825 else
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2828 fi
2829
2830 test -n "$CC" && break
2831 done
2832 fi
2833 if test -z "$CC"; then
2834 ac_ct_CC=$CC
2835 for ac_prog in cl
2836 do
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy $ac_prog; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2867 else
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2870 fi
2871
2872 test -n "$ac_ct_CC" && break
2873 done
2874
2875 CC=$ac_ct_CC
2876 fi
2877
2878 fi
2879
2880
2881 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2882 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2883 { (exit 1); exit 1; }; }
2884
2885 # Provide some information about the compiler.
2886 echo "$as_me:$LINENO:" \
2887 "checking for C compiler version" >&5
2888 ac_compiler=`set X $ac_compile; echo $2`
2889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2890 (eval $ac_compiler --version </dev/null >&5) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2895 (eval $ac_compiler -v </dev/null >&5) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2900 (eval $ac_compiler -V </dev/null >&5) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 #include "confdefs.h"
2908
2909 int
2910 main ()
2911 {
2912
2913 ;
2914 return 0;
2915 }
2916 _ACEOF
2917 ac_clean_files_save=$ac_clean_files
2918 ac_clean_files="$ac_clean_files a.out a.exe"
2919 # Try to create an executable without -o first, disregard a.out.
2920 # It will help us diagnose broken compilers, and finding out an intuition
2921 # of exeext.
2922 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2923 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2924 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2926 (eval $ac_link_default) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # Find the output, starting from the most likely. This scheme is
2931 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2932 # resort.
2933
2934 # Be careful to initialize this variable, since it used to be cached.
2935 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2936 ac_cv_exeext=
2937 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2938 test -f "$ac_file" || continue
2939 case $ac_file in
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2941 a.out ) # We found the default executable, but exeext='' is most
2942 # certainly right.
2943 break;;
2944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2946 export ac_cv_exeext
2947 break;;
2948 * ) break;;
2949 esac
2950 done
2951 else
2952 echo "$as_me: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2954 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2955 check \`config.log' for details." >&5
2956 echo "$as_me: error: C compiler cannot create executables
2957 check \`config.log' for details." >&2;}
2958 { (exit 77); exit 77; }; }
2959 fi
2960
2961 ac_exeext=$ac_cv_exeext
2962 echo "$as_me:$LINENO: result: $ac_file" >&5
2963 echo "${ECHO_T}$ac_file" >&6
2964
2965 # Check the compiler produces executables we can run. If not, either
2966 # the compiler is broken, or we cross compile.
2967 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2968 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2969 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2970 # If not cross compiling, check that we can run a simple program.
2971 if test "$cross_compiling" != yes; then
2972 if { ac_try='./$ac_file'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 cross_compiling=no
2979 else
2980 if test "$cross_compiling" = maybe; then
2981 cross_compiling=yes
2982 else
2983 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2984 If you meant to cross compile, use \`--host'." >&5
2985 echo "$as_me: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'." >&2;}
2987 { (exit 1); exit 1; }; }
2988 fi
2989 fi
2990 fi
2991 echo "$as_me:$LINENO: result: yes" >&5
2992 echo "${ECHO_T}yes" >&6
2993
2994 rm -f a.out a.exe conftest$ac_cv_exeext
2995 ac_clean_files=$ac_clean_files_save
2996 # Check the compiler produces executables we can run. If not, either
2997 # the compiler is broken, or we cross compile.
2998 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2999 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3000 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3001 echo "${ECHO_T}$cross_compiling" >&6
3002
3003 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3004 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3006 (eval $ac_link) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; then
3010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3012 # work properly (i.e., refer to `conftest.exe'), while it won't with
3013 # `rm'.
3014 for ac_file in conftest.exe conftest conftest.*; do
3015 test -f "$ac_file" || continue
3016 case $ac_file in
3017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019 export ac_cv_exeext
3020 break;;
3021 * ) break;;
3022 esac
3023 done
3024 else
3025 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3026 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3027 { (exit 1); exit 1; }; }
3028 fi
3029
3030 rm -f conftest$ac_cv_exeext
3031 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3032 echo "${ECHO_T}$ac_cv_exeext" >&6
3033
3034 rm -f conftest.$ac_ext
3035 EXEEXT=$ac_cv_exeext
3036 ac_exeext=$EXEEXT
3037 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3038 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3039 if test "${ac_cv_objext+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #line $LINENO "configure"
3044 #include "confdefs.h"
3045
3046 int
3047 main ()
3048 {
3049
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.o conftest.obj
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3064 break;;
3065 esac
3066 done
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3071 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3072 { (exit 1); exit 1; }; }
3073 fi
3074
3075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3076 fi
3077 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078 echo "${ECHO_T}$ac_cv_objext" >&6
3079 OBJEXT=$ac_cv_objext
3080 ac_objext=$OBJEXT
3081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3083 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3089
3090 int
3091 main ()
3092 {
3093 #ifndef __GNUC__
3094 choke me
3095 #endif
3096
3097 ;
3098 return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_compiler_gnu=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3117 ac_compiler_gnu=no
3118 fi
3119 rm -f conftest.$ac_objext conftest.$ac_ext
3120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
3122 fi
3123 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3124 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3125 GCC=`test $ac_compiler_gnu = yes && echo yes`
3126 ac_test_CFLAGS=${CFLAGS+set}
3127 ac_save_CFLAGS=$CFLAGS
3128 CFLAGS="-g"
3129 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3130 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3131 if test "${ac_cv_prog_cc_g+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3137
3138 int
3139 main ()
3140 {
3141
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_prog_cc_g=yes
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3162 ac_cv_prog_cc_g=no
3163 fi
3164 rm -f conftest.$ac_objext conftest.$ac_ext
3165 fi
3166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3168 if test "$ac_test_CFLAGS" = set; then
3169 CFLAGS=$ac_save_CFLAGS
3170 elif test $ac_cv_prog_cc_g = yes; then
3171 if test "$GCC" = yes; then
3172 CFLAGS="-g -O2"
3173 else
3174 CFLAGS="-g"
3175 fi
3176 else
3177 if test "$GCC" = yes; then
3178 CFLAGS="-O2"
3179 else
3180 CFLAGS=
3181 fi
3182 fi
3183 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3184 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3185 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188 ac_cv_prog_cc_stdc=no
3189 ac_save_CC=$CC
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 #include "confdefs.h"
3193 #include <stdarg.h>
3194 #include <stdio.h>
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3201 char **p;
3202 int i;
3203 {
3204 return p[i];
3205 }
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3207 {
3208 char *s;
3209 va_list v;
3210 va_start (v,p);
3211 s = g (p, va_arg (v,int));
3212 va_end (v);
3213 return s;
3214 }
3215 int test (int i, double x);
3216 struct s1 {int (*f) (int a);};
3217 struct s2 {int (*f) (double a);};
3218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3219 int argc;
3220 char **argv;
3221 int
3222 main ()
3223 {
3224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 # Don't try gcc -ansi; that turns off useful extensions and
3230 # breaks some systems' header files.
3231 # AIX -qlanglvl=ansi
3232 # Ultrix and OSF/1 -std1
3233 # HP-UX 10.20 and later -Ae
3234 # HP-UX older versions -Aa -D_HPUX_SOURCE
3235 # SVR4 -Xc -D__EXTENSIONS__
3236 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3237 do
3238 CC="$ac_save_CC $ac_arg"
3239 rm -f conftest.$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_prog_cc_stdc=$ac_arg
3252 break
3253 else
3254 echo "$as_me: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3256 fi
3257 rm -f conftest.$ac_objext
3258 done
3259 rm -f conftest.$ac_ext conftest.$ac_objext
3260 CC=$ac_save_CC
3261
3262 fi
3263
3264 case "x$ac_cv_prog_cc_stdc" in
3265 x|xno)
3266 echo "$as_me:$LINENO: result: none needed" >&5
3267 echo "${ECHO_T}none needed" >&6 ;;
3268 *)
3269 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3270 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3271 CC="$CC $ac_cv_prog_cc_stdc" ;;
3272 esac
3273
3274 # Some people use a C++ compiler to compile C. Since we use `exit',
3275 # in C++ we need to declare it. In case someone uses the same compiler
3276 # for both compiling C and C++ we need to have the C++ compiler decide
3277 # the declaration of exit, since it's the most demanding environment.
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #ifndef __cplusplus
3280 choke me
3281 #endif
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 for ac_declaration in \
3296 ''\
3297 '#include <stdlib.h>' \
3298 'extern "C" void std::exit (int) throw (); using std::exit;' \
3299 'extern "C" void std::exit (int); using std::exit;' \
3300 'extern "C" void exit (int) throw ();' \
3301 'extern "C" void exit (int);' \
3302 'void exit (int);'
3303 do
3304 cat >conftest.$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 #include "confdefs.h"
3307 #include <stdlib.h>
3308 $ac_declaration
3309 int
3310 main ()
3311 {
3312 exit (42);
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 :
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3333 continue
3334 fi
3335 rm -f conftest.$ac_objext conftest.$ac_ext
3336 cat >conftest.$ac_ext <<_ACEOF
3337 #line $LINENO "configure"
3338 #include "confdefs.h"
3339 $ac_declaration
3340 int
3341 main ()
3342 {
3343 exit (42);
3344 ;
3345 return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 break
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3364 fi
3365 rm -f conftest.$ac_objext conftest.$ac_ext
3366 done
3367 rm -f conftest*
3368 if test -n "$ac_declaration"; then
3369 echo '#ifdef __cplusplus' >>confdefs.h
3370 echo $ac_declaration >>confdefs.h
3371 echo '#endif' >>confdefs.h
3372 fi
3373
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 fi
3378 rm -f conftest.$ac_objext conftest.$ac_ext
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385
3386 # On Suns, sometimes $CPP names a directory.
3387 if test -n "$CPP" && test -d "$CPP"; then
3388 CPP=
3389 fi
3390
3391 #### Some systems specify a CPP to use unless we are using GCC.
3392 #### Now that we know whether we are using GCC, we can decide whether
3393 #### to use that one.
3394 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3395 then
3396 CPP="$NON_GNU_CPP"
3397 fi
3398
3399 #### Some systems specify a CC to use unless we are using GCC.
3400 #### Now that we know whether we are using GCC, we can decide whether
3401 #### to use that one.
3402 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3403 test x$cc_specified != xyes
3404 then
3405 CC="$NON_GNU_CC"
3406 fi
3407
3408 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3409 then
3410 CC="$CC $GCC_TEST_OPTIONS"
3411 fi
3412
3413 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3414 then
3415 CC="$CC $NON_GCC_TEST_OPTIONS"
3416 fi
3417
3418 #### Some other nice autoconf tests. If you add a test here which
3419 #### should make an entry in src/config.h, don't forget to add an
3420 #### #undef clause to src/config.h.in for autoconf to modify.
3421
3422 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3423 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3424 LN_S=$as_ln_s
3425 if test "$LN_S" = "ln -s"; then
3426 echo "$as_me:$LINENO: result: yes" >&5
3427 echo "${ECHO_T}yes" >&6
3428 else
3429 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3430 echo "${ECHO_T}no, using $LN_S" >&6
3431 fi
3432
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3442 CPP=
3443 fi
3444 if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 # Double quotes because CPP needs to be expanded
3449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450 do
3451 ac_preproc_ok=false
3452 for ac_c_preproc_warn_flag in '' yes
3453 do
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3459 #line $LINENO "configure"
3460 #include "confdefs.h"
3461 #include <assert.h>
3462 Syntax error
3463 _ACEOF
3464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 else
3475 ac_cpp_err=
3476 fi
3477 else
3478 ac_cpp_err=yes
3479 fi
3480 if test -z "$ac_cpp_err"; then
3481 :
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 # Broken: fails on valid input.
3486 continue
3487 fi
3488 rm -f conftest.err conftest.$ac_ext
3489
3490 # OK, works on sane cases. Now check whether non-existent headers
3491 # can be detected and how.
3492 cat >conftest.$ac_ext <<_ACEOF
3493 #line $LINENO "configure"
3494 #include "confdefs.h"
3495 #include <ac_nonexistent.h>
3496 _ACEOF
3497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 else
3508 ac_cpp_err=
3509 fi
3510 else
3511 ac_cpp_err=yes
3512 fi
3513 if test -z "$ac_cpp_err"; then
3514 # Broken: success on invalid input.
3515 continue
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3519 # Passes both tests.
3520 ac_preproc_ok=:
3521 break
3522 fi
3523 rm -f conftest.err conftest.$ac_ext
3524
3525 done
3526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527 rm -f conftest.err conftest.$ac_ext
3528 if $ac_preproc_ok; then
3529 break
3530 fi
3531
3532 done
3533 ac_cv_prog_CPP=$CPP
3534
3535 fi
3536 CPP=$ac_cv_prog_CPP
3537 else
3538 ac_cv_prog_CPP=$CPP
3539 fi
3540 echo "$as_me:$LINENO: result: $CPP" >&5
3541 echo "${ECHO_T}$CPP" >&6
3542 ac_preproc_ok=false
3543 for ac_c_preproc_warn_flag in '' yes
3544 do
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 #line $LINENO "configure"
3551 #include "confdefs.h"
3552 #include <assert.h>
3553 Syntax error
3554 _ACEOF
3555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null; then
3563 if test -s conftest.err; then
3564 ac_cpp_err=$ac_c_preproc_warn_flag
3565 else
3566 ac_cpp_err=
3567 fi
3568 else
3569 ac_cpp_err=yes
3570 fi
3571 if test -z "$ac_cpp_err"; then
3572 :
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3576 # Broken: fails on valid input.
3577 continue
3578 fi
3579 rm -f conftest.err conftest.$ac_ext
3580
3581 # OK, works on sane cases. Now check whether non-existent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 #include "confdefs.h"
3586 #include <ac_nonexistent.h>
3587 _ACEOF
3588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 else
3599 ac_cpp_err=
3600 fi
3601 else
3602 ac_cpp_err=yes
3603 fi
3604 if test -z "$ac_cpp_err"; then
3605 # Broken: success on invalid input.
3606 continue
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3610 # Passes both tests.
3611 ac_preproc_ok=:
3612 break
3613 fi
3614 rm -f conftest.err conftest.$ac_ext
3615
3616 done
3617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3618 rm -f conftest.err conftest.$ac_ext
3619 if $ac_preproc_ok; then
3620 :
3621 else
3622 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3623 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3624 { (exit 1); exit 1; }; }
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633 # Find a good install program. We prefer a C program (faster),
3634 # so one script is as good as another. But avoid the broken or
3635 # incompatible versions:
3636 # SysV /etc/install, /usr/sbin/install
3637 # SunOS /usr/etc/install
3638 # IRIX /sbin/install
3639 # AIX /bin/install
3640 # AmigaOS /C/install, which installs bootblocks on floppy discs
3641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 # Account for people who put trailing slashes in PATH elements.
3657 case $as_dir/ in
3658 ./ | .// | /cC/* | \
3659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3660 /usr/ucb/* ) ;;
3661 *)
3662 # OSF1 and SCO ODT 3.0 have their own names for install.
3663 # Don't use installbsd from OSF since it installs stuff as root
3664 # by default.
3665 for ac_prog in ginstall scoinst install; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3668 if test $ac_prog = install &&
3669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3670 # AIX install. It has an incompatible calling convention.
3671 :
3672 elif test $ac_prog = install &&
3673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3674 # program-specific install script used by HP pwplus--don't use.
3675 :
3676 else
3677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3678 break 3
3679 fi
3680 fi
3681 done
3682 done
3683 ;;
3684 esac
3685 done
3686
3687
3688 fi
3689 if test "${ac_cv_path_install+set}" = set; then
3690 INSTALL=$ac_cv_path_install
3691 else
3692 # As a last resort, use the slow shell script. We don't cache a
3693 # path for INSTALL within a source directory, because that will
3694 # break other packages using the cache if that directory is
3695 # removed, or if the path is relative.
3696 INSTALL=$ac_install_sh
3697 fi
3698 fi
3699 echo "$as_me:$LINENO: result: $INSTALL" >&5
3700 echo "${ECHO_T}$INSTALL" >&6
3701
3702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3703 # It thinks the first close brace ends the variable substitution.
3704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3705
3706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3707
3708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3709
3710 if test "x$RANLIB" = x; then
3711 if test -n "$ac_tool_prefix"; then
3712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3714 echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716 if test "${ac_cv_prog_RANLIB+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 if test -n "$RANLIB"; then
3720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733 done
3734 done
3735
3736 fi
3737 fi
3738 RANLIB=$ac_cv_prog_RANLIB
3739 if test -n "$RANLIB"; then
3740 echo "$as_me:$LINENO: result: $RANLIB" >&5
3741 echo "${ECHO_T}$RANLIB" >&6
3742 else
3743 echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3745 fi
3746
3747 fi
3748 if test -z "$ac_cv_prog_RANLIB"; then
3749 ac_ct_RANLIB=$RANLIB
3750 # Extract the first word of "ranlib", so it can be a program name with args.
3751 set dummy ranlib; ac_word=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 if test -n "$ac_ct_RANLIB"; then
3758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_RANLIB="ranlib"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771 done
3772 done
3773
3774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3775 fi
3776 fi
3777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3778 if test -n "$ac_ct_RANLIB"; then
3779 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3780 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3781 else
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3784 fi
3785
3786 RANLIB=$ac_ct_RANLIB
3787 else
3788 RANLIB="$ac_cv_prog_RANLIB"
3789 fi
3790
3791 fi
3792
3793
3794 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3795 then
3796 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3797 fi
3798
3799 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3800 then
3801 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3802 fi
3803
3804
3805
3806 echo "$as_me:$LINENO: checking for egrep" >&5
3807 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3808 if test "${ac_cv_prog_egrep+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3812 then ac_cv_prog_egrep='grep -E'
3813 else ac_cv_prog_egrep='egrep'
3814 fi
3815 fi
3816 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3817 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3818 EGREP=$ac_cv_prog_egrep
3819
3820
3821
3822 echo "$as_me:$LINENO: checking for AIX" >&5
3823 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line $LINENO "configure"
3826 #include "confdefs.h"
3827 #ifdef _AIX
3828 yes
3829 #endif
3830
3831 _ACEOF
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 $EGREP "yes" >/dev/null 2>&1; then
3834 echo "$as_me:$LINENO: result: yes" >&5
3835 echo "${ECHO_T}yes" >&6
3836 cat >>confdefs.h <<\_ACEOF
3837 #define _ALL_SOURCE 1
3838 _ACEOF
3839
3840 else
3841 echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 fi
3844 rm -f conftest*
3845
3846
3847
3848 #### Extract some information from the operating system and machine files.
3849
3850 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3851 - which libraries the lib-src programs will want, and
3852 - whether the GNU malloc routines are usable..." >&5
3853 echo "$as_me: checking the machine- and system-dependent files to find out
3854 - which libraries the lib-src programs will want, and
3855 - whether the GNU malloc routines are usable..." >&6;}
3856
3857 ### First figure out CFLAGS (which we use for running the compiler here)
3858 ### and REAL_CFLAGS (which we use for real compilation).
3859 ### The two are the same except on a few systems, where they are made
3860 ### different to work around various lossages. For example,
3861 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3862 ### as implying static linking.
3863
3864 ### If the CFLAGS env var is specified, we use that value
3865 ### instead of the default.
3866
3867 ### It's not important that this name contain the PID; you can't run
3868 ### two configures in the same directory and have anything work
3869 ### anyway.
3870 tempcname="conftest.c"
3871
3872 echo '
3873 #include "'${srcdir}'/src/'${opsysfile}'"
3874 #include "'${srcdir}'/src/'${machfile}'"
3875 #ifndef LIBS_MACHINE
3876 #define LIBS_MACHINE
3877 #endif
3878 #ifndef LIBS_SYSTEM
3879 #define LIBS_SYSTEM
3880 #endif
3881 #ifndef C_SWITCH_SYSTEM
3882 #define C_SWITCH_SYSTEM
3883 #endif
3884 #ifndef C_SWITCH_MACHINE
3885 #define C_SWITCH_MACHINE
3886 #endif
3887 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3888 configure___ c_switch_system=C_SWITCH_SYSTEM
3889 configure___ c_switch_machine=C_SWITCH_MACHINE
3890
3891 #ifndef LIB_X11_LIB
3892 #define LIB_X11_LIB -lX11
3893 #endif
3894
3895 #ifndef LIBX11_MACHINE
3896 #define LIBX11_MACHINE
3897 #endif
3898
3899 #ifndef LIBX11_SYSTEM
3900 #define LIBX11_SYSTEM
3901 #endif
3902 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3903
3904 #ifdef UNEXEC
3905 configure___ unexec=UNEXEC
3906 #else
3907 configure___ unexec=unexec.o
3908 #endif
3909
3910 #ifdef SYSTEM_MALLOC
3911 configure___ system_malloc=yes
3912 #else
3913 configure___ system_malloc=no
3914 #endif
3915
3916 #ifdef USE_MMAP_FOR_BUFFERS
3917 configure___ use_mmap_for_buffers=yes
3918 #else
3919 configure___ use_mmap_for_buffers=no
3920 #endif
3921
3922 #ifndef C_DEBUG_SWITCH
3923 #define C_DEBUG_SWITCH -g
3924 #endif
3925
3926 #ifndef C_OPTIMIZE_SWITCH
3927 #ifdef __GNUC__
3928 #define C_OPTIMIZE_SWITCH -O2
3929 #else
3930 #define C_OPTIMIZE_SWITCH -O
3931 #endif
3932 #endif
3933
3934 #ifndef LD_SWITCH_MACHINE
3935 #define LD_SWITCH_MACHINE
3936 #endif
3937
3938 #ifndef LD_SWITCH_SYSTEM
3939 #define LD_SWITCH_SYSTEM
3940 #endif
3941
3942 #ifndef LD_SWITCH_X_SITE_AUX
3943 #define LD_SWITCH_X_SITE_AUX
3944 #endif
3945
3946 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3947 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3948
3949 #ifdef THIS_IS_CONFIGURE
3950
3951 /* Get the CFLAGS for tests in configure. */
3952 #ifdef __GNUC__
3953 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3954 #else
3955 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3956 #endif
3957
3958 #else /* not THIS_IS_CONFIGURE */
3959
3960 /* Get the CFLAGS for real compilation. */
3961 #ifdef __GNUC__
3962 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3963 #else
3964 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3965 #endif
3966
3967 #endif /* not THIS_IS_CONFIGURE */
3968 ' > ${tempcname}
3969
3970 # The value of CPP is a quoted variable reference, so we need to do this
3971 # to get its actual value...
3972 CPP=`eval "echo $CPP"`
3973 eval `${CPP} -Isrc ${tempcname} \
3974 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3975 if test "x$SPECIFIED_CFLAGS" = x; then
3976 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3977 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3978 else
3979 REAL_CFLAGS="$CFLAGS"
3980 fi
3981 rm ${tempcname}
3982
3983 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3984
3985 ### Make sure subsequent tests use flags consistent with the build flags.
3986
3987 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3988 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3989 else
3990 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3991 fi
3992
3993
3994
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define _GNU_SOURCE 1
3998 _ACEOF
3999
4000
4001
4002 # Check whether --enable-largefile or --disable-largefile was given.
4003 if test "${enable_largefile+set}" = set; then
4004 enableval="$enable_largefile"
4005
4006 fi;
4007 if test "$enable_largefile" != no; then
4008
4009 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4010 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4011 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 ac_cv_sys_largefile_CC=no
4015 if test "$GCC" != yes; then
4016 ac_save_CC=$CC
4017 while :; do
4018 # IRIX 6.2 and later do not support large files by default,
4019 # so use the C compiler's -n32 option if that helps.
4020 cat >conftest.$ac_ext <<_ACEOF
4021 #line $LINENO "configure"
4022 #include "confdefs.h"
4023 #include <sys/types.h>
4024 /* Check that off_t can represent 2**63 - 1 correctly.
4025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026 since some C++ compilers masquerading as C compilers
4027 incorrectly reject 9223372036854775807. */
4028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030 && LARGE_OFF_T % 2147483647 == 1)
4031 ? 1 : -1];
4032 int
4033 main ()
4034 {
4035
4036 ;
4037 return 0;
4038 }
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 break
4053 else
4054 echo "$as_me: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4056 fi
4057 rm -f conftest.$ac_objext
4058 CC="$CC -n32"
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_sys_largefile_CC=' -n32'; break
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 fi
4076 rm -f conftest.$ac_objext
4077 break
4078 done
4079 CC=$ac_save_CC
4080 rm -f conftest.$ac_ext
4081 fi
4082 fi
4083 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4084 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4085 if test "$ac_cv_sys_largefile_CC" != no; then
4086 CC=$CC$ac_cv_sys_largefile_CC
4087 fi
4088
4089 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4090 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4091 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 while :; do
4095 ac_cv_sys_file_offset_bits=no
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4099 #include <sys/types.h>
4100 /* Check that off_t can represent 2**63 - 1 correctly.
4101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4102 since some C++ compilers masquerading as C compilers
4103 incorrectly reject 9223372036854775807. */
4104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4106 && LARGE_OFF_T % 2147483647 == 1)
4107 ? 1 : -1];
4108 int
4109 main ()
4110 {
4111
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 break
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4132 fi
4133 rm -f conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4136 #include "confdefs.h"
4137 #define _FILE_OFFSET_BITS 64
4138 #include <sys/types.h>
4139 /* Check that off_t can represent 2**63 - 1 correctly.
4140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141 since some C++ compilers masquerading as C compilers
4142 incorrectly reject 9223372036854775807. */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145 && LARGE_OFF_T % 2147483647 == 1)
4146 ? 1 : -1];
4147 int
4148 main ()
4149 {
4150
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_sys_file_offset_bits=64; break
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 fi
4172 rm -f conftest.$ac_objext conftest.$ac_ext
4173 break
4174 done
4175 fi
4176 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4177 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4178 if test "$ac_cv_sys_file_offset_bits" != no; then
4179
4180 cat >>confdefs.h <<_ACEOF
4181 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4182 _ACEOF
4183
4184 fi
4185 rm -f conftest*
4186 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4187 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4188 if test "${ac_cv_sys_large_files+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 while :; do
4192 ac_cv_sys_large_files=no
4193 cat >conftest.$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4196 #include <sys/types.h>
4197 /* Check that off_t can represent 2**63 - 1 correctly.
4198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4199 since some C++ compilers masquerading as C compilers
4200 incorrectly reject 9223372036854775807. */
4201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4203 && LARGE_OFF_T % 2147483647 == 1)
4204 ? 1 : -1];
4205 int
4206 main ()
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 rm -f conftest.$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -s conftest.$ac_objext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 break
4226 else
4227 echo "$as_me: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4229 fi
4230 rm -f conftest.$ac_objext conftest.$ac_ext
4231 cat >conftest.$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4233 #include "confdefs.h"
4234 #define _LARGE_FILES 1
4235 #include <sys/types.h>
4236 /* Check that off_t can represent 2**63 - 1 correctly.
4237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4238 since some C++ compilers masquerading as C compilers
4239 incorrectly reject 9223372036854775807. */
4240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4242 && LARGE_OFF_T % 2147483647 == 1)
4243 ? 1 : -1];
4244 int
4245 main ()
4246 {
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_sys_large_files=1; break
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4268 fi
4269 rm -f conftest.$ac_objext conftest.$ac_ext
4270 break
4271 done
4272 fi
4273 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4274 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4275 if test "$ac_cv_sys_large_files" != no; then
4276
4277 cat >>confdefs.h <<_ACEOF
4278 #define _LARGE_FILES $ac_cv_sys_large_files
4279 _ACEOF
4280
4281 fi
4282 rm -f conftest*
4283 fi
4284
4285
4286 if test "${with_sound}" != "no"; then
4287 # Sound support for GNU/Linux and the free BSDs.
4288 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4290 if test "${ac_cv_header_stdc+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4296 #include <stdlib.h>
4297 #include <stdarg.h>
4298 #include <string.h>
4299 #include <float.h>
4300
4301 _ACEOF
4302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev/null; then
4310 if test -s conftest.err; then
4311 ac_cpp_err=$ac_c_preproc_warn_flag
4312 else
4313 ac_cpp_err=
4314 fi
4315 else
4316 ac_cpp_err=yes
4317 fi
4318 if test -z "$ac_cpp_err"; then
4319 ac_cv_header_stdc=yes
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4323 ac_cv_header_stdc=no
4324 fi
4325 rm -f conftest.err conftest.$ac_ext
4326
4327 if test $ac_cv_header_stdc = yes; then
4328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 #line $LINENO "configure"
4331 #include "confdefs.h"
4332 #include <string.h>
4333
4334 _ACEOF
4335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336 $EGREP "memchr" >/dev/null 2>&1; then
4337 :
4338 else
4339 ac_cv_header_stdc=no
4340 fi
4341 rm -f conftest*
4342
4343 fi
4344
4345 if test $ac_cv_header_stdc = yes; then
4346 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4347 cat >conftest.$ac_ext <<_ACEOF
4348 #line $LINENO "configure"
4349 #include "confdefs.h"
4350 #include <stdlib.h>
4351
4352 _ACEOF
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "free" >/dev/null 2>&1; then
4355 :
4356 else
4357 ac_cv_header_stdc=no
4358 fi
4359 rm -f conftest*
4360
4361 fi
4362
4363 if test $ac_cv_header_stdc = yes; then
4364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4365 if test "$cross_compiling" = yes; then
4366 :
4367 else
4368 cat >conftest.$ac_ext <<_ACEOF
4369 #line $LINENO "configure"
4370 #include "confdefs.h"
4371 #include <ctype.h>
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 #else
4376 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4377 || ('j' <= (c) && (c) <= 'r') \
4378 || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #endif
4381
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4383 int
4384 main ()
4385 {
4386 int i;
4387 for (i = 0; i < 256; i++)
4388 if (XOR (islower (i), ISLOWER (i))
4389 || toupper (i) != TOUPPER (i))
4390 exit(2);
4391 exit (0);
4392 }
4393 _ACEOF
4394 rm -f conftest$ac_exeext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4396 (eval $ac_link) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 :
4406 else
4407 echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 ( exit $ac_status )
4411 ac_cv_header_stdc=no
4412 fi
4413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 fi
4416 fi
4417 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4418 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4419 if test $ac_cv_header_stdc = yes; then
4420
4421 cat >>confdefs.h <<\_ACEOF
4422 #define STDC_HEADERS 1
4423 _ACEOF
4424
4425 fi
4426
4427 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4438 inttypes.h stdint.h unistd.h
4439 do
4440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4441 echo "$as_me:$LINENO: checking for $ac_header" >&5
4442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4448 #include "confdefs.h"
4449 $ac_includes_default
4450
4451 #include <$ac_header>
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 eval "$as_ac_Header=yes"
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4469 eval "$as_ac_Header=no"
4470 fi
4471 rm -f conftest.$ac_objext conftest.$ac_ext
4472 fi
4473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4476 cat >>confdefs.h <<_ACEOF
4477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4478 _ACEOF
4479
4480 fi
4481
4482 done
4483
4484
4485
4486
4487
4488 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4489 do
4490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4492 echo "$as_me:$LINENO: checking for $ac_header" >&5
4493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 fi
4497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4499 else
4500 # Is the header compilable?
4501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4503 cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 $ac_includes_default
4507 #include <$ac_header>
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_header_compiler=yes
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4525 ac_header_compiler=no
4526 fi
4527 rm -f conftest.$ac_objext conftest.$ac_ext
4528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4529 echo "${ECHO_T}$ac_header_compiler" >&6
4530
4531 # Is the header present?
4532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4534 cat >conftest.$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4536 #include "confdefs.h"
4537 #include <$ac_header>
4538 _ACEOF
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev/null; then
4547 if test -s conftest.err; then
4548 ac_cpp_err=$ac_c_preproc_warn_flag
4549 else
4550 ac_cpp_err=
4551 fi
4552 else
4553 ac_cpp_err=yes
4554 fi
4555 if test -z "$ac_cpp_err"; then
4556 ac_header_preproc=yes
4557 else
4558 echo "$as_me: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4560 ac_header_preproc=no
4561 fi
4562 rm -f conftest.err conftest.$ac_ext
4563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6
4565
4566 # So? What about this header?
4567 case $ac_header_compiler:$ac_header_preproc in
4568 yes:no )
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4573 no:yes )
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4580 esac
4581 echo "$as_me:$LINENO: checking for $ac_header" >&5
4582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 eval "$as_ac_Header=$ac_header_preproc"
4587 fi
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590
4591 fi
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 _ACEOF
4596
4597 fi
4598
4599 done
4600
4601 # Emulation library used on NetBSD.
4602 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4603 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4604 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 ac_check_lib_save_LIBS=$LIBS
4608 LIBS="-lossaudio $LIBS"
4609 cat >conftest.$ac_ext <<_ACEOF
4610 #line $LINENO "configure"
4611 #include "confdefs.h"
4612
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 #ifdef __cplusplus
4615 extern "C"
4616 #endif
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4619 char _oss_ioctl ();
4620 int
4621 main ()
4622 {
4623 _oss_ioctl ();
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 rm -f conftest.$ac_objext conftest$ac_exeext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_lib_ossaudio__oss_ioctl=yes
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 ac_cv_lib_ossaudio__oss_ioctl=no
4645 fi
4646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4647 LIBS=$ac_check_lib_save_LIBS
4648 fi
4649 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4650 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4651 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4652 LIBSOUND=-lossaudio
4653 else
4654 LIBSOUND=
4655 fi
4656
4657
4658 fi
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4683 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4684 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
4685 sys/param.h sys/vlimit.h sys/resource.h
4686 do
4687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689 echo "$as_me:$LINENO: checking for $ac_header" >&5
4690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 fi
4694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4696 else
4697 # Is the header compilable?
4698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4702 #include "confdefs.h"
4703 $ac_includes_default
4704 #include <$ac_header>
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_header_compiler=yes
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 ac_header_compiler=no
4723 fi
4724 rm -f conftest.$ac_objext conftest.$ac_ext
4725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4726 echo "${ECHO_T}$ac_header_compiler" >&6
4727
4728 # Is the header present?
4729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 #include "confdefs.h"
4734 #include <$ac_header>
4735 _ACEOF
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_c_preproc_warn_flag
4746 else
4747 ac_cpp_err=
4748 fi
4749 else
4750 ac_cpp_err=yes
4751 fi
4752 if test -z "$ac_cpp_err"; then
4753 ac_header_preproc=yes
4754 else
4755 echo "$as_me: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4757 ac_header_preproc=no
4758 fi
4759 rm -f conftest.err conftest.$ac_ext
4760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4761 echo "${ECHO_T}$ac_header_preproc" >&6
4762
4763 # So? What about this header?
4764 case $ac_header_compiler:$ac_header_preproc in
4765 yes:no )
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4770 no:yes )
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4777 esac
4778 echo "$as_me:$LINENO: checking for $ac_header" >&5
4779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 eval "$as_ac_Header=$ac_header_preproc"
4784 fi
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787
4788 fi
4789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4790 cat >>confdefs.h <<_ACEOF
4791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792 _ACEOF
4793
4794 fi
4795
4796 done
4797
4798
4799 for ac_header in term.h
4800 do
4801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4802 echo "$as_me:$LINENO: checking for $ac_header" >&5
4803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 cat >conftest.$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4810 #include <$ac_header>
4811 _ACEOF
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_c_preproc_warn_flag
4822 else
4823 ac_cpp_err=
4824 fi
4825 else
4826 ac_cpp_err=yes
4827 fi
4828 if test -z "$ac_cpp_err"; then
4829 eval "$as_ac_Header=yes"
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4833 eval "$as_ac_Header=no"
4834 fi
4835 rm -f conftest.err conftest.$ac_ext
4836 fi
4837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4840 cat >>confdefs.h <<_ACEOF
4841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4842 _ACEOF
4843
4844 fi
4845
4846 done
4847
4848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4850 if test "${ac_cv_header_stdc+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4856 #include <stdlib.h>
4857 #include <stdarg.h>
4858 #include <string.h>
4859 #include <float.h>
4860
4861 _ACEOF
4862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null; then
4870 if test -s conftest.err; then
4871 ac_cpp_err=$ac_c_preproc_warn_flag
4872 else
4873 ac_cpp_err=
4874 fi
4875 else
4876 ac_cpp_err=yes
4877 fi
4878 if test -z "$ac_cpp_err"; then
4879 ac_cv_header_stdc=yes
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 ac_cv_header_stdc=no
4884 fi
4885 rm -f conftest.err conftest.$ac_ext
4886
4887 if test $ac_cv_header_stdc = yes; then
4888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4889 cat >conftest.$ac_ext <<_ACEOF
4890 #line $LINENO "configure"
4891 #include "confdefs.h"
4892 #include <string.h>
4893
4894 _ACEOF
4895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4896 $EGREP "memchr" >/dev/null 2>&1; then
4897 :
4898 else
4899 ac_cv_header_stdc=no
4900 fi
4901 rm -f conftest*
4902
4903 fi
4904
4905 if test $ac_cv_header_stdc = yes; then
4906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4907 cat >conftest.$ac_ext <<_ACEOF
4908 #line $LINENO "configure"
4909 #include "confdefs.h"
4910 #include <stdlib.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "free" >/dev/null 2>&1; then
4915 :
4916 else
4917 ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
4923 if test $ac_cv_header_stdc = yes; then
4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925 if test "$cross_compiling" = yes; then
4926 :
4927 else
4928 cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 #include "confdefs.h"
4931 #include <ctype.h>
4932 #if ((' ' & 0x0FF) == 0x020)
4933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4935 #else
4936 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4937 || ('j' <= (c) && (c) <= 'r') \
4938 || ('s' <= (c) && (c) <= 'z'))
4939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4940 #endif
4941
4942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4943 int
4944 main ()
4945 {
4946 int i;
4947 for (i = 0; i < 256; i++)
4948 if (XOR (islower (i), ISLOWER (i))
4949 || toupper (i) != TOUPPER (i))
4950 exit(2);
4951 exit (0);
4952 }
4953 _ACEOF
4954 rm -f conftest$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956 (eval $ac_link) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 :
4966 else
4967 echo "$as_me: program exited with status $ac_status" >&5
4968 echo "$as_me: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 ( exit $ac_status )
4971 ac_cv_header_stdc=no
4972 fi
4973 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 fi
4976 fi
4977 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4978 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4979 if test $ac_cv_header_stdc = yes; then
4980
4981 cat >>confdefs.h <<\_ACEOF
4982 #define STDC_HEADERS 1
4983 _ACEOF
4984
4985 fi
4986
4987 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4989 if test "${ac_cv_header_time+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 #line $LINENO "configure"
4994 #include "confdefs.h"
4995 #include <sys/types.h>
4996 #include <sys/time.h>
4997 #include <time.h>
4998
4999 int
5000 main ()
5001 {
5002 if ((struct tm *) 0)
5003 return 0;
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 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 ac_cv_header_time=yes
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 cat conftest.$ac_ext >&5
5024 ac_cv_header_time=no
5025 fi
5026 rm -f conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5029 echo "${ECHO_T}$ac_cv_header_time" >&6
5030 if test $ac_cv_header_time = yes; then
5031
5032 cat >>confdefs.h <<\_ACEOF
5033 #define TIME_WITH_SYS_TIME 1
5034 _ACEOF
5035
5036 fi
5037
5038 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
5039 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
5040 if test "${ac_cv_decl_sys_siglist+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5045 #include "confdefs.h"
5046 #include <sys/types.h>
5047 #include <signal.h>
5048 /* NetBSD declares sys_siglist in unistd.h. */
5049 #if HAVE_UNISTD_H
5050 # include <unistd.h>
5051 #endif
5052
5053 int
5054 main ()
5055 {
5056 char *msg = *(sys_siglist + 1);
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_decl_sys_siglist=yes
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5077 ac_cv_decl_sys_siglist=no
5078 fi
5079 rm -f conftest.$ac_objext conftest.$ac_ext
5080 fi
5081 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5082 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5083 if test $ac_cv_decl_sys_siglist = yes; then
5084
5085 cat >>confdefs.h <<\_ACEOF
5086 #define SYS_SIGLIST_DECLARED 1
5087 _ACEOF
5088
5089 fi
5090
5091 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5092 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5093 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 cat >conftest.$ac_ext <<_ACEOF
5097 #line $LINENO "configure"
5098 #include "confdefs.h"
5099 #include <sys/types.h>
5100 #include <sys/wait.h>
5101 #ifndef WEXITSTATUS
5102 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5103 #endif
5104 #ifndef WIFEXITED
5105 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5106 #endif
5107
5108 int
5109 main ()
5110 {
5111 int s;
5112 wait (&s);
5113 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5114 ;
5115 return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120 (eval $ac_compile) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_header_sys_wait_h=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5134 ac_cv_header_sys_wait_h=no
5135 fi
5136 rm -f conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5139 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5140 if test $ac_cv_header_sys_wait_h = yes; then
5141
5142 cat >>confdefs.h <<\_ACEOF
5143 #define HAVE_SYS_WAIT_H 1
5144 _ACEOF
5145
5146 fi
5147
5148
5149 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5150 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5151 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 cat >conftest.$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5156 #include "confdefs.h"
5157 #ifdef TIME_WITH_SYS_TIME
5158 #include <sys/time.h>
5159 #include <time.h>
5160 #else
5161 #ifdef HAVE_SYS_TIME_H
5162 #include <sys/time.h>
5163 #else
5164 #include <time.h>
5165 #endif
5166 #endif
5167 #ifdef HAVE_UTIME_H
5168 #include <utime.h>
5169 #endif
5170 int
5171 main ()
5172 {
5173 static struct utimbuf x; x.actime = x.modtime;
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 rm -f conftest.$ac_objext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5180 (eval $ac_compile) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 emacs_cv_struct_utimbuf=yes
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5194 emacs_cv_struct_utimbuf=no
5195 fi
5196 rm -f conftest.$ac_objext conftest.$ac_ext
5197 fi
5198 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5199 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5200 if test $emacs_cv_struct_utimbuf = yes; then
5201
5202 cat >>confdefs.h <<\_ACEOF
5203 #define HAVE_STRUCT_UTIMBUF 1
5204 _ACEOF
5205
5206 fi
5207
5208 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5209 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5210 if test "${ac_cv_type_signal+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 #include "confdefs.h"
5216 #include <sys/types.h>
5217 #include <signal.h>
5218 #ifdef signal
5219 # undef signal
5220 #endif
5221 #ifdef __cplusplus
5222 extern "C" void (*signal (int, void (*)(int)))(int);
5223 #else
5224 void (*signal ()) ();
5225 #endif
5226
5227 int
5228 main ()
5229 {
5230 int i;
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_cv_type_signal=void
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5251 ac_cv_type_signal=int
5252 fi
5253 rm -f conftest.$ac_objext conftest.$ac_ext
5254 fi
5255 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5256 echo "${ECHO_T}$ac_cv_type_signal" >&6
5257
5258 cat >>confdefs.h <<_ACEOF
5259 #define RETSIGTYPE $ac_cv_type_signal
5260 _ACEOF
5261
5262
5263
5264 echo "$as_me:$LINENO: checking for speed_t" >&5
5265 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5266 if test "${emacs_cv_speed_t+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 cat >conftest.$ac_ext <<_ACEOF
5270 #line $LINENO "configure"
5271 #include "confdefs.h"
5272 #include <termios.h>
5273 int
5274 main ()
5275 {
5276 speed_t x = 1;
5277 ;
5278 return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 emacs_cv_speed_t=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5297 emacs_cv_speed_t=no
5298 fi
5299 rm -f conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5302 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5303 if test $emacs_cv_speed_t = yes; then
5304
5305 cat >>confdefs.h <<\_ACEOF
5306 #define HAVE_SPEED_T 1
5307 _ACEOF
5308
5309 fi
5310
5311 echo "$as_me:$LINENO: checking for struct timeval" >&5
5312 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5313 if test "${emacs_cv_struct_timeval+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 cat >conftest.$ac_ext <<_ACEOF
5317 #line $LINENO "configure"
5318 #include "confdefs.h"
5319 #ifdef TIME_WITH_SYS_TIME
5320 #include <sys/time.h>
5321 #include <time.h>
5322 #else
5323 #ifdef HAVE_SYS_TIME_H
5324 #include <sys/time.h>
5325 #else
5326 #include <time.h>
5327 #endif
5328 #endif
5329 int
5330 main ()
5331 {
5332 static struct timeval x; x.tv_sec = x.tv_usec;
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 emacs_cv_struct_timeval=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5353 emacs_cv_struct_timeval=no
5354 fi
5355 rm -f conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5358 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5359 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5360 if test $emacs_cv_struct_timeval = yes; then
5361
5362 cat >>confdefs.h <<\_ACEOF
5363 #define HAVE_TIMEVAL 1
5364 _ACEOF
5365
5366 fi
5367
5368 echo "$as_me:$LINENO: checking for struct exception" >&5
5369 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5370 if test "${emacs_cv_struct_exception+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 #include "confdefs.h"
5376 #include <math.h>
5377 int
5378 main ()
5379 {
5380 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 emacs_cv_struct_exception=yes
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 emacs_cv_struct_exception=no
5402 fi
5403 rm -f conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5406 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5407 HAVE_EXCEPTION=$emacs_cv_struct_exception
5408 if test $emacs_cv_struct_exception != yes; then
5409
5410 cat >>confdefs.h <<\_ACEOF
5411 #define NO_MATHERR 1
5412 _ACEOF
5413
5414 fi
5415
5416 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5417 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5418 if test "${ac_cv_struct_tm+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 cat >conftest.$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5423 #include "confdefs.h"
5424 #include <sys/types.h>
5425 #include <time.h>
5426
5427 int
5428 main ()
5429 {
5430 struct tm *tp; tp->tm_sec;
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_struct_tm=time.h
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5451 ac_cv_struct_tm=sys/time.h
5452 fi
5453 rm -f conftest.$ac_objext conftest.$ac_ext
5454 fi
5455 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5456 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5457 if test $ac_cv_struct_tm = sys/time.h; then
5458
5459 cat >>confdefs.h <<\_ACEOF
5460 #define TM_IN_SYS_TIME 1
5461 _ACEOF
5462
5463 fi
5464
5465 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5466 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5467 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 #include "confdefs.h"
5473 #include <sys/types.h>
5474 #include <$ac_cv_struct_tm>
5475
5476
5477 int
5478 main ()
5479 {
5480 static struct tm ac_aggr;
5481 if (ac_aggr.tm_zone)
5482 return 0;
5483 ;
5484 return 0;
5485 }
5486 _ACEOF
5487 rm -f conftest.$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 ac_cv_member_struct_tm_tm_zone=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 #include "confdefs.h"
5506 #include <sys/types.h>
5507 #include <$ac_cv_struct_tm>
5508
5509
5510 int
5511 main ()
5512 {
5513 static struct tm ac_aggr;
5514 if (sizeof ac_aggr.tm_zone)
5515 return 0;
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } &&
5526 { ac_try='test -s conftest.$ac_objext'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_member_struct_tm_tm_zone=yes
5533 else
5534 echo "$as_me: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5536 ac_cv_member_struct_tm_tm_zone=no
5537 fi
5538 rm -f conftest.$ac_objext conftest.$ac_ext
5539 fi
5540 rm -f conftest.$ac_objext conftest.$ac_ext
5541 fi
5542 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5543 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5544 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5545
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_STRUCT_TM_TM_ZONE 1
5548 _ACEOF
5549
5550
5551 fi
5552
5553 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5554
5555 cat >>confdefs.h <<\_ACEOF
5556 #define HAVE_TM_ZONE 1
5557 _ACEOF
5558
5559 else
5560 echo "$as_me:$LINENO: checking for tzname" >&5
5561 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5562 if test "${ac_cv_var_tzname+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 cat >conftest.$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 #include "confdefs.h"
5568 #include <time.h>
5569 #ifndef tzname /* For SGI. */
5570 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5571 #endif
5572
5573 int
5574 main ()
5575 {
5576 atoi(*tzname);
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_var_tzname=yes
5594 else
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ac_cv_var_tzname=no
5598 fi
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5602 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5603 if test $ac_cv_var_tzname = yes; then
5604
5605 cat >>confdefs.h <<\_ACEOF
5606 #define HAVE_TZNAME 1
5607 _ACEOF
5608
5609 fi
5610 fi
5611
5612 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5613 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5614 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 #include "confdefs.h"
5620 #include <time.h>
5621
5622 int
5623 main ()
5624 {
5625 static struct tm ac_aggr;
5626 if (ac_aggr.tm_gmtoff)
5627 return 0;
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -s conftest.$ac_objext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_member_struct_tm_tm_gmtoff=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5648 cat >conftest.$ac_ext <<_ACEOF
5649 #line $LINENO "configure"
5650 #include "confdefs.h"
5651 #include <time.h>
5652
5653 int
5654 main ()
5655 {
5656 static struct tm ac_aggr;
5657 if (sizeof ac_aggr.tm_gmtoff)
5658 return 0;
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_member_struct_tm_tm_gmtoff=yes
5676 else
5677 echo "$as_me: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 ac_cv_member_struct_tm_tm_gmtoff=no
5680 fi
5681 rm -f conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 rm -f conftest.$ac_objext conftest.$ac_ext
5684 fi
5685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5686 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5687 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5688
5689 cat >>confdefs.h <<\_ACEOF
5690 #define HAVE_TM_GMTOFF 1
5691 _ACEOF
5692
5693 fi
5694
5695
5696
5697 echo "$as_me:$LINENO: checking for function prototypes" >&5
5698 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5699 if test "$ac_cv_prog_cc_stdc" != no; then
5700 echo "$as_me:$LINENO: result: yes" >&5
5701 echo "${ECHO_T}yes" >&6
5702
5703 cat >>confdefs.h <<\_ACEOF
5704 #define PROTOTYPES 1
5705 _ACEOF
5706
5707
5708 cat >>confdefs.h <<\_ACEOF
5709 #define __PROTOTYPES 1
5710 _ACEOF
5711
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5715 fi
5716
5717 echo "$as_me:$LINENO: checking for working volatile" >&5
5718 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5719 if test "${ac_cv_c_volatile+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 cat >conftest.$ac_ext <<_ACEOF
5723 #line $LINENO "configure"
5724 #include "confdefs.h"
5725
5726 int
5727 main ()
5728 {
5729
5730 volatile int x;
5731 int * volatile y;
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_c_volatile=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 ac_cv_c_volatile=no
5753 fi
5754 rm -f conftest.$ac_objext conftest.$ac_ext
5755 fi
5756 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5757 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5758 if test $ac_cv_c_volatile = no; then
5759
5760 cat >>confdefs.h <<\_ACEOF
5761 #define volatile
5762 _ACEOF
5763
5764 fi
5765
5766 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5767 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5768 if test "${ac_cv_c_const+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 #include "confdefs.h"
5774
5775 int
5776 main ()
5777 {
5778 /* FIXME: Include the comments suggested by Paul. */
5779 #ifndef __cplusplus
5780 /* Ultrix mips cc rejects this. */
5781 typedef int charset[2];
5782 const charset x;
5783 /* SunOS 4.1.1 cc rejects this. */
5784 char const *const *ccp;
5785 char **p;
5786 /* NEC SVR4.0.2 mips cc rejects this. */
5787 struct point {int x, y;};
5788 static struct point const zero = {0,0};
5789 /* AIX XL C 1.02.0.0 rejects this.
5790 It does not let you subtract one const X* pointer from another in
5791 an arm of an if-expression whose if-part is not a constant
5792 expression */
5793 const char *g = "string";
5794 ccp = &g + (g ? g-g : 0);
5795 /* HPUX 7.0 cc rejects these. */
5796 ++ccp;
5797 p = (char**) ccp;
5798 ccp = (char const *const *) p;
5799 { /* SCO 3.2v4 cc rejects this. */
5800 char *t;
5801 char const *s = 0 ? (char *) 0 : (char const *) 0;
5802
5803 *t++ = 0;
5804 }
5805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5806 int x[] = {25, 17};
5807 const int *foo = &x[0];
5808 ++foo;
5809 }
5810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5811 typedef const int *iptr;
5812 iptr p = 0;
5813 ++p;
5814 }
5815 { /* AIX XL C 1.02.0.0 rejects this saying
5816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5817 struct s { int j; const int *ap[3]; };
5818 struct s *b; b->j = 5;
5819 }
5820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5821 const int foo = 10;
5822 }
5823 #endif
5824
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 ac_cv_c_const=yes
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 ac_cv_c_const=no
5846 fi
5847 rm -f conftest.$ac_objext conftest.$ac_ext
5848 fi
5849 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5850 echo "${ECHO_T}$ac_cv_c_const" >&6
5851 if test $ac_cv_c_const = no; then
5852
5853 cat >>confdefs.h <<\_ACEOF
5854 #define const
5855 _ACEOF
5856
5857 fi
5858
5859 echo "$as_me:$LINENO: checking for void * support" >&5
5860 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5861 if test "${emacs_cv_void_star+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864 cat >conftest.$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5866 #include "confdefs.h"
5867
5868 int
5869 main ()
5870 {
5871 void * foo;
5872 ;
5873 return 0;
5874 }
5875 _ACEOF
5876 rm -f conftest.$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 emacs_cv_void_star=yes
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 emacs_cv_void_star=no
5893 fi
5894 rm -f conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5897 echo "${ECHO_T}$emacs_cv_void_star" >&6
5898 if test $emacs_cv_void_star = yes; then
5899 cat >>confdefs.h <<\_ACEOF
5900 #define POINTER_TYPE void
5901 _ACEOF
5902
5903 else
5904 cat >>confdefs.h <<\_ACEOF
5905 #define POINTER_TYPE char
5906 _ACEOF
5907
5908 fi
5909
5910
5911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5912 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 cat >conftest.make <<\_ACEOF
5918 all:
5919 @echo 'ac_maketemp="${MAKE}"'
5920 _ACEOF
5921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5923 if test -n "$ac_maketemp"; then
5924 eval ac_cv_prog_make_${ac_make}_set=yes
5925 else
5926 eval ac_cv_prog_make_${ac_make}_set=no
5927 fi
5928 rm -f conftest.make
5929 fi
5930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5931 echo "$as_me:$LINENO: result: yes" >&5
5932 echo "${ECHO_T}yes" >&6
5933 SET_MAKE=
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6
5937 SET_MAKE="MAKE=${MAKE-make}"
5938 fi
5939
5940
5941 echo "$as_me:$LINENO: checking for long file names" >&5
5942 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5943 if test "${ac_cv_sys_long_file_names+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 ac_cv_sys_long_file_names=yes
5947 # Test for long file names in all the places we know might matter:
5948 # . the current directory, where building will happen
5949 # $prefix/lib where we will be installing things
5950 # $exec_prefix/lib likewise
5951 # eval it to expand exec_prefix.
5952 # $TMPDIR if set, where it might want to write temporary files
5953 # if $TMPDIR is not set:
5954 # /tmp where it might want to write temporary files
5955 # /var/tmp likewise
5956 # /usr/tmp likewise
5957 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5958 ac_tmpdirs=$TMPDIR
5959 else
5960 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5961 fi
5962 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5963 test -d $ac_dir || continue
5964 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5965 ac_xdir=$ac_dir/cf$$
5966 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5967 ac_tf1=$ac_xdir/conftest9012345
5968 ac_tf2=$ac_xdir/conftest9012346
5969 (echo 1 >$ac_tf1) 2>/dev/null
5970 (echo 2 >$ac_tf2) 2>/dev/null
5971 ac_val=`cat $ac_tf1 2>/dev/null`
5972 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5973 ac_cv_sys_long_file_names=no
5974 rm -rf $ac_xdir 2>/dev/null
5975 break
5976 fi
5977 rm -rf $ac_xdir 2>/dev/null
5978 done
5979 fi
5980 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5981 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5982 if test $ac_cv_sys_long_file_names = yes; then
5983
5984 cat >>confdefs.h <<\_ACEOF
5985 #define HAVE_LONG_FILE_NAMES 1
5986 _ACEOF
5987
5988 fi
5989
5990
5991 #### Choose a window system.
5992
5993 echo "$as_me:$LINENO: checking for X" >&5
5994 echo $ECHO_N "checking for X... $ECHO_C" >&6
5995
5996
5997 # Check whether --with-x or --without-x was given.
5998 if test "${with_x+set}" = set; then
5999 withval="$with_x"
6000
6001 fi;
6002 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6003 if test "x$with_x" = xno; then
6004 # The user explicitly disabled X.
6005 have_x=disabled
6006 else
6007 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6008 # Both variables are already set.
6009 have_x=yes
6010 else
6011 if test "${ac_cv_have_x+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 # One or both of the vars are not set, and there is no cached value.
6015 ac_x_includes=no ac_x_libraries=no
6016 rm -fr conftest.dir
6017 if mkdir conftest.dir; then
6018 cd conftest.dir
6019 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6020 cat >Imakefile <<'_ACEOF'
6021 acfindx:
6022 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6023 _ACEOF
6024 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6026 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6027 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6028 for ac_extension in a so sl; do
6029 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6030 test -f $ac_im_libdir/libX11.$ac_extension; then
6031 ac_im_usrlibdir=$ac_im_libdir; break
6032 fi
6033 done
6034 # Screen out bogus values from the imake configuration. They are
6035 # bogus both because they are the default anyway, and because
6036 # using them would break gcc on systems where it needs fixed includes.
6037 case $ac_im_incroot in
6038 /usr/include) ;;
6039 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6040 esac
6041 case $ac_im_usrlibdir in
6042 /usr/lib | /lib) ;;
6043 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6044 esac
6045 fi
6046 cd ..
6047 rm -fr conftest.dir
6048 fi
6049
6050 # Standard set of common directories for X headers.
6051 # Check X11 before X11Rn because it is often a symlink to the current release.
6052 ac_x_header_dirs='
6053 /usr/X11/include
6054 /usr/X11R6/include
6055 /usr/X11R5/include
6056 /usr/X11R4/include
6057
6058 /usr/include/X11
6059 /usr/include/X11R6
6060 /usr/include/X11R5
6061 /usr/include/X11R4
6062
6063 /usr/local/X11/include
6064 /usr/local/X11R6/include
6065 /usr/local/X11R5/include
6066 /usr/local/X11R4/include
6067
6068 /usr/local/include/X11
6069 /usr/local/include/X11R6
6070 /usr/local/include/X11R5
6071 /usr/local/include/X11R4
6072
6073 /usr/X386/include
6074 /usr/x386/include
6075 /usr/XFree86/include/X11
6076
6077 /usr/include
6078 /usr/local/include
6079 /usr/unsupported/include
6080 /usr/athena/include
6081 /usr/local/x11r5/include
6082 /usr/lpp/Xamples/include
6083
6084 /usr/openwin/include
6085 /usr/openwin/share/include'
6086
6087 if test "$ac_x_includes" = no; then
6088 # Guess where to find include files, by looking for Intrinsic.h.
6089 # First, try using that file with no special directory specified.
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 #include "confdefs.h"
6093 #include <X11/Intrinsic.h>
6094 _ACEOF
6095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev/null; then
6103 if test -s conftest.err; then
6104 ac_cpp_err=$ac_c_preproc_warn_flag
6105 else
6106 ac_cpp_err=
6107 fi
6108 else
6109 ac_cpp_err=yes
6110 fi
6111 if test -z "$ac_cpp_err"; then
6112 # We can compile using X headers with no special include directory.
6113 ac_x_includes=
6114 else
6115 echo "$as_me: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 for ac_dir in $ac_x_header_dirs; do
6118 if test -r "$ac_dir/X11/Intrinsic.h"; then
6119 ac_x_includes=$ac_dir
6120 break
6121 fi
6122 done
6123 fi
6124 rm -f conftest.err conftest.$ac_ext
6125 fi # $ac_x_includes = no
6126
6127 if test "$ac_x_libraries" = no; then
6128 # Check for the libraries.
6129 # See if we find them without any special options.
6130 # Don't add to $LIBS permanently.
6131 ac_save_LIBS=$LIBS
6132 LIBS="-lXt $LIBS"
6133 cat >conftest.$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6135 #include "confdefs.h"
6136 #include <X11/Intrinsic.h>
6137 int
6138 main ()
6139 {
6140 XtMalloc (0)
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 LIBS=$ac_save_LIBS
6158 # We can link X programs with no special library path.
6159 ac_x_libraries=
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6163 LIBS=$ac_save_LIBS
6164 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6165 do
6166 # Don't even attempt the hair of trying to link an X program!
6167 for ac_extension in a so sl; do
6168 if test -r $ac_dir/libXt.$ac_extension; then
6169 ac_x_libraries=$ac_dir
6170 break 2
6171 fi
6172 done
6173 done
6174 fi
6175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6176 fi # $ac_x_libraries = no
6177
6178 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6179 # Didn't find X anywhere. Cache the known absence of X.
6180 ac_cv_have_x="have_x=no"
6181 else
6182 # Record where we found X for the cache.
6183 ac_cv_have_x="have_x=yes \
6184 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6185 fi
6186 fi
6187
6188 fi
6189 eval "$ac_cv_have_x"
6190 fi # $with_x != no
6191
6192 if test "$have_x" != yes; then
6193 echo "$as_me:$LINENO: result: $have_x" >&5
6194 echo "${ECHO_T}$have_x" >&6
6195 no_x=yes
6196 else
6197 # If each of the values was on the command line, it overrides each guess.
6198 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6199 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6200 # Update the cache value to reflect the command line values.
6201 ac_cv_have_x="have_x=yes \
6202 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6203 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6204 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6205 fi
6206
6207 if test "$no_x" = yes; then
6208 window_system=none
6209 else
6210 window_system=x11
6211 fi
6212
6213 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6214 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6215 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6216 x_default_search_path=""
6217 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6218 x_search_path="\
6219 ${x_library}/X11/%L/%T/%N%C%S:\
6220 ${x_library}/X11/%l/%T/%N%C%S:\
6221 ${x_library}/X11/%T/%N%C%S:\
6222 ${x_library}/X11/%L/%T/%N%S:\
6223 ${x_library}/X11/%l/%T/%N%S:\
6224 ${x_library}/X11/%T/%N%S"
6225 if test x"${x_default_search_path}" = x; then
6226 x_default_search_path=${x_search_path}
6227 else
6228 x_default_search_path="${x_search_path}:${x_default_search_path}"
6229 fi
6230 done
6231 fi
6232 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6233 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6234 fi
6235
6236 if test x"${x_includes}" = x; then
6237 bitmapdir=/usr/include/X11/bitmaps
6238 else
6239 # accumulate include directories that have X11 bitmap subdirectories
6240 bmd_acc="dummyval"
6241 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6242 if test -d "${bmd}/X11/bitmaps"; then
6243 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6244 fi
6245 if test -d "${bmd}/bitmaps"; then
6246 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6247 fi
6248 done
6249 if test ${bmd_acc} != "dummyval"; then
6250 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6251 fi
6252 fi
6253
6254 case "${window_system}" in
6255 x11 )
6256 HAVE_X_WINDOWS=yes
6257 HAVE_X11=yes
6258 case "${with_x_toolkit}" in
6259 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6260 motif ) USE_X_TOOLKIT=MOTIF ;;
6261 no ) USE_X_TOOLKIT=none ;;
6262 * ) USE_X_TOOLKIT=maybe ;;
6263 esac
6264 ;;
6265 none )
6266 HAVE_X_WINDOWS=no
6267 HAVE_X11=no
6268 USE_X_TOOLKIT=none
6269 ;;
6270 esac
6271
6272 ### If we're using X11, we should use the X menu package.
6273 HAVE_MENUS=no
6274 case ${HAVE_X11} in
6275 yes ) HAVE_MENUS=yes ;;
6276 esac
6277
6278 if test "${opsys}" = "hpux9"; then
6279 case "${x_libraries}" in
6280 *X11R4* )
6281 opsysfile="s/hpux9-x11r4.h"
6282 ;;
6283 esac
6284 fi
6285
6286 if test "${opsys}" = "hpux9shr"; then
6287 case "${x_libraries}" in
6288 *X11R4* )
6289 opsysfile="s/hpux9shxr4.h"
6290 ;;
6291 esac
6292 fi
6293
6294 ### Compute the unexec source name from the object name.
6295 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6296
6297 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6298 # Assume not, until told otherwise.
6299 GNU_MALLOC=yes
6300 doug_lea_malloc=yes
6301 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6302 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6303 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 #include "confdefs.h"
6309 /* System header to define __stub macros and hopefully few prototypes,
6310 which can conflict with char malloc_get_state (); below. */
6311 #include <assert.h>
6312 /* Override any gcc2 internal prototype to avoid an error. */
6313 #ifdef __cplusplus
6314 extern "C"
6315 #endif
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6318 char malloc_get_state ();
6319 char (*f) ();
6320
6321 int
6322 main ()
6323 {
6324 /* The GNU C library defines this for functions which it implements
6325 to always fail with ENOSYS. Some functions are actually named
6326 something starting with __ and the normal name is an alias. */
6327 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6328 choke me
6329 #else
6330 f = malloc_get_state;
6331 #endif
6332
6333 ;
6334 return 0;
6335 }
6336 _ACEOF
6337 rm -f conftest.$ac_objext conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339 (eval $ac_link) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -s conftest$ac_exeext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_func_malloc_get_state=yes
6350 else
6351 echo "$as_me: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6353 ac_cv_func_malloc_get_state=no
6354 fi
6355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6356 fi
6357 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6358 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6359 if test $ac_cv_func_malloc_get_state = yes; then
6360 :
6361 else
6362 doug_lea_malloc=no
6363 fi
6364
6365 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6366 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6367 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 cat >conftest.$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 #include "confdefs.h"
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char malloc_set_state (); below. */
6375 #include <assert.h>
6376 /* Override any gcc2 internal prototype to avoid an error. */
6377 #ifdef __cplusplus
6378 extern "C"
6379 #endif
6380 /* We use char because int might match the return type of a gcc2
6381 builtin and then its argument prototype would still apply. */
6382 char malloc_set_state ();
6383 char (*f) ();
6384
6385 int
6386 main ()
6387 {
6388 /* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
6391 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6392 choke me
6393 #else
6394 f = malloc_set_state;
6395 #endif
6396
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext conftest$ac_exeext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -s conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_cv_func_malloc_set_state=yes
6414 else
6415 echo "$as_me: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6417 ac_cv_func_malloc_set_state=no
6418 fi
6419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6420 fi
6421 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6422 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6423 if test $ac_cv_func_malloc_set_state = yes; then
6424 :
6425 else
6426 doug_lea_malloc=no
6427 fi
6428
6429 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6430 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6431 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 cat >conftest.$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6436 #include "confdefs.h"
6437 extern void (* __after_morecore_hook)();
6438 int
6439 main ()
6440 {
6441 __after_morecore_hook = 0
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext conftest$ac_exeext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448 (eval $ac_link) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -s conftest$ac_exeext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 emacs_cv_var___after_morecore_hook=yes
6459 else
6460 echo "$as_me: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6462 emacs_cv_var___after_morecore_hook=no
6463 fi
6464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6465 fi
6466 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6467 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6468 if test $emacs_cv_var___after_morecore_hook = no; then
6469 doug_lea_malloc=no
6470 fi
6471 if test "${system_malloc}" = "yes"; then
6472 GNU_MALLOC=no
6473 GNU_MALLOC_reason="
6474 (The GNU allocators don't work with this system configuration.)"
6475 fi
6476 if test "$doug_lea_malloc" = "yes" ; then
6477 if test "$GNU_MALLOC" = yes ; then
6478 GNU_MALLOC_reason="
6479 (Using Doug Lea's new malloc from the GNU C Library.)"
6480 fi
6481
6482 cat >>confdefs.h <<\_ACEOF
6483 #define DOUG_LEA_MALLOC 1
6484 _ACEOF
6485
6486 fi
6487
6488 if test x"${REL_ALLOC}" = x; then
6489 REL_ALLOC=${GNU_MALLOC}
6490 fi
6491
6492
6493
6494
6495 for ac_header in stdlib.h unistd.h
6496 do
6497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 fi
6504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6506 else
6507 # Is the header compilable?
6508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6510 cat >conftest.$ac_ext <<_ACEOF
6511 #line $LINENO "configure"
6512 #include "confdefs.h"
6513 $ac_includes_default
6514 #include <$ac_header>
6515 _ACEOF
6516 rm -f conftest.$ac_objext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_header_compiler=yes
6529 else
6530 echo "$as_me: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6532 ac_header_compiler=no
6533 fi
6534 rm -f conftest.$ac_objext conftest.$ac_ext
6535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6536 echo "${ECHO_T}$ac_header_compiler" >&6
6537
6538 # Is the header present?
6539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6541 cat >conftest.$ac_ext <<_ACEOF
6542 #line $LINENO "configure"
6543 #include "confdefs.h"
6544 #include <$ac_header>
6545 _ACEOF
6546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } >/dev/null; then
6554 if test -s conftest.err; then
6555 ac_cpp_err=$ac_c_preproc_warn_flag
6556 else
6557 ac_cpp_err=
6558 fi
6559 else
6560 ac_cpp_err=yes
6561 fi
6562 if test -z "$ac_cpp_err"; then
6563 ac_header_preproc=yes
6564 else
6565 echo "$as_me: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 ac_header_preproc=no
6568 fi
6569 rm -f conftest.err conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6571 echo "${ECHO_T}$ac_header_preproc" >&6
6572
6573 # So? What about this header?
6574 case $ac_header_compiler:$ac_header_preproc in
6575 yes:no )
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6580 no:yes )
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6587 esac
6588 echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 eval "$as_ac_Header=$ac_header_preproc"
6594 fi
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6597
6598 fi
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 _ACEOF
6603
6604 fi
6605
6606 done
6607
6608
6609 for ac_func in getpagesize
6610 do
6611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6612 echo "$as_me:$LINENO: checking for $ac_func" >&5
6613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_var+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 cat >conftest.$ac_ext <<_ACEOF
6618 #line $LINENO "configure"
6619 #include "confdefs.h"
6620 /* System header to define __stub macros and hopefully few prototypes,
6621 which can conflict with char $ac_func (); below. */
6622 #include <assert.h>
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 #ifdef __cplusplus
6625 extern "C"
6626 #endif
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629 char $ac_func ();
6630 char (*f) ();
6631
6632 int
6633 main ()
6634 {
6635 /* The GNU C library defines this for functions which it implements
6636 to always fail with ENOSYS. Some functions are actually named
6637 something starting with __ and the normal name is an alias. */
6638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6639 choke me
6640 #else
6641 f = $ac_func;
6642 #endif
6643
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -s conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 eval "$as_ac_var=yes"
6661 else
6662 echo "$as_me: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 eval "$as_ac_var=no"
6665 fi
6666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6667 fi
6668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6670 if test `eval echo '${'$as_ac_var'}'` = yes; then
6671 cat >>confdefs.h <<_ACEOF
6672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6673 _ACEOF
6674
6675 fi
6676 done
6677
6678 echo "$as_me:$LINENO: checking for working mmap" >&5
6679 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6680 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 if test "$cross_compiling" = yes; then
6684 ac_cv_func_mmap_fixed_mapped=no
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6688 #include "confdefs.h"
6689 $ac_includes_default
6690 /* malloc might have been renamed as rpl_malloc. */
6691 #undef malloc
6692
6693 /* Thanks to Mike Haertel and Jim Avera for this test.
6694 Here is a matrix of mmap possibilities:
6695 mmap private not fixed
6696 mmap private fixed at somewhere currently unmapped
6697 mmap private fixed at somewhere already mapped
6698 mmap shared not fixed
6699 mmap shared fixed at somewhere currently unmapped
6700 mmap shared fixed at somewhere already mapped
6701 For private mappings, we should verify that changes cannot be read()
6702 back from the file, nor mmap's back from the file at a different
6703 address. (There have been systems where private was not correctly
6704 implemented like the infamous i386 svr4.0, and systems where the
6705 VM page cache was not coherent with the file system buffer cache
6706 like early versions of FreeBSD and possibly contemporary NetBSD.)
6707 For shared mappings, we should conversely verify that changes get
6708 propagated back to all the places they're supposed to be.
6709
6710 Grep wants private fixed already mapped.
6711 The main things grep needs to know about mmap are:
6712 * does it exist and is it safe to write into the mmap'd area
6713 * how to use it (BSD variants) */
6714
6715 #include <fcntl.h>
6716 #include <sys/mman.h>
6717
6718 #if !STDC_HEADERS && !HAVE_STDLIB_H
6719 char *malloc ();
6720 #endif
6721
6722 /* This mess was copied from the GNU getpagesize.h. */
6723 #if !HAVE_GETPAGESIZE
6724 /* Assume that all systems that can run configure have sys/param.h. */
6725 # if !HAVE_SYS_PARAM_H
6726 # define HAVE_SYS_PARAM_H 1
6727 # endif
6728
6729 # ifdef _SC_PAGESIZE
6730 # define getpagesize() sysconf(_SC_PAGESIZE)
6731 # else /* no _SC_PAGESIZE */
6732 # if HAVE_SYS_PARAM_H
6733 # include <sys/param.h>
6734 # ifdef EXEC_PAGESIZE
6735 # define getpagesize() EXEC_PAGESIZE
6736 # else /* no EXEC_PAGESIZE */
6737 # ifdef NBPG
6738 # define getpagesize() NBPG * CLSIZE
6739 # ifndef CLSIZE
6740 # define CLSIZE 1
6741 # endif /* no CLSIZE */
6742 # else /* no NBPG */
6743 # ifdef NBPC
6744 # define getpagesize() NBPC
6745 # else /* no NBPC */
6746 # ifdef PAGESIZE
6747 # define getpagesize() PAGESIZE
6748 # endif /* PAGESIZE */
6749 # endif /* no NBPC */
6750 # endif /* no NBPG */
6751 # endif /* no EXEC_PAGESIZE */
6752 # else /* no HAVE_SYS_PARAM_H */
6753 # define getpagesize() 8192 /* punt totally */
6754 # endif /* no HAVE_SYS_PARAM_H */
6755 # endif /* no _SC_PAGESIZE */
6756
6757 #endif /* no HAVE_GETPAGESIZE */
6758
6759 int
6760 main ()
6761 {
6762 char *data, *data2, *data3;
6763 int i, pagesize;
6764 int fd;
6765
6766 pagesize = getpagesize ();
6767
6768 /* First, make a file with some known garbage in it. */
6769 data = (char *) malloc (pagesize);
6770 if (!data)
6771 exit (1);
6772 for (i = 0; i < pagesize; ++i)
6773 *(data + i) = rand ();
6774 umask (0);
6775 fd = creat ("conftest.mmap", 0600);
6776 if (fd < 0)
6777 exit (1);
6778 if (write (fd, data, pagesize) != pagesize)
6779 exit (1);
6780 close (fd);
6781
6782 /* Next, try to mmap the file at a fixed address which already has
6783 something else allocated at it. If we can, also make sure that
6784 we see the same garbage. */
6785 fd = open ("conftest.mmap", O_RDWR);
6786 if (fd < 0)
6787 exit (1);
6788 data2 = (char *) malloc (2 * pagesize);
6789 if (!data2)
6790 exit (1);
6791 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6792 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6793 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6794 exit (1);
6795 for (i = 0; i < pagesize; ++i)
6796 if (*(data + i) != *(data2 + i))
6797 exit (1);
6798
6799 /* Finally, make sure that changes to the mapped area do not
6800 percolate back to the file as seen by read(). (This is a bug on
6801 some variants of i386 svr4.0.) */
6802 for (i = 0; i < pagesize; ++i)
6803 *(data2 + i) = *(data2 + i) + 1;
6804 data3 = (char *) malloc (pagesize);
6805 if (!data3)
6806 exit (1);
6807 if (read (fd, data3, pagesize) != pagesize)
6808 exit (1);
6809 for (i = 0; i < pagesize; ++i)
6810 if (*(data + i) != *(data3 + i))
6811 exit (1);
6812 close (fd);
6813 exit (0);
6814 }
6815 _ACEOF
6816 rm -f conftest$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_func_mmap_fixed_mapped=yes
6828 else
6829 echo "$as_me: program exited with status $ac_status" >&5
6830 echo "$as_me: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6832 ( exit $ac_status )
6833 ac_cv_func_mmap_fixed_mapped=no
6834 fi
6835 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6839 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6840 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6841
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_MMAP 1
6844 _ACEOF
6845
6846 fi
6847 rm -f conftest.mmap
6848
6849 if test $use_mmap_for_buffers = yes; then
6850 REL_ALLOC=no
6851 fi
6852
6853 LIBS="$libsrc_libs $LIBS"
6854
6855
6856 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6857 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6858 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861 ac_check_lib_save_LIBS=$LIBS
6862 LIBS="-ldnet $LIBS"
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6866
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 #ifdef __cplusplus
6869 extern "C"
6870 #endif
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6873 char dnet_ntoa ();
6874 int
6875 main ()
6876 {
6877 dnet_ntoa ();
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_lib_dnet_dnet_ntoa=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 ac_cv_lib_dnet_dnet_ntoa=no
6899 fi
6900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6901 LIBS=$ac_check_lib_save_LIBS
6902 fi
6903 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6904 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6905 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_LIBDNET 1
6908 _ACEOF
6909
6910 LIBS="-ldnet $LIBS"
6911
6912 fi
6913
6914
6915 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6916 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6917 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 ac_check_lib_save_LIBS=$LIBS
6921 LIBS="-lXbsd $LIBS"
6922 cat >conftest.$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 #include "confdefs.h"
6925
6926
6927 int
6928 main ()
6929 {
6930 main ();
6931 ;
6932 return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -s conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_lib_Xbsd_main=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6951 ac_cv_lib_Xbsd_main=no
6952 fi
6953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6954 LIBS=$ac_check_lib_save_LIBS
6955 fi
6956 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
6957 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6958 if test $ac_cv_lib_Xbsd_main = yes; then
6959 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6960 fi
6961
6962
6963
6964 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
6965 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6966 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 ac_check_lib_save_LIBS=$LIBS
6970 LIBS="-lpthreads $LIBS"
6971 cat >conftest.$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 #include "confdefs.h"
6974
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 #ifdef __cplusplus
6977 extern "C"
6978 #endif
6979 /* We use char because int might match the return type of a gcc2
6980 builtin and then its argument prototype would still apply. */
6981 char cma_open ();
6982 int
6983 main ()
6984 {
6985 cma_open ();
6986 ;
6987 return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest.$ac_objext conftest$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -s conftest$ac_exeext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_lib_pthreads_cma_open=yes
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_cv_lib_pthreads_cma_open=no
7007 fi
7008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7010 fi
7011 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7012 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7013 if test $ac_cv_lib_pthreads_cma_open = yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_LIBPTHREADS 1
7016 _ACEOF
7017
7018 LIBS="-lpthreads $LIBS"
7019
7020 fi
7021
7022
7023 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7024 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7025 if test -d /usr/X386/include; then
7026 HAVE_XFREE386=yes
7027 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7028 else
7029 HAVE_XFREE386=no
7030 fi
7031 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7032 echo "${ECHO_T}$HAVE_XFREE386" >&6
7033
7034 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7035 # used for the tests that follow. We set them back to REAL_CFLAGS and
7036 # REAL_CPPFLAGS later on.
7037
7038 REAL_CPPFLAGS="$CPPFLAGS"
7039
7040 if test "${HAVE_X11}" = "yes"; then
7041 DEFS="$C_SWITCH_X_SITE $DEFS"
7042 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7043 LIBS="$LIBX $LIBS"
7044 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7045 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7046
7047 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7048 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7049 # but it's more convenient here to set LD_RUN_PATH
7050 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7051 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7052 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7053 export LD_RUN_PATH
7054 fi
7055
7056 if test "${opsys}" = "gnu-linux"; then
7057 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7058 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7059 cat >conftest.$ac_ext <<_ACEOF
7060 #line $LINENO "configure"
7061 #include "confdefs.h"
7062
7063 int
7064 main ()
7065 {
7066 XOpenDisplay ("foo");
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 xlinux_first_failure=no
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 xlinux_first_failure=yes
7088 fi
7089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7090 if test "${xlinux_first_failure}" = "yes"; then
7091 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7092 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7093 OLD_CPPFLAGS="$CPPFLAGS"
7094 OLD_LIBS="$LIBS"
7095 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7096 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7097 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7098 LIBS="$LIBS -b i486-linuxaout"
7099 cat >conftest.$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7102
7103 int
7104 main ()
7105 {
7106 XOpenDisplay ("foo");
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -s conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 xlinux_second_failure=no
7124 else
7125 echo "$as_me: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7127 xlinux_second_failure=yes
7128 fi
7129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7130 if test "${xlinux_second_failure}" = "yes"; then
7131 # If we get the same failure with -b, there is no use adding -b.
7132 # So take it out. This plays safe.
7133 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7134 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7135 CPPFLAGS="$OLD_CPPFLAGS"
7136 LIBS="$OLD_LIBS"
7137 echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7139 else
7140 echo "$as_me:$LINENO: result: yes" >&5
7141 echo "${ECHO_T}yes" >&6
7142 fi
7143 else
7144 echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6
7146 fi
7147 fi
7148
7149 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7150 # header files included from there.
7151 echo "$as_me:$LINENO: checking for Xkb" >&5
7152 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7153 cat >conftest.$ac_ext <<_ACEOF
7154 #line $LINENO "configure"
7155 #include "confdefs.h"
7156 #include <X11/Xlib.h>
7157 #include <X11/XKBlib.h>
7158 int
7159 main ()
7160 {
7161 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 emacs_xkb=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 cat conftest.$ac_ext >&5
7182 emacs_xkb=no
7183 fi
7184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7185 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7186 echo "${ECHO_T}$emacs_xkb" >&6
7187 if test $emacs_xkb = yes; then
7188
7189 cat >>confdefs.h <<\_ACEOF
7190 #define HAVE_XKBGETKEYBOARD 1
7191 _ACEOF
7192
7193 fi
7194
7195
7196
7197
7198
7199 for ac_func in XrmSetDatabase XScreenResourceString \
7200 XScreenNumberOfScreen XSetWMProtocols
7201 do
7202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7203 echo "$as_me:$LINENO: checking for $ac_func" >&5
7204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7205 if eval "test \"\${$as_ac_var+set}\" = set"; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208 cat >conftest.$ac_ext <<_ACEOF
7209 #line $LINENO "configure"
7210 #include "confdefs.h"
7211 /* System header to define __stub macros and hopefully few prototypes,
7212 which can conflict with char $ac_func (); below. */
7213 #include <assert.h>
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 #ifdef __cplusplus
7216 extern "C"
7217 #endif
7218 /* We use char because int might match the return type of a gcc2
7219 builtin and then its argument prototype would still apply. */
7220 char $ac_func ();
7221 char (*f) ();
7222
7223 int
7224 main ()
7225 {
7226 /* The GNU C library defines this for functions which it implements
7227 to always fail with ENOSYS. Some functions are actually named
7228 something starting with __ and the normal name is an alias. */
7229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7230 choke me
7231 #else
7232 f = $ac_func;
7233 #endif
7234
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 rm -f conftest.$ac_objext conftest$ac_exeext
7240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 (eval $ac_link) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -s conftest$ac_exeext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 eval "$as_ac_var=yes"
7252 else
7253 echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7255 eval "$as_ac_var=no"
7256 fi
7257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7258 fi
7259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7261 if test `eval echo '${'$as_ac_var'}'` = yes; then
7262 cat >>confdefs.h <<_ACEOF
7263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7264 _ACEOF
7265
7266 fi
7267 done
7268
7269 fi
7270
7271 if test "${window_system}" = "x11"; then
7272 echo "$as_me:$LINENO: checking X11 version 6" >&5
7273 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7274 if test "${emacs_cv_x11_version_6+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7279 #include "confdefs.h"
7280 #include <X11/Xlib.h>
7281 int
7282 main ()
7283 {
7284 #if XlibSpecificationRelease < 6
7285 fail;
7286 #endif
7287
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7294 (eval $ac_link) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -s conftest$ac_exeext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 emacs_cv_x11_version_6=yes
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 emacs_cv_x11_version_6=no
7309 fi
7310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7311 fi
7312
7313 if test $emacs_cv_x11_version_6 = yes; then
7314 echo "$as_me:$LINENO: result: 6 or newer" >&5
7315 echo "${ECHO_T}6 or newer" >&6
7316
7317 cat >>confdefs.h <<\_ACEOF
7318 #define HAVE_X11R6 1
7319 _ACEOF
7320
7321 else
7322 echo "$as_me:$LINENO: result: before 6" >&5
7323 echo "${ECHO_T}before 6" >&6
7324 fi
7325 fi
7326
7327 if test "${window_system}" = "x11"; then
7328 echo "$as_me:$LINENO: checking X11 version 5" >&5
7329 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7330 if test "${emacs_cv_x11_version_5+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 #line $LINENO "configure"
7335 #include "confdefs.h"
7336 #include <X11/Xlib.h>
7337 int
7338 main ()
7339 {
7340 #if XlibSpecificationRelease < 5
7341 fail;
7342 #endif
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -s conftest$ac_exeext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 emacs_cv_x11_version_5=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 emacs_cv_x11_version_5=no
7365 fi
7366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7367 fi
7368
7369 if test $emacs_cv_x11_version_5 = yes; then
7370 echo "$as_me:$LINENO: result: 5 or newer" >&5
7371 echo "${ECHO_T}5 or newer" >&6
7372 HAVE_X11R5=yes
7373
7374 cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_X11R5 1
7376 _ACEOF
7377
7378 else
7379 HAVE_X11R5=no
7380 echo "$as_me:$LINENO: result: before 5" >&5
7381 echo "${ECHO_T}before 5" >&6
7382 fi
7383 fi
7384
7385 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7386 if test x"${HAVE_X11R5}" = xyes; then
7387 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7388 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7389 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 #line $LINENO "configure"
7394 #include "confdefs.h"
7395
7396 #include <X11/Intrinsic.h>
7397 #include <X11/Xaw/Simple.h>
7398 int
7399 main ()
7400 {
7401
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -s conftest$ac_exeext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 emacs_cv_x11_version_5_with_xaw=yes
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7422 emacs_cv_x11_version_5_with_xaw=no
7423 fi
7424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7425 fi
7426
7427 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7428 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7429 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7430 USE_X_TOOLKIT=LUCID
7431 else
7432 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7433 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7434 USE_X_TOOLKIT=none
7435 fi
7436 else
7437 USE_X_TOOLKIT=none
7438 fi
7439 fi
7440
7441 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7442
7443 if test "${USE_X_TOOLKIT}" != "none"; then
7444 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7445 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7446 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 cat >conftest.$ac_ext <<_ACEOF
7450 #line $LINENO "configure"
7451 #include "confdefs.h"
7452 #include <X11/Intrinsic.h>
7453 int
7454 main ()
7455 {
7456 #if XtSpecificationRelease < 6
7457 fail;
7458 #endif
7459
7460 ;
7461 return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext conftest$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 emacs_cv_x11_toolkit_version_6=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 emacs_cv_x11_toolkit_version_6=no
7481 fi
7482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7483 fi
7484
7485 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7486 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7487 echo "$as_me:$LINENO: result: 6 or newer" >&5
7488 echo "${ECHO_T}6 or newer" >&6
7489
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_X11XTR6 1
7492 _ACEOF
7493
7494 else
7495 echo "$as_me:$LINENO: result: before 6" >&5
7496 echo "${ECHO_T}before 6" >&6
7497 fi
7498
7499 OLDLIBS="$LIBS"
7500 if test x$HAVE_X11XTR6 = xyes; then
7501 LIBS="-lXt -lSM -lICE $LIBS"
7502 else
7503 LIBS="-lXt $LIBS"
7504 fi
7505
7506 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7507 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7508 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 ac_check_lib_save_LIBS=$LIBS
7512 LIBS="-lXmu $LIBS"
7513 cat >conftest.$ac_ext <<_ACEOF
7514 #line $LINENO "configure"
7515 #include "confdefs.h"
7516
7517 /* Override any gcc2 internal prototype to avoid an error. */
7518 #ifdef __cplusplus
7519 extern "C"
7520 #endif
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char XmuConvertStandardSelection ();
7524 int
7525 main ()
7526 {
7527 XmuConvertStandardSelection ();
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 rm -f conftest.$ac_objext conftest$ac_exeext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7534 (eval $ac_link) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -s conftest$ac_exeext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7548 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
7549 fi
7550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7551 LIBS=$ac_check_lib_save_LIBS
7552 fi
7553 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7554 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7555 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7556 cat >>confdefs.h <<_ACEOF
7557 #define HAVE_LIBXMU 1
7558 _ACEOF
7559
7560 LIBS="-lXmu $LIBS"
7561
7562 fi
7563
7564 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
7565 fi
7566
7567 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7568 if test "${HAVE_X11}" = "yes"; then
7569 if test "${USE_X_TOOLKIT}" != "none"; then
7570
7571 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7572 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7573 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 ac_check_lib_save_LIBS=$LIBS
7577 LIBS="-lXext $LIBS"
7578 cat >conftest.$ac_ext <<_ACEOF
7579 #line $LINENO "configure"
7580 #include "confdefs.h"
7581
7582 /* Override any gcc2 internal prototype to avoid an error. */
7583 #ifdef __cplusplus
7584 extern "C"
7585 #endif
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7588 char XShapeQueryExtension ();
7589 int
7590 main ()
7591 {
7592 XShapeQueryExtension ();
7593 ;
7594 return 0;
7595 }
7596 _ACEOF
7597 rm -f conftest.$ac_objext conftest$ac_exeext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599 (eval $ac_link) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_lib_Xext_XShapeQueryExtension=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7613 ac_cv_lib_Xext_XShapeQueryExtension=no
7614 fi
7615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7617 fi
7618 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7619 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7620 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_LIBXEXT 1
7623 _ACEOF
7624
7625 LIBS="-lXext $LIBS"
7626
7627 fi
7628
7629 fi
7630 fi
7631
7632 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7633 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
7634 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
7635 if test "${emacs_cv_lesstif+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638 # We put this in CFLAGS temporarily to precede other -I options
7639 # that might be in CFLAGS temporarily.
7640 # We put this in CPPFLAGS where it precedes the other -I options.
7641 OLD_CPPFLAGS=$CPPFLAGS
7642 OLD_CFLAGS=$CFLAGS
7643 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
7644 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 #line $LINENO "configure"
7647 #include "confdefs.h"
7648 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
7649 int
7650 main ()
7651 {
7652 int x = 5;
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7669 emacs_cv_lesstif=yes
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7673 emacs_cv_lesstif=no
7674 fi
7675 rm -f conftest.$ac_objext conftest.$ac_ext
7676 fi
7677 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
7678 echo "${ECHO_T}$emacs_cv_lesstif" >&6
7679 if test $emacs_cv_lesstif = yes; then
7680 # Make sure this -I option remains in CPPFLAGS after it is set
7681 # back to REAL_CPPFLAGS.
7682 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
7683 # have those other -I options anyway. Ultimately, having this
7684 # directory ultimately in CPPFLAGS will be enough.
7685 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
7686 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
7687 else
7688 CFLAGS=$OLD_CFLAGS
7689 CPPFLAGS=$OLD_CPPFLAGS
7690 fi
7691 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7692 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7693 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7699 #include <Xm/Xm.h>
7700 int
7701 main ()
7702 {
7703 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7704 int x = 5;
7705 #else
7706 Motif version prior to 2.1.
7707 #endif
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -s conftest.$ac_objext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 emacs_cv_motif_version_2_1=yes
7725 else
7726 echo "$as_me: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7728 emacs_cv_motif_version_2_1=no
7729 fi
7730 rm -f conftest.$ac_objext conftest.$ac_ext
7731 fi
7732 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7733 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7734 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
7735 if test $emacs_cv_motif_version_2_1 = yes; then
7736 HAVE_LIBXP=no
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_MOTIF_2_1 1
7740 _ACEOF
7741
7742 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7743 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7744 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747 ac_check_lib_save_LIBS=$LIBS
7748 LIBS="-lXp $LIBS"
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 #include "confdefs.h"
7752
7753 /* Override any gcc2 internal prototype to avoid an error. */
7754 #ifdef __cplusplus
7755 extern "C"
7756 #endif
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759 char XpCreateContext ();
7760 int
7761 main ()
7762 {
7763 XpCreateContext ();
7764 ;
7765 return 0;
7766 }
7767 _ACEOF
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770 (eval $ac_link) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -s conftest$ac_exeext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_lib_Xp_XpCreateContext=yes
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7784 ac_cv_lib_Xp_XpCreateContext=no
7785 fi
7786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7787 LIBS=$ac_check_lib_save_LIBS
7788 fi
7789 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7790 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7791 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7792 HAVE_LIBXP=yes
7793 fi
7794
7795 if test ${HAVE_LIBXP} = yes; then
7796
7797 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_LIBXP 1
7799 _ACEOF
7800
7801 fi
7802 fi
7803 fi
7804
7805 ### Is -lXaw3d available?
7806 HAVE_XAW3D=no
7807 if test "${HAVE_X11}" = "yes"; then
7808 if test "${USE_X_TOOLKIT}" != "none"; then
7809 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7810 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7811 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 cat >conftest.$ac_ext <<_ACEOF
7815 #line $LINENO "configure"
7816 #include "confdefs.h"
7817 #include <X11/Xaw3d/Scrollbar.h>
7818 _ACEOF
7819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } >/dev/null; then
7827 if test -s conftest.err; then
7828 ac_cpp_err=$ac_c_preproc_warn_flag
7829 else
7830 ac_cpp_err=
7831 fi
7832 else
7833 ac_cpp_err=yes
7834 fi
7835 if test -z "$ac_cpp_err"; then
7836 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
7837 else
7838 echo "$as_me: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
7841 fi
7842 rm -f conftest.err conftest.$ac_ext
7843 fi
7844 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7845 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7846 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7847 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7848 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7849 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 ac_check_lib_save_LIBS=$LIBS
7853 LIBS="-lXaw3d $LIBS"
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 #include "confdefs.h"
7857
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864 char XawScrollbarSetThumb ();
7865 int
7866 main ()
7867 {
7868 XawScrollbarSetThumb ();
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
7890 fi
7891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7892 LIBS=$ac_check_lib_save_LIBS
7893 fi
7894 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7895 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7896 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7897 HAVE_XAW3D=yes
7898 fi
7899
7900 fi
7901
7902
7903 if test "${HAVE_XAW3D}" = "yes"; then
7904
7905 cat >>confdefs.h <<\_ACEOF
7906 #define HAVE_XAW3D 1
7907 _ACEOF
7908
7909 fi
7910 fi
7911 fi
7912
7913
7914
7915 USE_TOOLKIT_SCROLL_BARS=no
7916 if test "${with_toolkit_scroll_bars}" != "no"; then
7917 if test "${USE_X_TOOLKIT}" != "none"; then
7918 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7919 cat >>confdefs.h <<\_ACEOF
7920 #define USE_TOOLKIT_SCROLL_BARS 1
7921 _ACEOF
7922
7923 HAVE_XAW3D=no
7924 USE_TOOLKIT_SCROLL_BARS=yes
7925 elif test "${HAVE_XAW3D}" = "yes"; then
7926 cat >>confdefs.h <<\_ACEOF
7927 #define USE_TOOLKIT_SCROLL_BARS 1
7928 _ACEOF
7929
7930 USE_TOOLKIT_SCROLL_BARS=yes
7931 fi
7932 fi
7933 fi
7934
7935
7936 if test "${with_xim}" != "no"; then
7937
7938 cat >>confdefs.h <<\_ACEOF
7939 #define USE_XIM 1
7940 _ACEOF
7941
7942 fi
7943
7944 ### Use -lXpm if available, unless `--with-xpm=no'.
7945 HAVE_XPM=no
7946 if test "${HAVE_X11}" = "yes"; then
7947 if test "${with_xpm}" != "no"; then
7948 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7949 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
7950 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7951 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 fi
7954 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
7955 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7956 else
7957 # Is the header compilable?
7958 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
7959 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 #include "confdefs.h"
7963 $ac_includes_default
7964 #include <X11/xpm.h>
7965 _ACEOF
7966 rm -f conftest.$ac_objext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968 (eval $ac_compile) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_header_compiler=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 ac_header_compiler=no
7983 fi
7984 rm -f conftest.$ac_objext conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7986 echo "${ECHO_T}$ac_header_compiler" >&6
7987
7988 # Is the header present?
7989 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
7990 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 #include "confdefs.h"
7994 #include <X11/xpm.h>
7995 _ACEOF
7996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } >/dev/null; then
8004 if test -s conftest.err; then
8005 ac_cpp_err=$ac_c_preproc_warn_flag
8006 else
8007 ac_cpp_err=
8008 fi
8009 else
8010 ac_cpp_err=yes
8011 fi
8012 if test -z "$ac_cpp_err"; then
8013 ac_header_preproc=yes
8014 else
8015 echo "$as_me: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 ac_header_preproc=no
8018 fi
8019 rm -f conftest.err conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8021 echo "${ECHO_T}$ac_header_preproc" >&6
8022
8023 # So? What about this header?
8024 case $ac_header_compiler:$ac_header_preproc in
8025 yes:no )
8026 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8027 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8028 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8029 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8030 no:yes )
8031 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8032 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8034 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8036 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8037 esac
8038 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8039 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8040 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 ac_cv_header_X11_xpm_h=$ac_header_preproc
8044 fi
8045 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8046 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8047
8048 fi
8049 if test $ac_cv_header_X11_xpm_h = yes; then
8050 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8051 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8052 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055 ac_check_lib_save_LIBS=$LIBS
8056 LIBS="-lXpm -lX11 $LIBS"
8057 cat >conftest.$ac_ext <<_ACEOF
8058 #line $LINENO "configure"
8059 #include "confdefs.h"
8060
8061 /* Override any gcc2 internal prototype to avoid an error. */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8067 char XpmReadFileToPixmap ();
8068 int
8069 main ()
8070 {
8071 XpmReadFileToPixmap ();
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8093 fi
8094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8096 fi
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8098 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8099 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8100 HAVE_XPM=yes
8101 fi
8102
8103 fi
8104
8105
8106 if test "${HAVE_XPM}" = "yes"; then
8107 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8108 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8110 #line $LINENO "configure"
8111 #include "confdefs.h"
8112 #include "X11/xpm.h"
8113 #ifndef XpmReturnAllocPixels
8114 no_return_alloc_pixels
8115 #endif
8116
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
8120 HAVE_XPM=no
8121 else
8122 HAVE_XPM=yes
8123 fi
8124 rm -f conftest*
8125
8126
8127 if test "${HAVE_XPM}" = "yes"; then
8128 echo "$as_me:$LINENO: result: yes" >&5
8129 echo "${ECHO_T}yes" >&6
8130 else
8131 echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6
8133 fi
8134 fi
8135 fi
8136
8137 if test "${HAVE_XPM}" = "yes"; then
8138
8139 cat >>confdefs.h <<\_ACEOF
8140 #define HAVE_XPM 1
8141 _ACEOF
8142
8143 fi
8144 fi
8145
8146 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8147 HAVE_JPEG=no
8148 if test "${HAVE_X11}" = "yes"; then
8149 if test "${with_jpeg}" != "no"; then
8150 if test "${ac_cv_header_jerror_h+set}" = set; then
8151 echo "$as_me:$LINENO: checking for jerror.h" >&5
8152 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8153 if test "${ac_cv_header_jerror_h+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 fi
8156 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8157 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8158 else
8159 # Is the header compilable?
8160 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8161 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8162 cat >conftest.$ac_ext <<_ACEOF
8163 #line $LINENO "configure"
8164 #include "confdefs.h"
8165 $ac_includes_default
8166 #include <jerror.h>
8167 _ACEOF
8168 rm -f conftest.$ac_objext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_header_compiler=yes
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8184 ac_header_compiler=no
8185 fi
8186 rm -f conftest.$ac_objext conftest.$ac_ext
8187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8188 echo "${ECHO_T}$ac_header_compiler" >&6
8189
8190 # Is the header present?
8191 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8192 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8193 cat >conftest.$ac_ext <<_ACEOF
8194 #line $LINENO "configure"
8195 #include "confdefs.h"
8196 #include <jerror.h>
8197 _ACEOF
8198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } >/dev/null; then
8206 if test -s conftest.err; then
8207 ac_cpp_err=$ac_c_preproc_warn_flag
8208 else
8209 ac_cpp_err=
8210 fi
8211 else
8212 ac_cpp_err=yes
8213 fi
8214 if test -z "$ac_cpp_err"; then
8215 ac_header_preproc=yes
8216 else
8217 echo "$as_me: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 ac_header_preproc=no
8220 fi
8221 rm -f conftest.err conftest.$ac_ext
8222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8223 echo "${ECHO_T}$ac_header_preproc" >&6
8224
8225 # So? What about this header?
8226 case $ac_header_compiler:$ac_header_preproc in
8227 yes:no )
8228 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8229 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8231 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8232 no:yes )
8233 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8234 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8236 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8238 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8239 esac
8240 echo "$as_me:$LINENO: checking for jerror.h" >&5
8241 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8242 if test "${ac_cv_header_jerror_h+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 ac_cv_header_jerror_h=$ac_header_preproc
8246 fi
8247 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8248 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8249
8250 fi
8251 if test $ac_cv_header_jerror_h = yes; then
8252 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8253 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8254 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 ac_check_lib_save_LIBS=$LIBS
8258 LIBS="-ljpeg $LIBS"
8259 cat >conftest.$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8261 #include "confdefs.h"
8262
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8269 char jpeg_destroy_compress ();
8270 int
8271 main ()
8272 {
8273 jpeg_destroy_compress ();
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8290 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8294 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 LIBS=$ac_check_lib_save_LIBS
8298 fi
8299 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8300 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8301 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8302 HAVE_JPEG=yes
8303 fi
8304
8305 fi
8306
8307
8308 fi
8309
8310
8311 if test "${HAVE_JPEG}" = "yes"; then
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_JPEG 1
8314 _ACEOF
8315
8316 cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8318 #include "confdefs.h"
8319 #include <jpeglib.h>
8320 version=JPEG_LIB_VERSION
8321
8322 _ACEOF
8323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8324 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8325 cat >>confdefs.h <<\_ACEOF
8326 #define HAVE_JPEG 1
8327 _ACEOF
8328
8329 else
8330 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8331 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8332 HAVE_JPEG=no
8333 fi
8334 rm -f conftest*
8335
8336 fi
8337 fi
8338
8339 ### Use -lpng if available, unless `--with-png=no'.
8340 HAVE_PNG=no
8341 if test "${HAVE_X11}" = "yes"; then
8342 if test "${with_png}" != "no"; then
8343 if test "${ac_cv_header_png_h+set}" = set; then
8344 echo "$as_me:$LINENO: checking for png.h" >&5
8345 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8346 if test "${ac_cv_header_png_h+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8350 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8351 else
8352 # Is the header compilable?
8353 echo "$as_me:$LINENO: checking png.h usability" >&5
8354 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 #include "confdefs.h"
8358 $ac_includes_default
8359 #include <png.h>
8360 _ACEOF
8361 rm -f conftest.$ac_objext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363 (eval $ac_compile) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_header_compiler=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8377 ac_header_compiler=no
8378 fi
8379 rm -f conftest.$ac_objext conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8381 echo "${ECHO_T}$ac_header_compiler" >&6
8382
8383 # Is the header present?
8384 echo "$as_me:$LINENO: checking png.h presence" >&5
8385 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 #include "confdefs.h"
8389 #include <png.h>
8390 _ACEOF
8391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } >/dev/null; then
8399 if test -s conftest.err; then
8400 ac_cpp_err=$ac_c_preproc_warn_flag
8401 else
8402 ac_cpp_err=
8403 fi
8404 else
8405 ac_cpp_err=yes
8406 fi
8407 if test -z "$ac_cpp_err"; then
8408 ac_header_preproc=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8412 ac_header_preproc=no
8413 fi
8414 rm -f conftest.err conftest.$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416 echo "${ECHO_T}$ac_header_preproc" >&6
8417
8418 # So? What about this header?
8419 case $ac_header_compiler:$ac_header_preproc in
8420 yes:no )
8421 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8422 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8424 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8425 no:yes )
8426 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8427 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8429 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8431 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8432 esac
8433 echo "$as_me:$LINENO: checking for png.h" >&5
8434 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8435 if test "${ac_cv_header_png_h+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438 ac_cv_header_png_h=$ac_header_preproc
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8441 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8442
8443 fi
8444 if test $ac_cv_header_png_h = yes; then
8445 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8446 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8447 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 ac_check_lib_save_LIBS=$LIBS
8451 LIBS="-lpng -lz -lm $LIBS"
8452 cat >conftest.$ac_ext <<_ACEOF
8453 #line $LINENO "configure"
8454 #include "confdefs.h"
8455
8456 /* Override any gcc2 internal prototype to avoid an error. */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 /* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8462 char png_get_channels ();
8463 int
8464 main ()
8465 {
8466 png_get_channels ();
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_lib_png_png_get_channels=yes
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_cv_lib_png_png_get_channels=no
8488 fi
8489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8491 fi
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8493 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8494 if test $ac_cv_lib_png_png_get_channels = yes; then
8495 HAVE_PNG=yes
8496 fi
8497
8498 fi
8499
8500
8501 fi
8502
8503 if test "${HAVE_PNG}" = "yes"; then
8504
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_PNG 1
8507 _ACEOF
8508
8509 fi
8510 fi
8511
8512 ### Use -ltiff if available, unless `--with-tiff=no'.
8513 HAVE_TIFF=no
8514 if test "${HAVE_X11}" = "yes"; then
8515 if test "${with_tiff}" != "no"; then
8516 if test "${ac_cv_header_tiffio_h+set}" = set; then
8517 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8518 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8519 if test "${ac_cv_header_tiffio_h+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 fi
8522 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8523 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8524 else
8525 # Is the header compilable?
8526 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8527 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8528 cat >conftest.$ac_ext <<_ACEOF
8529 #line $LINENO "configure"
8530 #include "confdefs.h"
8531 $ac_includes_default
8532 #include <tiffio.h>
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536 (eval $ac_compile) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -s conftest.$ac_objext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_header_compiler=yes
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8550 ac_header_compiler=no
8551 fi
8552 rm -f conftest.$ac_objext conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8554 echo "${ECHO_T}$ac_header_compiler" >&6
8555
8556 # Is the header present?
8557 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8558 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8561 #include "confdefs.h"
8562 #include <tiffio.h>
8563 _ACEOF
8564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } >/dev/null; then
8572 if test -s conftest.err; then
8573 ac_cpp_err=$ac_c_preproc_warn_flag
8574 else
8575 ac_cpp_err=
8576 fi
8577 else
8578 ac_cpp_err=yes
8579 fi
8580 if test -z "$ac_cpp_err"; then
8581 ac_header_preproc=yes
8582 else
8583 echo "$as_me: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8585 ac_header_preproc=no
8586 fi
8587 rm -f conftest.err conftest.$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8589 echo "${ECHO_T}$ac_header_preproc" >&6
8590
8591 # So? What about this header?
8592 case $ac_header_compiler:$ac_header_preproc in
8593 yes:no )
8594 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8595 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8597 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8598 no:yes )
8599 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8600 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8602 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8604 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8605 esac
8606 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8607 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8608 if test "${ac_cv_header_tiffio_h+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611 ac_cv_header_tiffio_h=$ac_header_preproc
8612 fi
8613 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8614 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8615
8616 fi
8617 if test $ac_cv_header_tiffio_h = yes; then
8618 tifflibs="-lz -lm"
8619 # At least one tiff package requires the jpeg library.
8620 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
8621 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8622 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8623 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 ac_check_lib_save_LIBS=$LIBS
8627 LIBS="-ltiff $tifflibs $LIBS"
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8631
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char TIFFGetVersion ();
8639 int
8640 main ()
8641 {
8642 TIFFGetVersion ();
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_lib_tiff_TIFFGetVersion=yes
8660 else
8661 echo "$as_me: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8663 ac_cv_lib_tiff_TIFFGetVersion=no
8664 fi
8665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8667 fi
8668 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8669 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8670 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8671 HAVE_TIFF=yes
8672 fi
8673
8674 fi
8675
8676
8677 fi
8678
8679 if test "${HAVE_TIFF}" = "yes"; then
8680
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_TIFF 1
8683 _ACEOF
8684
8685 fi
8686 fi
8687
8688 ### Use -lgif if available, unless `--with-gif=no'.
8689 HAVE_GIF=no
8690 if test "${HAVE_X11}" = "yes"; then
8691 if test "${with_gif}" != "no"; then
8692 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8693 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8694 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8695 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8699 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8700 else
8701 # Is the header compilable?
8702 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8703 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8704 cat >conftest.$ac_ext <<_ACEOF
8705 #line $LINENO "configure"
8706 #include "confdefs.h"
8707 $ac_includes_default
8708 #include <gif_lib.h>
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8712 (eval $ac_compile) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 ac_header_compiler=no
8727 fi
8728 rm -f conftest.$ac_objext conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730 echo "${ECHO_T}$ac_header_compiler" >&6
8731
8732 # Is the header present?
8733 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8734 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8737 #include "confdefs.h"
8738 #include <gif_lib.h>
8739 _ACEOF
8740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } >/dev/null; then
8748 if test -s conftest.err; then
8749 ac_cpp_err=$ac_c_preproc_warn_flag
8750 else
8751 ac_cpp_err=
8752 fi
8753 else
8754 ac_cpp_err=yes
8755 fi
8756 if test -z "$ac_cpp_err"; then
8757 ac_header_preproc=yes
8758 else
8759 echo "$as_me: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 ac_header_preproc=no
8762 fi
8763 rm -f conftest.err conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8765 echo "${ECHO_T}$ac_header_preproc" >&6
8766
8767 # So? What about this header?
8768 case $ac_header_compiler:$ac_header_preproc in
8769 yes:no )
8770 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8771 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8773 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8774 no:yes )
8775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8776 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8778 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8780 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8781 esac
8782 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8783 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8784 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 ac_cv_header_gif_lib_h=$ac_header_preproc
8788 fi
8789 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8790 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8791
8792 fi
8793 if test $ac_cv_header_gif_lib_h = yes; then
8794 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8795 # Earlier versions can crash Emacs.
8796 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8797 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8798 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 ac_check_lib_save_LIBS=$LIBS
8802 LIBS="-lungif $LIBS"
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806
8807 /* Override any gcc2 internal prototype to avoid an error. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char EGifPutExtensionLast ();
8814 int
8815 main ()
8816 {
8817 EGifPutExtensionLast ();
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_lib_ungif_EGifPutExtensionLast=yes
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 ac_cv_lib_ungif_EGifPutExtensionLast=no
8839 fi
8840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8842 fi
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
8844 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
8845 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
8846 HAVE_GIF=yes
8847 fi
8848
8849 fi
8850
8851
8852 fi
8853
8854 if test "${HAVE_GIF}" = "yes"; then
8855
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_GIF 1
8858 _ACEOF
8859
8860 fi
8861 fi
8862
8863 ### Use Mac OS X Carbon API to implement GUI.
8864 HAVE_CARBON=no
8865 if test "${with_carbon}" != "no"; then
8866 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8867 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8868 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8869 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 fi
8872 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8873 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8874 else
8875 # Is the header compilable?
8876 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8877 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 #include "confdefs.h"
8881 $ac_includes_default
8882 #include <Carbon/Carbon.h>
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -s conftest.$ac_objext'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; }; then
8896 ac_header_compiler=yes
8897 else
8898 echo "$as_me: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8900 ac_header_compiler=no
8901 fi
8902 rm -f conftest.$ac_objext conftest.$ac_ext
8903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8904 echo "${ECHO_T}$ac_header_compiler" >&6
8905
8906 # Is the header present?
8907 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8908 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8910 #line $LINENO "configure"
8911 #include "confdefs.h"
8912 #include <Carbon/Carbon.h>
8913 _ACEOF
8914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } >/dev/null; then
8922 if test -s conftest.err; then
8923 ac_cpp_err=$ac_c_preproc_warn_flag
8924 else
8925 ac_cpp_err=
8926 fi
8927 else
8928 ac_cpp_err=yes
8929 fi
8930 if test -z "$ac_cpp_err"; then
8931 ac_header_preproc=yes
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 ac_header_preproc=no
8936 fi
8937 rm -f conftest.err conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8939 echo "${ECHO_T}$ac_header_preproc" >&6
8940
8941 # So? What about this header?
8942 case $ac_header_compiler:$ac_header_preproc in
8943 yes:no )
8944 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8945 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8948 no:yes )
8949 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8950 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8952 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8953 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8954 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8955 esac
8956 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8957 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8958 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8964 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8965
8966 fi
8967 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8968 HAVE_CARBON=yes
8969 fi
8970
8971
8972 fi
8973
8974 if test "${HAVE_CARBON}" = "yes"; then
8975
8976 cat >>confdefs.h <<\_ACEOF
8977 #define HAVE_CARBON 1
8978 _ACEOF
8979
8980 fi
8981
8982 ### Use session management (-lSM -lICE) if available
8983 HAVE_X_SM=no
8984 if test "${HAVE_X11}" = "yes"; then
8985 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8986 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
8987 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
8988 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 fi
8991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
8992 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
8993 else
8994 # Is the header compilable?
8995 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
8996 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 #include "confdefs.h"
9000 $ac_includes_default
9001 #include <X11/SM/SMlib.h>
9002 _ACEOF
9003 rm -f conftest.$ac_objext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005 (eval $ac_compile) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -s conftest.$ac_objext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_header_compiler=yes
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9019 ac_header_compiler=no
9020 fi
9021 rm -f conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9023 echo "${ECHO_T}$ac_header_compiler" >&6
9024
9025 # Is the header present?
9026 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9027 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 #include "confdefs.h"
9031 #include <X11/SM/SMlib.h>
9032 _ACEOF
9033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } >/dev/null; then
9041 if test -s conftest.err; then
9042 ac_cpp_err=$ac_c_preproc_warn_flag
9043 else
9044 ac_cpp_err=
9045 fi
9046 else
9047 ac_cpp_err=yes
9048 fi
9049 if test -z "$ac_cpp_err"; then
9050 ac_header_preproc=yes
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9054 ac_header_preproc=no
9055 fi
9056 rm -f conftest.err conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9058 echo "${ECHO_T}$ac_header_preproc" >&6
9059
9060 # So? What about this header?
9061 case $ac_header_compiler:$ac_header_preproc in
9062 yes:no )
9063 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9064 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9066 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9067 no:yes )
9068 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9069 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9071 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9073 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9074 esac
9075 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9076 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9077 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9081 fi
9082 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9084
9085 fi
9086 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9087 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9088 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9089 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 ac_check_lib_save_LIBS=$LIBS
9093 LIBS="-lSM $LIBS"
9094 cat >conftest.$ac_ext <<_ACEOF
9095 #line $LINENO "configure"
9096 #include "confdefs.h"
9097
9098 /* Override any gcc2 internal prototype to avoid an error. */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char SmcOpenConnection ();
9105 int
9106 main ()
9107 {
9108 SmcOpenConnection ();
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_SM_SmcOpenConnection=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9129 ac_cv_lib_SM_SmcOpenConnection=no
9130 fi
9131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9132 LIBS=$ac_check_lib_save_LIBS
9133 fi
9134 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9135 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9136 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9137 HAVE_X_SM=yes
9138 else
9139 -lICE
9140 fi
9141
9142 fi
9143
9144
9145
9146 if test "${HAVE_X_SM}" = "yes"; then
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_X_SM 1
9150 _ACEOF
9151
9152 case "$LIBS" in
9153 *-lSM*) ;;
9154 *) LIBS="-lSM -lICE $LIBS" ;;
9155 esac
9156 fi
9157 fi
9158
9159 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9160 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9161 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9162 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 #include "confdefs.h"
9168 #include <netdb.h>
9169 int
9170 main ()
9171 {
9172 return h_errno;
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>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 emacs_cv_netdb_declares_h_errno=yes
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 emacs_cv_netdb_declares_h_errno=no
9194 fi
9195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9196 fi
9197 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9198 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9199 if test $emacs_cv_netdb_declares_h_errno = yes; then
9200
9201 cat >>confdefs.h <<\_ACEOF
9202 #define HAVE_H_ERRNO 1
9203 _ACEOF
9204
9205 fi
9206
9207 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9208 # for constant arguments. Useless!
9209 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9210 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9211 if test "${ac_cv_working_alloca_h+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214 cat >conftest.$ac_ext <<_ACEOF
9215 #line $LINENO "configure"
9216 #include "confdefs.h"
9217 #include <alloca.h>
9218 int
9219 main ()
9220 {
9221 char *p = (char *) alloca (2 * sizeof (int));
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228 (eval $ac_link) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -s conftest$ac_exeext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_cv_working_alloca_h=yes
9239 else
9240 echo "$as_me: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9242 ac_cv_working_alloca_h=no
9243 fi
9244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9245 fi
9246 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9247 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9248 if test $ac_cv_working_alloca_h = yes; then
9249
9250 cat >>confdefs.h <<\_ACEOF
9251 #define HAVE_ALLOCA_H 1
9252 _ACEOF
9253
9254 fi
9255
9256 echo "$as_me:$LINENO: checking for alloca" >&5
9257 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9258 if test "${ac_cv_func_alloca_works+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261 cat >conftest.$ac_ext <<_ACEOF
9262 #line $LINENO "configure"
9263 #include "confdefs.h"
9264 #ifdef __GNUC__
9265 # define alloca __builtin_alloca
9266 #else
9267 # ifdef _MSC_VER
9268 # include <malloc.h>
9269 # define alloca _alloca
9270 # else
9271 # if HAVE_ALLOCA_H
9272 # include <alloca.h>
9273 # else
9274 # ifdef _AIX
9275 #pragma alloca
9276 # else
9277 # ifndef alloca /* predefined by HP cc +Olibcalls */
9278 char *alloca ();
9279 # endif
9280 # endif
9281 # endif
9282 # endif
9283 #endif
9284
9285 int
9286 main ()
9287 {
9288 char *p = (char *) alloca (1);
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -s conftest$ac_exeext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 ac_cv_func_alloca_works=yes
9306 else
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9309 ac_cv_func_alloca_works=no
9310 fi
9311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9312 fi
9313 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9314 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9315
9316 if test $ac_cv_func_alloca_works = yes; then
9317
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_ALLOCA 1
9320 _ACEOF
9321
9322 else
9323 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9324 # that cause trouble. Some versions do not even contain alloca or
9325 # contain a buggy version. If you still want to use their alloca,
9326 # use ar to extract alloca.o from them instead of compiling alloca.c.
9327
9328 ALLOCA=alloca.$ac_objext
9329
9330 cat >>confdefs.h <<\_ACEOF
9331 #define C_ALLOCA 1
9332 _ACEOF
9333
9334
9335 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9336 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9337 if test "${ac_cv_os_cray+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 #include "confdefs.h"
9343 #if defined(CRAY) && ! defined(CRAY2)
9344 webecray
9345 #else
9346 wenotbecray
9347 #endif
9348
9349 _ACEOF
9350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9351 $EGREP "webecray" >/dev/null 2>&1; then
9352 ac_cv_os_cray=yes
9353 else
9354 ac_cv_os_cray=no
9355 fi
9356 rm -f conftest*
9357
9358 fi
9359 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9360 echo "${ECHO_T}$ac_cv_os_cray" >&6
9361 if test $ac_cv_os_cray = yes; then
9362 for ac_func in _getb67 GETB67 getb67; do
9363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9364 echo "$as_me:$LINENO: checking for $ac_func" >&5
9365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9366 if eval "test \"\${$as_ac_var+set}\" = set"; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 #include "confdefs.h"
9372 /* System header to define __stub macros and hopefully few prototypes,
9373 which can conflict with char $ac_func (); below. */
9374 #include <assert.h>
9375 /* Override any gcc2 internal prototype to avoid an error. */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9381 char $ac_func ();
9382 char (*f) ();
9383
9384 int
9385 main ()
9386 {
9387 /* The GNU C library defines this for functions which it implements
9388 to always fail with ENOSYS. Some functions are actually named
9389 something starting with __ and the normal name is an alias. */
9390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9391 choke me
9392 #else
9393 f = $ac_func;
9394 #endif
9395
9396 ;
9397 return 0;
9398 }
9399 _ACEOF
9400 rm -f conftest.$ac_objext conftest$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402 (eval $ac_link) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try='test -s conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 eval "$as_ac_var=yes"
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 eval "$as_ac_var=no"
9417 fi
9418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9419 fi
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9422 if test `eval echo '${'$as_ac_var'}'` = yes; then
9423
9424 cat >>confdefs.h <<_ACEOF
9425 #define CRAY_STACKSEG_END $ac_func
9426 _ACEOF
9427
9428 break
9429 fi
9430
9431 done
9432 fi
9433
9434 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9435 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9436 if test "${ac_cv_c_stack_direction+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 if test "$cross_compiling" = yes; then
9440 ac_cv_c_stack_direction=0
9441 else
9442 cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9444 #include "confdefs.h"
9445 int
9446 find_stack_direction ()
9447 {
9448 static char *addr = 0;
9449 auto char dummy;
9450 if (addr == 0)
9451 {
9452 addr = &dummy;
9453 return find_stack_direction ();
9454 }
9455 else
9456 return (&dummy > addr) ? 1 : -1;
9457 }
9458
9459 int
9460 main ()
9461 {
9462 exit (find_stack_direction () < 0);
9463 }
9464 _ACEOF
9465 rm -f conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_c_stack_direction=1
9477 else
9478 echo "$as_me: program exited with status $ac_status" >&5
9479 echo "$as_me: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 ( exit $ac_status )
9482 ac_cv_c_stack_direction=-1
9483 fi
9484 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 fi
9487 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9488 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9489
9490 cat >>confdefs.h <<_ACEOF
9491 #define STACK_DIRECTION $ac_cv_c_stack_direction
9492 _ACEOF
9493
9494
9495 fi
9496
9497
9498 # fmod, logb, and frexp are found in -lm on most systems.
9499 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9500
9501 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9502 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9503 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506 ac_check_lib_save_LIBS=$LIBS
9507 LIBS="-lm $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9511
9512 /* Override any gcc2 internal prototype to avoid an error. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518 char sqrt ();
9519 int
9520 main ()
9521 {
9522 sqrt ();
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_lib_m_sqrt=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 ac_cv_lib_m_sqrt=no
9544 fi
9545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9547 fi
9548 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9549 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9550 if test $ac_cv_lib_m_sqrt = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define HAVE_LIBM 1
9553 _ACEOF
9554
9555 LIBS="-lm $LIBS"
9556
9557 fi
9558
9559
9560 # Check for mail-locking functions in a "mail" library
9561
9562 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9563 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9564 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 ac_check_lib_save_LIBS=$LIBS
9568 LIBS="-lmail $LIBS"
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 #include "confdefs.h"
9572
9573 /* Override any gcc2 internal prototype to avoid an error. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579 char maillock ();
9580 int
9581 main ()
9582 {
9583 maillock ();
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_mail_maillock=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9604 ac_cv_lib_mail_maillock=no
9605 fi
9606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9608 fi
9609 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9610 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9611 if test $ac_cv_lib_mail_maillock = yes; then
9612 cat >>confdefs.h <<_ACEOF
9613 #define HAVE_LIBMAIL 1
9614 _ACEOF
9615
9616 LIBS="-lmail $LIBS"
9617
9618 fi
9619
9620
9621 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9622 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9623 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626 ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-llockfile $LIBS"
9628 cat >conftest.$ac_ext <<_ACEOF
9629 #line $LINENO "configure"
9630 #include "confdefs.h"
9631
9632 /* Override any gcc2 internal prototype to avoid an error. */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9638 char maillock ();
9639 int
9640 main ()
9641 {
9642 maillock ();
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_lib_lockfile_maillock=yes
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 ac_cv_lib_lockfile_maillock=no
9664 fi
9665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9667 fi
9668 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9669 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9670 if test $ac_cv_lib_lockfile_maillock = yes; then
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_LIBLOCKFILE 1
9673 _ACEOF
9674
9675 LIBS="-llockfile $LIBS"
9676
9677 fi
9678
9679 # If we have the shared liblockfile, assume we must use it for mail
9680 # locking (e.g. Debian). If we couldn't link against liblockfile
9681 # (no liblockfile.a installed), ensure that we don't need to.
9682 if test "$ac_cv_lib_lockfile_maillock" = no; then
9683 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9684 set dummy liblockfile.so; ac_word=$2
9685 echo "$as_me:$LINENO: checking for $ac_word" >&5
9686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9687 if test "${ac_cv_prog_liblockfile+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 if test -n "$liblockfile"; then
9691 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
9692 else
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9695 for as_dir in $as_dummy
9696 do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_liblockfile="yes"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705 done
9706 done
9707
9708 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
9709 fi
9710 fi
9711 liblockfile=$ac_cv_prog_liblockfile
9712 if test -n "$liblockfile"; then
9713 echo "$as_me:$LINENO: result: $liblockfile" >&5
9714 echo "${ECHO_T}$liblockfile" >&6
9715 else
9716 echo "$as_me:$LINENO: result: no" >&5
9717 echo "${ECHO_T}no" >&6
9718 fi
9719
9720 if test $ac_cv_prog_liblockfile = yes; then
9721 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9722 This probably means that movemail could lose mail.
9723 There may be a \`development' package to install containing liblockfile." >&5
9724 echo "$as_me: error: Shared liblockfile found but can't link against it.
9725 This probably means that movemail could lose mail.
9726 There may be a \`development' package to install containing liblockfile." >&2;}
9727 { (exit 1); exit 1; }; }
9728 else
9729 cat >>confdefs.h <<\_ACEOF
9730 #define LIBMAIL -llockfile
9731 _ACEOF
9732
9733 fi
9734 else :
9735 fi
9736
9737 for ac_func in touchlock
9738 do
9739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9740 echo "$as_me:$LINENO: checking for $ac_func" >&5
9741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9742 if eval "test \"\${$as_ac_var+set}\" = set"; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 cat >conftest.$ac_ext <<_ACEOF
9746 #line $LINENO "configure"
9747 #include "confdefs.h"
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char $ac_func (); below. */
9750 #include <assert.h>
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9757 char $ac_func ();
9758 char (*f) ();
9759
9760 int
9761 main ()
9762 {
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 choke me
9768 #else
9769 f = $ac_func;
9770 #endif
9771
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 eval "$as_ac_var=yes"
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9792 eval "$as_ac_var=no"
9793 fi
9794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9795 fi
9796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9798 if test `eval echo '${'$as_ac_var'}'` = yes; then
9799 cat >>confdefs.h <<_ACEOF
9800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9801 _ACEOF
9802
9803 fi
9804 done
9805
9806
9807 for ac_header in maillock.h
9808 do
9809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 fi
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818 else
9819 # Is the header compilable?
9820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9822 cat >conftest.$ac_ext <<_ACEOF
9823 #line $LINENO "configure"
9824 #include "confdefs.h"
9825 $ac_includes_default
9826 #include <$ac_header>
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830 (eval $ac_compile) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -s conftest.$ac_objext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_header_compiler=yes
9841 else
9842 echo "$as_me: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 ac_header_compiler=no
9845 fi
9846 rm -f conftest.$ac_objext conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848 echo "${ECHO_T}$ac_header_compiler" >&6
9849
9850 # Is the header present?
9851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9855 #include "confdefs.h"
9856 #include <$ac_header>
9857 _ACEOF
9858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } >/dev/null; then
9866 if test -s conftest.err; then
9867 ac_cpp_err=$ac_c_preproc_warn_flag
9868 else
9869 ac_cpp_err=
9870 fi
9871 else
9872 ac_cpp_err=yes
9873 fi
9874 if test -z "$ac_cpp_err"; then
9875 ac_header_preproc=yes
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 ac_header_preproc=no
9880 fi
9881 rm -f conftest.err conftest.$ac_ext
9882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9883 echo "${ECHO_T}$ac_header_preproc" >&6
9884
9885 # So? What about this header?
9886 case $ac_header_compiler:$ac_header_preproc in
9887 yes:no )
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9892 no:yes )
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9899 esac
9900 echo "$as_me:$LINENO: checking for $ac_header" >&5
9901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905 eval "$as_ac_Header=$ac_header_preproc"
9906 fi
9907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9909
9910 fi
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9914 _ACEOF
9915
9916 fi
9917
9918 done
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980 for ac_func in gethostname getdomainname dup2 \
9981 rename closedir mkdir rmdir sysinfo \
9982 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
9983 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
9984 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
9985 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
9986 sendto recvfrom getsockopt setsockopt getsockname getpeername \
9987 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero
9988 do
9989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9990 echo "$as_me:$LINENO: checking for $ac_func" >&5
9991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9992 if eval "test \"\${$as_ac_var+set}\" = set"; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 cat >conftest.$ac_ext <<_ACEOF
9996 #line $LINENO "configure"
9997 #include "confdefs.h"
9998 /* System header to define __stub macros and hopefully few prototypes,
9999 which can conflict with char $ac_func (); below. */
10000 #include <assert.h>
10001 /* Override any gcc2 internal prototype to avoid an error. */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007 char $ac_func ();
10008 char (*f) ();
10009
10010 int
10011 main ()
10012 {
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10017 choke me
10018 #else
10019 f = $ac_func;
10020 #endif
10021
10022 ;
10023 return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 eval "$as_ac_var=yes"
10039 else
10040 echo "$as_me: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 eval "$as_ac_var=no"
10043 fi
10044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10045 fi
10046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10048 if test `eval echo '${'$as_ac_var'}'` = yes; then
10049 cat >>confdefs.h <<_ACEOF
10050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10051 _ACEOF
10052
10053 fi
10054 done
10055
10056
10057
10058 for ac_header in sys/un.h
10059 do
10060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10062 echo "$as_me:$LINENO: checking for $ac_header" >&5
10063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 fi
10067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10069 else
10070 # Is the header compilable?
10071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 #include "confdefs.h"
10076 $ac_includes_default
10077 #include <$ac_header>
10078 _ACEOF
10079 rm -f conftest.$ac_objext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10081 (eval $ac_compile) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
10085 { ac_try='test -s conftest.$ac_objext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_header_compiler=yes
10092 else
10093 echo "$as_me: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 ac_header_compiler=no
10096 fi
10097 rm -f conftest.$ac_objext conftest.$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10099 echo "${ECHO_T}$ac_header_compiler" >&6
10100
10101 # Is the header present?
10102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10104 cat >conftest.$ac_ext <<_ACEOF
10105 #line $LINENO "configure"
10106 #include "confdefs.h"
10107 #include <$ac_header>
10108 _ACEOF
10109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } >/dev/null; then
10117 if test -s conftest.err; then
10118 ac_cpp_err=$ac_c_preproc_warn_flag
10119 else
10120 ac_cpp_err=
10121 fi
10122 else
10123 ac_cpp_err=yes
10124 fi
10125 if test -z "$ac_cpp_err"; then
10126 ac_header_preproc=yes
10127 else
10128 echo "$as_me: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 ac_header_preproc=no
10131 fi
10132 rm -f conftest.err conftest.$ac_ext
10133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10134 echo "${ECHO_T}$ac_header_preproc" >&6
10135
10136 # So? What about this header?
10137 case $ac_header_compiler:$ac_header_preproc in
10138 yes:no )
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10143 no:yes )
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10150 esac
10151 echo "$as_me:$LINENO: checking for $ac_header" >&5
10152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156 eval "$as_ac_Header=$ac_header_preproc"
10157 fi
10158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10160
10161 fi
10162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10163 cat >>confdefs.h <<_ACEOF
10164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10165 _ACEOF
10166
10167 fi
10168
10169 done
10170
10171
10172
10173
10174 for ac_header in sys/time.h unistd.h
10175 do
10176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10178 echo "$as_me:$LINENO: checking for $ac_header" >&5
10179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 fi
10183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10185 else
10186 # Is the header compilable?
10187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10189 cat >conftest.$ac_ext <<_ACEOF
10190 #line $LINENO "configure"
10191 #include "confdefs.h"
10192 $ac_includes_default
10193 #include <$ac_header>
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_header_compiler=yes
10208 else
10209 echo "$as_me: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 ac_header_compiler=no
10212 fi
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10215 echo "${ECHO_T}$ac_header_compiler" >&6
10216
10217 # Is the header present?
10218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 #include "confdefs.h"
10223 #include <$ac_header>
10224 _ACEOF
10225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } >/dev/null; then
10233 if test -s conftest.err; then
10234 ac_cpp_err=$ac_c_preproc_warn_flag
10235 else
10236 ac_cpp_err=
10237 fi
10238 else
10239 ac_cpp_err=yes
10240 fi
10241 if test -z "$ac_cpp_err"; then
10242 ac_header_preproc=yes
10243 else
10244 echo "$as_me: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 ac_header_preproc=no
10247 fi
10248 rm -f conftest.err conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10250 echo "${ECHO_T}$ac_header_preproc" >&6
10251
10252 # So? What about this header?
10253 case $ac_header_compiler:$ac_header_preproc in
10254 yes:no )
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10259 no:yes )
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10266 esac
10267 echo "$as_me:$LINENO: checking for $ac_header" >&5
10268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272 eval "$as_ac_Header=$ac_header_preproc"
10273 fi
10274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10276
10277 fi
10278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF
10282
10283 fi
10284
10285 done
10286
10287
10288 for ac_func in alarm
10289 do
10290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10291 echo "$as_me:$LINENO: checking for $ac_func" >&5
10292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10293 if eval "test \"\${$as_ac_var+set}\" = set"; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 cat >conftest.$ac_ext <<_ACEOF
10297 #line $LINENO "configure"
10298 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func (); below. */
10301 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308 char $ac_func ();
10309 char (*f) ();
10310
10311 int
10312 main ()
10313 {
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10318 choke me
10319 #else
10320 f = $ac_func;
10321 #endif
10322
10323 ;
10324 return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10329 (eval $ac_link) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -s conftest$ac_exeext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 eval "$as_ac_var=yes"
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 eval "$as_ac_var=no"
10344 fi
10345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10346 fi
10347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10349 if test `eval echo '${'$as_ac_var'}'` = yes; then
10350 cat >>confdefs.h <<_ACEOF
10351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10352 _ACEOF
10353
10354 fi
10355 done
10356
10357 echo "$as_me:$LINENO: checking for working mktime" >&5
10358 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10359 if test "${ac_cv_func_working_mktime+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 if test "$cross_compiling" = yes; then
10363 ac_cv_func_working_mktime=no
10364 else
10365 cat >conftest.$ac_ext <<_ACEOF
10366 #line $LINENO "configure"
10367 #include "confdefs.h"
10368 /* Test program from Paul Eggert and Tony Leneis. */
10369 #if TIME_WITH_SYS_TIME
10370 # include <sys/time.h>
10371 # include <time.h>
10372 #else
10373 # if HAVE_SYS_TIME_H
10374 # include <sys/time.h>
10375 # else
10376 # include <time.h>
10377 # endif
10378 #endif
10379
10380 #if HAVE_UNISTD_H
10381 # include <unistd.h>
10382 #endif
10383
10384 #if !HAVE_ALARM
10385 # define alarm(X) /* empty */
10386 #endif
10387
10388 /* Work around redefinition to rpl_putenv by other config tests. */
10389 #undef putenv
10390
10391 static time_t time_t_max;
10392
10393 /* Values we'll use to set the TZ environment variable. */
10394 static const char *const tz_strings[] = {
10395 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10396 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10397 };
10398 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10399
10400 /* Fail if mktime fails to convert a date in the spring-forward gap.
10401 Based on a problem report from Andreas Jaeger. */
10402 static void
10403 spring_forward_gap ()
10404 {
10405 /* glibc (up to about 1998-10-07) failed this test. */
10406 struct tm tm;
10407
10408 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10409 instead of "TZ=America/Vancouver" in order to detect the bug even
10410 on systems that don't support the Olson extension, or don't have the
10411 full zoneinfo tables installed. */
10412 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10413
10414 tm.tm_year = 98;
10415 tm.tm_mon = 3;
10416 tm.tm_mday = 5;
10417 tm.tm_hour = 2;
10418 tm.tm_min = 0;
10419 tm.tm_sec = 0;
10420 tm.tm_isdst = -1;
10421 if (mktime (&tm) == (time_t)-1)
10422 exit (1);
10423 }
10424
10425 static void
10426 mktime_test (now)
10427 time_t now;
10428 {
10429 struct tm *lt;
10430 if ((lt = localtime (&now)) && mktime (lt) != now)
10431 exit (1);
10432 now = time_t_max - now;
10433 if ((lt = localtime (&now)) && mktime (lt) != now)
10434 exit (1);
10435 }
10436
10437 static void
10438 irix_6_4_bug ()
10439 {
10440 /* Based on code from Ariel Faigon. */
10441 struct tm tm;
10442 tm.tm_year = 96;
10443 tm.tm_mon = 3;
10444 tm.tm_mday = 0;
10445 tm.tm_hour = 0;
10446 tm.tm_min = 0;
10447 tm.tm_sec = 0;
10448 tm.tm_isdst = -1;
10449 mktime (&tm);
10450 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10451 exit (1);
10452 }
10453
10454 static void
10455 bigtime_test (j)
10456 int j;
10457 {
10458 struct tm tm;
10459 time_t now;
10460 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10461 now = mktime (&tm);
10462 if (now != (time_t) -1)
10463 {
10464 struct tm *lt = localtime (&now);
10465 if (! (lt
10466 && lt->tm_year == tm.tm_year
10467 && lt->tm_mon == tm.tm_mon
10468 && lt->tm_mday == tm.tm_mday
10469 && lt->tm_hour == tm.tm_hour
10470 && lt->tm_min == tm.tm_min
10471 && lt->tm_sec == tm.tm_sec
10472 && lt->tm_yday == tm.tm_yday
10473 && lt->tm_wday == tm.tm_wday
10474 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10475 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10476 exit (1);
10477 }
10478 }
10479
10480 int
10481 main ()
10482 {
10483 time_t t, delta;
10484 int i, j;
10485
10486 /* This test makes some buggy mktime implementations loop.
10487 Give up after 60 seconds; a mktime slower than that
10488 isn't worth using anyway. */
10489 alarm (60);
10490
10491 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10492 continue;
10493 time_t_max--;
10494 delta = time_t_max / 997; /* a suitable prime number */
10495 for (i = 0; i < N_STRINGS; i++)
10496 {
10497 if (tz_strings[i])
10498 putenv (tz_strings[i]);
10499
10500 for (t = 0; t <= time_t_max - delta; t += delta)
10501 mktime_test (t);
10502 mktime_test ((time_t) 60 * 60);
10503 mktime_test ((time_t) 60 * 60 * 24);
10504
10505 for (j = 1; 0 < j; j *= 2)
10506 bigtime_test (j);
10507 bigtime_test (j - 1);
10508 }
10509 irix_6_4_bug ();
10510 spring_forward_gap ();
10511 exit (0);
10512 }
10513 _ACEOF
10514 rm -f conftest$ac_exeext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_func_working_mktime=yes
10526 else
10527 echo "$as_me: program exited with status $ac_status" >&5
10528 echo "$as_me: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 ( exit $ac_status )
10531 ac_cv_func_working_mktime=no
10532 fi
10533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10534 fi
10535 fi
10536 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10537 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10538 if test $ac_cv_func_working_mktime = no; then
10539 LIBOBJS="$LIBOBJS mktime.$ac_objext"
10540 fi
10541
10542 if test "$ac_cv_func_working_mktime" = no; then
10543
10544 cat >>confdefs.h <<\_ACEOF
10545 #define BROKEN_MKTIME 1
10546 _ACEOF
10547
10548 fi
10549
10550 ac_have_func=no # yes means we've found a way to get the load average.
10551
10552 # Make sure getloadavg.c is where it belongs, at configure-time.
10553 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10554 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
10555 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
10556 { (exit 1); exit 1; }; }
10557
10558 ac_save_LIBS=$LIBS
10559
10560 # Check for getloadavg, but be sure not to touch the cache variable.
10561 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10562 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10563 if test "${ac_cv_func_getloadavg+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566 cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 #include "confdefs.h"
10569 /* System header to define __stub macros and hopefully few prototypes,
10570 which can conflict with char getloadavg (); below. */
10571 #include <assert.h>
10572 /* Override any gcc2 internal prototype to avoid an error. */
10573 #ifdef __cplusplus
10574 extern "C"
10575 #endif
10576 /* We use char because int might match the return type of a gcc2
10577 builtin and then its argument prototype would still apply. */
10578 char getloadavg ();
10579 char (*f) ();
10580
10581 int
10582 main ()
10583 {
10584 /* The GNU C library defines this for functions which it implements
10585 to always fail with ENOSYS. Some functions are actually named
10586 something starting with __ and the normal name is an alias. */
10587 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10588 choke me
10589 #else
10590 f = getloadavg;
10591 #endif
10592
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest$ac_exeext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_func_getloadavg=yes
10610 else
10611 echo "$as_me: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 ac_cv_func_getloadavg=no
10614 fi
10615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10616 fi
10617 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10618 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10619 if test $ac_cv_func_getloadavg = yes; then
10620 exit 0
10621 else
10622 exit 1
10623 fi
10624 ) && ac_have_func=yes
10625
10626 # On HPUX9, an unprivileged user can get load averages through this function.
10627
10628 for ac_func in pstat_getdynamic
10629 do
10630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10631 echo "$as_me:$LINENO: checking for $ac_func" >&5
10632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10633 if eval "test \"\${$as_ac_var+set}\" = set"; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636 cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10639 /* System header to define __stub macros and hopefully few prototypes,
10640 which can conflict with char $ac_func (); below. */
10641 #include <assert.h>
10642 /* Override any gcc2 internal prototype to avoid an error. */
10643 #ifdef __cplusplus
10644 extern "C"
10645 #endif
10646 /* We use char because int might match the return type of a gcc2
10647 builtin and then its argument prototype would still apply. */
10648 char $ac_func ();
10649 char (*f) ();
10650
10651 int
10652 main ()
10653 {
10654 /* The GNU C library defines this for functions which it implements
10655 to always fail with ENOSYS. Some functions are actually named
10656 something starting with __ and the normal name is an alias. */
10657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10658 choke me
10659 #else
10660 f = $ac_func;
10661 #endif
10662
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669 (eval $ac_link) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -s conftest$ac_exeext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 eval "$as_ac_var=yes"
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 eval "$as_ac_var=no"
10684 fi
10685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10686 fi
10687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10689 if test `eval echo '${'$as_ac_var'}'` = yes; then
10690 cat >>confdefs.h <<_ACEOF
10691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10692 _ACEOF
10693
10694 fi
10695 done
10696
10697
10698 # Solaris has libkstat which does not require root.
10699
10700 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10701 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10702 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 ac_check_lib_save_LIBS=$LIBS
10706 LIBS="-lkstat $LIBS"
10707 cat >conftest.$ac_ext <<_ACEOF
10708 #line $LINENO "configure"
10709 #include "confdefs.h"
10710
10711 /* Override any gcc2 internal prototype to avoid an error. */
10712 #ifdef __cplusplus
10713 extern "C"
10714 #endif
10715 /* We use char because int might match the return type of a gcc2
10716 builtin and then its argument prototype would still apply. */
10717 char kstat_open ();
10718 int
10719 main ()
10720 {
10721 kstat_open ();
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -s conftest$ac_exeext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_lib_kstat_kstat_open=yes
10739 else
10740 echo "$as_me: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 ac_cv_lib_kstat_kstat_open=no
10743 fi
10744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10746 fi
10747 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10748 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
10749 if test $ac_cv_lib_kstat_kstat_open = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define HAVE_LIBKSTAT 1
10752 _ACEOF
10753
10754 LIBS="-lkstat $LIBS"
10755
10756 fi
10757
10758 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
10759
10760 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10761 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10762 # to get the right answer into the cache.
10763 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10764 if test $ac_have_func = no; then
10765 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10766 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10767 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-lelf $LIBS"
10772 cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775
10776 /* Override any gcc2 internal prototype to avoid an error. */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782 char elf_begin ();
10783 int
10784 main ()
10785 {
10786 elf_begin ();
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793 (eval $ac_link) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_cv_lib_elf_elf_begin=yes
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10807 ac_cv_lib_elf_elf_begin=no
10808 fi
10809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10813 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10814 if test $ac_cv_lib_elf_elf_begin = yes; then
10815 LIBS="-lelf $LIBS"
10816 fi
10817
10818 fi
10819 if test $ac_have_func = no; then
10820 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10821 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10822 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-lkvm $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 #line $LINENO "configure"
10829 #include "confdefs.h"
10830
10831 /* Override any gcc2 internal prototype to avoid an error. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 /* We use char because int might match the return type of a gcc2
10836 builtin and then its argument prototype would still apply. */
10837 char kvm_open ();
10838 int
10839 main ()
10840 {
10841 kvm_open ();
10842 ;
10843 return 0;
10844 }
10845 _ACEOF
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_lib_kvm_kvm_open=yes
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10862 ac_cv_lib_kvm_kvm_open=no
10863 fi
10864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10866 fi
10867 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10868 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10869 if test $ac_cv_lib_kvm_kvm_open = yes; then
10870 LIBS="-lkvm $LIBS"
10871 fi
10872
10873 # Check for the 4.4BSD definition of getloadavg.
10874 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10875 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10876 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 ac_check_lib_save_LIBS=$LIBS
10880 LIBS="-lutil $LIBS"
10881 cat >conftest.$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10883 #include "confdefs.h"
10884
10885 /* Override any gcc2 internal prototype to avoid an error. */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char getloadavg ();
10892 int
10893 main ()
10894 {
10895 getloadavg ();
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_util_getloadavg=yes
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 ac_cv_lib_util_getloadavg=no
10917 fi
10918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10920 fi
10921 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10922 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10923 if test $ac_cv_lib_util_getloadavg = yes; then
10924 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10925 fi
10926
10927 fi
10928
10929 if test $ac_have_func = no; then
10930 # There is a commonly available library for RS/6000 AIX.
10931 # Since it is not a standard part of AIX, it might be installed locally.
10932 ac_getloadavg_LIBS=$LIBS
10933 LIBS="-L/usr/local/lib $LIBS"
10934 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10935 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10936 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lgetloadavg $LIBS"
10941 cat >conftest.$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10943 #include "confdefs.h"
10944
10945 /* Override any gcc2 internal prototype to avoid an error. */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 /* We use char because int might match the return type of a gcc2
10950 builtin and then its argument prototype would still apply. */
10951 char getloadavg ();
10952 int
10953 main ()
10954 {
10955 getloadavg ();
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962 (eval $ac_link) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -s conftest$ac_exeext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 ac_cv_lib_getloadavg_getloadavg=yes
10973 else
10974 echo "$as_me: failed program was:" >&5
10975 cat conftest.$ac_ext >&5
10976 ac_cv_lib_getloadavg_getloadavg=no
10977 fi
10978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10979 LIBS=$ac_check_lib_save_LIBS
10980 fi
10981 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10982 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10983 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
10984 LIBS="-lgetloadavg $LIBS"
10985 else
10986 LIBS=$ac_getloadavg_LIBS
10987 fi
10988
10989 fi
10990
10991 # Make sure it is really in the library, if we think we found it,
10992 # otherwise set up the replacement function.
10993
10994 for ac_func in getloadavg
10995 do
10996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 echo "$as_me:$LINENO: checking for $ac_func" >&5
10998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10999 if eval "test \"\${$as_ac_var+set}\" = set"; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002 cat >conftest.$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11004 #include "confdefs.h"
11005 /* System header to define __stub macros and hopefully few prototypes,
11006 which can conflict with char $ac_func (); below. */
11007 #include <assert.h>
11008 /* Override any gcc2 internal prototype to avoid an error. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11014 char $ac_func ();
11015 char (*f) ();
11016
11017 int
11018 main ()
11019 {
11020 /* The GNU C library defines this for functions which it implements
11021 to always fail with ENOSYS. Some functions are actually named
11022 something starting with __ and the normal name is an alias. */
11023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11024 choke me
11025 #else
11026 f = $ac_func;
11027 #endif
11028
11029 ;
11030 return 0;
11031 }
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 eval "$as_ac_var=yes"
11046 else
11047 echo "$as_me: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11049 eval "$as_ac_var=no"
11050 fi
11051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11052 fi
11053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058 _ACEOF
11059
11060 else
11061 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11062
11063 cat >>confdefs.h <<\_ACEOF
11064 #define C_GETLOADAVG 1
11065 _ACEOF
11066
11067 # Figure out what our getloadavg.c needs.
11068 ac_have_func=no
11069 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11070 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11071 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11072 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 fi
11075 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11076 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11077 else
11078 # Is the header compilable?
11079 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11080 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084 $ac_includes_default
11085 #include <sys/dg_sys_info.h>
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 ac_header_compiler=yes
11100 else
11101 echo "$as_me: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11103 ac_header_compiler=no
11104 fi
11105 rm -f conftest.$ac_objext conftest.$ac_ext
11106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 echo "${ECHO_T}$ac_header_compiler" >&6
11108
11109 # Is the header present?
11110 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11111 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11112 cat >conftest.$ac_ext <<_ACEOF
11113 #line $LINENO "configure"
11114 #include "confdefs.h"
11115 #include <sys/dg_sys_info.h>
11116 _ACEOF
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null; then
11125 if test -s conftest.err; then
11126 ac_cpp_err=$ac_c_preproc_warn_flag
11127 else
11128 ac_cpp_err=
11129 fi
11130 else
11131 ac_cpp_err=yes
11132 fi
11133 if test -z "$ac_cpp_err"; then
11134 ac_header_preproc=yes
11135 else
11136 echo "$as_me: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 ac_header_preproc=no
11139 fi
11140 rm -f conftest.err conftest.$ac_ext
11141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11142 echo "${ECHO_T}$ac_header_preproc" >&6
11143
11144 # So? What about this header?
11145 case $ac_header_compiler:$ac_header_preproc in
11146 yes:no )
11147 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11148 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11149 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11150 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11151 no:yes )
11152 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11153 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11155 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11157 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11158 esac
11159 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11160 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11161 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11165 fi
11166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11167 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11168
11169 fi
11170 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11171 ac_have_func=yes
11172
11173 cat >>confdefs.h <<\_ACEOF
11174 #define DGUX 1
11175 _ACEOF
11176
11177
11178 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11179 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11180 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 ac_check_lib_save_LIBS=$LIBS
11184 LIBS="-ldgc $LIBS"
11185 cat >conftest.$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11187 #include "confdefs.h"
11188
11189 /* Override any gcc2 internal prototype to avoid an error. */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 /* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11195 char dg_sys_info ();
11196 int
11197 main ()
11198 {
11199 dg_sys_info ();
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206 (eval $ac_link) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -s conftest$ac_exeext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 ac_cv_lib_dgc_dg_sys_info=yes
11217 else
11218 echo "$as_me: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 ac_cv_lib_dgc_dg_sys_info=no
11221 fi
11222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11223 LIBS=$ac_check_lib_save_LIBS
11224 fi
11225 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11226 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11227 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11228 cat >>confdefs.h <<_ACEOF
11229 #define HAVE_LIBDGC 1
11230 _ACEOF
11231
11232 LIBS="-ldgc $LIBS"
11233
11234 fi
11235
11236 fi
11237
11238
11239
11240 if test "${ac_cv_header_locale_h+set}" = set; then
11241 echo "$as_me:$LINENO: checking for locale.h" >&5
11242 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11243 if test "${ac_cv_header_locale_h+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 fi
11246 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11247 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11248 else
11249 # Is the header compilable?
11250 echo "$as_me:$LINENO: checking locale.h usability" >&5
11251 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11252 cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11254 #include "confdefs.h"
11255 $ac_includes_default
11256 #include <locale.h>
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -s conftest.$ac_objext'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 ac_header_compiler=yes
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 ac_header_compiler=no
11275 fi
11276 rm -f conftest.$ac_objext conftest.$ac_ext
11277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11278 echo "${ECHO_T}$ac_header_compiler" >&6
11279
11280 # Is the header present?
11281 echo "$as_me:$LINENO: checking locale.h presence" >&5
11282 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11286 #include <locale.h>
11287 _ACEOF
11288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } >/dev/null; then
11296 if test -s conftest.err; then
11297 ac_cpp_err=$ac_c_preproc_warn_flag
11298 else
11299 ac_cpp_err=
11300 fi
11301 else
11302 ac_cpp_err=yes
11303 fi
11304 if test -z "$ac_cpp_err"; then
11305 ac_header_preproc=yes
11306 else
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 ac_header_preproc=no
11310 fi
11311 rm -f conftest.err conftest.$ac_ext
11312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11313 echo "${ECHO_T}$ac_header_preproc" >&6
11314
11315 # So? What about this header?
11316 case $ac_header_compiler:$ac_header_preproc in
11317 yes:no )
11318 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11319 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11321 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11322 no:yes )
11323 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11324 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11326 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11328 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11329 esac
11330 echo "$as_me:$LINENO: checking for locale.h" >&5
11331 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11332 if test "${ac_cv_header_locale_h+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335 ac_cv_header_locale_h=$ac_header_preproc
11336 fi
11337 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11338 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11339
11340 fi
11341
11342
11343
11344 for ac_func in setlocale
11345 do
11346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11347 echo "$as_me:$LINENO: checking for $ac_func" >&5
11348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11349 if eval "test \"\${$as_ac_var+set}\" = set"; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352 cat >conftest.$ac_ext <<_ACEOF
11353 #line $LINENO "configure"
11354 #include "confdefs.h"
11355 /* System header to define __stub macros and hopefully few prototypes,
11356 which can conflict with char $ac_func (); below. */
11357 #include <assert.h>
11358 /* Override any gcc2 internal prototype to avoid an error. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364 char $ac_func ();
11365 char (*f) ();
11366
11367 int
11368 main ()
11369 {
11370 /* The GNU C library defines this for functions which it implements
11371 to always fail with ENOSYS. Some functions are actually named
11372 something starting with __ and the normal name is an alias. */
11373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11374 choke me
11375 #else
11376 f = $ac_func;
11377 #endif
11378
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 eval "$as_ac_var=yes"
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 eval "$as_ac_var=no"
11400 fi
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408 _ACEOF
11409
11410 fi
11411 done
11412
11413
11414 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11415 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11416 # Irix 4.0.5F has the header but not the library.
11417 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11418 ac_have_func=yes
11419
11420 cat >>confdefs.h <<\_ACEOF
11421 #define SVR4 1
11422 _ACEOF
11423
11424 fi
11425
11426 if test $ac_have_func = no; then
11427 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11428 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11429 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11430 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11434 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11435 else
11436 # Is the header compilable?
11437 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11438 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 #line $LINENO "configure"
11441 #include "confdefs.h"
11442 $ac_includes_default
11443 #include <inq_stats/cpustats.h>
11444 _ACEOF
11445 rm -f conftest.$ac_objext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11447 (eval $ac_compile) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -s conftest.$ac_objext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_header_compiler=yes
11458 else
11459 echo "$as_me: failed program was:" >&5
11460 cat conftest.$ac_ext >&5
11461 ac_header_compiler=no
11462 fi
11463 rm -f conftest.$ac_objext conftest.$ac_ext
11464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465 echo "${ECHO_T}$ac_header_compiler" >&6
11466
11467 # Is the header present?
11468 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11469 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11470 cat >conftest.$ac_ext <<_ACEOF
11471 #line $LINENO "configure"
11472 #include "confdefs.h"
11473 #include <inq_stats/cpustats.h>
11474 _ACEOF
11475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } >/dev/null; then
11483 if test -s conftest.err; then
11484 ac_cpp_err=$ac_c_preproc_warn_flag
11485 else
11486 ac_cpp_err=
11487 fi
11488 else
11489 ac_cpp_err=yes
11490 fi
11491 if test -z "$ac_cpp_err"; then
11492 ac_header_preproc=yes
11493 else
11494 echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 ac_header_preproc=no
11497 fi
11498 rm -f conftest.err conftest.$ac_ext
11499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11500 echo "${ECHO_T}$ac_header_preproc" >&6
11501
11502 # So? What about this header?
11503 case $ac_header_compiler:$ac_header_preproc in
11504 yes:no )
11505 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11506 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11508 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11509 no:yes )
11510 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11511 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11513 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11514 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11515 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11516 esac
11517 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11518 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11519 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11523 fi
11524 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11525 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11526
11527 fi
11528 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11529 ac_have_func=yes
11530
11531 cat >>confdefs.h <<\_ACEOF
11532 #define UMAX 1
11533 _ACEOF
11534
11535
11536 cat >>confdefs.h <<\_ACEOF
11537 #define UMAX4_3 1
11538 _ACEOF
11539
11540 fi
11541
11542
11543 fi
11544
11545 if test $ac_have_func = no; then
11546 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11547 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11548 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11549 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 fi
11552 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11553 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11554 else
11555 # Is the header compilable?
11556 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11557 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11558 cat >conftest.$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11561 $ac_includes_default
11562 #include <sys/cpustats.h>
11563 _ACEOF
11564 rm -f conftest.$ac_objext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566 (eval $ac_compile) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_header_compiler=yes
11577 else
11578 echo "$as_me: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 ac_header_compiler=no
11581 fi
11582 rm -f conftest.$ac_objext conftest.$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11584 echo "${ECHO_T}$ac_header_compiler" >&6
11585
11586 # Is the header present?
11587 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11588 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11589 cat >conftest.$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 #include "confdefs.h"
11592 #include <sys/cpustats.h>
11593 _ACEOF
11594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } >/dev/null; then
11602 if test -s conftest.err; then
11603 ac_cpp_err=$ac_c_preproc_warn_flag
11604 else
11605 ac_cpp_err=
11606 fi
11607 else
11608 ac_cpp_err=yes
11609 fi
11610 if test -z "$ac_cpp_err"; then
11611 ac_header_preproc=yes
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 ac_header_preproc=no
11616 fi
11617 rm -f conftest.err conftest.$ac_ext
11618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11619 echo "${ECHO_T}$ac_header_preproc" >&6
11620
11621 # So? What about this header?
11622 case $ac_header_compiler:$ac_header_preproc in
11623 yes:no )
11624 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11625 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11627 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11628 no:yes )
11629 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11630 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11632 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11634 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11635 esac
11636 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11637 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11638 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11642 fi
11643 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11644 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11645
11646 fi
11647 if test $ac_cv_header_sys_cpustats_h = yes; then
11648 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11649 #define UMAX 1
11650 _ACEOF
11651
11652 fi
11653
11654
11655 fi
11656
11657 if test $ac_have_func = no; then
11658
11659 for ac_header in mach/mach.h
11660 do
11661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11663 echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 fi
11668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11670 else
11671 # Is the header compilable?
11672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11674 cat >conftest.$ac_ext <<_ACEOF
11675 #line $LINENO "configure"
11676 #include "confdefs.h"
11677 $ac_includes_default
11678 #include <$ac_header>
11679 _ACEOF
11680 rm -f conftest.$ac_objext
11681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11682 (eval $ac_compile) 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try='test -s conftest.$ac_objext'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11689 ac_status=$?
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11692 ac_header_compiler=yes
11693 else
11694 echo "$as_me: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 ac_header_compiler=no
11697 fi
11698 rm -f conftest.$ac_objext conftest.$ac_ext
11699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11700 echo "${ECHO_T}$ac_header_compiler" >&6
11701
11702 # Is the header present?
11703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11705 cat >conftest.$ac_ext <<_ACEOF
11706 #line $LINENO "configure"
11707 #include "confdefs.h"
11708 #include <$ac_header>
11709 _ACEOF
11710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } >/dev/null; then
11718 if test -s conftest.err; then
11719 ac_cpp_err=$ac_c_preproc_warn_flag
11720 else
11721 ac_cpp_err=
11722 fi
11723 else
11724 ac_cpp_err=yes
11725 fi
11726 if test -z "$ac_cpp_err"; then
11727 ac_header_preproc=yes
11728 else
11729 echo "$as_me: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11731 ac_header_preproc=no
11732 fi
11733 rm -f conftest.err conftest.$ac_ext
11734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11735 echo "${ECHO_T}$ac_header_preproc" >&6
11736
11737 # So? What about this header?
11738 case $ac_header_compiler:$ac_header_preproc in
11739 yes:no )
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11744 no:yes )
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11751 esac
11752 echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757 eval "$as_ac_Header=$ac_header_preproc"
11758 fi
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11761
11762 fi
11763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11764 cat >>confdefs.h <<_ACEOF
11765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11766 _ACEOF
11767
11768 fi
11769
11770 done
11771
11772 fi
11773
11774
11775 for ac_header in nlist.h
11776 do
11777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11779 echo "$as_me:$LINENO: checking for $ac_header" >&5
11780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 fi
11784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11786 else
11787 # Is the header compilable?
11788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11791 #line $LINENO "configure"
11792 #include "confdefs.h"
11793 $ac_includes_default
11794 #include <$ac_header>
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_header_compiler=yes
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11812 ac_header_compiler=no
11813 fi
11814 rm -f conftest.$ac_objext conftest.$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11816 echo "${ECHO_T}$ac_header_compiler" >&6
11817
11818 # Is the header present?
11819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11823 #include "confdefs.h"
11824 #include <$ac_header>
11825 _ACEOF
11826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } >/dev/null; then
11834 if test -s conftest.err; then
11835 ac_cpp_err=$ac_c_preproc_warn_flag
11836 else
11837 ac_cpp_err=
11838 fi
11839 else
11840 ac_cpp_err=yes
11841 fi
11842 if test -z "$ac_cpp_err"; then
11843 ac_header_preproc=yes
11844 else
11845 echo "$as_me: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11847 ac_header_preproc=no
11848 fi
11849 rm -f conftest.err conftest.$ac_ext
11850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 echo "${ECHO_T}$ac_header_preproc" >&6
11852
11853 # So? What about this header?
11854 case $ac_header_compiler:$ac_header_preproc in
11855 yes:no )
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11860 no:yes )
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11867 esac
11868 echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 eval "$as_ac_Header=$ac_header_preproc"
11874 fi
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11877
11878 fi
11879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 _ACEOF
11883 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11884 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11885 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888 cat >conftest.$ac_ext <<_ACEOF
11889 #line $LINENO "configure"
11890 #include "confdefs.h"
11891 #include <nlist.h>
11892
11893 int
11894 main ()
11895 {
11896 static struct nlist ac_aggr;
11897 if (ac_aggr.n_un.n_name)
11898 return 0;
11899 ;
11900 return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905 (eval $ac_compile) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_member_struct_nlist_n_un_n_name=yes
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11919 cat >conftest.$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 #include "confdefs.h"
11922 #include <nlist.h>
11923
11924 int
11925 main ()
11926 {
11927 static struct nlist ac_aggr;
11928 if (sizeof ac_aggr.n_un.n_name)
11929 return 0;
11930 ;
11931 return 0;
11932 }
11933 _ACEOF
11934 rm -f conftest.$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_member_struct_nlist_n_un_n_name=yes
11947 else
11948 echo "$as_me: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11950 ac_cv_member_struct_nlist_n_un_n_name=no
11951 fi
11952 rm -f conftest.$ac_objext conftest.$ac_ext
11953 fi
11954 rm -f conftest.$ac_objext conftest.$ac_ext
11955 fi
11956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11957 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11958 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11959
11960 cat >>confdefs.h <<_ACEOF
11961 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11962 _ACEOF
11963
11964
11965 cat >>confdefs.h <<\_ACEOF
11966 #define NLIST_NAME_UNION 1
11967 _ACEOF
11968
11969 fi
11970
11971
11972 fi
11973
11974 done
11975
11976 fi
11977 done
11978
11979
11980 # Some definitions of getloadavg require that the program be installed setgid.
11981 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11982 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11983 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 #line $LINENO "configure"
11988 #include "confdefs.h"
11989 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11990 #ifdef LDAV_PRIVILEGED
11991 Yowza Am I SETGID yet
11992 #endif
11993 _ACEOF
11994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11995 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11996 ac_cv_func_getloadavg_setgid=yes
11997 else
11998 ac_cv_func_getloadavg_setgid=no
11999 fi
12000 rm -f conftest*
12001
12002 fi
12003 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12004 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12005 if test $ac_cv_func_getloadavg_setgid = yes; then
12006 NEED_SETGID=true
12007
12008 cat >>confdefs.h <<\_ACEOF
12009 #define GETLOADAVG_PRIVILEGED 1
12010 _ACEOF
12011
12012 else
12013 NEED_SETGID=false
12014 fi
12015
12016 if test $ac_cv_func_getloadavg_setgid = yes; then
12017 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12018 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12019 if test "${ac_cv_group_kmem+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12023 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12024 # If we got an error (system does not support symlinks), try without -L.
12025 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12026 ac_cv_group_kmem=`echo $ac_ls_output \
12027 | sed -ne 's/[ ][ ]*/ /g;
12028 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12029 / /s/.* //;p;'`
12030
12031 fi
12032 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12033 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12034 KMEM_GROUP=$ac_cv_group_kmem
12035 fi
12036 if test "x$ac_save_LIBS" = x; then
12037 GETLOADAVG_LIBS=$LIBS
12038 else
12039 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12040 fi
12041 LIBS=$ac_save_LIBS
12042
12043
12044
12045 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12046 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12047 if test "${ac_cv_sys_largefile_source+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 while :; do
12051 ac_cv_sys_largefile_source=no
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 #include "confdefs.h"
12055 #include <stdio.h>
12056 int
12057 main ()
12058 {
12059 return !fseeko;
12060 ;
12061 return 0;
12062 }
12063 _ACEOF
12064 rm -f conftest.$ac_objext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12066 (eval $ac_compile) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -s conftest.$ac_objext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 break
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 fi
12081 rm -f conftest.$ac_objext conftest.$ac_ext
12082 cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12084 #include "confdefs.h"
12085 #define _LARGEFILE_SOURCE 1
12086 #include <stdio.h>
12087 int
12088 main ()
12089 {
12090 return !fseeko;
12091 ;
12092 return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12097 (eval $ac_compile) 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -s conftest.$ac_objext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_cv_sys_largefile_source=1; break
12108 else
12109 echo "$as_me: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 fi
12112 rm -f conftest.$ac_objext conftest.$ac_ext
12113 break
12114 done
12115 fi
12116 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12117 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12118 if test "$ac_cv_sys_largefile_source" != no; then
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12122 _ACEOF
12123
12124 fi
12125 rm -f conftest*
12126
12127 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12128 # in glibc 2.1.3, but that breaks too many other things.
12129 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12130 echo "$as_me:$LINENO: checking for fseeko" >&5
12131 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12132 if test "${ac_cv_func_fseeko+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12138 #include <stdio.h>
12139 int
12140 main ()
12141 {
12142 return fseeko && fseeko (stdin, 0, 0);
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -s conftest$ac_exeext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 ac_cv_func_fseeko=yes
12160 else
12161 echo "$as_me: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163 ac_cv_func_fseeko=no
12164 fi
12165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12166 fi
12167 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12168 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12169 if test $ac_cv_func_fseeko = yes; then
12170
12171 cat >>confdefs.h <<\_ACEOF
12172 #define HAVE_FSEEKO 1
12173 _ACEOF
12174
12175 fi
12176
12177
12178 # UNIX98 PTYs.
12179
12180 for ac_func in grantpt
12181 do
12182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 echo "$as_me:$LINENO: checking for $ac_func" >&5
12184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12185 if eval "test \"\${$as_ac_var+set}\" = set"; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 cat >conftest.$ac_ext <<_ACEOF
12189 #line $LINENO "configure"
12190 #include "confdefs.h"
12191 /* System header to define __stub macros and hopefully few prototypes,
12192 which can conflict with char $ac_func (); below. */
12193 #include <assert.h>
12194 /* Override any gcc2 internal prototype to avoid an error. */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12200 char $ac_func ();
12201 char (*f) ();
12202
12203 int
12204 main ()
12205 {
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12210 choke me
12211 #else
12212 f = $ac_func;
12213 #endif
12214
12215 ;
12216 return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 eval "$as_ac_var=yes"
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12235 eval "$as_ac_var=no"
12236 fi
12237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238 fi
12239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12241 if test `eval echo '${'$as_ac_var'}'` = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 _ACEOF
12245
12246 fi
12247 done
12248
12249
12250 # PTY-related GNU extensions.
12251
12252 for ac_func in getpt
12253 do
12254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12255 echo "$as_me:$LINENO: checking for $ac_func" >&5
12256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12257 if eval "test \"\${$as_ac_var+set}\" = set"; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260 cat >conftest.$ac_ext <<_ACEOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12263 /* System header to define __stub macros and hopefully few prototypes,
12264 which can conflict with char $ac_func (); below. */
12265 #include <assert.h>
12266 /* Override any gcc2 internal prototype to avoid an error. */
12267 #ifdef __cplusplus
12268 extern "C"
12269 #endif
12270 /* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12272 char $ac_func ();
12273 char (*f) ();
12274
12275 int
12276 main ()
12277 {
12278 /* The GNU C library defines this for functions which it implements
12279 to always fail with ENOSYS. Some functions are actually named
12280 something starting with __ and the normal name is an alias. */
12281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12282 choke me
12283 #else
12284 f = $ac_func;
12285 #endif
12286
12287 ;
12288 return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12293 (eval $ac_link) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "$as_ac_var=yes"
12304 else
12305 echo "$as_me: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12307 eval "$as_ac_var=no"
12308 fi
12309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12310 fi
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 _ACEOF
12317
12318 fi
12319 done
12320
12321
12322 # Check this now, so that we will NOT find the above functions in ncurses.
12323 # That is because we have not set up to link ncurses in lib-src.
12324 # It's better to believe a function is not available
12325 # than to expect to find it in ncurses.
12326
12327 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12328 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12329 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-lncurses $LIBS"
12334 cat >conftest.$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12336 #include "confdefs.h"
12337
12338 /* Override any gcc2 internal prototype to avoid an error. */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */
12344 char tparm ();
12345 int
12346 main ()
12347 {
12348 tparm ();
12349 ;
12350 return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355 (eval $ac_link) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -s conftest$ac_exeext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_lib_ncurses_tparm=yes
12366 else
12367 echo "$as_me: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 ac_cv_lib_ncurses_tparm=no
12370 fi
12371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12373 fi
12374 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12375 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12376 if test $ac_cv_lib_ncurses_tparm = yes; then
12377 cat >>confdefs.h <<_ACEOF
12378 #define HAVE_LIBNCURSES 1
12379 _ACEOF
12380
12381 LIBS="-lncurses $LIBS"
12382
12383 fi
12384
12385
12386 # Do we need the Hesiod library to provide the support routines?
12387 if test "$with_hesiod" = yes ; then
12388 # Don't set $LIBS here -- see comments above.
12389 resolv=no
12390 echo "$as_me:$LINENO: checking for res_send" >&5
12391 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12392 if test "${ac_cv_func_res_send+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395 cat >conftest.$ac_ext <<_ACEOF
12396 #line $LINENO "configure"
12397 #include "confdefs.h"
12398 /* System header to define __stub macros and hopefully few prototypes,
12399 which can conflict with char res_send (); below. */
12400 #include <assert.h>
12401 /* Override any gcc2 internal prototype to avoid an error. */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12407 char res_send ();
12408 char (*f) ();
12409
12410 int
12411 main ()
12412 {
12413 /* The GNU C library defines this for functions which it implements
12414 to always fail with ENOSYS. Some functions are actually named
12415 something starting with __ and the normal name is an alias. */
12416 #if defined (__stub_res_send) || defined (__stub___res_send)
12417 choke me
12418 #else
12419 f = res_send;
12420 #endif
12421
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -s conftest$ac_exeext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_func_res_send=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 cat conftest.$ac_ext >&5
12442 ac_cv_func_res_send=no
12443 fi
12444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12445 fi
12446 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12447 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12448 if test $ac_cv_func_res_send = yes; then
12449 :
12450 else
12451 echo "$as_me:$LINENO: checking for __res_send" >&5
12452 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12453 if test "${ac_cv_func___res_send+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 #include "confdefs.h"
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char __res_send (); below. */
12461 #include <assert.h>
12462 /* Override any gcc2 internal prototype to avoid an error. */
12463 #ifdef __cplusplus
12464 extern "C"
12465 #endif
12466 /* We use char because int might match the return type of a gcc2
12467 builtin and then its argument prototype would still apply. */
12468 char __res_send ();
12469 char (*f) ();
12470
12471 int
12472 main ()
12473 {
12474 /* The GNU C library defines this for functions which it implements
12475 to always fail with ENOSYS. Some functions are actually named
12476 something starting with __ and the normal name is an alias. */
12477 #if defined (__stub___res_send) || defined (__stub_____res_send)
12478 choke me
12479 #else
12480 f = __res_send;
12481 #endif
12482
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489 (eval $ac_link) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -s conftest$ac_exeext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_func___res_send=yes
12500 else
12501 echo "$as_me: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 ac_cv_func___res_send=no
12504 fi
12505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12506 fi
12507 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12508 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12509 if test $ac_cv_func___res_send = yes; then
12510 :
12511 else
12512 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12513 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12514 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517 ac_check_lib_save_LIBS=$LIBS
12518 LIBS="-lresolv $LIBS"
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12521 #include "confdefs.h"
12522
12523 /* Override any gcc2 internal prototype to avoid an error. */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 /* We use char because int might match the return type of a gcc2
12528 builtin and then its argument prototype would still apply. */
12529 char res_send ();
12530 int
12531 main ()
12532 {
12533 res_send ();
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540 (eval $ac_link) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -s conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_lib_resolv_res_send=yes
12551 else
12552 echo "$as_me: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12554 ac_cv_lib_resolv_res_send=no
12555 fi
12556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12558 fi
12559 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12560 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12561 if test $ac_cv_lib_resolv_res_send = yes; then
12562 resolv=yes
12563 else
12564 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12565 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12566 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lresolv $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12573 #include "confdefs.h"
12574
12575 /* Override any gcc2 internal prototype to avoid an error. */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 /* We use char because int might match the return type of a gcc2
12580 builtin and then its argument prototype would still apply. */
12581 char __res_send ();
12582 int
12583 main ()
12584 {
12585 __res_send ();
12586 ;
12587 return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592 (eval $ac_link) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -s conftest$ac_exeext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_lib_resolv___res_send=yes
12603 else
12604 echo "$as_me: failed program was:" >&5
12605 cat conftest.$ac_ext >&5
12606 ac_cv_lib_resolv___res_send=no
12607 fi
12608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12612 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12613 if test $ac_cv_lib_resolv___res_send = yes; then
12614 resolv=yes
12615 fi
12616
12617 fi
12618
12619 fi
12620
12621 fi
12622
12623 if test "$resolv" = yes ; then
12624 RESOLVLIB=-lresolv
12625
12626 cat >>confdefs.h <<\_ACEOF
12627 #define HAVE_LIBRESOLV 1
12628 _ACEOF
12629
12630 else
12631 RESOLVLIB=
12632 fi
12633 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12634 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12635 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 else
12638 cat >conftest.$ac_ext <<_ACEOF
12639 #line $LINENO "configure"
12640 #include "confdefs.h"
12641 /* System header to define __stub macros and hopefully few prototypes,
12642 which can conflict with char hes_getmailhost (); below. */
12643 #include <assert.h>
12644 /* Override any gcc2 internal prototype to avoid an error. */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 /* We use char because int might match the return type of a gcc2
12649 builtin and then its argument prototype would still apply. */
12650 char hes_getmailhost ();
12651 char (*f) ();
12652
12653 int
12654 main ()
12655 {
12656 /* The GNU C library defines this for functions which it implements
12657 to always fail with ENOSYS. Some functions are actually named
12658 something starting with __ and the normal name is an alias. */
12659 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
12660 choke me
12661 #else
12662 f = hes_getmailhost;
12663 #endif
12664
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_func_hes_getmailhost=yes
12682 else
12683 echo "$as_me: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12685 ac_cv_func_hes_getmailhost=no
12686 fi
12687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12688 fi
12689 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
12690 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
12691 if test $ac_cv_func_hes_getmailhost = yes; then
12692 :
12693 else
12694 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12695 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
12696 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lhesiod $RESOLVLIB $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 #line $LINENO "configure"
12703 #include "confdefs.h"
12704
12705 /* Override any gcc2 internal prototype to avoid an error. */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 /* We use char because int might match the return type of a gcc2
12710 builtin and then its argument prototype would still apply. */
12711 char hes_getmailhost ();
12712 int
12713 main ()
12714 {
12715 hes_getmailhost ();
12716 ;
12717 return 0;
12718 }
12719 _ACEOF
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12722 (eval $ac_link) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } &&
12726 { ac_try='test -s conftest$ac_exeext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_lib_hesiod_hes_getmailhost=yes
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12736 ac_cv_lib_hesiod_hes_getmailhost=no
12737 fi
12738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS
12740 fi
12741 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12742 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
12743 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12744
12745 cat >>confdefs.h <<\_ACEOF
12746 #define HAVE_LIBHESIOD 1
12747 _ACEOF
12748
12749 else
12750 :
12751 fi
12752
12753 fi
12754
12755 fi
12756
12757 # These tell us which Kerberos-related libraries to use.
12758 if test "${with_kerberos+set}" = set; then
12759
12760 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12761 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
12762 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765 ac_check_lib_save_LIBS=$LIBS
12766 LIBS="-lcom_err $LIBS"
12767 cat >conftest.$ac_ext <<_ACEOF
12768 #line $LINENO "configure"
12769 #include "confdefs.h"
12770
12771 /* Override any gcc2 internal prototype to avoid an error. */
12772 #ifdef __cplusplus
12773 extern "C"
12774 #endif
12775 /* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12777 char com_err ();
12778 int
12779 main ()
12780 {
12781 com_err ();
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_lib_com_err_com_err=yes
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 cat conftest.$ac_ext >&5
12802 ac_cv_lib_com_err_com_err=no
12803 fi
12804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12805 LIBS=$ac_check_lib_save_LIBS
12806 fi
12807 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12808 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
12809 if test $ac_cv_lib_com_err_com_err = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_LIBCOM_ERR 1
12812 _ACEOF
12813
12814 LIBS="-lcom_err $LIBS"
12815
12816 fi
12817
12818
12819 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12820 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
12821 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lk5crypto $LIBS"
12826 cat >conftest.$ac_ext <<_ACEOF
12827 #line $LINENO "configure"
12828 #include "confdefs.h"
12829
12830 /* Override any gcc2 internal prototype to avoid an error. */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 /* We use char because int might match the return type of a gcc2
12835 builtin and then its argument prototype would still apply. */
12836 char mit_des_cbc_encrypt ();
12837 int
12838 main ()
12839 {
12840 mit_des_cbc_encrypt ();
12841 ;
12842 return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12861 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12862 fi
12863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12865 fi
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12867 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
12868 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_LIBK5CRYPTO 1
12871 _ACEOF
12872
12873 LIBS="-lk5crypto $LIBS"
12874
12875 fi
12876
12877
12878 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12879 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12880 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-lcrypto $LIBS"
12885 cat >conftest.$ac_ext <<_ACEOF
12886 #line $LINENO "configure"
12887 #include "confdefs.h"
12888
12889 /* Override any gcc2 internal prototype to avoid an error. */
12890 #ifdef __cplusplus
12891 extern "C"
12892 #endif
12893 /* We use char because int might match the return type of a gcc2
12894 builtin and then its argument prototype would still apply. */
12895 char mit_des_cbc_encrypt ();
12896 int
12897 main ()
12898 {
12899 mit_des_cbc_encrypt ();
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906 (eval $ac_link) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -s conftest$ac_exeext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12920 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12921 fi
12922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12923 LIBS=$ac_check_lib_save_LIBS
12924 fi
12925 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12926 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
12927 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12928 cat >>confdefs.h <<_ACEOF
12929 #define HAVE_LIBCRYPTO 1
12930 _ACEOF
12931
12932 LIBS="-lcrypto $LIBS"
12933
12934 fi
12935
12936
12937 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12938 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
12939 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-lkrb5 $LIBS"
12944 cat >conftest.$ac_ext <<_ACEOF
12945 #line $LINENO "configure"
12946 #include "confdefs.h"
12947
12948 /* Override any gcc2 internal prototype to avoid an error. */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12954 char krb5_init_context ();
12955 int
12956 main ()
12957 {
12958 krb5_init_context ();
12959 ;
12960 return 0;
12961 }
12962 _ACEOF
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -s conftest$ac_exeext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_lib_krb5_krb5_init_context=yes
12976 else
12977 echo "$as_me: failed program was:" >&5
12978 cat conftest.$ac_ext >&5
12979 ac_cv_lib_krb5_krb5_init_context=no
12980 fi
12981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12983 fi
12984 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12985 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
12986 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12987 cat >>confdefs.h <<_ACEOF
12988 #define HAVE_LIBKRB5 1
12989 _ACEOF
12990
12991 LIBS="-lkrb5 $LIBS"
12992
12993 fi
12994
12995 if test "${with_kerberos5+set}" != set; then
12996
12997 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12998 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
12999 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002 ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-ldes425 $LIBS"
13004 cat >conftest.$ac_ext <<_ACEOF
13005 #line $LINENO "configure"
13006 #include "confdefs.h"
13007
13008 /* Override any gcc2 internal prototype to avoid an error. */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13014 char des_cbc_encrypt ();
13015 int
13016 main ()
13017 {
13018 des_cbc_encrypt ();
13019 ;
13020 return 0;
13021 }
13022 _ACEOF
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_lib_des425_des_cbc_encrypt=yes
13036 else
13037 echo "$as_me: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13039 ac_cv_lib_des425_des_cbc_encrypt=no
13040 fi
13041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13042 LIBS=$ac_check_lib_save_LIBS
13043 fi
13044 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13045 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13046 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13047 cat >>confdefs.h <<_ACEOF
13048 #define HAVE_LIBDES425 1
13049 _ACEOF
13050
13051 LIBS="-ldes425 $LIBS"
13052
13053 else
13054
13055 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13056 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13057 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060 ac_check_lib_save_LIBS=$LIBS
13061 LIBS="-ldes $LIBS"
13062 cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13064 #include "confdefs.h"
13065
13066 /* Override any gcc2 internal prototype to avoid an error. */
13067 #ifdef __cplusplus
13068 extern "C"
13069 #endif
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072 char des_cbc_encrypt ();
13073 int
13074 main ()
13075 {
13076 des_cbc_encrypt ();
13077 ;
13078 return 0;
13079 }
13080 _ACEOF
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13083 (eval $ac_link) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_lib_des_des_cbc_encrypt=yes
13094 else
13095 echo "$as_me: failed program was:" >&5
13096 cat conftest.$ac_ext >&5
13097 ac_cv_lib_des_des_cbc_encrypt=no
13098 fi
13099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13101 fi
13102 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13103 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13104 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13105 cat >>confdefs.h <<_ACEOF
13106 #define HAVE_LIBDES 1
13107 _ACEOF
13108
13109 LIBS="-ldes $LIBS"
13110
13111 fi
13112
13113 fi
13114
13115
13116 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13117 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13118 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 ac_check_lib_save_LIBS=$LIBS
13122 LIBS="-lkrb4 $LIBS"
13123 cat >conftest.$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13126
13127 /* Override any gcc2 internal prototype to avoid an error. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 /* We use char because int might match the return type of a gcc2
13132 builtin and then its argument prototype would still apply. */
13133 char krb_get_cred ();
13134 int
13135 main ()
13136 {
13137 krb_get_cred ();
13138 ;
13139 return 0;
13140 }
13141 _ACEOF
13142 rm -f conftest.$ac_objext conftest$ac_exeext
13143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13144 (eval $ac_link) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -s conftest$ac_exeext'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_lib_krb4_krb_get_cred=yes
13155 else
13156 echo "$as_me: failed program was:" >&5
13157 cat conftest.$ac_ext >&5
13158 ac_cv_lib_krb4_krb_get_cred=no
13159 fi
13160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13161 LIBS=$ac_check_lib_save_LIBS
13162 fi
13163 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13164 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13165 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13166 cat >>confdefs.h <<_ACEOF
13167 #define HAVE_LIBKRB4 1
13168 _ACEOF
13169
13170 LIBS="-lkrb4 $LIBS"
13171
13172 else
13173
13174 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13175 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13176 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179 ac_check_lib_save_LIBS=$LIBS
13180 LIBS="-lkrb $LIBS"
13181 cat >conftest.$ac_ext <<_ACEOF
13182 #line $LINENO "configure"
13183 #include "confdefs.h"
13184
13185 /* Override any gcc2 internal prototype to avoid an error. */
13186 #ifdef __cplusplus
13187 extern "C"
13188 #endif
13189 /* We use char because int might match the return type of a gcc2
13190 builtin and then its argument prototype would still apply. */
13191 char krb_get_cred ();
13192 int
13193 main ()
13194 {
13195 krb_get_cred ();
13196 ;
13197 return 0;
13198 }
13199 _ACEOF
13200 rm -f conftest.$ac_objext conftest$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -s conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 ac_cv_lib_krb_krb_get_cred=yes
13213 else
13214 echo "$as_me: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13216 ac_cv_lib_krb_krb_get_cred=no
13217 fi
13218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13222 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13223 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_LIBKRB 1
13226 _ACEOF
13227
13228 LIBS="-lkrb $LIBS"
13229
13230 fi
13231
13232 fi
13233
13234 fi
13235
13236 if test "${with_kerberos5+set}" = set; then
13237
13238 for ac_header in krb5.h
13239 do
13240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13242 echo "$as_me:$LINENO: checking for $ac_header" >&5
13243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 fi
13247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13249 else
13250 # Is the header compilable?
13251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13254 #line $LINENO "configure"
13255 #include "confdefs.h"
13256 $ac_includes_default
13257 #include <$ac_header>
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_header_compiler=yes
13272 else
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 ac_header_compiler=no
13276 fi
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6
13280
13281 # Is the header present?
13282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 #include <$ac_header>
13288 _ACEOF
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev/null; then
13297 if test -s conftest.err; then
13298 ac_cpp_err=$ac_c_preproc_warn_flag
13299 else
13300 ac_cpp_err=
13301 fi
13302 else
13303 ac_cpp_err=yes
13304 fi
13305 if test -z "$ac_cpp_err"; then
13306 ac_header_preproc=yes
13307 else
13308 echo "$as_me: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13310 ac_header_preproc=no
13311 fi
13312 rm -f conftest.err conftest.$ac_ext
13313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13314 echo "${ECHO_T}$ac_header_preproc" >&6
13315
13316 # So? What about this header?
13317 case $ac_header_compiler:$ac_header_preproc in
13318 yes:no )
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13323 no:yes )
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13330 esac
13331 echo "$as_me:$LINENO: checking for $ac_header" >&5
13332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336 eval "$as_ac_Header=$ac_header_preproc"
13337 fi
13338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13340
13341 fi
13342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13343 cat >>confdefs.h <<_ACEOF
13344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13345 _ACEOF
13346
13347 fi
13348
13349 done
13350
13351 else
13352
13353 for ac_header in des.h
13354 do
13355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 fi
13362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13364 else
13365 # Is the header compilable?
13366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13370 #include "confdefs.h"
13371 $ac_includes_default
13372 #include <$ac_header>
13373 _ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376 (eval $ac_compile) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -s conftest.$ac_objext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_header_compiler=yes
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 cat conftest.$ac_ext >&5
13390 ac_header_compiler=no
13391 fi
13392 rm -f conftest.$ac_objext conftest.$ac_ext
13393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13394 echo "${ECHO_T}$ac_header_compiler" >&6
13395
13396 # Is the header present?
13397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 #include "confdefs.h"
13402 #include <$ac_header>
13403 _ACEOF
13404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } >/dev/null; then
13412 if test -s conftest.err; then
13413 ac_cpp_err=$ac_c_preproc_warn_flag
13414 else
13415 ac_cpp_err=
13416 fi
13417 else
13418 ac_cpp_err=yes
13419 fi
13420 if test -z "$ac_cpp_err"; then
13421 ac_header_preproc=yes
13422 else
13423 echo "$as_me: failed program was:" >&5
13424 cat conftest.$ac_ext >&5
13425 ac_header_preproc=no
13426 fi
13427 rm -f conftest.err conftest.$ac_ext
13428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13429 echo "${ECHO_T}$ac_header_preproc" >&6
13430
13431 # So? What about this header?
13432 case $ac_header_compiler:$ac_header_preproc in
13433 yes:no )
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13438 no:yes )
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13445 esac
13446 echo "$as_me:$LINENO: checking for $ac_header" >&5
13447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451 eval "$as_ac_Header=$ac_header_preproc"
13452 fi
13453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13455
13456 fi
13457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13458 cat >>confdefs.h <<_ACEOF
13459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13460 _ACEOF
13461
13462 else
13463
13464 for ac_header in kerberosIV/des.h
13465 do
13466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13468 echo "$as_me:$LINENO: checking for $ac_header" >&5
13469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 fi
13473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13475 else
13476 # Is the header compilable?
13477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13479 cat >conftest.$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13481 #include "confdefs.h"
13482 $ac_includes_default
13483 #include <$ac_header>
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487 (eval $ac_compile) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_header_compiler=yes
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501 ac_header_compiler=no
13502 fi
13503 rm -f conftest.$ac_objext conftest.$ac_ext
13504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6
13506
13507 # Is the header present?
13508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13511 #line $LINENO "configure"
13512 #include "confdefs.h"
13513 #include <$ac_header>
13514 _ACEOF
13515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } >/dev/null; then
13523 if test -s conftest.err; then
13524 ac_cpp_err=$ac_c_preproc_warn_flag
13525 else
13526 ac_cpp_err=
13527 fi
13528 else
13529 ac_cpp_err=yes
13530 fi
13531 if test -z "$ac_cpp_err"; then
13532 ac_header_preproc=yes
13533 else
13534 echo "$as_me: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13536 ac_header_preproc=no
13537 fi
13538 rm -f conftest.err conftest.$ac_ext
13539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13540 echo "${ECHO_T}$ac_header_preproc" >&6
13541
13542 # So? What about this header?
13543 case $ac_header_compiler:$ac_header_preproc in
13544 yes:no )
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13549 no:yes )
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13556 esac
13557 echo "$as_me:$LINENO: checking for $ac_header" >&5
13558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 eval "$as_ac_Header=$ac_header_preproc"
13563 fi
13564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13566
13567 fi
13568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13569 cat >>confdefs.h <<_ACEOF
13570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13571 _ACEOF
13572
13573 else
13574
13575 for ac_header in kerberos/des.h
13576 do
13577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13579 echo "$as_me:$LINENO: checking for $ac_header" >&5
13580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 fi
13584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13586 else
13587 # Is the header compilable?
13588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13590 cat >conftest.$ac_ext <<_ACEOF
13591 #line $LINENO "configure"
13592 #include "confdefs.h"
13593 $ac_includes_default
13594 #include <$ac_header>
13595 _ACEOF
13596 rm -f conftest.$ac_objext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -s conftest.$ac_objext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 ac_header_compiler=yes
13609 else
13610 echo "$as_me: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 ac_header_compiler=no
13613 fi
13614 rm -f conftest.$ac_objext conftest.$ac_ext
13615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13616 echo "${ECHO_T}$ac_header_compiler" >&6
13617
13618 # Is the header present?
13619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13621 cat >conftest.$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13623 #include "confdefs.h"
13624 #include <$ac_header>
13625 _ACEOF
13626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } >/dev/null; then
13634 if test -s conftest.err; then
13635 ac_cpp_err=$ac_c_preproc_warn_flag
13636 else
13637 ac_cpp_err=
13638 fi
13639 else
13640 ac_cpp_err=yes
13641 fi
13642 if test -z "$ac_cpp_err"; then
13643 ac_header_preproc=yes
13644 else
13645 echo "$as_me: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13647 ac_header_preproc=no
13648 fi
13649 rm -f conftest.err conftest.$ac_ext
13650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13651 echo "${ECHO_T}$ac_header_preproc" >&6
13652
13653 # So? What about this header?
13654 case $ac_header_compiler:$ac_header_preproc in
13655 yes:no )
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13660 no:yes )
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13667 esac
13668 echo "$as_me:$LINENO: checking for $ac_header" >&5
13669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673 eval "$as_ac_Header=$ac_header_preproc"
13674 fi
13675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13677
13678 fi
13679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13682 _ACEOF
13683
13684 fi
13685
13686 done
13687
13688 fi
13689
13690 done
13691
13692 fi
13693
13694 done
13695
13696
13697 for ac_header in krb.h
13698 do
13699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701 echo "$as_me:$LINENO: checking for $ac_header" >&5
13702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 fi
13706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13708 else
13709 # Is the header compilable?
13710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13713 #line $LINENO "configure"
13714 #include "confdefs.h"
13715 $ac_includes_default
13716 #include <$ac_header>
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler=yes
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 ac_header_compiler=no
13735 fi
13736 rm -f conftest.$ac_objext conftest.$ac_ext
13737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738 echo "${ECHO_T}$ac_header_compiler" >&6
13739
13740 # Is the header present?
13741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 #include "confdefs.h"
13746 #include <$ac_header>
13747 _ACEOF
13748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } >/dev/null; then
13756 if test -s conftest.err; then
13757 ac_cpp_err=$ac_c_preproc_warn_flag
13758 else
13759 ac_cpp_err=
13760 fi
13761 else
13762 ac_cpp_err=yes
13763 fi
13764 if test -z "$ac_cpp_err"; then
13765 ac_header_preproc=yes
13766 else
13767 echo "$as_me: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13769 ac_header_preproc=no
13770 fi
13771 rm -f conftest.err conftest.$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13773 echo "${ECHO_T}$ac_header_preproc" >&6
13774
13775 # So? What about this header?
13776 case $ac_header_compiler:$ac_header_preproc in
13777 yes:no )
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13782 no:yes )
13783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13789 esac
13790 echo "$as_me:$LINENO: checking for $ac_header" >&5
13791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795 eval "$as_ac_Header=$ac_header_preproc"
13796 fi
13797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13799
13800 fi
13801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13802 cat >>confdefs.h <<_ACEOF
13803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13804 _ACEOF
13805
13806 else
13807
13808 for ac_header in kerberosIV/krb.h
13809 do
13810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13812 echo "$as_me:$LINENO: checking for $ac_header" >&5
13813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 fi
13817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13819 else
13820 # Is the header compilable?
13821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13823 cat >conftest.$ac_ext <<_ACEOF
13824 #line $LINENO "configure"
13825 #include "confdefs.h"
13826 $ac_includes_default
13827 #include <$ac_header>
13828 _ACEOF
13829 rm -f conftest.$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831 (eval $ac_compile) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_header_compiler=yes
13842 else
13843 echo "$as_me: failed program was:" >&5
13844 cat conftest.$ac_ext >&5
13845 ac_header_compiler=no
13846 fi
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6
13850
13851 # Is the header present?
13852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13856 #include "confdefs.h"
13857 #include <$ac_header>
13858 _ACEOF
13859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } >/dev/null; then
13867 if test -s conftest.err; then
13868 ac_cpp_err=$ac_c_preproc_warn_flag
13869 else
13870 ac_cpp_err=
13871 fi
13872 else
13873 ac_cpp_err=yes
13874 fi
13875 if test -z "$ac_cpp_err"; then
13876 ac_header_preproc=yes
13877 else
13878 echo "$as_me: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13880 ac_header_preproc=no
13881 fi
13882 rm -f conftest.err conftest.$ac_ext
13883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 echo "${ECHO_T}$ac_header_preproc" >&6
13885
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc in
13888 yes:no )
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13893 no:yes )
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13900 esac
13901 echo "$as_me:$LINENO: checking for $ac_header" >&5
13902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906 eval "$as_ac_Header=$ac_header_preproc"
13907 fi
13908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13910
13911 fi
13912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13913 cat >>confdefs.h <<_ACEOF
13914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13915 _ACEOF
13916
13917 else
13918
13919 for ac_header in kerberos/krb.h
13920 do
13921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13923 echo "$as_me:$LINENO: checking for $ac_header" >&5
13924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 fi
13928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13930 else
13931 # Is the header compilable?
13932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13934 cat >conftest.$ac_ext <<_ACEOF
13935 #line $LINENO "configure"
13936 #include "confdefs.h"
13937 $ac_includes_default
13938 #include <$ac_header>
13939 _ACEOF
13940 rm -f conftest.$ac_objext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942 (eval $ac_compile) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_header_compiler=yes
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 cat conftest.$ac_ext >&5
13956 ac_header_compiler=no
13957 fi
13958 rm -f conftest.$ac_objext conftest.$ac_ext
13959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13960 echo "${ECHO_T}$ac_header_compiler" >&6
13961
13962 # Is the header present?
13963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 #include "confdefs.h"
13968 #include <$ac_header>
13969 _ACEOF
13970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } >/dev/null; then
13978 if test -s conftest.err; then
13979 ac_cpp_err=$ac_c_preproc_warn_flag
13980 else
13981 ac_cpp_err=
13982 fi
13983 else
13984 ac_cpp_err=yes
13985 fi
13986 if test -z "$ac_cpp_err"; then
13987 ac_header_preproc=yes
13988 else
13989 echo "$as_me: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13991 ac_header_preproc=no
13992 fi
13993 rm -f conftest.err conftest.$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995 echo "${ECHO_T}$ac_header_preproc" >&6
13996
13997 # So? What about this header?
13998 case $ac_header_compiler:$ac_header_preproc in
13999 yes:no )
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14004 no:yes )
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14011 esac
14012 echo "$as_me:$LINENO: checking for $ac_header" >&5
14013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 eval "$as_ac_Header=$ac_header_preproc"
14018 fi
14019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14021
14022 fi
14023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14024 cat >>confdefs.h <<_ACEOF
14025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14026 _ACEOF
14027
14028 fi
14029
14030 done
14031
14032 fi
14033
14034 done
14035
14036 fi
14037
14038 done
14039
14040 fi
14041
14042 for ac_header in com_err.h
14043 do
14044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046 echo "$as_me:$LINENO: checking for $ac_header" >&5
14047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 fi
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14053 else
14054 # Is the header compilable?
14055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14058 #line $LINENO "configure"
14059 #include "confdefs.h"
14060 $ac_includes_default
14061 #include <$ac_header>
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_header_compiler=yes
14076 else
14077 echo "$as_me: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 ac_header_compiler=no
14080 fi
14081 rm -f conftest.$ac_objext conftest.$ac_ext
14082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14083 echo "${ECHO_T}$ac_header_compiler" >&6
14084
14085 # Is the header present?
14086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14088 cat >conftest.$ac_ext <<_ACEOF
14089 #line $LINENO "configure"
14090 #include "confdefs.h"
14091 #include <$ac_header>
14092 _ACEOF
14093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14095 ac_status=$?
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } >/dev/null; then
14101 if test -s conftest.err; then
14102 ac_cpp_err=$ac_c_preproc_warn_flag
14103 else
14104 ac_cpp_err=
14105 fi
14106 else
14107 ac_cpp_err=yes
14108 fi
14109 if test -z "$ac_cpp_err"; then
14110 ac_header_preproc=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 cat conftest.$ac_ext >&5
14114 ac_header_preproc=no
14115 fi
14116 rm -f conftest.err conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14118 echo "${ECHO_T}$ac_header_preproc" >&6
14119
14120 # So? What about this header?
14121 case $ac_header_compiler:$ac_header_preproc in
14122 yes:no )
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14127 no:yes )
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14134 esac
14135 echo "$as_me:$LINENO: checking for $ac_header" >&5
14136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140 eval "$as_ac_Header=$ac_header_preproc"
14141 fi
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144
14145 fi
14146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14149 _ACEOF
14150
14151 fi
14152
14153 done
14154
14155 fi
14156
14157 # Solaris requires -lintl if you want strerror (which calls dgettext)
14158 # to return localized messages.
14159
14160 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14161 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14162 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-lintl $LIBS"
14167 cat >conftest.$ac_ext <<_ACEOF
14168 #line $LINENO "configure"
14169 #include "confdefs.h"
14170
14171 /* Override any gcc2 internal prototype to avoid an error. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177 char dgettext ();
14178 int
14179 main ()
14180 {
14181 dgettext ();
14182 ;
14183 return 0;
14184 }
14185 _ACEOF
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -s conftest$ac_exeext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_lib_intl_dgettext=yes
14199 else
14200 echo "$as_me: failed program was:" >&5
14201 cat conftest.$ac_ext >&5
14202 ac_cv_lib_intl_dgettext=no
14203 fi
14204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14205 LIBS=$ac_check_lib_save_LIBS
14206 fi
14207 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14208 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14209 if test $ac_cv_lib_intl_dgettext = yes; then
14210 cat >>confdefs.h <<_ACEOF
14211 #define HAVE_LIBINTL 1
14212 _ACEOF
14213
14214 LIBS="-lintl $LIBS"
14215
14216 fi
14217
14218
14219 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14220 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14221 if test "${emacs_cv_localtime_cache+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224 if test x$ac_cv_func_tzset = xyes; then
14225 if test "$cross_compiling" = yes; then
14226 # If we have tzset, assume the worst when cross-compiling.
14227 emacs_cv_localtime_cache=yes
14228 else
14229 cat >conftest.$ac_ext <<_ACEOF
14230 #line $LINENO "configure"
14231 #include "confdefs.h"
14232 #include <time.h>
14233 extern char **environ;
14234 unset_TZ ()
14235 {
14236 char **from, **to;
14237 for (to = from = environ; (*to = *from); from++)
14238 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14239 to++;
14240 }
14241 char TZ_GMT0[] = "TZ=GMT0";
14242 char TZ_PST8[] = "TZ=PST8";
14243 main()
14244 {
14245 time_t now = time ((time_t *) 0);
14246 int hour_GMT0, hour_unset;
14247 if (putenv (TZ_GMT0) != 0)
14248 exit (1);
14249 hour_GMT0 = localtime (&now)->tm_hour;
14250 unset_TZ ();
14251 hour_unset = localtime (&now)->tm_hour;
14252 if (putenv (TZ_PST8) != 0)
14253 exit (1);
14254 if (localtime (&now)->tm_hour == hour_GMT0)
14255 exit (1);
14256 unset_TZ ();
14257 if (localtime (&now)->tm_hour != hour_unset)
14258 exit (1);
14259 exit (0);
14260 }
14261 _ACEOF
14262 rm -f conftest$ac_exeext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14264 (eval $ac_link) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 emacs_cv_localtime_cache=no
14274 else
14275 echo "$as_me: program exited with status $ac_status" >&5
14276 echo "$as_me: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 ( exit $ac_status )
14279 emacs_cv_localtime_cache=yes
14280 fi
14281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14282 fi
14283 else
14284 # If we lack tzset, report that localtime does not cache TZ,
14285 # since we can't invalidate the cache if we don't have tzset.
14286 emacs_cv_localtime_cache=no
14287 fi
14288 fi
14289 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14290 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14291 if test $emacs_cv_localtime_cache = yes; then
14292
14293 cat >>confdefs.h <<\_ACEOF
14294 #define LOCALTIME_CACHE 1
14295 _ACEOF
14296
14297 fi
14298
14299 if test "x$HAVE_TIMEVAL" = xyes; then
14300
14301 for ac_func in gettimeofday
14302 do
14303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14304 echo "$as_me:$LINENO: checking for $ac_func" >&5
14305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14306 if eval "test \"\${$as_ac_var+set}\" = set"; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 /* System header to define __stub macros and hopefully few prototypes,
14313 which can conflict with char $ac_func (); below. */
14314 #include <assert.h>
14315 /* Override any gcc2 internal prototype to avoid an error. */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 /* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14321 char $ac_func ();
14322 char (*f) ();
14323
14324 int
14325 main ()
14326 {
14327 /* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14331 choke me
14332 #else
14333 f = $ac_func;
14334 #endif
14335
14336 ;
14337 return 0;
14338 }
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -s conftest$ac_exeext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 eval "$as_ac_var=yes"
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 cat conftest.$ac_ext >&5
14356 eval "$as_ac_var=no"
14357 fi
14358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14359 fi
14360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14362 if test `eval echo '${'$as_ac_var'}'` = yes; then
14363 cat >>confdefs.h <<_ACEOF
14364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14365 _ACEOF
14366
14367 fi
14368 done
14369
14370 if test $ac_cv_func_gettimeofday = yes; then
14371 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14372 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14373 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376 cat >conftest.$ac_ext <<_ACEOF
14377 #line $LINENO "configure"
14378 #include "confdefs.h"
14379
14380 #ifdef TIME_WITH_SYS_TIME
14381 #include <sys/time.h>
14382 #include <time.h>
14383 #else
14384 #ifdef HAVE_SYS_TIME_H
14385 #include <sys/time.h>
14386 #else
14387 #include <time.h>
14388 #endif
14389 #endif
14390 int
14391 main ()
14392 {
14393 struct timeval time;
14394 gettimeofday (&time, 0);
14395 ;
14396 return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -s conftest.$ac_objext'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 emacs_cv_gettimeofday_two_arguments=yes
14412 else
14413 echo "$as_me: failed program was:" >&5
14414 cat conftest.$ac_ext >&5
14415 emacs_cv_gettimeofday_two_arguments=no
14416 fi
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14418 fi
14419 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14420 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14421 if test $emacs_cv_gettimeofday_two_arguments = no; then
14422
14423 cat >>confdefs.h <<\_ACEOF
14424 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14425 _ACEOF
14426
14427 fi
14428 fi
14429 fi
14430
14431 if test "$ac_cv_func_gettimeofday" = yes; then
14432 echo "$as_me:$LINENO: checking for struct timezone" >&5
14433 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14434 if test "${emacs_cv_struct_timezone+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 #include "confdefs.h"
14440 #include <sys/time.h>
14441 int
14442 main ()
14443 {
14444 struct timezone tz;
14445 ;
14446 return 0;
14447 }
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -s conftest.$ac_objext'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 if test "$cross_compiling" = yes; then
14462 emacs_cv_struct_timezone=yes
14463 else
14464 cat >conftest.$ac_ext <<_ACEOF
14465 #line $LINENO "configure"
14466 #include "confdefs.h"
14467
14468 #ifdef TIME_WITH_SYS_TIME
14469 #include <sys/time.h>
14470 #include <time.h>
14471 #else
14472 #ifdef HAVE_SYS_TIME_H
14473 #include <sys/time.h>
14474 #else
14475 #include <time.h>
14476 #endif
14477 #endif
14478 main () {
14479 struct timeval time;
14480 struct timezone dummy;
14481 exit (gettimeofday (&time, &dummy));
14482 }
14483 _ACEOF
14484 rm -f conftest$ac_exeext
14485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14486 (eval $ac_link) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
14495 emacs_cv_struct_timezone=yes
14496 else
14497 echo "$as_me: program exited with status $ac_status" >&5
14498 echo "$as_me: failed program was:" >&5
14499 cat conftest.$ac_ext >&5
14500 ( exit $ac_status )
14501 emacs_cv_struct_timezone=no
14502 fi
14503 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14504 fi
14505 else
14506 echo "$as_me: failed program was:" >&5
14507 cat conftest.$ac_ext >&5
14508 emacs_cv_struct_timezone=no
14509 fi
14510 rm -f conftest.$ac_objext conftest.$ac_ext
14511 fi
14512 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14513 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14514 fi
14515
14516 ok_so_far=yes
14517 echo "$as_me:$LINENO: checking for socket" >&5
14518 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14519 if test "${ac_cv_func_socket+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 else
14522 cat >conftest.$ac_ext <<_ACEOF
14523 #line $LINENO "configure"
14524 #include "confdefs.h"
14525 /* System header to define __stub macros and hopefully few prototypes,
14526 which can conflict with char socket (); below. */
14527 #include <assert.h>
14528 /* Override any gcc2 internal prototype to avoid an error. */
14529 #ifdef __cplusplus
14530 extern "C"
14531 #endif
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14534 char socket ();
14535 char (*f) ();
14536
14537 int
14538 main ()
14539 {
14540 /* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543 #if defined (__stub_socket) || defined (__stub___socket)
14544 choke me
14545 #else
14546 f = socket;
14547 #endif
14548
14549 ;
14550 return 0;
14551 }
14552 _ACEOF
14553 rm -f conftest.$ac_objext conftest$ac_exeext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14555 (eval $ac_link) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -s conftest$ac_exeext'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_cv_func_socket=yes
14566 else
14567 echo "$as_me: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14569 ac_cv_func_socket=no
14570 fi
14571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14572 fi
14573 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14574 echo "${ECHO_T}$ac_cv_func_socket" >&6
14575 if test $ac_cv_func_socket = yes; then
14576 :
14577 else
14578 ok_so_far=no
14579 fi
14580
14581 if test $ok_so_far = yes; then
14582 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14583 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14584 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14585 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 fi
14588 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14589 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14590 else
14591 # Is the header compilable?
14592 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
14593 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
14594 cat >conftest.$ac_ext <<_ACEOF
14595 #line $LINENO "configure"
14596 #include "confdefs.h"
14597 $ac_includes_default
14598 #include <netinet/in.h>
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_header_compiler=yes
14613 else
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ac_header_compiler=no
14617 fi
14618 rm -f conftest.$ac_objext conftest.$ac_ext
14619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14620 echo "${ECHO_T}$ac_header_compiler" >&6
14621
14622 # Is the header present?
14623 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
14624 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
14625 cat >conftest.$ac_ext <<_ACEOF
14626 #line $LINENO "configure"
14627 #include "confdefs.h"
14628 #include <netinet/in.h>
14629 _ACEOF
14630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } >/dev/null; then
14638 if test -s conftest.err; then
14639 ac_cpp_err=$ac_c_preproc_warn_flag
14640 else
14641 ac_cpp_err=
14642 fi
14643 else
14644 ac_cpp_err=yes
14645 fi
14646 if test -z "$ac_cpp_err"; then
14647 ac_header_preproc=yes
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 cat conftest.$ac_ext >&5
14651 ac_header_preproc=no
14652 fi
14653 rm -f conftest.err conftest.$ac_ext
14654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14655 echo "${ECHO_T}$ac_header_preproc" >&6
14656
14657 # So? What about this header?
14658 case $ac_header_compiler:$ac_header_preproc in
14659 yes:no )
14660 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
14661 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14663 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14664 no:yes )
14665 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
14666 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
14668 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14670 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14671 esac
14672 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14673 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14674 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677 ac_cv_header_netinet_in_h=$ac_header_preproc
14678 fi
14679 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14680 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14681
14682 fi
14683 if test $ac_cv_header_netinet_in_h = yes; then
14684 :
14685 else
14686 ok_so_far=no
14687 fi
14688
14689
14690 fi
14691 if test $ok_so_far = yes; then
14692 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14693 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14694 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14695 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 fi
14698 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14699 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14700 else
14701 # Is the header compilable?
14702 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
14703 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14705 #line $LINENO "configure"
14706 #include "confdefs.h"
14707 $ac_includes_default
14708 #include <arpa/inet.h>
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_header_compiler=yes
14723 else
14724 echo "$as_me: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14726 ac_header_compiler=no
14727 fi
14728 rm -f conftest.$ac_objext conftest.$ac_ext
14729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14730 echo "${ECHO_T}$ac_header_compiler" >&6
14731
14732 # Is the header present?
14733 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
14734 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
14735 cat >conftest.$ac_ext <<_ACEOF
14736 #line $LINENO "configure"
14737 #include "confdefs.h"
14738 #include <arpa/inet.h>
14739 _ACEOF
14740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14742 ac_status=$?
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } >/dev/null; then
14748 if test -s conftest.err; then
14749 ac_cpp_err=$ac_c_preproc_warn_flag
14750 else
14751 ac_cpp_err=
14752 fi
14753 else
14754 ac_cpp_err=yes
14755 fi
14756 if test -z "$ac_cpp_err"; then
14757 ac_header_preproc=yes
14758 else
14759 echo "$as_me: failed program was:" >&5
14760 cat conftest.$ac_ext >&5
14761 ac_header_preproc=no
14762 fi
14763 rm -f conftest.err conftest.$ac_ext
14764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765 echo "${ECHO_T}$ac_header_preproc" >&6
14766
14767 # So? What about this header?
14768 case $ac_header_compiler:$ac_header_preproc in
14769 yes:no )
14770 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
14771 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14773 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14774 no:yes )
14775 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
14776 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
14778 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14780 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14781 esac
14782 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14783 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14784 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 ac_cv_header_arpa_inet_h=$ac_header_preproc
14788 fi
14789 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14790 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14791
14792 fi
14793 if test $ac_cv_header_arpa_inet_h = yes; then
14794 :
14795 else
14796 ok_so_far=no
14797 fi
14798
14799
14800 fi
14801 if test $ok_so_far = yes; then
14802
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_INET_SOCKETS 1
14805 _ACEOF
14806
14807 fi
14808
14809 if test -f /usr/lpp/X11/bin/smt.exp; then
14810
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_AIX_SMT_EXP 1
14813 _ACEOF
14814
14815 fi
14816
14817 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
14818 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
14819 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14820 echo "$as_me:$LINENO: result: yes" >&5
14821 echo "${ECHO_T}yes" >&6
14822
14823 cat >>confdefs.h <<\_ACEOF
14824 #define HAVE_DEV_PTMX 1
14825 _ACEOF
14826
14827 else
14828 echo "$as_me:$LINENO: result: no" >&5
14829 echo "${ECHO_T}no" >&6
14830 fi
14831
14832 echo "$as_me:$LINENO: checking for pid_t" >&5
14833 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14834 if test "${ac_cv_type_pid_t+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837 cat >conftest.$ac_ext <<_ACEOF
14838 #line $LINENO "configure"
14839 #include "confdefs.h"
14840 $ac_includes_default
14841 int
14842 main ()
14843 {
14844 if ((pid_t *) 0)
14845 return 0;
14846 if (sizeof (pid_t))
14847 return 0;
14848 ;
14849 return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>&5
14855 ac_status=$?
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -s conftest.$ac_objext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_type_pid_t=yes
14865 else
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 ac_cv_type_pid_t=no
14869 fi
14870 rm -f conftest.$ac_objext conftest.$ac_ext
14871 fi
14872 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14873 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14874 if test $ac_cv_type_pid_t = yes; then
14875 :
14876 else
14877
14878 cat >>confdefs.h <<_ACEOF
14879 #define pid_t int
14880 _ACEOF
14881
14882 fi
14883
14884
14885
14886 for ac_header in unistd.h vfork.h
14887 do
14888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14890 echo "$as_me:$LINENO: checking for $ac_header" >&5
14891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 fi
14895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14897 else
14898 # Is the header compilable?
14899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14901 cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14903 #include "confdefs.h"
14904 $ac_includes_default
14905 #include <$ac_header>
14906 _ACEOF
14907 rm -f conftest.$ac_objext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909 (eval $ac_compile) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -s conftest.$ac_objext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 ac_header_compiler=yes
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14923 ac_header_compiler=no
14924 fi
14925 rm -f conftest.$ac_objext conftest.$ac_ext
14926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14927 echo "${ECHO_T}$ac_header_compiler" >&6
14928
14929 # Is the header present?
14930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14932 cat >conftest.$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14934 #include "confdefs.h"
14935 #include <$ac_header>
14936 _ACEOF
14937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } >/dev/null; then
14945 if test -s conftest.err; then
14946 ac_cpp_err=$ac_c_preproc_warn_flag
14947 else
14948 ac_cpp_err=
14949 fi
14950 else
14951 ac_cpp_err=yes
14952 fi
14953 if test -z "$ac_cpp_err"; then
14954 ac_header_preproc=yes
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14958 ac_header_preproc=no
14959 fi
14960 rm -f conftest.err conftest.$ac_ext
14961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14962 echo "${ECHO_T}$ac_header_preproc" >&6
14963
14964 # So? What about this header?
14965 case $ac_header_compiler:$ac_header_preproc in
14966 yes:no )
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14971 no:yes )
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14978 esac
14979 echo "$as_me:$LINENO: checking for $ac_header" >&5
14980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 eval "$as_ac_Header=$ac_header_preproc"
14985 fi
14986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14988
14989 fi
14990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14991 cat >>confdefs.h <<_ACEOF
14992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14993 _ACEOF
14994
14995 fi
14996
14997 done
14998
14999
15000
15001 for ac_func in fork vfork
15002 do
15003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15004 echo "$as_me:$LINENO: checking for $ac_func" >&5
15005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15006 if eval "test \"\${$as_ac_var+set}\" = set"; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009 cat >conftest.$ac_ext <<_ACEOF
15010 #line $LINENO "configure"
15011 #include "confdefs.h"
15012 /* System header to define __stub macros and hopefully few prototypes,
15013 which can conflict with char $ac_func (); below. */
15014 #include <assert.h>
15015 /* Override any gcc2 internal prototype to avoid an error. */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15021 char $ac_func ();
15022 char (*f) ();
15023
15024 int
15025 main ()
15026 {
15027 /* The GNU C library defines this for functions which it implements
15028 to always fail with ENOSYS. Some functions are actually named
15029 something starting with __ and the normal name is an alias. */
15030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15031 choke me
15032 #else
15033 f = $ac_func;
15034 #endif
15035
15036 ;
15037 return 0;
15038 }
15039 _ACEOF
15040 rm -f conftest.$ac_objext conftest$ac_exeext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15042 (eval $ac_link) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -s conftest$ac_exeext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 eval "$as_ac_var=yes"
15053 else
15054 echo "$as_me: failed program was:" >&5
15055 cat conftest.$ac_ext >&5
15056 eval "$as_ac_var=no"
15057 fi
15058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15059 fi
15060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15062 if test `eval echo '${'$as_ac_var'}'` = yes; then
15063 cat >>confdefs.h <<_ACEOF
15064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15065 _ACEOF
15066
15067 fi
15068 done
15069
15070 if test "x$ac_cv_func_fork" = xyes; then
15071 echo "$as_me:$LINENO: checking for working fork" >&5
15072 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15073 if test "${ac_cv_func_fork_works+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076 if test "$cross_compiling" = yes; then
15077 ac_cv_func_fork_works=cross
15078 else
15079 cat >conftest.$ac_ext <<_ACEOF
15080 /* By Ruediger Kuhlmann. */
15081 #include <sys/types.h>
15082 #if HAVE_UNISTD_H
15083 # include <unistd.h>
15084 #endif
15085 /* Some systems only have a dummy stub for fork() */
15086 int main ()
15087 {
15088 if (fork() < 0)
15089 exit (1);
15090 exit (0);
15091 }
15092 _ACEOF
15093 rm -f conftest$ac_exeext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 ac_cv_func_fork_works=yes
15105 else
15106 echo "$as_me: program exited with status $ac_status" >&5
15107 echo "$as_me: failed program was:" >&5
15108 cat conftest.$ac_ext >&5
15109 ( exit $ac_status )
15110 ac_cv_func_fork_works=no
15111 fi
15112 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15113 fi
15114 fi
15115 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15116 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15117
15118 else
15119 ac_cv_func_fork_works=$ac_cv_func_fork
15120 fi
15121 if test "x$ac_cv_func_fork_works" = xcross; then
15122 case $host in
15123 *-*-amigaos* | *-*-msdosdjgpp*)
15124 # Override, as these systems have only a dummy fork() stub
15125 ac_cv_func_fork_works=no
15126 ;;
15127 *)
15128 ac_cv_func_fork_works=yes
15129 ;;
15130 esac
15131 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15132 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15133 fi
15134 ac_cv_func_vfork_works=$ac_cv_func_vfork
15135 if test "x$ac_cv_func_vfork" = xyes; then
15136 echo "$as_me:$LINENO: checking for working vfork" >&5
15137 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15138 if test "${ac_cv_func_vfork_works+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141 if test "$cross_compiling" = yes; then
15142 ac_cv_func_vfork_works=cross
15143 else
15144 cat >conftest.$ac_ext <<_ACEOF
15145 #line $LINENO "configure"
15146 #include "confdefs.h"
15147 /* Thanks to Paul Eggert for this test. */
15148 #include <stdio.h>
15149 #include <sys/types.h>
15150 #include <sys/stat.h>
15151 #if HAVE_UNISTD_H
15152 # include <unistd.h>
15153 #endif
15154 #if HAVE_VFORK_H
15155 # include <vfork.h>
15156 #endif
15157 /* On some sparc systems, changes by the child to local and incoming
15158 argument registers are propagated back to the parent. The compiler
15159 is told about this with #include <vfork.h>, but some compilers
15160 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15161 static variable whose address is put into a register that is
15162 clobbered by the vfork. */
15163 static
15164 #ifdef __cplusplus
15165 sparc_address_test (int arg)
15166 # else
15167 sparc_address_test (arg) int arg;
15168 #endif
15169 {
15170 static pid_t child;
15171 if (!child) {
15172 child = vfork ();
15173 if (child < 0) {
15174 perror ("vfork");
15175 _exit(2);
15176 }
15177 if (!child) {
15178 arg = getpid();
15179 write(-1, "", 0);
15180 _exit (arg);
15181 }
15182 }
15183 }
15184
15185 int
15186 main ()
15187 {
15188 pid_t parent = getpid ();
15189 pid_t child;
15190
15191 sparc_address_test ();
15192
15193 child = vfork ();
15194
15195 if (child == 0) {
15196 /* Here is another test for sparc vfork register problems. This
15197 test uses lots of local variables, at least as many local
15198 variables as main has allocated so far including compiler
15199 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15200 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15201 reuse the register of parent for one of the local variables,
15202 since it will think that parent can't possibly be used any more
15203 in this routine. Assigning to the local variable will thus
15204 munge parent in the parent process. */
15205 pid_t
15206 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15207 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15208 /* Convince the compiler that p..p7 are live; otherwise, it might
15209 use the same hardware register for all 8 local variables. */
15210 if (p != p1 || p != p2 || p != p3 || p != p4
15211 || p != p5 || p != p6 || p != p7)
15212 _exit(1);
15213
15214 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15215 from child file descriptors. If the child closes a descriptor
15216 before it execs or exits, this munges the parent's descriptor
15217 as well. Test for this by closing stdout in the child. */
15218 _exit(close(fileno(stdout)) != 0);
15219 } else {
15220 int status;
15221 struct stat st;
15222
15223 while (wait(&status) != child)
15224 ;
15225 exit(
15226 /* Was there some problem with vforking? */
15227 child < 0
15228
15229 /* Did the child fail? (This shouldn't happen.) */
15230 || status
15231
15232 /* Did the vfork/compiler bug occur? */
15233 || parent != getpid()
15234
15235 /* Did the file descriptor bug occur? */
15236 || fstat(fileno(stdout), &st) != 0
15237 );
15238 }
15239 }
15240 _ACEOF
15241 rm -f conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_cv_func_vfork_works=yes
15253 else
15254 echo "$as_me: program exited with status $ac_status" >&5
15255 echo "$as_me: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15257 ( exit $ac_status )
15258 ac_cv_func_vfork_works=no
15259 fi
15260 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15261 fi
15262 fi
15263 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15264 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15265
15266 fi;
15267 if test "x$ac_cv_func_fork_works" = xcross; then
15268 ac_cv_func_vfork_works=ac_cv_func_vfork
15269 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15270 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15271 fi
15272
15273 if test "x$ac_cv_func_vfork_works" = xyes; then
15274
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_WORKING_VFORK 1
15277 _ACEOF
15278
15279 else
15280
15281 cat >>confdefs.h <<\_ACEOF
15282 #define vfork fork
15283 _ACEOF
15284
15285 fi
15286 if test "x$ac_cv_func_fork_works" = xyes; then
15287
15288 cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_WORKING_FORK 1
15290 _ACEOF
15291
15292 fi
15293
15294
15295 echo "$as_me:$LINENO: checking for size_t" >&5
15296 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15297 if test "${ac_cv_type_size_t+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300 cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15302 #include "confdefs.h"
15303 $ac_includes_default
15304 int
15305 main ()
15306 {
15307 if ((size_t *) 0)
15308 return 0;
15309 if (sizeof (size_t))
15310 return 0;
15311 ;
15312 return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_type_size_t=yes
15328 else
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 ac_cv_type_size_t=no
15332 fi
15333 rm -f conftest.$ac_objext conftest.$ac_ext
15334 fi
15335 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15336 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15337 if test $ac_cv_type_size_t = yes; then
15338
15339 cat >>confdefs.h <<_ACEOF
15340 #define HAVE_SIZE_T 1
15341 _ACEOF
15342
15343
15344 fi
15345
15346
15347 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
15348 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
15349 if test "${emacs_cv_c_restrict+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 #include "confdefs.h"
15355 void fred (int *restrict x);
15356 int
15357 main ()
15358 {
15359
15360 ;
15361 return 0;
15362 }
15363 _ACEOF
15364 rm -f conftest.$ac_objext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15366 (eval $ac_compile) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -s conftest.$ac_objext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 emacs_cv_c_restrict=yes
15377 else
15378 echo "$as_me: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 cat >conftest.$ac_ext <<_ACEOF
15381 #line $LINENO "configure"
15382 #include "confdefs.h"
15383 void fred (int *__restrict x);
15384 int
15385 main ()
15386 {
15387
15388 ;
15389 return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 emacs_cv_c_restrict=__restrict
15405 else
15406 echo "$as_me: failed program was:" >&5
15407 cat conftest.$ac_ext >&5
15408 emacs_cv_c_restrict=no
15409 fi
15410 rm -f conftest.$ac_objext conftest.$ac_ext
15411 fi
15412 rm -f conftest.$ac_objext conftest.$ac_ext
15413 fi
15414 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
15415 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
15416 case "$emacs_cv_c_restrict" in
15417 yes) emacs_restrict=restrict;;
15418 no) emacs_restrict="";;
15419 *) emacs_restrict="$emacs_cv_c_restrict";;
15420 esac
15421 if test "$emacs_restrict" != __restrict; then
15422
15423 cat >>confdefs.h <<_ACEOF
15424 #define __restrict $emacs_restrict
15425 _ACEOF
15426
15427 fi
15428
15429 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
15430 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
15431 if test "${emacs_cv_c_restrict_arr+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 else
15434 cat >conftest.$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15436 #include "confdefs.h"
15437 void fred (int x[__restrict]);
15438 int
15439 main ()
15440 {
15441
15442 ;
15443 return 0;
15444 }
15445 _ACEOF
15446 rm -f conftest.$ac_objext
15447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15448 (eval $ac_compile) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 emacs_cv_c_restrict_arr=yes
15459 else
15460 echo "$as_me: failed program was:" >&5
15461 cat conftest.$ac_ext >&5
15462 emacs_cv_c_restrict_arr=no
15463 fi
15464 rm -f conftest.$ac_objext conftest.$ac_ext
15465 fi
15466 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
15467 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
15468 if test "$emacs_cv_c_restrict_arr" = yes; then
15469
15470 cat >>confdefs.h <<\_ACEOF
15471 #define __restrict_arr __restrict
15472 _ACEOF
15473
15474 fi
15475
15476
15477 for ac_header in nlist.h
15478 do
15479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15481 echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 fi
15486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15488 else
15489 # Is the header compilable?
15490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15492 cat >conftest.$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15494 #include "confdefs.h"
15495 $ac_includes_default
15496 #include <$ac_header>
15497 _ACEOF
15498 rm -f conftest.$ac_objext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_header_compiler=yes
15511 else
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 ac_header_compiler=no
15515 fi
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6
15519
15520 # Is the header present?
15521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15523 cat >conftest.$ac_ext <<_ACEOF
15524 #line $LINENO "configure"
15525 #include "confdefs.h"
15526 #include <$ac_header>
15527 _ACEOF
15528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null; then
15536 if test -s conftest.err; then
15537 ac_cpp_err=$ac_c_preproc_warn_flag
15538 else
15539 ac_cpp_err=
15540 fi
15541 else
15542 ac_cpp_err=yes
15543 fi
15544 if test -z "$ac_cpp_err"; then
15545 ac_header_preproc=yes
15546 else
15547 echo "$as_me: failed program was:" >&5
15548 cat conftest.$ac_ext >&5
15549 ac_header_preproc=no
15550 fi
15551 rm -f conftest.err conftest.$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15553 echo "${ECHO_T}$ac_header_preproc" >&6
15554
15555 # So? What about this header?
15556 case $ac_header_compiler:$ac_header_preproc in
15557 yes:no )
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15562 no:yes )
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15569 esac
15570 echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575 eval "$as_ac_Header=$ac_header_preproc"
15576 fi
15577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15579
15580 fi
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584 _ACEOF
15585
15586 cat >>confdefs.h <<\_ACEOF
15587 #define NLIST_STRUCT 1
15588 _ACEOF
15589
15590 fi
15591
15592 done
15593
15594
15595
15596
15597 # Set up the CFLAGS for real compilation, so we can substitute it.
15598 CFLAGS="$REAL_CFLAGS"
15599 CPPFLAGS="$REAL_CPPFLAGS"
15600
15601 #### Find out which version of Emacs this is.
15602 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15603 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15604 if test x"${version}" = x; then
15605 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15606 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15607 { (exit 1); exit 1; }; }
15608 fi
15609
15610 ### Specify what sort of things we'll be editing into Makefile and config.h.
15611 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646 cat >>confdefs.h <<_ACEOF
15647 #define EMACS_CONFIGURATION "${canonical}"
15648 _ACEOF
15649
15650
15651 cat >>confdefs.h <<_ACEOF
15652 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15653 _ACEOF
15654
15655
15656 cat >>confdefs.h <<_ACEOF
15657 #define config_machfile "${machfile}"
15658 _ACEOF
15659
15660
15661 cat >>confdefs.h <<_ACEOF
15662 #define config_opsysfile "${opsysfile}"
15663 _ACEOF
15664
15665
15666 cat >>confdefs.h <<_ACEOF
15667 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15668 _ACEOF
15669
15670
15671 cat >>confdefs.h <<_ACEOF
15672 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15673 _ACEOF
15674
15675
15676 cat >>confdefs.h <<_ACEOF
15677 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15678 _ACEOF
15679
15680
15681 cat >>confdefs.h <<_ACEOF
15682 #define UNEXEC_SRC ${UNEXEC_SRC}
15683 _ACEOF
15684
15685
15686 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15687
15688 cat >>confdefs.h <<\_ACEOF
15689 #define HAVE_X_WINDOWS 1
15690 _ACEOF
15691
15692 fi
15693 if test "${USE_X_TOOLKIT}" != "none" ; then
15694
15695 cat >>confdefs.h <<\_ACEOF
15696 #define USE_X_TOOLKIT 1
15697 _ACEOF
15698
15699 fi
15700 if test "${HAVE_X11}" = "yes" ; then
15701
15702 cat >>confdefs.h <<\_ACEOF
15703 #define HAVE_X11 1
15704 _ACEOF
15705
15706 fi
15707 if test "${HAVE_XFREE386}" = "yes" ; then
15708
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_XFREE386 1
15711 _ACEOF
15712
15713 fi
15714 if test "${HAVE_MENUS}" = "yes" ; then
15715
15716 cat >>confdefs.h <<\_ACEOF
15717 #define HAVE_MENUS 1
15718 _ACEOF
15719
15720 fi
15721 if test "${GNU_MALLOC}" = "yes" ; then
15722
15723 cat >>confdefs.h <<\_ACEOF
15724 #define GNU_MALLOC 1
15725 _ACEOF
15726
15727 fi
15728 if test "${REL_ALLOC}" = "yes" ; then
15729
15730 cat >>confdefs.h <<\_ACEOF
15731 #define REL_ALLOC 1
15732 _ACEOF
15733
15734 fi
15735
15736
15737
15738
15739
15740 #### Report on what we decided to do.
15741 echo "
15742 Configured for \`${canonical}'.
15743
15744 Where should the build process find the source code? ${srcdir}
15745 What operating system and machine description files should Emacs use?
15746 \`${opsysfile}' and \`${machfile}'
15747 What compiler should emacs be built with? ${CC} ${CFLAGS}
15748 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15749 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15750 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15751 What window system should Emacs use? ${window_system}
15752 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
15753
15754 if test -n "${x_includes}"; then
15755 echo " Where do we find X Windows header files? ${x_includes}"
15756 else
15757 echo " Where do we find X Windows header files? Standard dirs"
15758 fi
15759 if test -n "${x_libraries}"; then
15760 echo " Where do we find X Windows libraries? ${x_libraries}"
15761 else
15762 echo " Where do we find X Windows libraries? Standard dirs"
15763 fi
15764
15765 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15766 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15767 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15768 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15769 echo " Does Emacs use -lungif? ${HAVE_GIF}"
15770 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15771 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15772 echo
15773
15774 # Remove any trailing slashes in these variables.
15775 test "${prefix}" != NONE &&
15776 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15777 test "${exec_prefix}" != NONE &&
15778 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15779
15780 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
15781 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
15782 ## from Makefile.c can correctly provide the arg `-traditional' to the
15783 ## C preprocessor.
15784
15785 cat >conftest.$ac_ext <<_ACEOF
15786 #line $LINENO "configure"
15787 #include "confdefs.h"
15788 yes..yes
15789 _ACEOF
15790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15791 $EGREP "yes..yes" >/dev/null 2>&1; then
15792 CPP_NEED_TRADITIONAL=no
15793 else
15794 CPP_NEED_TRADITIONAL=yes
15795 fi
15796 rm -f conftest*
15797
15798
15799 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"
15800 ac_config_commands="$ac_config_commands default"
15801 cat >confcache <<\_ACEOF
15802 # This file is a shell script that caches the results of configure
15803 # tests run on this system so they can be shared between configure
15804 # scripts and configure runs, see configure's option --config-cache.
15805 # It is not useful on other systems. If it contains results you don't
15806 # want to keep, you may remove or edit it.
15807 #
15808 # config.status only pays attention to the cache file if you give it
15809 # the --recheck option to rerun configure.
15810 #
15811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15813 # following values.
15814
15815 _ACEOF
15816
15817 # The following way of writing the cache mishandles newlines in values,
15818 # but we know of no workaround that is simple, portable, and efficient.
15819 # So, don't put newlines in cache variables' values.
15820 # Ultrix sh set writes to stderr and can't be redirected directly,
15821 # and sets the high bit in the cache file unless we assign to the vars.
15822 {
15823 (set) 2>&1 |
15824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15825 *ac_space=\ *)
15826 # `set' does not quote correctly, so add quotes (double-quote
15827 # substitution turns \\\\ into \\, and sed turns \\ into \).
15828 sed -n \
15829 "s/'/'\\\\''/g;
15830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15831 ;;
15832 *)
15833 # `set' quotes correctly as required by POSIX, so do not add quotes.
15834 sed -n \
15835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15836 ;;
15837 esac;
15838 } |
15839 sed '
15840 t clear
15841 : clear
15842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15843 t end
15844 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15845 : end' >>confcache
15846 if cmp -s $cache_file confcache; then :; else
15847 if test -w $cache_file; then
15848 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15849 cat confcache >$cache_file
15850 else
15851 echo "not updating unwritable cache $cache_file"
15852 fi
15853 fi
15854 rm -f confcache
15855
15856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15857 # Let make expand exec_prefix.
15858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15859
15860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15862 # trailing colons and then remove the whole line if VPATH becomes empty
15863 # (actually we leave an empty line to preserve line numbers).
15864 if test "x$srcdir" = x.; then
15865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15866 s/:*\$(srcdir):*/:/;
15867 s/:*\${srcdir}:*/:/;
15868 s/:*@srcdir@:*/:/;
15869 s/^\([^=]*=[ ]*\):*/\1/;
15870 s/:*$//;
15871 s/^[^=]*=[ ]*$//;
15872 }'
15873 fi
15874
15875 DEFS=-DHAVE_CONFIG_H
15876
15877 ac_libobjs=
15878 ac_ltlibobjs=
15879 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15880 # 1. Remove the extension, and $U if already installed.
15881 ac_i=`echo "$ac_i" |
15882 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15883 # 2. Add them.
15884 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15885 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15886 done
15887 LIBOBJS=$ac_libobjs
15888
15889 LTLIBOBJS=$ac_ltlibobjs
15890
15891
15892
15893 : ${CONFIG_STATUS=./config.status}
15894 ac_clean_files_save=$ac_clean_files
15895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15896 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15897 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15898 cat >$CONFIG_STATUS <<_ACEOF
15899 #! $SHELL
15900 # Generated by $as_me.
15901 # Run this file to recreate the current configuration.
15902 # Compiler output produced by configure, useful for debugging
15903 # configure, is in config.log if it exists.
15904
15905 debug=false
15906 SHELL=\${CONFIG_SHELL-$SHELL}
15907 _ACEOF
15908
15909 cat >>$CONFIG_STATUS <<\_ACEOF
15910 ## --------------------- ##
15911 ## M4sh Initialization. ##
15912 ## --------------------- ##
15913
15914 # Be Bourne compatible
15915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15916 emulate sh
15917 NULLCMD=:
15918 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15919 # is contrary to our usage. Disable this feature.
15920 alias -g '${1+"$@"}'='"$@"'
15921 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15922 set -o posix
15923 fi
15924
15925 # Support unset when possible.
15926 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15927 as_unset=unset
15928 else
15929 as_unset=false
15930 fi
15931
15932
15933 # Work around bugs in pre-3.0 UWIN ksh.
15934 $as_unset ENV MAIL MAILPATH
15935 PS1='$ '
15936 PS2='> '
15937 PS4='+ '
15938
15939 # NLS nuisances.
15940 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
15941 do
15942 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15943 eval $as_var=C; export $as_var
15944 else
15945 $as_unset $as_var
15946 fi
15947 done
15948
15949 # Required to use basename.
15950 if expr a : '\(a\)' >/dev/null 2>&1; then
15951 as_expr=expr
15952 else
15953 as_expr=false
15954 fi
15955
15956 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15957 as_basename=basename
15958 else
15959 as_basename=false
15960 fi
15961
15962
15963 # Name of the executable.
15964 as_me=`$as_basename "$0" ||
15965 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15966 X"$0" : 'X\(//\)$' \| \
15967 X"$0" : 'X\(/\)$' \| \
15968 . : '\(.\)' 2>/dev/null ||
15969 echo X/"$0" |
15970 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15971 /^X\/\(\/\/\)$/{ s//\1/; q; }
15972 /^X\/\(\/\).*/{ s//\1/; q; }
15973 s/.*/./; q'`
15974
15975
15976 # PATH needs CR, and LINENO needs CR and PATH.
15977 # Avoid depending upon Character Ranges.
15978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15981 as_cr_digits='0123456789'
15982 as_cr_alnum=$as_cr_Letters$as_cr_digits
15983
15984 # The user is always right.
15985 if test "${PATH_SEPARATOR+set}" != set; then
15986 echo "#! /bin/sh" >conftest.sh
15987 echo "exit 0" >>conftest.sh
15988 chmod +x conftest.sh
15989 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
15990 PATH_SEPARATOR=';'
15991 else
15992 PATH_SEPARATOR=:
15993 fi
15994 rm -f conftest.sh
15995 fi
15996
15997
15998 as_lineno_1=$LINENO
15999 as_lineno_2=$LINENO
16000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16001 test "x$as_lineno_1" != "x$as_lineno_2" &&
16002 test "x$as_lineno_3" = "x$as_lineno_2" || {
16003 # Find who we are. Look in the path if we contain no path at all
16004 # relative or not.
16005 case $0 in
16006 *[\\/]* ) as_myself=$0 ;;
16007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16008 for as_dir in $PATH
16009 do
16010 IFS=$as_save_IFS
16011 test -z "$as_dir" && as_dir=.
16012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16013 done
16014
16015 ;;
16016 esac
16017 # We did not find ourselves, most probably we were run as `sh COMMAND'
16018 # in which case we are not to be found in the path.
16019 if test "x$as_myself" = x; then
16020 as_myself=$0
16021 fi
16022 if test ! -f "$as_myself"; then
16023 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16024 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16025 { (exit 1); exit 1; }; }
16026 fi
16027 case $CONFIG_SHELL in
16028 '')
16029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16030 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16031 do
16032 IFS=$as_save_IFS
16033 test -z "$as_dir" && as_dir=.
16034 for as_base in sh bash ksh sh5; do
16035 case $as_dir in
16036 /*)
16037 if ("$as_dir/$as_base" -c '
16038 as_lineno_1=$LINENO
16039 as_lineno_2=$LINENO
16040 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16041 test "x$as_lineno_1" != "x$as_lineno_2" &&
16042 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16043 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16044 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16045 CONFIG_SHELL=$as_dir/$as_base
16046 export CONFIG_SHELL
16047 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16048 fi;;
16049 esac
16050 done
16051 done
16052 ;;
16053 esac
16054
16055 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16056 # uniformly replaced by the line number. The first 'sed' inserts a
16057 # line-number line before each line; the second 'sed' does the real
16058 # work. The second script uses 'N' to pair each line-number line
16059 # with the numbered line, and appends trailing '-' during
16060 # substitution so that $LINENO is not a special case at line end.
16061 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16062 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16063 sed '=' <$as_myself |
16064 sed '
16065 N
16066 s,$,-,
16067 : loop
16068 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16069 t loop
16070 s,-$,,
16071 s,^['$as_cr_digits']*\n,,
16072 ' >$as_me.lineno &&
16073 chmod +x $as_me.lineno ||
16074 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16075 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16076 { (exit 1); exit 1; }; }
16077
16078 # Don't try to exec as it changes $[0], causing all sort of problems
16079 # (the dirname of $[0] is not the place where we might find the
16080 # original and so on. Autoconf is especially sensible to this).
16081 . ./$as_me.lineno
16082 # Exit status is that of the last command.
16083 exit
16084 }
16085
16086
16087 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16088 *c*,-n*) ECHO_N= ECHO_C='
16089 ' ECHO_T=' ' ;;
16090 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16091 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16092 esac
16093
16094 if expr a : '\(a\)' >/dev/null 2>&1; then
16095 as_expr=expr
16096 else
16097 as_expr=false
16098 fi
16099
16100 rm -f conf$$ conf$$.exe conf$$.file
16101 echo >conf$$.file
16102 if ln -s conf$$.file conf$$ 2>/dev/null; then
16103 # We could just check for DJGPP; but this test a) works b) is more generic
16104 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16105 if test -f conf$$.exe; then
16106 # Don't use ln at all; we don't have any links
16107 as_ln_s='cp -p'
16108 else
16109 as_ln_s='ln -s'
16110 fi
16111 elif ln conf$$.file conf$$ 2>/dev/null; then
16112 as_ln_s=ln
16113 else
16114 as_ln_s='cp -p'
16115 fi
16116 rm -f conf$$ conf$$.exe conf$$.file
16117
16118 if mkdir -p . 2>/dev/null; then
16119 as_mkdir_p=:
16120 else
16121 as_mkdir_p=false
16122 fi
16123
16124 as_executable_p="test -f"
16125
16126 # Sed expression to map a string onto a valid CPP name.
16127 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16128
16129 # Sed expression to map a string onto a valid variable name.
16130 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16131
16132
16133 # IFS
16134 # We need space, tab and new line, in precisely that order.
16135 as_nl='
16136 '
16137 IFS=" $as_nl"
16138
16139 # CDPATH.
16140 $as_unset CDPATH
16141
16142 exec 6>&1
16143
16144 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16145 # report actual input values of CONFIG_FILES etc. instead of their
16146 # values after options handling. Logging --version etc. is OK.
16147 exec 5>>config.log
16148 {
16149 echo
16150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16151 ## Running $as_me. ##
16152 _ASBOX
16153 } >&5
16154 cat >&5 <<_CSEOF
16155
16156 This file was extended by $as_me, which was
16157 generated by GNU Autoconf 2.54. Invocation command line was
16158
16159 CONFIG_FILES = $CONFIG_FILES
16160 CONFIG_HEADERS = $CONFIG_HEADERS
16161 CONFIG_LINKS = $CONFIG_LINKS
16162 CONFIG_COMMANDS = $CONFIG_COMMANDS
16163 $ $0 $@
16164
16165 _CSEOF
16166 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16167 echo >&5
16168 _ACEOF
16169
16170 # Files that config.status was made for.
16171 if test -n "$ac_config_files"; then
16172 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16173 fi
16174
16175 if test -n "$ac_config_headers"; then
16176 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16177 fi
16178
16179 if test -n "$ac_config_links"; then
16180 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16181 fi
16182
16183 if test -n "$ac_config_commands"; then
16184 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16185 fi
16186
16187 cat >>$CONFIG_STATUS <<\_ACEOF
16188
16189 ac_cs_usage="\
16190 \`$as_me' instantiates files from templates according to the
16191 current configuration.
16192
16193 Usage: $0 [OPTIONS] [FILE]...
16194
16195 -h, --help print this help, then exit
16196 -V, --version print version number, then exit
16197 -d, --debug don't remove temporary files
16198 --recheck update $as_me by reconfiguring in the same conditions
16199 --file=FILE[:TEMPLATE]
16200 instantiate the configuration file FILE
16201 --header=FILE[:TEMPLATE]
16202 instantiate the configuration header FILE
16203
16204 Configuration files:
16205 $config_files
16206
16207 Configuration headers:
16208 $config_headers
16209
16210 Configuration commands:
16211 $config_commands
16212
16213 Report bugs to <bug-autoconf@gnu.org>."
16214 _ACEOF
16215
16216 cat >>$CONFIG_STATUS <<_ACEOF
16217 ac_cs_version="\\
16218 config.status
16219 configured by $0, generated by GNU Autoconf 2.54,
16220 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16221
16222 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16223 Free Software Foundation, Inc.
16224 This config.status script is free software; the Free Software Foundation
16225 gives unlimited permission to copy, distribute and modify it."
16226 srcdir=$srcdir
16227 INSTALL="$INSTALL"
16228 _ACEOF
16229
16230 cat >>$CONFIG_STATUS <<\_ACEOF
16231 # If no file are specified by the user, then we need to provide default
16232 # value. By we need to know if files were specified by the user.
16233 ac_need_defaults=:
16234 while test $# != 0
16235 do
16236 case $1 in
16237 --*=*)
16238 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16239 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16240 ac_shift=:
16241 ;;
16242 -*)
16243 ac_option=$1
16244 ac_optarg=$2
16245 ac_shift=shift
16246 ;;
16247 *) # This is not an option, so the user has probably given explicit
16248 # arguments.
16249 ac_option=$1
16250 ac_need_defaults=false;;
16251 esac
16252
16253 case $ac_option in
16254 # Handling of the options.
16255 _ACEOF
16256 cat >>$CONFIG_STATUS <<_ACEOF
16257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16258 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16259 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16260 _ACEOF
16261 cat >>$CONFIG_STATUS <<\_ACEOF
16262 --version | --vers* | -V )
16263 echo "$ac_cs_version"; exit 0 ;;
16264 --he | --h)
16265 # Conflict between --help and --header
16266 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16267 Try \`$0 --help' for more information." >&5
16268 echo "$as_me: error: ambiguous option: $1
16269 Try \`$0 --help' for more information." >&2;}
16270 { (exit 1); exit 1; }; };;
16271 --help | --hel | -h )
16272 echo "$ac_cs_usage"; exit 0 ;;
16273 --debug | --d* | -d )
16274 debug=: ;;
16275 --file | --fil | --fi | --f )
16276 $ac_shift
16277 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16278 ac_need_defaults=false;;
16279 --header | --heade | --head | --hea )
16280 $ac_shift
16281 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16282 ac_need_defaults=false;;
16283
16284 # This is an error.
16285 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16286 Try \`$0 --help' for more information." >&5
16287 echo "$as_me: error: unrecognized option: $1
16288 Try \`$0 --help' for more information." >&2;}
16289 { (exit 1); exit 1; }; } ;;
16290
16291 *) ac_config_targets="$ac_config_targets $1" ;;
16292
16293 esac
16294 shift
16295 done
16296
16297 _ACEOF
16298
16299 cat >>$CONFIG_STATUS <<_ACEOF
16300 #
16301 # INIT-COMMANDS section.
16302 #
16303
16304 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16305
16306 _ACEOF
16307
16308
16309
16310 cat >>$CONFIG_STATUS <<\_ACEOF
16311 for ac_config_target in $ac_config_targets
16312 do
16313 case "$ac_config_target" in
16314 # Handling of arguments.
16315 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16316 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16317 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16318 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16319 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16320 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16321 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16322 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
16323 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
16324 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16325 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16326 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16327 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16328 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16329 { (exit 1); exit 1; }; };;
16330 esac
16331 done
16332
16333 # If the user did not use the arguments to specify the items to instantiate,
16334 # then the envvar interface is used. Set only those that are not.
16335 # We use the long form for the default assignment because of an extremely
16336 # bizarre bug on SunOS 4.1.3.
16337 if $ac_need_defaults; then
16338 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16339 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16340 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16341 fi
16342
16343 # Create a temporary directory, and hook for its removal unless debugging.
16344 $debug ||
16345 {
16346 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16347 trap '{ (exit 1); exit 1; }' 1 2 13 15
16348 }
16349
16350 # Create a (secure) tmp directory for tmp files.
16351 : ${TMPDIR=/tmp}
16352 {
16353 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16354 test -n "$tmp" && test -d "$tmp"
16355 } ||
16356 {
16357 tmp=$TMPDIR/cs$$-$RANDOM
16358 (umask 077 && mkdir $tmp)
16359 } ||
16360 {
16361 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16362 { (exit 1); exit 1; }
16363 }
16364
16365 _ACEOF
16366
16367 cat >>$CONFIG_STATUS <<_ACEOF
16368
16369 #
16370 # CONFIG_FILES section.
16371 #
16372
16373 # No need to generate the scripts if there are no CONFIG_FILES.
16374 # This happens for instance when ./config.status config.h
16375 if test -n "\$CONFIG_FILES"; then
16376 # Protect against being on the right side of a sed subst in config.status.
16377 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16378 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16379 s,@SHELL@,$SHELL,;t t
16380 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16381 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16382 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16383 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16384 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16385 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16386 s,@exec_prefix@,$exec_prefix,;t t
16387 s,@prefix@,$prefix,;t t
16388 s,@program_transform_name@,$program_transform_name,;t t
16389 s,@bindir@,$bindir,;t t
16390 s,@sbindir@,$sbindir,;t t
16391 s,@libexecdir@,$libexecdir,;t t
16392 s,@datadir@,$datadir,;t t
16393 s,@sysconfdir@,$sysconfdir,;t t
16394 s,@sharedstatedir@,$sharedstatedir,;t t
16395 s,@localstatedir@,$localstatedir,;t t
16396 s,@libdir@,$libdir,;t t
16397 s,@includedir@,$includedir,;t t
16398 s,@oldincludedir@,$oldincludedir,;t t
16399 s,@infodir@,$infodir,;t t
16400 s,@mandir@,$mandir,;t t
16401 s,@build_alias@,$build_alias,;t t
16402 s,@host_alias@,$host_alias,;t t
16403 s,@target_alias@,$target_alias,;t t
16404 s,@DEFS@,$DEFS,;t t
16405 s,@ECHO_C@,$ECHO_C,;t t
16406 s,@ECHO_N@,$ECHO_N,;t t
16407 s,@ECHO_T@,$ECHO_T,;t t
16408 s,@LIBS@,$LIBS,;t t
16409 s,@build@,$build,;t t
16410 s,@build_cpu@,$build_cpu,;t t
16411 s,@build_vendor@,$build_vendor,;t t
16412 s,@build_os@,$build_os,;t t
16413 s,@host@,$host,;t t
16414 s,@host_cpu@,$host_cpu,;t t
16415 s,@host_vendor@,$host_vendor,;t t
16416 s,@host_os@,$host_os,;t t
16417 s,@CC@,$CC,;t t
16418 s,@CFLAGS@,$CFLAGS,;t t
16419 s,@LDFLAGS@,$LDFLAGS,;t t
16420 s,@CPPFLAGS@,$CPPFLAGS,;t t
16421 s,@ac_ct_CC@,$ac_ct_CC,;t t
16422 s,@EXEEXT@,$EXEEXT,;t t
16423 s,@OBJEXT@,$OBJEXT,;t t
16424 s,@LN_S@,$LN_S,;t t
16425 s,@CPP@,$CPP,;t t
16426 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16427 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16428 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16429 s,@RANLIB@,$RANLIB,;t t
16430 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16431 s,@EGREP@,$EGREP,;t t
16432 s,@LIBSOUND@,$LIBSOUND,;t t
16433 s,@SET_MAKE@,$SET_MAKE,;t t
16434 s,@ALLOCA@,$ALLOCA,;t t
16435 s,@liblockfile@,$liblockfile,;t t
16436 s,@LIBOBJS@,$LIBOBJS,;t t
16437 s,@NEED_SETGID@,$NEED_SETGID,;t t
16438 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16439 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16440 s,@version@,$version,;t t
16441 s,@configuration@,$configuration,;t t
16442 s,@canonical@,$canonical,;t t
16443 s,@srcdir@,$srcdir,;t t
16444 s,@lispdir@,$lispdir,;t t
16445 s,@locallisppath@,$locallisppath,;t t
16446 s,@lisppath@,$lisppath,;t t
16447 s,@x_default_search_path@,$x_default_search_path,;t t
16448 s,@etcdir@,$etcdir,;t t
16449 s,@archlibdir@,$archlibdir,;t t
16450 s,@docdir@,$docdir,;t t
16451 s,@bitmapdir@,$bitmapdir,;t t
16452 s,@gamedir@,$gamedir,;t t
16453 s,@gameuser@,$gameuser,;t t
16454 s,@c_switch_system@,$c_switch_system,;t t
16455 s,@c_switch_machine@,$c_switch_machine,;t t
16456 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16457 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16458 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16459 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16460 s,@machfile@,$machfile,;t t
16461 s,@opsysfile@,$opsysfile,;t t
16462 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16463 CEOF
16464
16465 _ACEOF
16466
16467 cat >>$CONFIG_STATUS <<\_ACEOF
16468 # Split the substitutions into bite-sized pieces for seds with
16469 # small command number limits, like on Digital OSF/1 and HP-UX.
16470 ac_max_sed_lines=48
16471 ac_sed_frag=1 # Number of current file.
16472 ac_beg=1 # First line for current file.
16473 ac_end=$ac_max_sed_lines # Line after last line for current file.
16474 ac_more_lines=:
16475 ac_sed_cmds=
16476 while $ac_more_lines; do
16477 if test $ac_beg -gt 1; then
16478 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16479 else
16480 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16481 fi
16482 if test ! -s $tmp/subs.frag; then
16483 ac_more_lines=false
16484 else
16485 # The purpose of the label and of the branching condition is to
16486 # speed up the sed processing (if there are no `@' at all, there
16487 # is no need to browse any of the substitutions).
16488 # These are the two extra sed commands mentioned above.
16489 (echo ':t
16490 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16491 if test -z "$ac_sed_cmds"; then
16492 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16493 else
16494 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16495 fi
16496 ac_sed_frag=`expr $ac_sed_frag + 1`
16497 ac_beg=$ac_end
16498 ac_end=`expr $ac_end + $ac_max_sed_lines`
16499 fi
16500 done
16501 if test -z "$ac_sed_cmds"; then
16502 ac_sed_cmds=cat
16503 fi
16504 fi # test -n "$CONFIG_FILES"
16505
16506 _ACEOF
16507 cat >>$CONFIG_STATUS <<\_ACEOF
16508 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16510 case $ac_file in
16511 - | *:- | *:-:* ) # input from stdin
16512 cat >$tmp/stdin
16513 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16515 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16517 * ) ac_file_in=$ac_file.in ;;
16518 esac
16519
16520 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16521 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523 X"$ac_file" : 'X\(//\)[^/]' \| \
16524 X"$ac_file" : 'X\(//\)$' \| \
16525 X"$ac_file" : 'X\(/\)' \| \
16526 . : '\(.\)' 2>/dev/null ||
16527 echo X"$ac_file" |
16528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16530 /^X\(\/\/\)$/{ s//\1/; q; }
16531 /^X\(\/\).*/{ s//\1/; q; }
16532 s/.*/./; q'`
16533 { if $as_mkdir_p; then
16534 mkdir -p "$ac_dir"
16535 else
16536 as_dir="$ac_dir"
16537 as_dirs=
16538 while test ! -d "$as_dir"; do
16539 as_dirs="$as_dir $as_dirs"
16540 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16542 X"$as_dir" : 'X\(//\)[^/]' \| \
16543 X"$as_dir" : 'X\(//\)$' \| \
16544 X"$as_dir" : 'X\(/\)' \| \
16545 . : '\(.\)' 2>/dev/null ||
16546 echo X"$as_dir" |
16547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16549 /^X\(\/\/\)$/{ s//\1/; q; }
16550 /^X\(\/\).*/{ s//\1/; q; }
16551 s/.*/./; q'`
16552 done
16553 test ! -n "$as_dirs" || mkdir $as_dirs
16554 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16555 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16556 { (exit 1); exit 1; }; }; }
16557
16558 ac_builddir=.
16559
16560 if test "$ac_dir" != .; then
16561 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16562 # A "../" for each directory in $ac_dir_suffix.
16563 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16564 else
16565 ac_dir_suffix= ac_top_builddir=
16566 fi
16567
16568 case $srcdir in
16569 .) # No --srcdir option. We are building in place.
16570 ac_srcdir=.
16571 if test -z "$ac_top_builddir"; then
16572 ac_top_srcdir=.
16573 else
16574 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16575 fi ;;
16576 [\\/]* | ?:[\\/]* ) # Absolute path.
16577 ac_srcdir=$srcdir$ac_dir_suffix;
16578 ac_top_srcdir=$srcdir ;;
16579 *) # Relative path.
16580 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16581 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16582 esac
16583 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16584 # absolute.
16585 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16586 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16587 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16588 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16589
16590
16591 case $INSTALL in
16592 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16593 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16594 esac
16595
16596 if test x"$ac_file" != x-; then
16597 { echo "$as_me:$LINENO: creating $ac_file" >&5
16598 echo "$as_me: creating $ac_file" >&6;}
16599 rm -f "$ac_file"
16600 fi
16601 # Let's still pretend it is `configure' which instantiates (i.e., don't
16602 # use $as_me), people would be surprised to read:
16603 # /* config.h. Generated by config.status. */
16604 if test x"$ac_file" = x-; then
16605 configure_input=
16606 else
16607 configure_input="$ac_file. "
16608 fi
16609 configure_input=$configure_input"Generated from `echo $ac_file_in |
16610 sed 's,.*/,,'` by configure."
16611
16612 # First look for the input files in the build tree, otherwise in the
16613 # src tree.
16614 ac_file_inputs=`IFS=:
16615 for f in $ac_file_in; do
16616 case $f in
16617 -) echo $tmp/stdin ;;
16618 [\\/$]*)
16619 # Absolute (can't be DOS-style, as IFS=:)
16620 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16621 echo "$as_me: error: cannot find input file: $f" >&2;}
16622 { (exit 1); exit 1; }; }
16623 echo $f;;
16624 *) # Relative
16625 if test -f "$f"; then
16626 # Build tree
16627 echo $f
16628 elif test -f "$srcdir/$f"; then
16629 # Source tree
16630 echo $srcdir/$f
16631 else
16632 # /dev/null tree
16633 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16634 echo "$as_me: error: cannot find input file: $f" >&2;}
16635 { (exit 1); exit 1; }; }
16636 fi;;
16637 esac
16638 done` || { (exit 1); exit 1; }
16639 _ACEOF
16640 cat >>$CONFIG_STATUS <<_ACEOF
16641 sed "$ac_vpsub
16642 $extrasub
16643 _ACEOF
16644 cat >>$CONFIG_STATUS <<\_ACEOF
16645 :t
16646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16647 s,@configure_input@,$configure_input,;t t
16648 s,@srcdir@,$ac_srcdir,;t t
16649 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16650 s,@top_srcdir@,$ac_top_srcdir,;t t
16651 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16652 s,@builddir@,$ac_builddir,;t t
16653 s,@abs_builddir@,$ac_abs_builddir,;t t
16654 s,@top_builddir@,$ac_top_builddir,;t t
16655 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16656 s,@INSTALL@,$ac_INSTALL,;t t
16657 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16658 rm -f $tmp/stdin
16659 if test x"$ac_file" != x-; then
16660 mv $tmp/out $ac_file
16661 else
16662 cat $tmp/out
16663 rm -f $tmp/out
16664 fi
16665
16666 done
16667 _ACEOF
16668 cat >>$CONFIG_STATUS <<\_ACEOF
16669
16670 #
16671 # CONFIG_HEADER section.
16672 #
16673
16674 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16675 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16676 #
16677 # ac_d sets the value in "#define NAME VALUE" lines.
16678 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16679 ac_dB='[ ].*$,\1#\2'
16680 ac_dC=' '
16681 ac_dD=',;t'
16682 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16683 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16684 ac_uB='$,\1#\2define\3'
16685 ac_uC=' '
16686 ac_uD=',;t'
16687
16688 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16690 case $ac_file in
16691 - | *:- | *:-:* ) # input from stdin
16692 cat >$tmp/stdin
16693 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16695 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16696 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16697 * ) ac_file_in=$ac_file.in ;;
16698 esac
16699
16700 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16701 echo "$as_me: creating $ac_file" >&6;}
16702
16703 # First look for the input files in the build tree, otherwise in the
16704 # src tree.
16705 ac_file_inputs=`IFS=:
16706 for f in $ac_file_in; do
16707 case $f in
16708 -) echo $tmp/stdin ;;
16709 [\\/$]*)
16710 # Absolute (can't be DOS-style, as IFS=:)
16711 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16712 echo "$as_me: error: cannot find input file: $f" >&2;}
16713 { (exit 1); exit 1; }; }
16714 echo $f;;
16715 *) # Relative
16716 if test -f "$f"; then
16717 # Build tree
16718 echo $f
16719 elif test -f "$srcdir/$f"; then
16720 # Source tree
16721 echo $srcdir/$f
16722 else
16723 # /dev/null tree
16724 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16725 echo "$as_me: error: cannot find input file: $f" >&2;}
16726 { (exit 1); exit 1; }; }
16727 fi;;
16728 esac
16729 done` || { (exit 1); exit 1; }
16730 # Remove the trailing spaces.
16731 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16732
16733 _ACEOF
16734
16735 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16736 # `conftest.undefs', that substitutes the proper values into
16737 # config.h.in to produce config.h. The first handles `#define'
16738 # templates, and the second `#undef' templates.
16739 # And first: Protect against being on the right side of a sed subst in
16740 # config.status. Protect against being in an unquoted here document
16741 # in config.status.
16742 rm -f conftest.defines conftest.undefs
16743 # Using a here document instead of a string reduces the quoting nightmare.
16744 # Putting comments in sed scripts is not portable.
16745 #
16746 # `end' is used to avoid that the second main sed command (meant for
16747 # 0-ary CPP macros) applies to n-ary macro definitions.
16748 # See the Autoconf documentation for `clear'.
16749 cat >confdef2sed.sed <<\_ACEOF
16750 s/[\\&,]/\\&/g
16751 s,[\\$`],\\&,g
16752 t clear
16753 : clear
16754 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16755 t end
16756 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16757 : end
16758 _ACEOF
16759 # If some macros were called several times there might be several times
16760 # the same #defines, which is useless. Nevertheless, we may not want to
16761 # sort them, since we want the *last* AC-DEFINE to be honored.
16762 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16763 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16764 rm -f confdef2sed.sed
16765
16766 # This sed command replaces #undef with comments. This is necessary, for
16767 # example, in the case of _POSIX_SOURCE, which is predefined and required
16768 # on some systems where configure will not decide to define it.
16769 cat >>conftest.undefs <<\_ACEOF
16770 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16771 _ACEOF
16772
16773 # Break up conftest.defines because some shells have a limit on the size
16774 # of here documents, and old seds have small limits too (100 cmds).
16775 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16776 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16777 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16778 echo ' :' >>$CONFIG_STATUS
16779 rm -f conftest.tail
16780 while grep . conftest.defines >/dev/null
16781 do
16782 # Write a limited-size here document to $tmp/defines.sed.
16783 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16784 # Speed up: don't consider the non `#define' lines.
16785 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16786 # Work around the forget-to-reset-the-flag bug.
16787 echo 't clr' >>$CONFIG_STATUS
16788 echo ': clr' >>$CONFIG_STATUS
16789 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16790 echo 'CEOF
16791 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16792 rm -f $tmp/in
16793 mv $tmp/out $tmp/in
16794 ' >>$CONFIG_STATUS
16795 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16796 rm -f conftest.defines
16797 mv conftest.tail conftest.defines
16798 done
16799 rm -f conftest.defines
16800 echo ' fi # grep' >>$CONFIG_STATUS
16801 echo >>$CONFIG_STATUS
16802
16803 # Break up conftest.undefs because some shells have a limit on the size
16804 # of here documents, and old seds have small limits too (100 cmds).
16805 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16806 rm -f conftest.tail
16807 while grep . conftest.undefs >/dev/null
16808 do
16809 # Write a limited-size here document to $tmp/undefs.sed.
16810 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16811 # Speed up: don't consider the non `#undef'
16812 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16813 # Work around the forget-to-reset-the-flag bug.
16814 echo 't clr' >>$CONFIG_STATUS
16815 echo ': clr' >>$CONFIG_STATUS
16816 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16817 echo 'CEOF
16818 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16819 rm -f $tmp/in
16820 mv $tmp/out $tmp/in
16821 ' >>$CONFIG_STATUS
16822 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16823 rm -f conftest.undefs
16824 mv conftest.tail conftest.undefs
16825 done
16826 rm -f conftest.undefs
16827
16828 cat >>$CONFIG_STATUS <<\_ACEOF
16829 # Let's still pretend it is `configure' which instantiates (i.e., don't
16830 # use $as_me), people would be surprised to read:
16831 # /* config.h. Generated by config.status. */
16832 if test x"$ac_file" = x-; then
16833 echo "/* Generated by configure. */" >$tmp/config.h
16834 else
16835 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16836 fi
16837 cat $tmp/in >>$tmp/config.h
16838 rm -f $tmp/in
16839 if test x"$ac_file" != x-; then
16840 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16841 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16842 echo "$as_me: $ac_file is unchanged" >&6;}
16843 else
16844 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16846 X"$ac_file" : 'X\(//\)[^/]' \| \
16847 X"$ac_file" : 'X\(//\)$' \| \
16848 X"$ac_file" : 'X\(/\)' \| \
16849 . : '\(.\)' 2>/dev/null ||
16850 echo X"$ac_file" |
16851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16853 /^X\(\/\/\)$/{ s//\1/; q; }
16854 /^X\(\/\).*/{ s//\1/; q; }
16855 s/.*/./; q'`
16856 { if $as_mkdir_p; then
16857 mkdir -p "$ac_dir"
16858 else
16859 as_dir="$ac_dir"
16860 as_dirs=
16861 while test ! -d "$as_dir"; do
16862 as_dirs="$as_dir $as_dirs"
16863 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16865 X"$as_dir" : 'X\(//\)[^/]' \| \
16866 X"$as_dir" : 'X\(//\)$' \| \
16867 X"$as_dir" : 'X\(/\)' \| \
16868 . : '\(.\)' 2>/dev/null ||
16869 echo X"$as_dir" |
16870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16872 /^X\(\/\/\)$/{ s//\1/; q; }
16873 /^X\(\/\).*/{ s//\1/; q; }
16874 s/.*/./; q'`
16875 done
16876 test ! -n "$as_dirs" || mkdir $as_dirs
16877 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16878 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16879 { (exit 1); exit 1; }; }; }
16880
16881 rm -f $ac_file
16882 mv $tmp/config.h $ac_file
16883 fi
16884 else
16885 cat $tmp/config.h
16886 rm -f $tmp/config.h
16887 fi
16888 done
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<\_ACEOF
16891
16892 #
16893 # CONFIG_COMMANDS section.
16894 #
16895 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16896 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16897 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16898 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16899 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16900 X"$ac_dest" : 'X\(//\)[^/]' \| \
16901 X"$ac_dest" : 'X\(//\)$' \| \
16902 X"$ac_dest" : 'X\(/\)' \| \
16903 . : '\(.\)' 2>/dev/null ||
16904 echo X"$ac_dest" |
16905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16907 /^X\(\/\/\)$/{ s//\1/; q; }
16908 /^X\(\/\).*/{ s//\1/; q; }
16909 s/.*/./; q'`
16910 ac_builddir=.
16911
16912 if test "$ac_dir" != .; then
16913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16914 # A "../" for each directory in $ac_dir_suffix.
16915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16916 else
16917 ac_dir_suffix= ac_top_builddir=
16918 fi
16919
16920 case $srcdir in
16921 .) # No --srcdir option. We are building in place.
16922 ac_srcdir=.
16923 if test -z "$ac_top_builddir"; then
16924 ac_top_srcdir=.
16925 else
16926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16927 fi ;;
16928 [\\/]* | ?:[\\/]* ) # Absolute path.
16929 ac_srcdir=$srcdir$ac_dir_suffix;
16930 ac_top_srcdir=$srcdir ;;
16931 *) # Relative path.
16932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16934 esac
16935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16936 # absolute.
16937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16941
16942
16943 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16944 echo "$as_me: executing $ac_dest commands" >&6;}
16945 case $ac_dest in
16946 default )
16947
16948 ### Make the necessary directories, if they don't exist.
16949 for dir in etc lisp ; do
16950 test -d ${dir} || mkdir ${dir}
16951 done
16952
16953 # Build src/Makefile from ${srcdir}/src/Makefile.c
16954 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
16955 # This must be done after src/config.h is built, since we rely on that file.
16956
16957 # Now get this: Some word that is part of the ${srcdir} directory name
16958 # or the ${configuration} value might, just might, happen to be an
16959 # identifier like `sun4' or `i386' or something, and be predefined by
16960 # the C preprocessor to some helpful value like 1, or maybe the empty
16961 # string. Needless to say consequent macro substitutions are less
16962 # than conducive to the makefile finding the correct directory.
16963 undefs="`echo $top_srcdir $configuration $canonical |
16964 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
16965 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
16966 `"
16967
16968 echo creating src/epaths.h
16969 ${MAKE-make} epaths-force
16970
16971 # As of 2000-11-19, newest development versions of GNU cpp preprocess
16972 # `..' to `. .' unless invoked with -traditional
16973
16974 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
16975 CPPFLAGS="$CPPFLAGS -traditional"
16976 fi
16977
16978 echo creating lib-src/Makefile
16979 ( cd lib-src
16980 rm -f junk.c junk1.c junk2.c
16981 sed -e '/start of cpp stuff/q' \
16982 < Makefile.c > junk1.c
16983 sed -e '1,/start of cpp stuff/d'\
16984 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
16985 < Makefile.c > junk.c
16986 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
16987 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
16988 cat junk1.c junk2.c > Makefile.new
16989 rm -f junk.c junk1.c junk2.c
16990 chmod 444 Makefile.new
16991 mv -f Makefile.new Makefile
16992 )
16993
16994 echo creating src/Makefile
16995 ( cd src
16996 rm -f junk.c junk1.c junk2.c
16997 sed -e '/start of cpp stuff/q' \
16998 < Makefile.c > junk1.c
16999 sed -e '1,/start of cpp stuff/d'\
17000 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17001 < Makefile.c > junk.c
17002 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17003 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17004 cat junk1.c junk2.c > Makefile.new
17005 rm -f junk.c junk1.c junk2.c
17006 chmod 444 Makefile.new
17007 mv -f Makefile.new Makefile
17008 )
17009
17010 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17011 echo creating src/.gdbinit
17012 echo source $srcdir/src/.gdbinit > src/.gdbinit
17013 fi
17014
17015 # This is how we know whether to re-run configure in certain cases.
17016 touch src/config.stamp
17017
17018 ;;
17019 esac
17020 done
17021 _ACEOF
17022
17023 cat >>$CONFIG_STATUS <<\_ACEOF
17024
17025 { (exit 0); exit 0; }
17026 _ACEOF
17027 chmod +x $CONFIG_STATUS
17028 ac_clean_files=$ac_clean_files_save
17029
17030
17031 # configure is writing to config.log, and then calls config.status.
17032 # config.status does its own redirection, appending to config.log.
17033 # Unfortunately, on DOS this fails, as config.log is still kept open
17034 # by configure, so config.status won't be able to write to it; its
17035 # output is simply discarded. So we exec the FD to /dev/null,
17036 # effectively closing config.log, so it can be properly (re)opened and
17037 # appended to by config.status. When coming back to configure, we
17038 # need to make the FD available again.
17039 if test "$no_create" != yes; then
17040 ac_cs_success=:
17041 exec 5>/dev/null
17042 $SHELL $CONFIG_STATUS || ac_cs_success=false
17043 exec 5>>config.log
17044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17045 # would make configure fail if this is the last instruction.
17046 $ac_cs_success || { (exit 1); exit 1; }
17047 fi
17048
17049