]> code.delx.au - gnu-emacs/blob - configure
*** empty log message ***
[gnu-emacs] / 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 ### If you add support for a new configuration, add code to this
1571 ### switch statement to recognize your configuration name and select
1572 ### the appropriate operating system and machine description files.
1573
1574 ### You would hope that you could choose an m/*.h file pretty much
1575 ### based on the machine portion of the configuration name, and an s-
1576 ### file based on the operating system portion. However, it turns out
1577 ### that each m/*.h file is pretty manufacturer-specific - for
1578 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1579 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1580 ### machines. So we basically have to have a special case for each
1581 ### configuration name.
1582 ###
1583 ### As far as handling version numbers on operating systems is
1584 ### concerned, make sure things will fail in a fixable way. If
1585 ### /etc/MACHINES doesn't say anything about version numbers, be
1586 ### prepared to handle anything reasonably. If version numbers
1587 ### matter, be sure /etc/MACHINES says something about it.
1588 ###
1589 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1590 ### "System V Release 4"; he writes, "The old convention encouraged
1591 ### confusion between `system' and `release' levels'."
1592
1593 machine='' opsys='' unported=no
1594 case "${canonical}" in
1595
1596 ## FreeBSD ports
1597 *-*-freebsd* )
1598 opsys=freebsd
1599 case "${canonical}" in
1600 alpha*-*-freebsd*) machine=alpha ;;
1601 i[3456]86-*-freebsd*) machine=intel386 ;;
1602 esac
1603 ;;
1604
1605 ## NetBSD ports
1606 *-*-netbsd* )
1607 opsys=netbsd
1608 case "${canonical}" in
1609 alpha*-*-netbsd*) machine=alpha ;;
1610 i[3456]86-*-netbsd*) machine=intel386 ;;
1611 m68k-*-netbsd*)
1612 # This is somewhat bogus.
1613 machine=hp9000s300 ;;
1614 powerpc-apple-netbsd*) machine=macppc ;;
1615 mips-*-netbsd*) machine=pmax ;;
1616 mipsel-*-netbsd*) machine=pmax ;;
1617 mipseb-*-netbsd*) machine=pmax ;;
1618 ns32k-*-netbsd*) machine=ns32000 ;;
1619 powerpc-*-netbsd*) machine=macppc ;;
1620 sparc*-*-netbsd*) machine=sparc ;;
1621 vax-*-netbsd*) machine=vax ;;
1622 arm-*-netbsd*) machine=arm ;;
1623 esac
1624 ;;
1625
1626 ## OpenBSD ports
1627 *-*-openbsd* )
1628 opsys=openbsd
1629 case "${canonical}" in
1630 alpha*-*-openbsd*) machine=alpha ;;
1631 i386-*-openbsd*) machine=intel386 ;;
1632 m68k-*-openbsd*) machine=hp9000s300 ;;
1633 mipsel-*-openbsd*) machine=pmax ;;
1634 ns32k-*-openbsd*) machine=ns32000 ;;
1635 sparc-*-openbsd*) machine=sparc ;;
1636 vax-*-openbsd*) machine=vax ;;
1637 esac
1638 ;;
1639
1640 ## Acorn RISCiX:
1641 arm-acorn-riscix1.1* )
1642 machine=acorn opsys=riscix1-1
1643 ;;
1644 arm-acorn-riscix1.2* | arm-acorn-riscix )
1645 ## This name is riscix12 instead of riscix1.2
1646 ## to avoid a file name conflict on MSDOS.
1647 machine=acorn opsys=riscix12
1648 ;;
1649
1650 ## BSDI ports
1651 *-*-bsdi* )
1652 opsys=bsdi
1653 case "${canonical}" in
1654 i[345]86-*-bsdi*) machine=intel386 ;;
1655 sparc-*-bsdi*) machine=sparc ;;
1656 powerpc-*-bsdi*) machine=macppc ;;
1657 esac
1658 case "${canonical}" in
1659 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1660 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1661 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1662 *-*-bsdi3* ) opsys=bsdos3 ;;
1663 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1664 esac
1665 ;;
1666
1667 ## Alliant machines
1668 ## Strictly speaking, we need the version of the alliant operating
1669 ## system to choose the right machine file, but currently the
1670 ## configuration name doesn't tell us enough to choose the right
1671 ## one; we need to give alliants their own operating system name to
1672 ## do this right. When someone cares, they can help us.
1673 fx80-alliant-* )
1674 machine=alliant4 opsys=bsd4-2
1675 ;;
1676 i860-alliant-* )
1677 machine=alliant-2800 opsys=bsd4-3
1678 ;;
1679
1680 ## Alpha (DEC) machines.
1681 alpha*-dec-osf* )
1682 machine=alpha opsys=osf1
1683 # This is needed to find X11R6.1 libraries for certain tests.
1684 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1685 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1686 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1687 # due to non-traditional preprocessing with the current compiler
1688 # defaults. OSF 4 can also have that compiler version, and there
1689 # seems always to have been a usable /usr/bin/cpp.
1690 NON_GNU_CPP=/usr/bin/cpp
1691 case "${canonical}" in
1692 alpha*-dec-osf[5-9]*)
1693 opsys=osf5-0 ;;
1694 esac
1695 ;;
1696
1697 alpha*-*-linux-gnu* )
1698 machine=alpha opsys=gnu-linux
1699 ;;
1700
1701 arm*-*-linux-gnu* )
1702 machine=arm opsys=gnu-linux
1703 ;;
1704
1705 ppc-*-linux | \
1706 powerpc-*-linux* )
1707 machine=macppc opsys=gnu-linux
1708 ;;
1709
1710 ## Altos 3068
1711 m68*-altos-sysv* )
1712 machine=altos opsys=usg5-2
1713 ;;
1714
1715 ## Amdahl UTS
1716 580-amdahl-sysv* )
1717 machine=amdahl opsys=usg5-2-2
1718 ;;
1719
1720 ## Apollo, Domain/OS
1721 m68*-apollo-* )
1722 machine=apollo opsys=bsd4-3
1723 ;;
1724
1725 ## AT&T 3b2, 3b5, 3b15, 3b20
1726 we32k-att-sysv* )
1727 machine=att3b opsys=usg5-2-2
1728 ;;
1729
1730 ## AT&T 3b1 - The Mighty Unix PC!
1731 m68*-att-sysv* )
1732 machine=7300 opsys=usg5-2-2
1733 ;;
1734
1735 ## Bull dpx20
1736 rs6000-bull-bosx* )
1737 machine=ibmrs6000 opsys=aix3-2
1738 ;;
1739
1740 ## Bull dpx2
1741 m68*-bull-sysv3* )
1742 machine=dpx2 opsys=usg5-3
1743 ;;
1744
1745 ## Bull sps7
1746 m68*-bull-sysv2* )
1747 machine=sps7 opsys=usg5-2
1748 ;;
1749
1750 ## CCI 5/32, 6/32 -- see "Tahoe".
1751
1752 ## Celerity
1753 ## I don't know what configuration name to use for this; config.sub
1754 ## doesn't seem to know anything about it. Hey, Celerity users, get
1755 ## in touch with us!
1756 celerity-celerity-bsd* )
1757 machine=celerity opsys=bsd4-2
1758 ;;
1759
1760 ## Clipper
1761 ## What operating systems does this chip run that Emacs has been
1762 ## tested on?
1763 clipper-* )
1764 machine=clipper
1765 ## We'll use the catch-all code at the bottom to guess the
1766 ## operating system.
1767 ;;
1768
1769 ## Compaq Nonstop
1770 mips-compaq-nonstopux* )
1771 machine=nonstopux opsys=nonstopux
1772 ;;
1773
1774 ## Convex
1775 *-convex-bsd* | *-convex-convexos* )
1776 machine=convex opsys=bsd4-3
1777 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1778 NON_GNU_CPP="cc -E -P"
1779 ;;
1780
1781 ## Cubix QBx/386
1782 i[3456]86-cubix-sysv* )
1783 machine=intel386 opsys=usg5-3
1784 ;;
1785
1786 ## Cydra 5
1787 cydra*-cydrome-sysv* )
1788 machine=cydra5 opsys=usg5-3
1789 ;;
1790
1791 ## Data General AViiON Machines
1792 ## DG changed naming conventions with the release of 5.4.4.10, they
1793 ## dropped the initial 5.4 but left the intervening R. Because of the
1794 ## R this shouldn't conflict with older versions of the OS (which I
1795 ## think were named like dgux4.*). In addition, DG new AViiONs series
1796 ## uses either Motorola M88k or Intel Pentium CPUs.
1797 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1798 machine=aviion opsys=dgux4
1799 ;;
1800 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1801 ## This name is dgux5-4-3 instead of dgux5-4r3
1802 ## to avoid a file name conflict on MSDOS.
1803 machine=aviion opsys=dgux5-4-3
1804 ;;
1805 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1806 machine=aviion opsys=dgux5-4r2
1807 ;;
1808 m88k-dg-dgux* )
1809 machine=aviion opsys=dgux
1810 ;;
1811
1812 ## Data General AViiON Intel (x86) Machines
1813 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1814 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1815 i[345]86-dg-dguxR4* )
1816 machine=aviion-intel opsys=dgux4
1817 ;;
1818
1819 ## DECstations
1820 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1821 machine=pmax opsys=bsd4-2
1822 ;;
1823 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1824 machine=pmax opsys=bsd4-3
1825 ;;
1826 mips-dec-ultrix* )
1827 machine=pmax opsys=ultrix4-3
1828 ;;
1829 mips-dec-osf* )
1830 machine=pmax opsys=osf1
1831 ;;
1832 mips-dec-mach_bsd4.3* )
1833 machine=pmax opsys=mach-bsd4-3
1834 ;;
1835
1836 ## Motorola Delta machines
1837 m68k-motorola-sysv* | m68000-motorola-sysv* )
1838 machine=delta opsys=usg5-3
1839 if test -z "`type gnucc | grep 'not found'`"
1840 then
1841 if test -s /etc/167config
1842 then CC="gnucc -m68040"
1843 else CC="gnucc -m68881"
1844 fi
1845 else
1846 if test -z "`type gcc | grep 'not found'`"
1847 then CC=gcc
1848 else CC=cc
1849 fi
1850 fi
1851 ;;
1852 m88k-motorola-sysv4* )
1853 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1854 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1855 # I hope there are not other 4.0 versions for this machine
1856 # which really need usg5-4 instead.
1857 machine=delta88k opsys=usg5-4-2
1858 ;;
1859 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1860 machine=delta88k opsys=usg5-3
1861 ;;
1862
1863 ## Dual machines
1864 m68*-dual-sysv* )
1865 machine=dual opsys=usg5-2
1866 ;;
1867 m68*-dual-uniplus* )
1868 machine=dual opsys=unipl5-2
1869 ;;
1870
1871 ## Elxsi 6400
1872 elxsi-elxsi-sysv* )
1873 machine=elxsi opsys=usg5-2
1874 ;;
1875
1876 ## Encore machines
1877 ns16k-encore-bsd* )
1878 machine=ns16000 opsys=umax
1879 ;;
1880
1881 ## The GEC 63 - apparently, this port isn't really finished yet.
1882 # I'm sure we finished off the last of the machines, though. -- fx
1883
1884 ## Gould Power Node and NP1
1885 pn-gould-bsd4.2* )
1886 machine=gould opsys=bsd4-2
1887 ;;
1888 pn-gould-bsd4.3* )
1889 machine=gould opsys=bsd4-3
1890 ;;
1891 np1-gould-bsd* )
1892 machine=gould-np1 opsys=bsd4-3
1893 ;;
1894
1895 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1896 ## as far as Emacs is concerned).
1897 m88k-harris-cxux* )
1898 # Build needs to be different on 7.0 and later releases
1899 case "`uname -r`" in
1900 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1901 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1902 esac
1903 NON_GNU_CPP="/lib/cpp"
1904 ;;
1905 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1906 m68k-harris-cxux* )
1907 machine=nh3000 opsys=cxux
1908 ;;
1909 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1910 powerpc-harris-powerunix )
1911 machine=nh6000 opsys=powerunix
1912 NON_GNU_CPP="cc -Xo -E -P"
1913 ;;
1914 ## SR2001/SR2201 running HI-UX/MPP
1915 hppa1.1-hitachi-hiuxmpp* )
1916 machine=sr2k opsys=hiuxmpp
1917 ;;
1918 hppa1.1-hitachi-hiuxwe2* )
1919 machine=sr2k opsys=hiuxwe2
1920 ;;
1921 ## Honeywell XPS100
1922 xps*-honeywell-sysv* )
1923 machine=xps100 opsys=usg5-2
1924 ;;
1925
1926 ## HP 9000 series 200 or 300
1927 m68*-hp-bsd* )
1928 machine=hp9000s300 opsys=bsd4-3
1929 ;;
1930 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1931 m68*-hp-hpux* )
1932 case "`uname -r`" in
1933 ## Someone's system reports A.B8.05 for this.
1934 ## I wonder what other possibilities there are.
1935 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1936 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1937 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1938 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1939 *) machine=hp9000s300 opsys=hpux ;;
1940 esac
1941 ;;
1942
1943 ## HP 9000 series 700 and 800, running HP/UX
1944 hppa*-hp-hpux7* )
1945 machine=hp800 opsys=hpux
1946 ;;
1947 hppa*-hp-hpux8* )
1948 machine=hp800 opsys=hpux8
1949 ;;
1950 hppa*-hp-hpux9shr* )
1951 machine=hp800 opsys=hpux9shr
1952 ;;
1953 hppa*-hp-hpux9* )
1954 machine=hp800 opsys=hpux9
1955 ;;
1956 hppa*-hp-hpux10* )
1957 machine=hp800 opsys=hpux10
1958 ;;
1959 hppa*-hp-hpux1[1-9]* )
1960 machine=hp800 opsys=hpux11
1961 ;;
1962
1963 hppa*-*-linux-gnu* )
1964 machine=hp800 opsys=gnu-linux
1965 ;;
1966
1967 ## HP 9000 series 700 and 800, running HP/UX
1968 hppa*-hp-hpux* )
1969 ## Cross-compilation? Nah!
1970 case "`uname -r`" in
1971 ## Someone's system reports A.B8.05 for this.
1972 ## I wonder what other possibilities there are.
1973 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1974 *.08.* ) machine=hp800 opsys=hpux8 ;;
1975 *.09.* ) machine=hp800 opsys=hpux9 ;;
1976 *) machine=hp800 opsys=hpux10 ;;
1977 esac
1978 ;;
1979 hppa*-*-nextstep* )
1980 machine=hp800 opsys=nextstep
1981 ;;
1982
1983 ## Orion machines
1984 orion-orion-bsd* )
1985 machine=orion opsys=bsd4-2
1986 ;;
1987 clipper-orion-bsd* )
1988 machine=orion105 opsys=bsd4-2
1989 ;;
1990
1991 ## IBM machines
1992 i[3456]86-ibm-aix1.1* )
1993 machine=ibmps2-aix opsys=usg5-2-2
1994 ;;
1995 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1996 machine=ibmps2-aix opsys=usg5-3
1997 ;;
1998 i370-ibm-aix*)
1999 machine=ibm370aix opsys=usg5-3
2000 ;;
2001 s390-*-linux-gnu)
2002 machine=ibms390 opsys=gnu-linux
2003 ;;
2004 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2005 machine=ibmrs6000 opsys=aix3-1
2006 ;;
2007 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2008 machine=ibmrs6000 opsys=aix3-2-5
2009 ;;
2010 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2011 machine=ibmrs6000 opsys=aix4-1
2012 ;;
2013 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2014 machine=ibmrs6000 opsys=aix4-2
2015 ;;
2016 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2017 machine=ibmrs6000 opsys=aix4-2
2018 ;;
2019 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2020 machine=ibmrs6000 opsys=aix4
2021 ;;
2022 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2023 machine=ibmrs6000 opsys=aix4-1
2024 ;;
2025 rs6000-ibm-aix* | powerpc-ibm-aix* )
2026 machine=ibmrs6000 opsys=aix3-2
2027 ;;
2028 romp-ibm-bsd4.3* )
2029 machine=ibmrt opsys=bsd4-3
2030 ;;
2031 romp-ibm-bsd4.2* )
2032 machine=ibmrt opsys=bsd4-2
2033 ;;
2034 romp-ibm-aos4.3* )
2035 machine=ibmrt opsys=bsd4-3
2036 ;;
2037 romp-ibm-aos4.2* )
2038 machine=ibmrt opsys=bsd4-2
2039 ;;
2040 romp-ibm-aos* )
2041 machine=ibmrt opsys=bsd4-3
2042 ;;
2043 romp-ibm-bsd* )
2044 machine=ibmrt opsys=bsd4-3
2045 ;;
2046 romp-ibm-aix* )
2047 machine=ibmrt-aix opsys=usg5-2-2
2048 ;;
2049
2050 ## Integrated Solutions `Optimum V'
2051 m68*-isi-bsd4.2* )
2052 machine=isi-ov opsys=bsd4-2
2053 ;;
2054 m68*-isi-bsd4.3* )
2055 machine=isi-ov opsys=bsd4-3
2056 ;;
2057
2058 ## Intel 386 machines where we do care about the manufacturer
2059 i[3456]86-intsys-sysv* )
2060 machine=is386 opsys=usg5-2-2
2061 ;;
2062
2063 ## Prime EXL
2064 i[3456]86-prime-sysv* )
2065 machine=i386 opsys=usg5-3
2066 ;;
2067
2068 ## Sequent Symmetry running Dynix
2069 i[3456]86-sequent-bsd* )
2070 machine=symmetry opsys=bsd4-3
2071 ;;
2072
2073 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2074 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2075 machine=sequent-ptx opsys=ptx4
2076 NON_GNU_CPP=/lib/cpp
2077 ;;
2078
2079 ## Sequent Symmetry running DYNIX/ptx
2080 ## Use the old cpp rather than the newer ANSI one.
2081 i[3456]86-sequent-ptx* )
2082 machine=sequent-ptx opsys=ptx
2083 NON_GNU_CPP="/lib/cpp"
2084 ;;
2085
2086 ## ncr machine running svr4.3.
2087 i[3456]86-ncr-sysv4.3 )
2088 machine=ncr386 opsys=usg5-4-3
2089 ;;
2090
2091 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2092 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2093 i[3456]86-ncr-sysv* )
2094 machine=ncr386 opsys=usg5-4-2
2095 ;;
2096
2097 ## Intel Paragon OSF/1
2098 i860-intel-osf1* )
2099 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2100 ;;
2101
2102 ## Intel 860
2103 i860-*-sysv4* )
2104 machine=i860 opsys=usg5-4
2105 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2106 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2107 ;;
2108
2109 ## Macintosh PowerPC
2110 powerpc*-*-linux-gnu* )
2111 machine=macppc opsys=gnu-linux
2112 ;;
2113
2114 ## Masscomp machines
2115 m68*-masscomp-rtu* )
2116 machine=masscomp opsys=rtu
2117 ;;
2118
2119 ## Megatest machines
2120 m68*-megatest-bsd* )
2121 machine=mega68 opsys=bsd4-2
2122 ;;
2123
2124 ## Workstations sold by MIPS
2125 ## This is not necessarily all workstations using the MIPS processor -
2126 ## Irises are produced by SGI, and DECstations by DEC.
2127
2128 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2129 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2130 ## it gives for choosing between the alternatives seems to be "Use
2131 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2132 ## the BSD world." I'll assume that these are instructions for
2133 ## handling two odd situations, and that every other situation
2134 ## should use mips.h and usg5-2-2, they being listed first.
2135 mips-mips-usg* )
2136 machine=mips4
2137 ## Fall through to the general code at the bottom to decide on the OS.
2138 ;;
2139 mips-mips-riscos4* )
2140 machine=mips4 opsys=bsd4-3
2141 NON_GNU_CC="cc -systype bsd43"
2142 NON_GNU_CPP="cc -systype bsd43 -E"
2143 ;;
2144 mips-mips-riscos5* )
2145 machine=mips4 opsys=riscos5
2146 NON_GNU_CC="cc -systype bsd43"
2147 NON_GNU_CPP="cc -systype bsd43 -E"
2148 ;;
2149 mips-mips-bsd* )
2150 machine=mips opsys=bsd4-3
2151 ;;
2152 mips-mips-* )
2153 machine=mips opsys=usg5-2-2
2154 ;;
2155
2156 ## NeXT
2157 m68*-next-* | m68k-*-nextstep* )
2158 machine=m68k opsys=nextstep
2159 ;;
2160
2161 ## The complete machine from National Semiconductor
2162 ns32k-ns-genix* )
2163 machine=ns32000 opsys=usg5-2
2164 ;;
2165
2166 ## NCR machines
2167 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2168 machine=tower32 opsys=usg5-2-2
2169 ;;
2170 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2171 machine=tower32v3 opsys=usg5-3
2172 ;;
2173
2174 ## NEC EWS4800
2175 mips-nec-sysv4*)
2176 machine=ews4800 opsys=ux4800
2177 ;;
2178
2179 ## Nixdorf Targon 31
2180 m68*-nixdorf-sysv* )
2181 machine=targon31 opsys=usg5-2-2
2182 ;;
2183
2184 ## Nu (TI or LMI)
2185 m68*-nu-sysv* )
2186 machine=nu opsys=usg5-2
2187 ;;
2188
2189 ## Plexus
2190 m68*-plexus-sysv* )
2191 machine=plexus opsys=usg5-2
2192 ;;
2193
2194 ## PowerPC reference platform
2195 powerpcle-*-solaris2.5* )
2196 machine=prep
2197 opsys=sol2-5
2198 ;;
2199
2200 ## PowerPC reference platform
2201 powerpcle-*-solaris2* )
2202 machine=prep
2203 opsys=sol2-6
2204 ;;
2205
2206 ## Pyramid machines
2207 ## I don't really have any idea what sort of processor the Pyramid has,
2208 ## so I'm assuming it is its own architecture.
2209 pyramid-pyramid-bsd* )
2210 machine=pyramid opsys=bsd4-2
2211 ;;
2212
2213 ## Sequent Balance
2214 ns32k-sequent-bsd4.2* )
2215 machine=sequent opsys=bsd4-2
2216 ;;
2217 ns32k-sequent-bsd4.3* )
2218 machine=sequent opsys=bsd4-3
2219 ;;
2220
2221 ## Siemens Nixdorf
2222 mips-siemens-sysv* | mips-sni-sysv*)
2223 machine=mips-siemens opsys=usg5-4
2224 NON_GNU_CC=/usr/ccs/bin/cc
2225 NON_GNU_CPP=/usr/ccs/lib/cpp
2226 ;;
2227
2228 ## Silicon Graphics machines
2229 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2230 m68*-sgi-iris3.5* )
2231 machine=irist opsys=iris3-5
2232 ;;
2233 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2234 machine=irist opsys=iris3-6
2235 ;;
2236 ## Iris 4D
2237 mips-sgi-irix3* )
2238 machine=iris4d opsys=irix3-3
2239 ;;
2240 mips-sgi-irix4* )
2241 machine=iris4d opsys=irix4-0
2242 ;;
2243 mips-sgi-irix6.5 )
2244 machine=iris4d opsys=irix6-5
2245 # Without defining _LANGUAGE_C, things get masked out in the headers
2246 # so that, for instance, grepping for `free' in stdlib.h fails and
2247 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2248 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2249 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2250 ;;
2251 mips-sgi-irix6* )
2252 machine=iris4d opsys=irix6-0
2253 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2254 # but presumably it does no harm.
2255 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2256 # -32 probably isn't necessary in later v.6s -- anyone know which?
2257 NON_GCC_TEST_OPTIONS=-32
2258 ;;
2259 mips-sgi-irix5.[01]* )
2260 machine=iris4d opsys=irix5-0
2261 ;;
2262 mips-sgi-irix5* | mips-sgi-irix* )
2263 machine=iris4d opsys=irix5-2
2264 ;;
2265
2266 ## SONY machines
2267 m68*-sony-bsd4.2* )
2268 machine=news opsys=bsd4-2
2269 ;;
2270 m68*-sony-bsd4.3* )
2271 machine=news opsys=bsd4-3
2272 ;;
2273 m68*-sony-newsos3* | m68*-sony-news3*)
2274 machine=news opsys=bsd4-3
2275 ;;
2276 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2277 machine=news-risc opsys=bsd4-3
2278 ;;
2279 mips-sony-newsos6* )
2280 machine=news-r6 opsys=newsos6
2281 ;;
2282 mips-sony-news* )
2283 machine=news-risc opsys=newsos5
2284 ;;
2285
2286 ## Stride
2287 m68*-stride-sysv* )
2288 machine=stride opsys=usg5-2
2289 ;;
2290
2291 ## Suns
2292 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2293 machine=sparc opsys=gnu-linux
2294 ;;
2295
2296 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2297 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2298 | rs6000-*-solaris2*)
2299 case "${canonical}" in
2300 m68*-sunos1* ) machine=sun1 ;;
2301 m68*-sunos2* ) machine=sun2 ;;
2302 m68* ) machine=sun3 ;;
2303 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2304 i[3456]86-*-* ) machine=intel386 ;;
2305 powerpcle* ) machine=powerpcle ;;
2306 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2307 sparc* ) machine=sparc ;;
2308 * ) unported=yes ;;
2309 esac
2310 case "${canonical}" in
2311 ## The Sun386 didn't get past 4.0.
2312 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2313 *-sunos4.0* ) opsys=sunos4-0 ;;
2314 *-sunos4.1.[3-9]*noshare )
2315 ## This name is sunos413 instead of sunos4-1-3
2316 ## to avoid a file name conflict on MSDOS.
2317 opsys=sunos413
2318 NON_GNU_CPP=/usr/lib/cpp
2319 NON_GCC_TEST_OPTIONS=-Bstatic
2320 GCC_TEST_OPTIONS=-static
2321 ;;
2322 *-sunos4.1.[3-9]* | *-sunos4shr*)
2323 opsys=sunos4shr
2324 NON_GNU_CPP=/usr/lib/cpp
2325 ;;
2326 *-sunos4* | *-sunos )
2327 opsys=sunos4-1
2328 NON_GCC_TEST_OPTIONS=-Bstatic
2329 GCC_TEST_OPTIONS=-static
2330 ;;
2331 *-sunos5.3* | *-solaris2.3* )
2332 opsys=sol2-3
2333 NON_GNU_CPP=/usr/ccs/lib/cpp
2334 ;;
2335 *-sunos5.4* | *-solaris2.4* )
2336 opsys=sol2-4
2337 NON_GNU_CPP=/usr/ccs/lib/cpp
2338 RANLIB="ar -ts"
2339 ;;
2340 *-sunos5.5* | *-solaris2.5* )
2341 opsys=sol2-5
2342 NON_GNU_CPP=/usr/ccs/lib/cpp
2343 RANLIB="ar -ts"
2344 ;;
2345 *-sunos5.6* | *-solaris2.6* )
2346 opsys=sol2-6
2347 NON_GNU_CPP=/usr/ccs/lib/cpp
2348 RANLIB="ar -ts"
2349 ;;
2350 *-sunos5* | *-solaris* )
2351 opsys=sol2-6
2352 NON_GNU_CPP=/usr/ccs/lib/cpp
2353 ;;
2354 * ) opsys=bsd4-2 ;;
2355 esac
2356 ## Watch out for a compiler that we know will not work.
2357 case "${canonical}" in
2358 *-solaris* | *-sunos5* )
2359 if [ "x$CC" = x/usr/ucb/cc ]; then
2360 ## /usr/ucb/cc doesn't work;
2361 ## we should find some other compiler that does work.
2362 unset CC
2363 fi
2364 ;;
2365 *) ;;
2366 esac
2367 ;;
2368 sparc-*-nextstep* )
2369 machine=sparc opsys=nextstep
2370 ;;
2371
2372 ## Tadpole 68k
2373 m68*-tadpole-sysv* )
2374 machine=tad68k opsys=usg5-3
2375 ;;
2376
2377 ## Tahoe machines
2378 tahoe-tahoe-bsd4.2* )
2379 machine=tahoe opsys=bsd4-2
2380 ;;
2381 tahoe-tahoe-bsd4.3* )
2382 machine=tahoe opsys=bsd4-3
2383 ;;
2384
2385 ## Tandem Integrity S2
2386 mips-tandem-sysv* )
2387 machine=tandem-s2 opsys=usg5-3
2388 ;;
2389
2390 ## Tektronix XD88
2391 m88k-tektronix-sysv3* )
2392 machine=tekxd88 opsys=usg5-3
2393 ;;
2394
2395 ## Tektronix 16000 box (6130?)
2396 ns16k-tektronix-bsd* )
2397 machine=ns16000 opsys=bsd4-2
2398 ;;
2399 ## Tektronix 4300
2400 ## src/m/tek4300.h hints that this is a m68k machine.
2401 m68*-tektronix-bsd* )
2402 machine=tek4300 opsys=bsd4-3
2403 ;;
2404
2405 ## Titan P2 or P3
2406 ## We seem to have lost the machine-description file titan.h!
2407 titan-titan-sysv* )
2408 machine=titan opsys=usg5-3
2409 ;;
2410
2411 ## Ustation E30 (SS5E)
2412 m68*-unisys-uniplus* )
2413 machine=ustation opsystem=unipl5-2
2414 ;;
2415
2416 ## Vaxen.
2417 vax-dec-* )
2418 machine=vax
2419 case "${canonical}" in
2420 *-bsd4.1* ) opsys=bsd4-1 ;;
2421 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2422 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2423 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2424 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2425 *-vms* ) opsys=vms ;;
2426 * ) unported=yes
2427 esac
2428 ;;
2429
2430 ## Whitechapel MG1
2431 ns16k-whitechapel-* )
2432 machine=mg1
2433 ## We don't know what sort of OS runs on these; we'll let the
2434 ## operating system guessing code below try.
2435 ;;
2436
2437 ## Wicat
2438 m68*-wicat-sysv* )
2439 machine=wicat opsys=usg5-2
2440 ;;
2441
2442 ## IA-64
2443 ia64*-*-linux* )
2444 machine=ia64 opsys=gnu-linux
2445 ;;
2446
2447 ## Intel 386 machines where we don't care about the manufacturer
2448 i[3456]86-*-* )
2449 machine=intel386
2450 case "${canonical}" in
2451 *-lynxos* ) opsys=lynxos ;;
2452 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2453 *-isc2.2* ) opsys=isc2-2 ;;
2454 *-isc4.0* ) opsys=isc4-0 ;;
2455 *-isc4.* ) opsys=isc4-1
2456 GCC_TEST_OPTIONS=-posix
2457 NON_GCC_TEST_OPTIONS=-Xp
2458 ;;
2459 *-isc* ) opsys=isc3-0 ;;
2460 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2461 *-esix* ) opsys=esix ;;
2462 *-xenix* ) opsys=xenix ;;
2463 *-linux-gnu* ) opsys=gnu-linux ;;
2464 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2465 *-sco3.2v5* ) opsys=sco5
2466 NON_GNU_CPP=/lib/cpp
2467 # Prevent -belf from being passed to $CPP.
2468 # /lib/cpp does not accept it.
2469 OVERRIDE_CPPFLAGS=" "
2470 ;;
2471 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2472 *-386bsd* ) opsys=386bsd ;;
2473 *-nextstep* ) opsys=nextstep ;;
2474 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2475 esac
2476 ;;
2477
2478 ## m68k Linux-based GNU system
2479 m68k-*-linux-gnu* )
2480 machine=m68k opsys=gnu-linux
2481 ;;
2482
2483 ## Mips Linux-based GNU system
2484 mips-*-linux-gnu* )
2485 machine=mips opsys=gnu-linux
2486 ;;
2487
2488 ## UXP/DS
2489 sparc-fujitsu-sysv4* )
2490 machine=sparc opsys=uxpds
2491 NON_GNU_CPP=/usr/ccs/lib/cpp
2492 RANLIB="ar -ts"
2493 ;;
2494
2495 ## UXP/V
2496 f301-fujitsu-uxpv4.1)
2497 machine=f301 opsys=uxpv
2498 ;;
2499
2500 ## Darwin / Mac OS X
2501 powerpc-apple-darwin* )
2502 machine=powermac opsys=darwin
2503 # Define CPP as follows to make autoconf work correctly.
2504 CPP="cc -E -traditional-cpp"
2505 ;;
2506
2507 ## AMD x86-64 Linux-based GNU system
2508 x86_64-*-linux-gnu* )
2509 machine=amdx86-64 opsys=gnu-linux
2510 ;;
2511
2512 * )
2513 unported=yes
2514 ;;
2515 esac
2516
2517 ### If the code above didn't choose an operating system, just choose
2518 ### an operating system based on the configuration name. You really
2519 ### only want to use this when you have no idea what the right
2520 ### operating system is; if you know what operating systems a machine
2521 ### runs, it's cleaner to make it explicit in the case statement
2522 ### above.
2523 if test x"${opsys}" = x; then
2524 case "${canonical}" in
2525 *-gnu* ) opsys=gnu ;;
2526 *-bsd4.[01] ) opsys=bsd4-1 ;;
2527 *-bsd4.2 ) opsys=bsd4-2 ;;
2528 *-bsd4.3 ) opsys=bsd4-3 ;;
2529 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2530 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2531 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2532 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2533 *-sysv4.2uw* ) opsys=unixware ;;
2534 *-sysv4.1* | *-sysvr4.1* )
2535 NON_GNU_CPP=/usr/lib/cpp
2536 opsys=usg5-4 ;;
2537 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2538 if [ x$NON_GNU_CPP = x ]; then
2539 if [ -f /usr/ccs/lib/cpp ]; then
2540 NON_GNU_CPP=/usr/ccs/lib/cpp
2541 else
2542 NON_GNU_CPP=/lib/cpp
2543 fi
2544 fi
2545 opsys=usg5-4-2 ;;
2546 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2547 * )
2548 unported=yes
2549 ;;
2550 esac
2551 fi
2552
2553
2554 if test $unported = yes; then
2555 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2556 Check \`etc/MACHINES' for recognized configuration names." >&5
2557 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2558 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2559 { (exit 1); exit 1; }; }
2560 fi
2561
2562 machfile="m/${machine}.h"
2563 opsysfile="s/${opsys}.h"
2564
2565
2566 #### Choose a compiler.
2567 test -n "$CC" && cc_specified=yes
2568
2569 # Save the value of CFLAGS that the user specified.
2570 SPECIFIED_CFLAGS="$CFLAGS"
2571
2572 case ${with_gcc} in
2573 "yes" ) CC="gcc" GCC=yes ;;
2574 "no" ) : ${CC=cc} ;;
2575 * )
2576 esac
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611 echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6
2613 else
2614 echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6
2616 fi
2617
2618 fi
2619 if test -z "$ac_cv_prog_CC"; then
2620 ac_ct_CC=$CC
2621 # Extract the first word of "gcc", so it can be a program name with args.
2622 set dummy gcc; ac_word=$2
2623 echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_ac_ct_CC="gcc"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642 done
2643 done
2644
2645 fi
2646 fi
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6
2651 else
2652 echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6
2654 fi
2655
2656 CC=$ac_ct_CC
2657 else
2658 CC="$ac_cv_prog_CC"
2659 fi
2660
2661 if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}cc; ac_word=$2
2665 echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686
2687 fi
2688 fi
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691 echo "$as_me:$LINENO: result: $CC" >&5
2692 echo "${ECHO_T}$CC" >&6
2693 else
2694 echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6
2696 fi
2697
2698 fi
2699 if test -z "$ac_cv_prog_CC"; then
2700 ac_ct_CC=$CC
2701 # Extract the first word of "cc", so it can be a program name with args.
2702 set dummy cc; ac_word=$2
2703 echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 if test -n "$ac_ct_CC"; then
2709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_ac_ct_CC="cc"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724
2725 fi
2726 fi
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6
2731 else
2732 echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2734 fi
2735
2736 CC=$ac_ct_CC
2737 else
2738 CC="$ac_cv_prog_CC"
2739 fi
2740
2741 fi
2742 if test -z "$CC"; then
2743 # Extract the first word of "cc", so it can be a program name with args.
2744 set dummy cc; ac_word=$2
2745 echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 ac_prog_rejected=no
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2762 ac_prog_rejected=yes
2763 continue
2764 fi
2765 ac_cv_prog_CC="cc"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771
2772 if test $ac_prog_rejected = yes; then
2773 # We found a bogon in the path, so make sure we never use it.
2774 set dummy $ac_cv_prog_CC
2775 shift
2776 if test $# != 0; then
2777 # We chose a different compiler from the bogus one.
2778 # However, it has the same basename, so the bogon will be chosen
2779 # first if we set CC to just the basename; use the full file name.
2780 shift
2781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2782 fi
2783 fi
2784 fi
2785 fi
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 echo "$as_me:$LINENO: result: $CC" >&5
2789 echo "${ECHO_T}$CC" >&6
2790 else
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2793 fi
2794
2795 fi
2796 if test -z "$CC"; then
2797 if test -n "$ac_tool_prefix"; then
2798 for ac_prog in cl
2799 do
2800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2830 else
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2833 fi
2834
2835 test -n "$CC" && break
2836 done
2837 fi
2838 if test -z "$CC"; then
2839 ac_ct_CC=$CC
2840 for ac_prog in cl
2841 do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC="$ac_prog"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2872 else
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2875 fi
2876
2877 test -n "$ac_ct_CC" && break
2878 done
2879
2880 CC=$ac_ct_CC
2881 fi
2882
2883 fi
2884
2885
2886 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2887 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2888 { (exit 1); exit 1; }; }
2889
2890 # Provide some information about the compiler.
2891 echo "$as_me:$LINENO:" \
2892 "checking for C compiler version" >&5
2893 ac_compiler=`set X $ac_compile; echo $2`
2894 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2895 (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2905 (eval $ac_compiler -V </dev/null >&5) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909
2910 cat >conftest.$ac_ext <<_ACEOF
2911 #line $LINENO "configure"
2912 #include "confdefs.h"
2913
2914 int
2915 main ()
2916 {
2917
2918 ;
2919 return 0;
2920 }
2921 _ACEOF
2922 ac_clean_files_save=$ac_clean_files
2923 ac_clean_files="$ac_clean_files a.out a.exe"
2924 # Try to create an executable without -o first, disregard a.out.
2925 # It will help us diagnose broken compilers, and finding out an intuition
2926 # of exeext.
2927 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2928 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2929 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2931 (eval $ac_link_default) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # Find the output, starting from the most likely. This scheme is
2936 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2937 # resort.
2938
2939 # Be careful to initialize this variable, since it used to be cached.
2940 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2941 ac_cv_exeext=
2942 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2943 test -f "$ac_file" || continue
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2946 a.out ) # We found the default executable, but exeext='' is most
2947 # certainly right.
2948 break;;
2949 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2951 export ac_cv_exeext
2952 break;;
2953 * ) break;;
2954 esac
2955 done
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2960 check \`config.log' for details." >&5
2961 echo "$as_me: error: C compiler cannot create executables
2962 check \`config.log' for details." >&2;}
2963 { (exit 77); exit 77; }; }
2964 fi
2965
2966 ac_exeext=$ac_cv_exeext
2967 echo "$as_me:$LINENO: result: $ac_file" >&5
2968 echo "${ECHO_T}$ac_file" >&6
2969
2970 # Check the compiler produces executables we can run. If not, either
2971 # the compiler is broken, or we cross compile.
2972 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2973 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2974 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2975 # If not cross compiling, check that we can run a simple program.
2976 if test "$cross_compiling" != yes; then
2977 if { ac_try='./$ac_file'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 (eval $ac_try) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2983 cross_compiling=no
2984 else
2985 if test "$cross_compiling" = maybe; then
2986 cross_compiling=yes
2987 else
2988 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2989 If you meant to cross compile, use \`--host'." >&5
2990 echo "$as_me: error: cannot run C compiled programs.
2991 If you meant to cross compile, use \`--host'." >&2;}
2992 { (exit 1); exit 1; }; }
2993 fi
2994 fi
2995 fi
2996 echo "$as_me:$LINENO: result: yes" >&5
2997 echo "${ECHO_T}yes" >&6
2998
2999 rm -f a.out a.exe conftest$ac_cv_exeext
3000 ac_clean_files=$ac_clean_files_save
3001 # Check the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3004 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3005 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3006 echo "${ECHO_T}$cross_compiling" >&6
3007
3008 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3009 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3011 (eval $ac_link) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; then
3015 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3016 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3017 # work properly (i.e., refer to `conftest.exe'), while it won't with
3018 # `rm'.
3019 for ac_file in conftest.exe conftest conftest.*; do
3020 test -f "$ac_file" || continue
3021 case $ac_file in
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 export ac_cv_exeext
3025 break;;
3026 * ) break;;
3027 esac
3028 done
3029 else
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3031 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034
3035 rm -f conftest$ac_cv_exeext
3036 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3037 echo "${ECHO_T}$ac_cv_exeext" >&6
3038
3039 rm -f conftest.$ac_ext
3040 EXEEXT=$ac_cv_exeext
3041 ac_exeext=$EXEEXT
3042 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3043 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3044 if test "${ac_cv_objext+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 #include "confdefs.h"
3050
3051 int
3052 main ()
3053 {
3054
3055 ;
3056 return 0;
3057 }
3058 _ACEOF
3059 rm -f conftest.o conftest.obj
3060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061 (eval $ac_compile) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3069 break;;
3070 esac
3071 done
3072 else
3073 echo "$as_me: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3076 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3077 { (exit 1); exit 1; }; }
3078 fi
3079
3080 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3081 fi
3082 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3083 echo "${ECHO_T}$ac_cv_objext" >&6
3084 OBJEXT=$ac_cv_objext
3085 ac_objext=$OBJEXT
3086 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3087 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3088 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 cat >conftest.$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 #include "confdefs.h"
3094
3095 int
3096 main ()
3097 {
3098 #ifndef __GNUC__
3099 choke me
3100 #endif
3101
3102 ;
3103 return 0;
3104 }
3105 _ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3108 (eval $ac_compile) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_compiler_gnu=yes
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3122 ac_compiler_gnu=no
3123 fi
3124 rm -f conftest.$ac_objext conftest.$ac_ext
3125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3126
3127 fi
3128 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3130 GCC=`test $ac_compiler_gnu = yes && echo yes`
3131 ac_test_CFLAGS=${CFLAGS+set}
3132 ac_save_CFLAGS=$CFLAGS
3133 CFLAGS="-g"
3134 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3135 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3136 if test "${ac_cv_prog_cc_g+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139 cat >conftest.$ac_ext <<_ACEOF
3140 #line $LINENO "configure"
3141 #include "confdefs.h"
3142
3143 int
3144 main ()
3145 {
3146
3147 ;
3148 return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_cv_prog_cc_g=yes
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 ac_cv_prog_cc_g=no
3168 fi
3169 rm -f conftest.$ac_objext conftest.$ac_ext
3170 fi
3171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3173 if test "$ac_test_CFLAGS" = set; then
3174 CFLAGS=$ac_save_CFLAGS
3175 elif test $ac_cv_prog_cc_g = yes; then
3176 if test "$GCC" = yes; then
3177 CFLAGS="-g -O2"
3178 else
3179 CFLAGS="-g"
3180 fi
3181 else
3182 if test "$GCC" = yes; then
3183 CFLAGS="-O2"
3184 else
3185 CFLAGS=
3186 fi
3187 fi
3188 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3189 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3190 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 ac_cv_prog_cc_stdc=no
3194 ac_save_CC=$CC
3195 cat >conftest.$ac_ext <<_ACEOF
3196 #line $LINENO "configure"
3197 #include "confdefs.h"
3198 #include <stdarg.h>
3199 #include <stdio.h>
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3203 struct buf { int x; };
3204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3205 static char *e (p, i)
3206 char **p;
3207 int i;
3208 {
3209 return p[i];
3210 }
3211 static char *f (char * (*g) (char **, int), char **p, ...)
3212 {
3213 char *s;
3214 va_list v;
3215 va_start (v,p);
3216 s = g (p, va_arg (v,int));
3217 va_end (v);
3218 return s;
3219 }
3220 int test (int i, double x);
3221 struct s1 {int (*f) (int a);};
3222 struct s2 {int (*f) (double a);};
3223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3224 int argc;
3225 char **argv;
3226 int
3227 main ()
3228 {
3229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3230 ;
3231 return 0;
3232 }
3233 _ACEOF
3234 # Don't try gcc -ansi; that turns off useful extensions and
3235 # breaks some systems' header files.
3236 # AIX -qlanglvl=ansi
3237 # Ultrix and OSF/1 -std1
3238 # HP-UX 10.20 and later -Ae
3239 # HP-UX older versions -Aa -D_HPUX_SOURCE
3240 # SVR4 -Xc -D__EXTENSIONS__
3241 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242 do
3243 CC="$ac_save_CC $ac_arg"
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_prog_cc_stdc=$ac_arg
3257 break
3258 else
3259 echo "$as_me: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 fi
3262 rm -f conftest.$ac_objext
3263 done
3264 rm -f conftest.$ac_ext conftest.$ac_objext
3265 CC=$ac_save_CC
3266
3267 fi
3268
3269 case "x$ac_cv_prog_cc_stdc" in
3270 x|xno)
3271 echo "$as_me:$LINENO: result: none needed" >&5
3272 echo "${ECHO_T}none needed" >&6 ;;
3273 *)
3274 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3275 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3276 CC="$CC $ac_cv_prog_cc_stdc" ;;
3277 esac
3278
3279 # Some people use a C++ compiler to compile C. Since we use `exit',
3280 # in C++ we need to declare it. In case someone uses the same compiler
3281 # for both compiling C and C++ we need to have the C++ compiler decide
3282 # the declaration of exit, since it's the most demanding environment.
3283 cat >conftest.$ac_ext <<_ACEOF
3284 #ifndef __cplusplus
3285 choke me
3286 #endif
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 for ac_declaration in \
3301 ''\
3302 '#include <stdlib.h>' \
3303 'extern "C" void std::exit (int) throw (); using std::exit;' \
3304 'extern "C" void std::exit (int); using std::exit;' \
3305 'extern "C" void exit (int) throw ();' \
3306 'extern "C" void exit (int);' \
3307 'void exit (int);'
3308 do
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3311 #include "confdefs.h"
3312 #include <stdlib.h>
3313 $ac_declaration
3314 int
3315 main ()
3316 {
3317 exit (42);
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 :
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 continue
3339 fi
3340 rm -f conftest.$ac_objext conftest.$ac_ext
3341 cat >conftest.$ac_ext <<_ACEOF
3342 #line $LINENO "configure"
3343 #include "confdefs.h"
3344 $ac_declaration
3345 int
3346 main ()
3347 {
3348 exit (42);
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355 (eval $ac_compile) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 break
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3369 fi
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3371 done
3372 rm -f conftest*
3373 if test -n "$ac_declaration"; then
3374 echo '#ifdef __cplusplus' >>confdefs.h
3375 echo $ac_declaration >>confdefs.h
3376 echo '#endif' >>confdefs.h
3377 fi
3378
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 fi
3383 rm -f conftest.$ac_objext conftest.$ac_ext
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389
3390
3391 # On Suns, sometimes $CPP names a directory.
3392 if test -n "$CPP" && test -d "$CPP"; then
3393 CPP=
3394 fi
3395
3396 #### Some systems specify a CPP to use unless we are using GCC.
3397 #### Now that we know whether we are using GCC, we can decide whether
3398 #### to use that one.
3399 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3400 then
3401 CPP="$NON_GNU_CPP"
3402 fi
3403
3404 #### Some systems specify a CC to use unless we are using GCC.
3405 #### Now that we know whether we are using GCC, we can decide whether
3406 #### to use that one.
3407 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3408 test x$cc_specified != xyes
3409 then
3410 CC="$NON_GNU_CC"
3411 fi
3412
3413 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3414 then
3415 CC="$CC $GCC_TEST_OPTIONS"
3416 fi
3417
3418 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3419 then
3420 CC="$CC $NON_GCC_TEST_OPTIONS"
3421 fi
3422
3423 #### Some other nice autoconf tests. If you add a test here which
3424 #### should make an entry in src/config.h, don't forget to add an
3425 #### #undef clause to src/config.h.in for autoconf to modify.
3426
3427 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3428 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3429 LN_S=$as_ln_s
3430 if test "$LN_S" = "ln -s"; then
3431 echo "$as_me:$LINENO: result: yes" >&5
3432 echo "${ECHO_T}yes" >&6
3433 else
3434 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3435 echo "${ECHO_T}no, using $LN_S" >&6
3436 fi
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3444 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3445 # On Suns, sometimes $CPP names a directory.
3446 if test -n "$CPP" && test -d "$CPP"; then
3447 CPP=
3448 fi
3449 if test -z "$CPP"; then
3450 if test "${ac_cv_prog_CPP+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 # Double quotes because CPP needs to be expanded
3454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3455 do
3456 ac_preproc_ok=false
3457 for ac_c_preproc_warn_flag in '' yes
3458 do
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # On the NeXT, cc -E runs the code through the compiler's parser,
3462 # not just through cpp. "Syntax error" is here to catch this case.
3463 cat >conftest.$ac_ext <<_ACEOF
3464 #line $LINENO "configure"
3465 #include "confdefs.h"
3466 #include <assert.h>
3467 Syntax error
3468 _ACEOF
3469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 else
3480 ac_cpp_err=
3481 fi
3482 else
3483 ac_cpp_err=yes
3484 fi
3485 if test -z "$ac_cpp_err"; then
3486 :
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3490 # Broken: fails on valid input.
3491 continue
3492 fi
3493 rm -f conftest.err conftest.$ac_ext
3494
3495 # OK, works on sane cases. Now check whether non-existent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3498 #line $LINENO "configure"
3499 #include "confdefs.h"
3500 #include <ac_nonexistent.h>
3501 _ACEOF
3502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null; then
3510 if test -s conftest.err; then
3511 ac_cpp_err=$ac_c_preproc_warn_flag
3512 else
3513 ac_cpp_err=
3514 fi
3515 else
3516 ac_cpp_err=yes
3517 fi
3518 if test -z "$ac_cpp_err"; then
3519 # Broken: success on invalid input.
3520 continue
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3524 # Passes both tests.
3525 ac_preproc_ok=:
3526 break
3527 fi
3528 rm -f conftest.err conftest.$ac_ext
3529
3530 done
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then
3534 break
3535 fi
3536
3537 done
3538 ac_cv_prog_CPP=$CPP
3539
3540 fi
3541 CPP=$ac_cv_prog_CPP
3542 else
3543 ac_cv_prog_CPP=$CPP
3544 fi
3545 echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6
3547 ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3549 do
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 #line $LINENO "configure"
3556 #include "confdefs.h"
3557 #include <assert.h>
3558 Syntax error
3559 _ACEOF
3560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null; then
3568 if test -s conftest.err; then
3569 ac_cpp_err=$ac_c_preproc_warn_flag
3570 else
3571 ac_cpp_err=
3572 fi
3573 else
3574 ac_cpp_err=yes
3575 fi
3576 if test -z "$ac_cpp_err"; then
3577 :
3578 else
3579 echo "$as_me: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 # Broken: fails on valid input.
3582 continue
3583 fi
3584 rm -f conftest.err conftest.$ac_ext
3585
3586 # OK, works on sane cases. Now check whether non-existent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 #include "confdefs.h"
3591 #include <ac_nonexistent.h>
3592 _ACEOF
3593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null; then
3601 if test -s conftest.err; then
3602 ac_cpp_err=$ac_c_preproc_warn_flag
3603 else
3604 ac_cpp_err=
3605 fi
3606 else
3607 ac_cpp_err=yes
3608 fi
3609 if test -z "$ac_cpp_err"; then
3610 # Broken: success on invalid input.
3611 continue
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3615 # Passes both tests.
3616 ac_preproc_ok=:
3617 break
3618 fi
3619 rm -f conftest.err conftest.$ac_ext
3620
3621 done
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then
3625 :
3626 else
3627 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3628 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3629 { (exit 1); exit 1; }; }
3630 fi
3631
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638 # Find a good install program. We prefer a C program (faster),
3639 # so one script is as good as another. But avoid the broken or
3640 # incompatible versions:
3641 # SysV /etc/install, /usr/sbin/install
3642 # SunOS /usr/etc/install
3643 # IRIX /sbin/install
3644 # AIX /bin/install
3645 # AmigaOS /C/install, which installs bootblocks on floppy discs
3646 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3647 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3648 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3649 # ./install, which can be erroneously created by make from ./install.sh.
3650 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3651 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3652 if test -z "$INSTALL"; then
3653 if test "${ac_cv_path_install+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 # Account for people who put trailing slashes in PATH elements.
3662 case $as_dir/ in
3663 ./ | .// | /cC/* | \
3664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3665 /usr/ucb/* ) ;;
3666 *)
3667 # OSF1 and SCO ODT 3.0 have their own names for install.
3668 # Don't use installbsd from OSF since it installs stuff as root
3669 # by default.
3670 for ac_prog in ginstall scoinst install; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3673 if test $ac_prog = install &&
3674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675 # AIX install. It has an incompatible calling convention.
3676 :
3677 elif test $ac_prog = install &&
3678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # program-specific install script used by HP pwplus--don't use.
3680 :
3681 else
3682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3683 break 3
3684 fi
3685 fi
3686 done
3687 done
3688 ;;
3689 esac
3690 done
3691
3692
3693 fi
3694 if test "${ac_cv_path_install+set}" = set; then
3695 INSTALL=$ac_cv_path_install
3696 else
3697 # As a last resort, use the slow shell script. We don't cache a
3698 # path for INSTALL within a source directory, because that will
3699 # break other packages using the cache if that directory is
3700 # removed, or if the path is relative.
3701 INSTALL=$ac_install_sh
3702 fi
3703 fi
3704 echo "$as_me:$LINENO: result: $INSTALL" >&5
3705 echo "${ECHO_T}$INSTALL" >&6
3706
3707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3708 # It thinks the first close brace ends the variable substitution.
3709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3710
3711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3712
3713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3714
3715 if test "x$RANLIB" = x; then
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_prog_RANLIB+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 if test -n "$RANLIB"; then
3725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738 done
3739 done
3740
3741 fi
3742 fi
3743 RANLIB=$ac_cv_prog_RANLIB
3744 if test -n "$RANLIB"; then
3745 echo "$as_me:$LINENO: result: $RANLIB" >&5
3746 echo "${ECHO_T}$RANLIB" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 fi
3751
3752 fi
3753 if test -z "$ac_cv_prog_RANLIB"; then
3754 ac_ct_RANLIB=$RANLIB
3755 # Extract the first word of "ranlib", so it can be a program name with args.
3756 set dummy ranlib; ac_word=$2
3757 echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 if test -n "$ac_ct_RANLIB"; then
3763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_ac_ct_RANLIB="ranlib"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778
3779 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3780 fi
3781 fi
3782 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3783 if test -n "$ac_ct_RANLIB"; then
3784 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3785 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3786 else
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3789 fi
3790
3791 RANLIB=$ac_ct_RANLIB
3792 else
3793 RANLIB="$ac_cv_prog_RANLIB"
3794 fi
3795
3796 fi
3797
3798
3799 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3800 then
3801 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3802 fi
3803
3804 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3805 then
3806 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3807 fi
3808
3809
3810
3811 echo "$as_me:$LINENO: checking for egrep" >&5
3812 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3813 if test "${ac_cv_prog_egrep+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3817 then ac_cv_prog_egrep='grep -E'
3818 else ac_cv_prog_egrep='egrep'
3819 fi
3820 fi
3821 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3822 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3823 EGREP=$ac_cv_prog_egrep
3824
3825
3826
3827 echo "$as_me:$LINENO: checking for AIX" >&5
3828 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3829 cat >conftest.$ac_ext <<_ACEOF
3830 #line $LINENO "configure"
3831 #include "confdefs.h"
3832 #ifdef _AIX
3833 yes
3834 #endif
3835
3836 _ACEOF
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 $EGREP "yes" >/dev/null 2>&1; then
3839 echo "$as_me:$LINENO: result: yes" >&5
3840 echo "${ECHO_T}yes" >&6
3841 cat >>confdefs.h <<\_ACEOF
3842 #define _ALL_SOURCE 1
3843 _ACEOF
3844
3845 else
3846 echo "$as_me:$LINENO: result: no" >&5
3847 echo "${ECHO_T}no" >&6
3848 fi
3849 rm -f conftest*
3850
3851
3852
3853 #### Extract some information from the operating system and machine files.
3854
3855 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3856 - which libraries the lib-src programs will want, and
3857 - whether the GNU malloc routines are usable..." >&5
3858 echo "$as_me: checking the machine- and system-dependent files to find out
3859 - which libraries the lib-src programs will want, and
3860 - whether the GNU malloc routines are usable..." >&6;}
3861
3862 ### First figure out CFLAGS (which we use for running the compiler here)
3863 ### and REAL_CFLAGS (which we use for real compilation).
3864 ### The two are the same except on a few systems, where they are made
3865 ### different to work around various lossages. For example,
3866 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3867 ### as implying static linking.
3868
3869 ### If the CFLAGS env var is specified, we use that value
3870 ### instead of the default.
3871
3872 ### It's not important that this name contain the PID; you can't run
3873 ### two configures in the same directory and have anything work
3874 ### anyway.
3875 tempcname="conftest.c"
3876
3877 echo '
3878 #include "'${srcdir}'/src/'${opsysfile}'"
3879 #include "'${srcdir}'/src/'${machfile}'"
3880 #ifndef LIBS_MACHINE
3881 #define LIBS_MACHINE
3882 #endif
3883 #ifndef LIBS_SYSTEM
3884 #define LIBS_SYSTEM
3885 #endif
3886 #ifndef C_SWITCH_SYSTEM
3887 #define C_SWITCH_SYSTEM
3888 #endif
3889 #ifndef C_SWITCH_MACHINE
3890 #define C_SWITCH_MACHINE
3891 #endif
3892 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3893 configure___ c_switch_system=C_SWITCH_SYSTEM
3894 configure___ c_switch_machine=C_SWITCH_MACHINE
3895
3896 #ifndef LIB_X11_LIB
3897 #define LIB_X11_LIB -lX11
3898 #endif
3899
3900 #ifndef LIBX11_MACHINE
3901 #define LIBX11_MACHINE
3902 #endif
3903
3904 #ifndef LIBX11_SYSTEM
3905 #define LIBX11_SYSTEM
3906 #endif
3907 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3908
3909 #ifdef UNEXEC
3910 configure___ unexec=UNEXEC
3911 #else
3912 configure___ unexec=unexec.o
3913 #endif
3914
3915 #ifdef SYSTEM_MALLOC
3916 configure___ system_malloc=yes
3917 #else
3918 configure___ system_malloc=no
3919 #endif
3920
3921 #ifdef USE_MMAP_FOR_BUFFERS
3922 configure___ use_mmap_for_buffers=yes
3923 #else
3924 configure___ use_mmap_for_buffers=no
3925 #endif
3926
3927 #ifndef C_DEBUG_SWITCH
3928 #define C_DEBUG_SWITCH -g
3929 #endif
3930
3931 #ifndef C_OPTIMIZE_SWITCH
3932 #ifdef __GNUC__
3933 #define C_OPTIMIZE_SWITCH -O2
3934 #else
3935 #define C_OPTIMIZE_SWITCH -O
3936 #endif
3937 #endif
3938
3939 #ifndef LD_SWITCH_MACHINE
3940 #define LD_SWITCH_MACHINE
3941 #endif
3942
3943 #ifndef LD_SWITCH_SYSTEM
3944 #define LD_SWITCH_SYSTEM
3945 #endif
3946
3947 #ifndef LD_SWITCH_X_SITE_AUX
3948 #define LD_SWITCH_X_SITE_AUX
3949 #endif
3950
3951 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3952 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3953
3954 #ifdef THIS_IS_CONFIGURE
3955
3956 /* Get the CFLAGS for tests in configure. */
3957 #ifdef __GNUC__
3958 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3959 #else
3960 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3961 #endif
3962
3963 #else /* not THIS_IS_CONFIGURE */
3964
3965 /* Get the CFLAGS for real compilation. */
3966 #ifdef __GNUC__
3967 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3968 #else
3969 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3970 #endif
3971
3972 #endif /* not THIS_IS_CONFIGURE */
3973 ' > ${tempcname}
3974
3975 # The value of CPP is a quoted variable reference, so we need to do this
3976 # to get its actual value...
3977 CPP=`eval "echo $CPP"`
3978 eval `${CPP} -Isrc ${tempcname} \
3979 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3980 if test "x$SPECIFIED_CFLAGS" = x; then
3981 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3982 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3983 else
3984 REAL_CFLAGS="$CFLAGS"
3985 fi
3986 rm ${tempcname}
3987
3988 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3989
3990 ### Make sure subsequent tests use flags consistent with the build flags.
3991
3992 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3993 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3994 else
3995 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3996 fi
3997
3998
3999
4000 # Check whether --enable-largefile or --disable-largefile was given.
4001 if test "${enable_largefile+set}" = set; then
4002 enableval="$enable_largefile"
4003
4004 fi;
4005 if test "$enable_largefile" != no; then
4006
4007 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4008 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4009 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012 ac_cv_sys_largefile_CC=no
4013 if test "$GCC" != yes; then
4014 ac_save_CC=$CC
4015 while :; do
4016 # IRIX 6.2 and later do not support large files by default,
4017 # so use the C compiler's -n32 option if that helps.
4018 cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #include <sys/types.h>
4022 /* Check that off_t can represent 2**63 - 1 correctly.
4023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024 since some C++ compilers masquerading as C compilers
4025 incorrectly reject 9223372036854775807. */
4026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028 && LARGE_OFF_T % 2147483647 == 1)
4029 ? 1 : -1];
4030 int
4031 main ()
4032 {
4033
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 (eval $ac_try) 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 break
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4054 fi
4055 rm -f conftest.$ac_objext
4056 CC="$CC -n32"
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 ac_cv_sys_largefile_CC=' -n32'; break
4070 else
4071 echo "$as_me: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4073 fi
4074 rm -f conftest.$ac_objext
4075 break
4076 done
4077 CC=$ac_save_CC
4078 rm -f conftest.$ac_ext
4079 fi
4080 fi
4081 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4082 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4083 if test "$ac_cv_sys_largefile_CC" != no; then
4084 CC=$CC$ac_cv_sys_largefile_CC
4085 fi
4086
4087 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4088 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4089 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 while :; do
4093 ac_cv_sys_file_offset_bits=no
4094 cat >conftest.$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4096 #include "confdefs.h"
4097 #include <sys/types.h>
4098 /* Check that off_t can represent 2**63 - 1 correctly.
4099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4100 since some C++ compilers masquerading as C compilers
4101 incorrectly reject 9223372036854775807. */
4102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4104 && LARGE_OFF_T % 2147483647 == 1)
4105 ? 1 : -1];
4106 int
4107 main ()
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 break
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4130 fi
4131 rm -f conftest.$ac_objext conftest.$ac_ext
4132 cat >conftest.$ac_ext <<_ACEOF
4133 #line $LINENO "configure"
4134 #include "confdefs.h"
4135 #define _FILE_OFFSET_BITS 64
4136 #include <sys/types.h>
4137 /* Check that off_t can represent 2**63 - 1 correctly.
4138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4139 since some C++ compilers masquerading as C compilers
4140 incorrectly reject 9223372036854775807. */
4141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4143 && LARGE_OFF_T % 2147483647 == 1)
4144 ? 1 : -1];
4145 int
4146 main ()
4147 {
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_sys_file_offset_bits=64; break
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 fi
4170 rm -f conftest.$ac_objext conftest.$ac_ext
4171 break
4172 done
4173 fi
4174 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4175 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4176 if test "$ac_cv_sys_file_offset_bits" != no; then
4177
4178 cat >>confdefs.h <<_ACEOF
4179 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4180 _ACEOF
4181
4182 fi
4183 rm -f conftest*
4184 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4185 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4186 if test "${ac_cv_sys_large_files+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 while :; do
4190 ac_cv_sys_large_files=no
4191 cat >conftest.$ac_ext <<_ACEOF
4192 #line $LINENO "configure"
4193 #include "confdefs.h"
4194 #include <sys/types.h>
4195 /* Check that off_t can represent 2**63 - 1 correctly.
4196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4197 since some C++ compilers masquerading as C compilers
4198 incorrectly reject 9223372036854775807. */
4199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4201 && LARGE_OFF_T % 2147483647 == 1)
4202 ? 1 : -1];
4203 int
4204 main ()
4205 {
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213 (eval $ac_compile) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -s conftest.$ac_objext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4223 break
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 fi
4228 rm -f conftest.$ac_objext conftest.$ac_ext
4229 cat >conftest.$ac_ext <<_ACEOF
4230 #line $LINENO "configure"
4231 #include "confdefs.h"
4232 #define _LARGE_FILES 1
4233 #include <sys/types.h>
4234 /* Check that off_t can represent 2**63 - 1 correctly.
4235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4236 since some C++ compilers masquerading as C compilers
4237 incorrectly reject 9223372036854775807. */
4238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4240 && LARGE_OFF_T % 2147483647 == 1)
4241 ? 1 : -1];
4242 int
4243 main ()
4244 {
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_sys_large_files=1; break
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4266 fi
4267 rm -f conftest.$ac_objext conftest.$ac_ext
4268 break
4269 done
4270 fi
4271 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4272 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4273 if test "$ac_cv_sys_large_files" != no; then
4274
4275 cat >>confdefs.h <<_ACEOF
4276 #define _LARGE_FILES $ac_cv_sys_large_files
4277 _ACEOF
4278
4279 fi
4280 rm -f conftest*
4281 fi
4282
4283
4284 if test "${with_sound}" != "no"; then
4285 # Sound support for GNU/Linux and the free BSDs.
4286 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4288 if test "${ac_cv_header_stdc+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4293 #include "confdefs.h"
4294 #include <stdlib.h>
4295 #include <stdarg.h>
4296 #include <string.h>
4297 #include <float.h>
4298
4299 _ACEOF
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4310 else
4311 ac_cpp_err=
4312 fi
4313 else
4314 ac_cpp_err=yes
4315 fi
4316 if test -z "$ac_cpp_err"; then
4317 ac_cv_header_stdc=yes
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 ac_cv_header_stdc=no
4322 fi
4323 rm -f conftest.err conftest.$ac_ext
4324
4325 if test $ac_cv_header_stdc = yes; then
4326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4327 cat >conftest.$ac_ext <<_ACEOF
4328 #line $LINENO "configure"
4329 #include "confdefs.h"
4330 #include <string.h>
4331
4332 _ACEOF
4333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4334 $EGREP "memchr" >/dev/null 2>&1; then
4335 :
4336 else
4337 ac_cv_header_stdc=no
4338 fi
4339 rm -f conftest*
4340
4341 fi
4342
4343 if test $ac_cv_header_stdc = yes; then
4344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4345 cat >conftest.$ac_ext <<_ACEOF
4346 #line $LINENO "configure"
4347 #include "confdefs.h"
4348 #include <stdlib.h>
4349
4350 _ACEOF
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352 $EGREP "free" >/dev/null 2>&1; then
4353 :
4354 else
4355 ac_cv_header_stdc=no
4356 fi
4357 rm -f conftest*
4358
4359 fi
4360
4361 if test $ac_cv_header_stdc = yes; then
4362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363 if test "$cross_compiling" = yes; then
4364 :
4365 else
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 #include "confdefs.h"
4369 #include <ctype.h>
4370 #if ((' ' & 0x0FF) == 0x020)
4371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373 #else
4374 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4378 #endif
4379
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381 int
4382 main ()
4383 {
4384 int i;
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4388 exit(2);
4389 exit (0);
4390 }
4391 _ACEOF
4392 rm -f conftest$ac_exeext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 :
4404 else
4405 echo "$as_me: program exited with status $ac_status" >&5
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 ( exit $ac_status )
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 fi
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4422
4423 fi
4424
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436 inttypes.h stdint.h unistd.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 #include "confdefs.h"
4447 $ac_includes_default
4448
4449 #include <$ac_header>
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 eval "$as_ac_Header=yes"
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 eval "$as_ac_Header=no"
4468 fi
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 fi
4471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4474 cat >>confdefs.h <<_ACEOF
4475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 _ACEOF
4477
4478 fi
4479
4480 done
4481
4482
4483
4484
4485
4486 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4487 do
4488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo "$as_me:$LINENO: checking for $ac_header" >&5
4491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 fi
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497 else
4498 # Is the header compilable?
4499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 #include "confdefs.h"
4504 $ac_includes_default
4505 #include <$ac_header>
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_header_compiler=yes
4520 else
4521 echo "$as_me: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 ac_header_compiler=no
4524 fi
4525 rm -f conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4527 echo "${ECHO_T}$ac_header_compiler" >&6
4528
4529 # Is the header present?
4530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4532 cat >conftest.$ac_ext <<_ACEOF
4533 #line $LINENO "configure"
4534 #include "confdefs.h"
4535 #include <$ac_header>
4536 _ACEOF
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null; then
4545 if test -s conftest.err; then
4546 ac_cpp_err=$ac_c_preproc_warn_flag
4547 else
4548 ac_cpp_err=
4549 fi
4550 else
4551 ac_cpp_err=yes
4552 fi
4553 if test -z "$ac_cpp_err"; then
4554 ac_header_preproc=yes
4555 else
4556 echo "$as_me: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4558 ac_header_preproc=no
4559 fi
4560 rm -f conftest.err conftest.$ac_ext
4561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4562 echo "${ECHO_T}$ac_header_preproc" >&6
4563
4564 # So? What about this header?
4565 case $ac_header_compiler:$ac_header_preproc in
4566 yes:no )
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4571 no:yes )
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4578 esac
4579 echo "$as_me:$LINENO: checking for $ac_header" >&5
4580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 eval "$as_ac_Header=$ac_header_preproc"
4585 fi
4586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4588
4589 fi
4590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591 cat >>confdefs.h <<_ACEOF
4592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593 _ACEOF
4594
4595 fi
4596
4597 done
4598
4599 # Emulation library used on NetBSD.
4600 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4601 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4602 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 ac_check_lib_save_LIBS=$LIBS
4606 LIBS="-lossaudio $LIBS"
4607 cat >conftest.$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 #include "confdefs.h"
4610
4611 /* Override any gcc2 internal prototype to avoid an error. */
4612 #ifdef __cplusplus
4613 extern "C"
4614 #endif
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4617 char _oss_ioctl ();
4618 int
4619 main ()
4620 {
4621 _oss_ioctl ();
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest.$ac_objext conftest$ac_exeext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4628 (eval $ac_link) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_lib_ossaudio__oss_ioctl=yes
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4642 ac_cv_lib_ossaudio__oss_ioctl=no
4643 fi
4644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4645 LIBS=$ac_check_lib_save_LIBS
4646 fi
4647 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4648 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4649 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4650 LIBSOUND=-lossaudio
4651 else
4652 LIBSOUND=
4653 fi
4654
4655
4656 fi
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4679 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4680 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
4681 sys/param.h
4682 do
4683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4685 echo "$as_me:$LINENO: checking for $ac_header" >&5
4686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 fi
4690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4692 else
4693 # Is the header compilable?
4694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4699 $ac_includes_default
4700 #include <$ac_header>
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_header_compiler=yes
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4718 ac_header_compiler=no
4719 fi
4720 rm -f conftest.$ac_objext conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 echo "${ECHO_T}$ac_header_compiler" >&6
4723
4724 # Is the header present?
4725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4730 #include <$ac_header>
4731 _ACEOF
4732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } >/dev/null; then
4740 if test -s conftest.err; then
4741 ac_cpp_err=$ac_c_preproc_warn_flag
4742 else
4743 ac_cpp_err=
4744 fi
4745 else
4746 ac_cpp_err=yes
4747 fi
4748 if test -z "$ac_cpp_err"; then
4749 ac_header_preproc=yes
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 ac_header_preproc=no
4754 fi
4755 rm -f conftest.err conftest.$ac_ext
4756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4757 echo "${ECHO_T}$ac_header_preproc" >&6
4758
4759 # So? What about this header?
4760 case $ac_header_compiler:$ac_header_preproc in
4761 yes:no )
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4766 no:yes )
4767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4773 esac
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 eval "$as_ac_Header=$ac_header_preproc"
4780 fi
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783
4784 fi
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4789
4790 fi
4791
4792 done
4793
4794 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4796 if test "${ac_cv_header_stdc+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 cat >conftest.$ac_ext <<_ACEOF
4800 #line $LINENO "configure"
4801 #include "confdefs.h"
4802 #include <stdlib.h>
4803 #include <stdarg.h>
4804 #include <string.h>
4805 #include <float.h>
4806
4807 _ACEOF
4808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null; then
4816 if test -s conftest.err; then
4817 ac_cpp_err=$ac_c_preproc_warn_flag
4818 else
4819 ac_cpp_err=
4820 fi
4821 else
4822 ac_cpp_err=yes
4823 fi
4824 if test -z "$ac_cpp_err"; then
4825 ac_cv_header_stdc=yes
4826 else
4827 echo "$as_me: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4829 ac_cv_header_stdc=no
4830 fi
4831 rm -f conftest.err conftest.$ac_ext
4832
4833 if test $ac_cv_header_stdc = yes; then
4834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4835 cat >conftest.$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 #include "confdefs.h"
4838 #include <string.h>
4839
4840 _ACEOF
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842 $EGREP "memchr" >/dev/null 2>&1; then
4843 :
4844 else
4845 ac_cv_header_stdc=no
4846 fi
4847 rm -f conftest*
4848
4849 fi
4850
4851 if test $ac_cv_header_stdc = yes; then
4852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4856 #include <stdlib.h>
4857
4858 _ACEOF
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 $EGREP "free" >/dev/null 2>&1; then
4861 :
4862 else
4863 ac_cv_header_stdc=no
4864 fi
4865 rm -f conftest*
4866
4867 fi
4868
4869 if test $ac_cv_header_stdc = yes; then
4870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4871 if test "$cross_compiling" = yes; then
4872 :
4873 else
4874 cat >conftest.$ac_ext <<_ACEOF
4875 #line $LINENO "configure"
4876 #include "confdefs.h"
4877 #include <ctype.h>
4878 #if ((' ' & 0x0FF) == 0x020)
4879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4881 #else
4882 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4883 || ('j' <= (c) && (c) <= 'r') \
4884 || ('s' <= (c) && (c) <= 'z'))
4885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4886 #endif
4887
4888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4889 int
4890 main ()
4891 {
4892 int i;
4893 for (i = 0; i < 256; i++)
4894 if (XOR (islower (i), ISLOWER (i))
4895 || toupper (i) != TOUPPER (i))
4896 exit(2);
4897 exit (0);
4898 }
4899 _ACEOF
4900 rm -f conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 :
4912 else
4913 echo "$as_me: program exited with status $ac_status" >&5
4914 echo "$as_me: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 ( exit $ac_status )
4917 ac_cv_header_stdc=no
4918 fi
4919 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 fi
4922 fi
4923 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4924 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4925 if test $ac_cv_header_stdc = yes; then
4926
4927 cat >>confdefs.h <<\_ACEOF
4928 #define STDC_HEADERS 1
4929 _ACEOF
4930
4931 fi
4932
4933 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4934 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4935 if test "${ac_cv_header_time+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 cat >conftest.$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4940 #include "confdefs.h"
4941 #include <sys/types.h>
4942 #include <sys/time.h>
4943 #include <time.h>
4944
4945 int
4946 main ()
4947 {
4948 if ((struct tm *) 0)
4949 return 0;
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_cv_header_time=yes
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 ac_cv_header_time=no
4971 fi
4972 rm -f conftest.$ac_objext conftest.$ac_ext
4973 fi
4974 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4975 echo "${ECHO_T}$ac_cv_header_time" >&6
4976 if test $ac_cv_header_time = yes; then
4977
4978 cat >>confdefs.h <<\_ACEOF
4979 #define TIME_WITH_SYS_TIME 1
4980 _ACEOF
4981
4982 fi
4983
4984 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4985 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4986 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 cat >conftest.$ac_ext <<_ACEOF
4990 #line $LINENO "configure"
4991 #include "confdefs.h"
4992 #include <sys/types.h>
4993 #include <signal.h>
4994 /* NetBSD declares sys_siglist in unistd.h. */
4995 #if HAVE_UNISTD_H
4996 # include <unistd.h>
4997 #endif
4998
4999 int
5000 main ()
5001 {
5002 char *msg = *(sys_siglist + 1);
5003 ;
5004 return 0;
5005 }
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -s conftest.$ac_objext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 ac_cv_decl_sys_siglist=yes
5020 else
5021 echo "$as_me: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5023 ac_cv_decl_sys_siglist=no
5024 fi
5025 rm -f conftest.$ac_objext conftest.$ac_ext
5026 fi
5027 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5028 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5029 if test $ac_cv_decl_sys_siglist = yes; then
5030
5031 cat >>confdefs.h <<\_ACEOF
5032 #define SYS_SIGLIST_DECLARED 1
5033 _ACEOF
5034
5035 fi
5036
5037 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5038 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5039 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 #include "confdefs.h"
5045 #include <sys/types.h>
5046 #include <sys/wait.h>
5047 #ifndef WEXITSTATUS
5048 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5049 #endif
5050 #ifndef WIFEXITED
5051 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5052 #endif
5053
5054 int
5055 main ()
5056 {
5057 int s;
5058 wait (&s);
5059 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5060 ;
5061 return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_cv_header_sys_wait_h=yes
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5080 ac_cv_header_sys_wait_h=no
5081 fi
5082 rm -f conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5085 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5086 if test $ac_cv_header_sys_wait_h = yes; then
5087
5088 cat >>confdefs.h <<\_ACEOF
5089 #define HAVE_SYS_WAIT_H 1
5090 _ACEOF
5091
5092 fi
5093
5094
5095 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5096 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5097 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 cat >conftest.$ac_ext <<_ACEOF
5101 #line $LINENO "configure"
5102 #include "confdefs.h"
5103 #ifdef TIME_WITH_SYS_TIME
5104 #include <sys/time.h>
5105 #include <time.h>
5106 #else
5107 #ifdef HAVE_SYS_TIME_H
5108 #include <sys/time.h>
5109 #else
5110 #include <time.h>
5111 #endif
5112 #endif
5113 #ifdef HAVE_UTIME_H
5114 #include <utime.h>
5115 #endif
5116 int
5117 main ()
5118 {
5119 static struct utimbuf x; x.actime = x.modtime;
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -s conftest.$ac_objext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 emacs_cv_struct_utimbuf=yes
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 emacs_cv_struct_utimbuf=no
5141 fi
5142 rm -f conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5145 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5146 if test $emacs_cv_struct_utimbuf = yes; then
5147
5148 cat >>confdefs.h <<\_ACEOF
5149 #define HAVE_STRUCT_UTIMBUF 1
5150 _ACEOF
5151
5152 fi
5153
5154 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5155 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5156 if test "${ac_cv_type_signal+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 #include "confdefs.h"
5162 #include <sys/types.h>
5163 #include <signal.h>
5164 #ifdef signal
5165 # undef signal
5166 #endif
5167 #ifdef __cplusplus
5168 extern "C" void (*signal (int, void (*)(int)))(int);
5169 #else
5170 void (*signal ()) ();
5171 #endif
5172
5173 int
5174 main ()
5175 {
5176 int i;
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } &&
5187 { ac_try='test -s conftest.$ac_objext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_type_signal=void
5194 else
5195 echo "$as_me: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5197 ac_cv_type_signal=int
5198 fi
5199 rm -f conftest.$ac_objext conftest.$ac_ext
5200 fi
5201 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5202 echo "${ECHO_T}$ac_cv_type_signal" >&6
5203
5204 cat >>confdefs.h <<_ACEOF
5205 #define RETSIGTYPE $ac_cv_type_signal
5206 _ACEOF
5207
5208
5209
5210 echo "$as_me:$LINENO: checking for speed_t" >&5
5211 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5212 if test "${emacs_cv_speed_t+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line $LINENO "configure"
5217 #include "confdefs.h"
5218 #include <termios.h>
5219 int
5220 main ()
5221 {
5222 speed_t x = 1;
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 rm -f conftest.$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 emacs_cv_speed_t=yes
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 emacs_cv_speed_t=no
5244 fi
5245 rm -f conftest.$ac_objext conftest.$ac_ext
5246 fi
5247 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5248 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5249 if test $emacs_cv_speed_t = yes; then
5250
5251 cat >>confdefs.h <<\_ACEOF
5252 #define HAVE_SPEED_T 1
5253 _ACEOF
5254
5255 fi
5256
5257 echo "$as_me:$LINENO: checking for struct timeval" >&5
5258 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5259 if test "${emacs_cv_struct_timeval+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 cat >conftest.$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 #include "confdefs.h"
5265 #ifdef TIME_WITH_SYS_TIME
5266 #include <sys/time.h>
5267 #include <time.h>
5268 #else
5269 #ifdef HAVE_SYS_TIME_H
5270 #include <sys/time.h>
5271 #else
5272 #include <time.h>
5273 #endif
5274 #endif
5275 int
5276 main ()
5277 {
5278 static struct timeval x; x.tv_sec = x.tv_usec;
5279 ;
5280 return 0;
5281 }
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 emacs_cv_struct_timeval=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 emacs_cv_struct_timeval=no
5300 fi
5301 rm -f conftest.$ac_objext conftest.$ac_ext
5302 fi
5303 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5304 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5305 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5306 if test $emacs_cv_struct_timeval = yes; then
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define HAVE_TIMEVAL 1
5310 _ACEOF
5311
5312 fi
5313
5314 echo "$as_me:$LINENO: checking for struct exception" >&5
5315 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5316 if test "${emacs_cv_struct_exception+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 #include "confdefs.h"
5322 #include <math.h>
5323 int
5324 main ()
5325 {
5326 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5327 ;
5328 return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 emacs_cv_struct_exception=yes
5344 else
5345 echo "$as_me: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5347 emacs_cv_struct_exception=no
5348 fi
5349 rm -f conftest.$ac_objext conftest.$ac_ext
5350 fi
5351 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5352 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5353 HAVE_EXCEPTION=$emacs_cv_struct_exception
5354 if test $emacs_cv_struct_exception != yes; then
5355
5356 cat >>confdefs.h <<\_ACEOF
5357 #define NO_MATHERR 1
5358 _ACEOF
5359
5360 fi
5361
5362 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5364 if test "${ac_cv_struct_tm+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 cat >conftest.$ac_ext <<_ACEOF
5368 #line $LINENO "configure"
5369 #include "confdefs.h"
5370 #include <sys/types.h>
5371 #include <time.h>
5372
5373 int
5374 main ()
5375 {
5376 struct tm *tp; tp->tm_sec;
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383 (eval $ac_compile) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_struct_tm=time.h
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 ac_cv_struct_tm=sys/time.h
5398 fi
5399 rm -f conftest.$ac_objext conftest.$ac_ext
5400 fi
5401 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5402 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5403 if test $ac_cv_struct_tm = sys/time.h; then
5404
5405 cat >>confdefs.h <<\_ACEOF
5406 #define TM_IN_SYS_TIME 1
5407 _ACEOF
5408
5409 fi
5410
5411 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5412 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5413 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 cat >conftest.$ac_ext <<_ACEOF
5417 #line $LINENO "configure"
5418 #include "confdefs.h"
5419 #include <sys/types.h>
5420 #include <$ac_cv_struct_tm>
5421
5422
5423 int
5424 main ()
5425 {
5426 static struct tm ac_aggr;
5427 if (ac_aggr.tm_zone)
5428 return 0;
5429 ;
5430 return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_member_struct_tm_tm_zone=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5452 #include <sys/types.h>
5453 #include <$ac_cv_struct_tm>
5454
5455
5456 int
5457 main ()
5458 {
5459 static struct tm ac_aggr;
5460 if (sizeof ac_aggr.tm_zone)
5461 return 0;
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_member_struct_tm_tm_zone=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5482 ac_cv_member_struct_tm_tm_zone=no
5483 fi
5484 rm -f conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 rm -f conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5491
5492 cat >>confdefs.h <<_ACEOF
5493 #define HAVE_STRUCT_TM_TM_ZONE 1
5494 _ACEOF
5495
5496
5497 fi
5498
5499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5500
5501 cat >>confdefs.h <<\_ACEOF
5502 #define HAVE_TM_ZONE 1
5503 _ACEOF
5504
5505 else
5506 echo "$as_me:$LINENO: checking for tzname" >&5
5507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5508 if test "${ac_cv_var_tzname+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 cat >conftest.$ac_ext <<_ACEOF
5512 #line $LINENO "configure"
5513 #include "confdefs.h"
5514 #include <time.h>
5515 #ifndef tzname /* For SGI. */
5516 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5517 #endif
5518
5519 int
5520 main ()
5521 {
5522 atoi(*tzname);
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_var_tzname=yes
5540 else
5541 echo "$as_me: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5543 ac_cv_var_tzname=no
5544 fi
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546 fi
5547 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5548 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5549 if test $ac_cv_var_tzname = yes; then
5550
5551 cat >>confdefs.h <<\_ACEOF
5552 #define HAVE_TZNAME 1
5553 _ACEOF
5554
5555 fi
5556 fi
5557
5558 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5559 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5560 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5566 #include <time.h>
5567
5568 int
5569 main ()
5570 {
5571 static struct tm ac_aggr;
5572 if (ac_aggr.tm_gmtoff)
5573 return 0;
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -s conftest.$ac_objext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_cv_member_struct_tm_tm_gmtoff=yes
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5594 cat >conftest.$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5596 #include "confdefs.h"
5597 #include <time.h>
5598
5599 int
5600 main ()
5601 {
5602 static struct tm ac_aggr;
5603 if (sizeof ac_aggr.tm_gmtoff)
5604 return 0;
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_member_struct_tm_tm_gmtoff=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 ac_cv_member_struct_tm_tm_gmtoff=no
5626 fi
5627 rm -f conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 rm -f conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5632 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5633 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5634
5635 cat >>confdefs.h <<\_ACEOF
5636 #define HAVE_TM_GMTOFF 1
5637 _ACEOF
5638
5639 fi
5640
5641
5642
5643 echo "$as_me:$LINENO: checking for function prototypes" >&5
5644 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5645 if test "$ac_cv_prog_cc_stdc" != no; then
5646 echo "$as_me:$LINENO: result: yes" >&5
5647 echo "${ECHO_T}yes" >&6
5648
5649 cat >>confdefs.h <<\_ACEOF
5650 #define PROTOTYPES 1
5651 _ACEOF
5652
5653
5654 cat >>confdefs.h <<\_ACEOF
5655 #define __PROTOTYPES 1
5656 _ACEOF
5657
5658 else
5659 echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6
5661 fi
5662
5663 echo "$as_me:$LINENO: checking for working volatile" >&5
5664 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5665 if test "${ac_cv_c_volatile+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 cat >conftest.$ac_ext <<_ACEOF
5669 #line $LINENO "configure"
5670 #include "confdefs.h"
5671
5672 int
5673 main ()
5674 {
5675
5676 volatile int x;
5677 int * volatile y;
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684 (eval $ac_compile) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_c_volatile=yes
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5698 ac_cv_c_volatile=no
5699 fi
5700 rm -f conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5703 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5704 if test $ac_cv_c_volatile = no; then
5705
5706 cat >>confdefs.h <<\_ACEOF
5707 #define volatile
5708 _ACEOF
5709
5710 fi
5711
5712 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5714 if test "${ac_cv_c_const+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 cat >conftest.$ac_ext <<_ACEOF
5718 #line $LINENO "configure"
5719 #include "confdefs.h"
5720
5721 int
5722 main ()
5723 {
5724 /* FIXME: Include the comments suggested by Paul. */
5725 #ifndef __cplusplus
5726 /* Ultrix mips cc rejects this. */
5727 typedef int charset[2];
5728 const charset x;
5729 /* SunOS 4.1.1 cc rejects this. */
5730 char const *const *ccp;
5731 char **p;
5732 /* NEC SVR4.0.2 mips cc rejects this. */
5733 struct point {int x, y;};
5734 static struct point const zero = {0,0};
5735 /* AIX XL C 1.02.0.0 rejects this.
5736 It does not let you subtract one const X* pointer from another in
5737 an arm of an if-expression whose if-part is not a constant
5738 expression */
5739 const char *g = "string";
5740 ccp = &g + (g ? g-g : 0);
5741 /* HPUX 7.0 cc rejects these. */
5742 ++ccp;
5743 p = (char**) ccp;
5744 ccp = (char const *const *) p;
5745 { /* SCO 3.2v4 cc rejects this. */
5746 char *t;
5747 char const *s = 0 ? (char *) 0 : (char const *) 0;
5748
5749 *t++ = 0;
5750 }
5751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5752 int x[] = {25, 17};
5753 const int *foo = &x[0];
5754 ++foo;
5755 }
5756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5757 typedef const int *iptr;
5758 iptr p = 0;
5759 ++p;
5760 }
5761 { /* AIX XL C 1.02.0.0 rejects this saying
5762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5763 struct s { int j; const int *ap[3]; };
5764 struct s *b; b->j = 5;
5765 }
5766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5767 const int foo = 10;
5768 }
5769 #endif
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_cv_c_const=yes
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5791 ac_cv_c_const=no
5792 fi
5793 rm -f conftest.$ac_objext conftest.$ac_ext
5794 fi
5795 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5796 echo "${ECHO_T}$ac_cv_c_const" >&6
5797 if test $ac_cv_c_const = no; then
5798
5799 cat >>confdefs.h <<\_ACEOF
5800 #define const
5801 _ACEOF
5802
5803 fi
5804
5805 echo "$as_me:$LINENO: checking for void * support" >&5
5806 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5807 if test "${emacs_cv_void_star+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 #include "confdefs.h"
5813
5814 int
5815 main ()
5816 {
5817 void * foo;
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 emacs_cv_void_star=yes
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5838 emacs_cv_void_star=no
5839 fi
5840 rm -f conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5843 echo "${ECHO_T}$emacs_cv_void_star" >&6
5844 if test $emacs_cv_void_star = yes; then
5845 cat >>confdefs.h <<\_ACEOF
5846 #define POINTER_TYPE void
5847 _ACEOF
5848
5849 else
5850 cat >>confdefs.h <<\_ACEOF
5851 #define POINTER_TYPE char
5852 _ACEOF
5853
5854 fi
5855
5856
5857 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5858 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5859 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 cat >conftest.make <<\_ACEOF
5864 all:
5865 @echo 'ac_maketemp="${MAKE}"'
5866 _ACEOF
5867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5868 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5869 if test -n "$ac_maketemp"; then
5870 eval ac_cv_prog_make_${ac_make}_set=yes
5871 else
5872 eval ac_cv_prog_make_${ac_make}_set=no
5873 fi
5874 rm -f conftest.make
5875 fi
5876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878 echo "${ECHO_T}yes" >&6
5879 SET_MAKE=
5880 else
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5883 SET_MAKE="MAKE=${MAKE-make}"
5884 fi
5885
5886
5887 echo "$as_me:$LINENO: checking for long file names" >&5
5888 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5889 if test "${ac_cv_sys_long_file_names+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 ac_cv_sys_long_file_names=yes
5893 # Test for long file names in all the places we know might matter:
5894 # . the current directory, where building will happen
5895 # $prefix/lib where we will be installing things
5896 # $exec_prefix/lib likewise
5897 # eval it to expand exec_prefix.
5898 # $TMPDIR if set, where it might want to write temporary files
5899 # if $TMPDIR is not set:
5900 # /tmp where it might want to write temporary files
5901 # /var/tmp likewise
5902 # /usr/tmp likewise
5903 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5904 ac_tmpdirs=$TMPDIR
5905 else
5906 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5907 fi
5908 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5909 test -d $ac_dir || continue
5910 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5911 ac_xdir=$ac_dir/cf$$
5912 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5913 ac_tf1=$ac_xdir/conftest9012345
5914 ac_tf2=$ac_xdir/conftest9012346
5915 (echo 1 >$ac_tf1) 2>/dev/null
5916 (echo 2 >$ac_tf2) 2>/dev/null
5917 ac_val=`cat $ac_tf1 2>/dev/null`
5918 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5919 ac_cv_sys_long_file_names=no
5920 rm -rf $ac_xdir 2>/dev/null
5921 break
5922 fi
5923 rm -rf $ac_xdir 2>/dev/null
5924 done
5925 fi
5926 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5927 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5928 if test $ac_cv_sys_long_file_names = yes; then
5929
5930 cat >>confdefs.h <<\_ACEOF
5931 #define HAVE_LONG_FILE_NAMES 1
5932 _ACEOF
5933
5934 fi
5935
5936
5937 #### Choose a window system.
5938
5939 echo "$as_me:$LINENO: checking for X" >&5
5940 echo $ECHO_N "checking for X... $ECHO_C" >&6
5941
5942
5943 # Check whether --with-x or --without-x was given.
5944 if test "${with_x+set}" = set; then
5945 withval="$with_x"
5946
5947 fi;
5948 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5949 if test "x$with_x" = xno; then
5950 # The user explicitly disabled X.
5951 have_x=disabled
5952 else
5953 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5954 # Both variables are already set.
5955 have_x=yes
5956 else
5957 if test "${ac_cv_have_x+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 # One or both of the vars are not set, and there is no cached value.
5961 ac_x_includes=no ac_x_libraries=no
5962 rm -fr conftest.dir
5963 if mkdir conftest.dir; then
5964 cd conftest.dir
5965 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5966 cat >Imakefile <<'_ACEOF'
5967 acfindx:
5968 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5969 _ACEOF
5970 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5972 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5973 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5974 for ac_extension in a so sl; do
5975 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5976 test -f $ac_im_libdir/libX11.$ac_extension; then
5977 ac_im_usrlibdir=$ac_im_libdir; break
5978 fi
5979 done
5980 # Screen out bogus values from the imake configuration. They are
5981 # bogus both because they are the default anyway, and because
5982 # using them would break gcc on systems where it needs fixed includes.
5983 case $ac_im_incroot in
5984 /usr/include) ;;
5985 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5986 esac
5987 case $ac_im_usrlibdir in
5988 /usr/lib | /lib) ;;
5989 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5990 esac
5991 fi
5992 cd ..
5993 rm -fr conftest.dir
5994 fi
5995
5996 # Standard set of common directories for X headers.
5997 # Check X11 before X11Rn because it is often a symlink to the current release.
5998 ac_x_header_dirs='
5999 /usr/X11/include
6000 /usr/X11R6/include
6001 /usr/X11R5/include
6002 /usr/X11R4/include
6003
6004 /usr/include/X11
6005 /usr/include/X11R6
6006 /usr/include/X11R5
6007 /usr/include/X11R4
6008
6009 /usr/local/X11/include
6010 /usr/local/X11R6/include
6011 /usr/local/X11R5/include
6012 /usr/local/X11R4/include
6013
6014 /usr/local/include/X11
6015 /usr/local/include/X11R6
6016 /usr/local/include/X11R5
6017 /usr/local/include/X11R4
6018
6019 /usr/X386/include
6020 /usr/x386/include
6021 /usr/XFree86/include/X11
6022
6023 /usr/include
6024 /usr/local/include
6025 /usr/unsupported/include
6026 /usr/athena/include
6027 /usr/local/x11r5/include
6028 /usr/lpp/Xamples/include
6029
6030 /usr/openwin/include
6031 /usr/openwin/share/include'
6032
6033 if test "$ac_x_includes" = no; then
6034 # Guess where to find include files, by looking for Intrinsic.h.
6035 # First, try using that file with no special directory specified.
6036 cat >conftest.$ac_ext <<_ACEOF
6037 #line $LINENO "configure"
6038 #include "confdefs.h"
6039 #include <X11/Intrinsic.h>
6040 _ACEOF
6041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } >/dev/null; then
6049 if test -s conftest.err; then
6050 ac_cpp_err=$ac_c_preproc_warn_flag
6051 else
6052 ac_cpp_err=
6053 fi
6054 else
6055 ac_cpp_err=yes
6056 fi
6057 if test -z "$ac_cpp_err"; then
6058 # We can compile using X headers with no special include directory.
6059 ac_x_includes=
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6063 for ac_dir in $ac_x_header_dirs; do
6064 if test -r "$ac_dir/X11/Intrinsic.h"; then
6065 ac_x_includes=$ac_dir
6066 break
6067 fi
6068 done
6069 fi
6070 rm -f conftest.err conftest.$ac_ext
6071 fi # $ac_x_includes = no
6072
6073 if test "$ac_x_libraries" = no; then
6074 # Check for the libraries.
6075 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently.
6077 ac_save_LIBS=$LIBS
6078 LIBS="-lXt $LIBS"
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 #include "confdefs.h"
6082 #include <X11/Intrinsic.h>
6083 int
6084 main ()
6085 {
6086 XtMalloc (0)
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 rm -f conftest.$ac_objext conftest$ac_exeext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093 (eval $ac_link) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -s conftest$ac_exeext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 (eval $ac_try) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 LIBS=$ac_save_LIBS
6104 # We can link X programs with no special library path.
6105 ac_x_libraries=
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 LIBS=$ac_save_LIBS
6110 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6111 do
6112 # Don't even attempt the hair of trying to link an X program!
6113 for ac_extension in a so sl; do
6114 if test -r $ac_dir/libXt.$ac_extension; then
6115 ac_x_libraries=$ac_dir
6116 break 2
6117 fi
6118 done
6119 done
6120 fi
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 fi # $ac_x_libraries = no
6123
6124 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6125 # Didn't find X anywhere. Cache the known absence of X.
6126 ac_cv_have_x="have_x=no"
6127 else
6128 # Record where we found X for the cache.
6129 ac_cv_have_x="have_x=yes \
6130 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6131 fi
6132 fi
6133
6134 fi
6135 eval "$ac_cv_have_x"
6136 fi # $with_x != no
6137
6138 if test "$have_x" != yes; then
6139 echo "$as_me:$LINENO: result: $have_x" >&5
6140 echo "${ECHO_T}$have_x" >&6
6141 no_x=yes
6142 else
6143 # If each of the values was on the command line, it overrides each guess.
6144 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6145 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6146 # Update the cache value to reflect the command line values.
6147 ac_cv_have_x="have_x=yes \
6148 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6149 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6150 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6151 fi
6152
6153 if test "$no_x" = yes; then
6154 window_system=none
6155 else
6156 window_system=x11
6157 fi
6158
6159 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6160 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6161 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6162 x_default_search_path=""
6163 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6164 x_search_path="\
6165 ${x_library}/X11/%L/%T/%N%C%S:\
6166 ${x_library}/X11/%l/%T/%N%C%S:\
6167 ${x_library}/X11/%T/%N%C%S:\
6168 ${x_library}/X11/%L/%T/%N%S:\
6169 ${x_library}/X11/%l/%T/%N%S:\
6170 ${x_library}/X11/%T/%N%S"
6171 if test x"${x_default_search_path}" = x; then
6172 x_default_search_path=${x_search_path}
6173 else
6174 x_default_search_path="${x_search_path}:${x_default_search_path}"
6175 fi
6176 done
6177 fi
6178 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6179 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6180 fi
6181
6182 if test x"${x_includes}" = x; then
6183 bitmapdir=/usr/include/X11/bitmaps
6184 else
6185 # accumulate include directories that have X11 bitmap subdirectories
6186 bmd_acc="dummyval"
6187 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6188 if test -d "${bmd}/X11/bitmaps"; then
6189 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6190 fi
6191 if test -d "${bmd}/bitmaps"; then
6192 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6193 fi
6194 done
6195 if test ${bmd_acc} != "dummyval"; then
6196 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6197 fi
6198 fi
6199
6200 case "${window_system}" in
6201 x11 )
6202 HAVE_X_WINDOWS=yes
6203 HAVE_X11=yes
6204 case "${with_x_toolkit}" in
6205 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6206 motif ) USE_X_TOOLKIT=MOTIF ;;
6207 no ) USE_X_TOOLKIT=none ;;
6208 * ) USE_X_TOOLKIT=maybe ;;
6209 esac
6210 ;;
6211 none )
6212 HAVE_X_WINDOWS=no
6213 HAVE_X11=no
6214 USE_X_TOOLKIT=none
6215 ;;
6216 esac
6217
6218 ### If we're using X11, we should use the X menu package.
6219 HAVE_MENUS=no
6220 case ${HAVE_X11} in
6221 yes ) HAVE_MENUS=yes ;;
6222 esac
6223
6224 if test "${opsys}" = "hpux9"; then
6225 case "${x_libraries}" in
6226 *X11R4* )
6227 opsysfile="s/hpux9-x11r4.h"
6228 ;;
6229 esac
6230 fi
6231
6232 if test "${opsys}" = "hpux9shr"; then
6233 case "${x_libraries}" in
6234 *X11R4* )
6235 opsysfile="s/hpux9shxr4.h"
6236 ;;
6237 esac
6238 fi
6239
6240 ### Compute the unexec source name from the object name.
6241 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6242
6243 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6244 # Assume not, until told otherwise.
6245 GNU_MALLOC=yes
6246 doug_lea_malloc=yes
6247 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6248 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6249 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 cat >conftest.$ac_ext <<_ACEOF
6253 #line $LINENO "configure"
6254 #include "confdefs.h"
6255 /* System header to define __stub macros and hopefully few prototypes,
6256 which can conflict with char malloc_get_state (); below. */
6257 #include <assert.h>
6258 /* Override any gcc2 internal prototype to avoid an error. */
6259 #ifdef __cplusplus
6260 extern "C"
6261 #endif
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char malloc_get_state ();
6265 char (*f) ();
6266
6267 int
6268 main ()
6269 {
6270 /* The GNU C library defines this for functions which it implements
6271 to always fail with ENOSYS. Some functions are actually named
6272 something starting with __ and the normal name is an alias. */
6273 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6274 choke me
6275 #else
6276 f = malloc_get_state;
6277 #endif
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_func_malloc_get_state=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 ac_cv_func_malloc_get_state=no
6300 fi
6301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302 fi
6303 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6304 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6305 if test $ac_cv_func_malloc_get_state = yes; then
6306 :
6307 else
6308 doug_lea_malloc=no
6309 fi
6310
6311 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6312 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6313 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 #include "confdefs.h"
6319 /* System header to define __stub macros and hopefully few prototypes,
6320 which can conflict with char malloc_set_state (); below. */
6321 #include <assert.h>
6322 /* Override any gcc2 internal prototype to avoid an error. */
6323 #ifdef __cplusplus
6324 extern "C"
6325 #endif
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328 char malloc_set_state ();
6329 char (*f) ();
6330
6331 int
6332 main ()
6333 {
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6338 choke me
6339 #else
6340 f = malloc_set_state;
6341 #endif
6342
6343 ;
6344 return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349 (eval $ac_link) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_func_malloc_set_state=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 ac_cv_func_malloc_set_state=no
6364 fi
6365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6366 fi
6367 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6368 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6369 if test $ac_cv_func_malloc_set_state = yes; then
6370 :
6371 else
6372 doug_lea_malloc=no
6373 fi
6374
6375 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6376 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6377 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 cat >conftest.$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6382 #include "confdefs.h"
6383 extern void (* __after_morecore_hook)();
6384 int
6385 main ()
6386 {
6387 __after_morecore_hook = 0
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 (eval $ac_link) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest$ac_exeext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 emacs_cv_var___after_morecore_hook=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6408 emacs_cv_var___after_morecore_hook=no
6409 fi
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6411 fi
6412 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6413 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6414 if test $emacs_cv_var___after_morecore_hook = no; then
6415 doug_lea_malloc=no
6416 fi
6417 if test "${system_malloc}" = "yes"; then
6418 GNU_MALLOC=no
6419 GNU_MALLOC_reason="
6420 (The GNU allocators don't work with this system configuration.)"
6421 fi
6422 if test "$doug_lea_malloc" = "yes" ; then
6423 if test "$GNU_MALLOC" = yes ; then
6424 GNU_MALLOC_reason="
6425 (Using Doug Lea's new malloc from the GNU C Library.)"
6426 fi
6427
6428 cat >>confdefs.h <<\_ACEOF
6429 #define DOUG_LEA_MALLOC 1
6430 _ACEOF
6431
6432 fi
6433
6434 if test x"${REL_ALLOC}" = x; then
6435 REL_ALLOC=${GNU_MALLOC}
6436 fi
6437
6438
6439
6440
6441 for ac_header in stdlib.h unistd.h
6442 do
6443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 fi
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452 else
6453 # Is the header compilable?
6454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6456 cat >conftest.$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6458 #include "confdefs.h"
6459 $ac_includes_default
6460 #include <$ac_header>
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464 (eval $ac_compile) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -s conftest.$ac_objext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 (eval $ac_try) 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_header_compiler=yes
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 ac_header_compiler=no
6479 fi
6480 rm -f conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482 echo "${ECHO_T}$ac_header_compiler" >&6
6483
6484 # Is the header present?
6485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 #include "confdefs.h"
6490 #include <$ac_header>
6491 _ACEOF
6492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } >/dev/null; then
6500 if test -s conftest.err; then
6501 ac_cpp_err=$ac_c_preproc_warn_flag
6502 else
6503 ac_cpp_err=
6504 fi
6505 else
6506 ac_cpp_err=yes
6507 fi
6508 if test -z "$ac_cpp_err"; then
6509 ac_header_preproc=yes
6510 else
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 ac_header_preproc=no
6514 fi
6515 rm -f conftest.err conftest.$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6517 echo "${ECHO_T}$ac_header_preproc" >&6
6518
6519 # So? What about this header?
6520 case $ac_header_compiler:$ac_header_preproc in
6521 yes:no )
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6526 no:yes )
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6533 esac
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 eval "$as_ac_Header=$ac_header_preproc"
6540 fi
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543
6544 fi
6545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548 _ACEOF
6549
6550 fi
6551
6552 done
6553
6554
6555 for ac_func in getpagesize
6556 do
6557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6558 echo "$as_me:$LINENO: checking for $ac_func" >&5
6559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6560 if eval "test \"\${$as_ac_var+set}\" = set"; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 cat >conftest.$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6565 #include "confdefs.h"
6566 /* System header to define __stub macros and hopefully few prototypes,
6567 which can conflict with char $ac_func (); below. */
6568 #include <assert.h>
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 #ifdef __cplusplus
6571 extern "C"
6572 #endif
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575 char $ac_func ();
6576 char (*f) ();
6577
6578 int
6579 main ()
6580 {
6581 /* The GNU C library defines this for functions which it implements
6582 to always fail with ENOSYS. Some functions are actually named
6583 something starting with __ and the normal name is an alias. */
6584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6585 choke me
6586 #else
6587 f = $ac_func;
6588 #endif
6589
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 eval "$as_ac_var=yes"
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 eval "$as_ac_var=no"
6611 fi
6612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6613 fi
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6616 if test `eval echo '${'$as_ac_var'}'` = yes; then
6617 cat >>confdefs.h <<_ACEOF
6618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6619 _ACEOF
6620
6621 fi
6622 done
6623
6624 echo "$as_me:$LINENO: checking for working mmap" >&5
6625 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6626 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 if test "$cross_compiling" = yes; then
6630 ac_cv_func_mmap_fixed_mapped=no
6631 else
6632 cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 #include "confdefs.h"
6635 $ac_includes_default
6636 /* malloc might have been renamed as rpl_malloc. */
6637 #undef malloc
6638
6639 /* Thanks to Mike Haertel and Jim Avera for this test.
6640 Here is a matrix of mmap possibilities:
6641 mmap private not fixed
6642 mmap private fixed at somewhere currently unmapped
6643 mmap private fixed at somewhere already mapped
6644 mmap shared not fixed
6645 mmap shared fixed at somewhere currently unmapped
6646 mmap shared fixed at somewhere already mapped
6647 For private mappings, we should verify that changes cannot be read()
6648 back from the file, nor mmap's back from the file at a different
6649 address. (There have been systems where private was not correctly
6650 implemented like the infamous i386 svr4.0, and systems where the
6651 VM page cache was not coherent with the file system buffer cache
6652 like early versions of FreeBSD and possibly contemporary NetBSD.)
6653 For shared mappings, we should conversely verify that changes get
6654 propagated back to all the places they're supposed to be.
6655
6656 Grep wants private fixed already mapped.
6657 The main things grep needs to know about mmap are:
6658 * does it exist and is it safe to write into the mmap'd area
6659 * how to use it (BSD variants) */
6660
6661 #include <fcntl.h>
6662 #include <sys/mman.h>
6663
6664 #if !STDC_HEADERS && !HAVE_STDLIB_H
6665 char *malloc ();
6666 #endif
6667
6668 /* This mess was copied from the GNU getpagesize.h. */
6669 #if !HAVE_GETPAGESIZE
6670 /* Assume that all systems that can run configure have sys/param.h. */
6671 # if !HAVE_SYS_PARAM_H
6672 # define HAVE_SYS_PARAM_H 1
6673 # endif
6674
6675 # ifdef _SC_PAGESIZE
6676 # define getpagesize() sysconf(_SC_PAGESIZE)
6677 # else /* no _SC_PAGESIZE */
6678 # if HAVE_SYS_PARAM_H
6679 # include <sys/param.h>
6680 # ifdef EXEC_PAGESIZE
6681 # define getpagesize() EXEC_PAGESIZE
6682 # else /* no EXEC_PAGESIZE */
6683 # ifdef NBPG
6684 # define getpagesize() NBPG * CLSIZE
6685 # ifndef CLSIZE
6686 # define CLSIZE 1
6687 # endif /* no CLSIZE */
6688 # else /* no NBPG */
6689 # ifdef NBPC
6690 # define getpagesize() NBPC
6691 # else /* no NBPC */
6692 # ifdef PAGESIZE
6693 # define getpagesize() PAGESIZE
6694 # endif /* PAGESIZE */
6695 # endif /* no NBPC */
6696 # endif /* no NBPG */
6697 # endif /* no EXEC_PAGESIZE */
6698 # else /* no HAVE_SYS_PARAM_H */
6699 # define getpagesize() 8192 /* punt totally */
6700 # endif /* no HAVE_SYS_PARAM_H */
6701 # endif /* no _SC_PAGESIZE */
6702
6703 #endif /* no HAVE_GETPAGESIZE */
6704
6705 int
6706 main ()
6707 {
6708 char *data, *data2, *data3;
6709 int i, pagesize;
6710 int fd;
6711
6712 pagesize = getpagesize ();
6713
6714 /* First, make a file with some known garbage in it. */
6715 data = (char *) malloc (pagesize);
6716 if (!data)
6717 exit (1);
6718 for (i = 0; i < pagesize; ++i)
6719 *(data + i) = rand ();
6720 umask (0);
6721 fd = creat ("conftest.mmap", 0600);
6722 if (fd < 0)
6723 exit (1);
6724 if (write (fd, data, pagesize) != pagesize)
6725 exit (1);
6726 close (fd);
6727
6728 /* Next, try to mmap the file at a fixed address which already has
6729 something else allocated at it. If we can, also make sure that
6730 we see the same garbage. */
6731 fd = open ("conftest.mmap", O_RDWR);
6732 if (fd < 0)
6733 exit (1);
6734 data2 = (char *) malloc (2 * pagesize);
6735 if (!data2)
6736 exit (1);
6737 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6738 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6739 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6740 exit (1);
6741 for (i = 0; i < pagesize; ++i)
6742 if (*(data + i) != *(data2 + i))
6743 exit (1);
6744
6745 /* Finally, make sure that changes to the mapped area do not
6746 percolate back to the file as seen by read(). (This is a bug on
6747 some variants of i386 svr4.0.) */
6748 for (i = 0; i < pagesize; ++i)
6749 *(data2 + i) = *(data2 + i) + 1;
6750 data3 = (char *) malloc (pagesize);
6751 if (!data3)
6752 exit (1);
6753 if (read (fd, data3, pagesize) != pagesize)
6754 exit (1);
6755 for (i = 0; i < pagesize; ++i)
6756 if (*(data + i) != *(data3 + i))
6757 exit (1);
6758 close (fd);
6759 exit (0);
6760 }
6761 _ACEOF
6762 rm -f conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 ac_cv_func_mmap_fixed_mapped=yes
6774 else
6775 echo "$as_me: program exited with status $ac_status" >&5
6776 echo "$as_me: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 ( exit $ac_status )
6779 ac_cv_func_mmap_fixed_mapped=no
6780 fi
6781 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6782 fi
6783 fi
6784 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6785 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6786 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6787
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_MMAP 1
6790 _ACEOF
6791
6792 fi
6793 rm -f conftest.mmap
6794
6795 if test $use_mmap_for_buffers = yes; then
6796 REL_ALLOC=no
6797 fi
6798
6799 LIBS="$libsrc_libs $LIBS"
6800
6801
6802 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6803 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6804 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 ac_check_lib_save_LIBS=$LIBS
6808 LIBS="-ldnet $LIBS"
6809 cat >conftest.$ac_ext <<_ACEOF
6810 #line $LINENO "configure"
6811 #include "confdefs.h"
6812
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 #ifdef __cplusplus
6815 extern "C"
6816 #endif
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char dnet_ntoa ();
6820 int
6821 main ()
6822 {
6823 dnet_ntoa ();
6824 ;
6825 return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } &&
6834 { ac_try='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_cv_lib_dnet_dnet_ntoa=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6844 ac_cv_lib_dnet_dnet_ntoa=no
6845 fi
6846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6847 LIBS=$ac_check_lib_save_LIBS
6848 fi
6849 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6850 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6851 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6852 cat >>confdefs.h <<_ACEOF
6853 #define HAVE_LIBDNET 1
6854 _ACEOF
6855
6856 LIBS="-ldnet $LIBS"
6857
6858 fi
6859
6860
6861 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6862 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6863 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 ac_check_lib_save_LIBS=$LIBS
6867 LIBS="-lXbsd $LIBS"
6868 cat >conftest.$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6871
6872
6873 int
6874 main ()
6875 {
6876 main ();
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -s conftest$ac_exeext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_cv_lib_Xbsd_main=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 ac_cv_lib_Xbsd_main=no
6898 fi
6899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6900 LIBS=$ac_check_lib_save_LIBS
6901 fi
6902 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
6903 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6904 if test $ac_cv_lib_Xbsd_main = yes; then
6905 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6906 fi
6907
6908
6909
6910 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
6911 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6912 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915 ac_check_lib_save_LIBS=$LIBS
6916 LIBS="-lpthreads $LIBS"
6917 cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 #include "confdefs.h"
6920
6921 /* Override any gcc2 internal prototype to avoid an error. */
6922 #ifdef __cplusplus
6923 extern "C"
6924 #endif
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6927 char cma_open ();
6928 int
6929 main ()
6930 {
6931 cma_open ();
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -s conftest$ac_exeext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_lib_pthreads_cma_open=yes
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6952 ac_cv_lib_pthreads_cma_open=no
6953 fi
6954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955 LIBS=$ac_check_lib_save_LIBS
6956 fi
6957 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
6958 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6959 if test $ac_cv_lib_pthreads_cma_open = yes; then
6960 cat >>confdefs.h <<_ACEOF
6961 #define HAVE_LIBPTHREADS 1
6962 _ACEOF
6963
6964 LIBS="-lpthreads $LIBS"
6965
6966 fi
6967
6968
6969 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
6970 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6971 if test -d /usr/X386/include; then
6972 HAVE_XFREE386=yes
6973 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6974 else
6975 HAVE_XFREE386=no
6976 fi
6977 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
6978 echo "${ECHO_T}$HAVE_XFREE386" >&6
6979
6980 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
6981 # used for the tests that follow. We set them back to REAL_CFLAGS and
6982 # REAL_CPPFLAGS later on.
6983
6984 REAL_CPPFLAGS="$CPPFLAGS"
6985
6986 if test "${HAVE_X11}" = "yes"; then
6987 DEFS="$C_SWITCH_X_SITE $DEFS"
6988 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6989 LIBS="$LIBX $LIBS"
6990 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6991 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6992
6993 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6994 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6995 # but it's more convenient here to set LD_RUN_PATH
6996 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6997 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6998 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6999 export LD_RUN_PATH
7000 fi
7001
7002 if test "${opsys}" = "gnu-linux"; then
7003 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7004 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7005 cat >conftest.$ac_ext <<_ACEOF
7006 #line $LINENO "configure"
7007 #include "confdefs.h"
7008
7009 int
7010 main ()
7011 {
7012 XOpenDisplay ("foo");
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -s conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 xlinux_first_failure=no
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7033 xlinux_first_failure=yes
7034 fi
7035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7036 if test "${xlinux_first_failure}" = "yes"; then
7037 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7038 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7039 OLD_CPPFLAGS="$CPPFLAGS"
7040 OLD_LIBS="$LIBS"
7041 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7042 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7043 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7044 LIBS="$LIBS -b i486-linuxaout"
7045 cat >conftest.$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7047 #include "confdefs.h"
7048
7049 int
7050 main ()
7051 {
7052 XOpenDisplay ("foo");
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 xlinux_second_failure=no
7070 else
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 xlinux_second_failure=yes
7074 fi
7075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7076 if test "${xlinux_second_failure}" = "yes"; then
7077 # If we get the same failure with -b, there is no use adding -b.
7078 # So take it out. This plays safe.
7079 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7080 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7081 CPPFLAGS="$OLD_CPPFLAGS"
7082 LIBS="$OLD_LIBS"
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7085 else
7086 echo "$as_me:$LINENO: result: yes" >&5
7087 echo "${ECHO_T}yes" >&6
7088 fi
7089 else
7090 echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6
7092 fi
7093 fi
7094
7095 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7096 # header files included from there.
7097 echo "$as_me:$LINENO: checking for Xkb" >&5
7098 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7099 cat >conftest.$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7102 #include <X11/Xlib.h>
7103 #include <X11/XKBlib.h>
7104 int
7105 main ()
7106 {
7107 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7108 ;
7109 return 0;
7110 }
7111 _ACEOF
7112 rm -f conftest.$ac_objext conftest$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -s conftest$ac_exeext'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7124 emacs_xkb=yes
7125 else
7126 echo "$as_me: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7128 emacs_xkb=no
7129 fi
7130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7131 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7132 echo "${ECHO_T}$emacs_xkb" >&6
7133 if test $emacs_xkb = yes; then
7134
7135 cat >>confdefs.h <<\_ACEOF
7136 #define HAVE_XKBGETKEYBOARD 1
7137 _ACEOF
7138
7139 fi
7140
7141
7142
7143
7144
7145 for ac_func in XrmSetDatabase XScreenResourceString \
7146 XScreenNumberOfScreen XSetWMProtocols
7147 do
7148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7149 echo "$as_me:$LINENO: checking for $ac_func" >&5
7150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7151 if eval "test \"\${$as_ac_var+set}\" = set"; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 cat >conftest.$ac_ext <<_ACEOF
7155 #line $LINENO "configure"
7156 #include "confdefs.h"
7157 /* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char $ac_func (); below. */
7159 #include <assert.h>
7160 /* Override any gcc2 internal prototype to avoid an error. */
7161 #ifdef __cplusplus
7162 extern "C"
7163 #endif
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7166 char $ac_func ();
7167 char (*f) ();
7168
7169 int
7170 main ()
7171 {
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 choke me
7177 #else
7178 f = $ac_func;
7179 #endif
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 eval "$as_ac_var=yes"
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 eval "$as_ac_var=no"
7202 fi
7203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7204 fi
7205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7207 if test `eval echo '${'$as_ac_var'}'` = yes; then
7208 cat >>confdefs.h <<_ACEOF
7209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7210 _ACEOF
7211
7212 fi
7213 done
7214
7215 fi
7216
7217 if test "${window_system}" = "x11"; then
7218 echo "$as_me:$LINENO: checking X11 version 6" >&5
7219 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7220 if test "${emacs_cv_x11_version_6+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 cat >conftest.$ac_ext <<_ACEOF
7224 #line $LINENO "configure"
7225 #include "confdefs.h"
7226 #include <X11/Xlib.h>
7227 int
7228 main ()
7229 {
7230 #if XlibSpecificationRelease < 6
7231 fail;
7232 #endif
7233
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 emacs_cv_x11_version_6=yes
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 cat conftest.$ac_ext >&5
7254 emacs_cv_x11_version_6=no
7255 fi
7256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7257 fi
7258
7259 if test $emacs_cv_x11_version_6 = yes; then
7260 echo "$as_me:$LINENO: result: 6 or newer" >&5
7261 echo "${ECHO_T}6 or newer" >&6
7262
7263 cat >>confdefs.h <<\_ACEOF
7264 #define HAVE_X11R6 1
7265 _ACEOF
7266
7267 else
7268 echo "$as_me:$LINENO: result: before 6" >&5
7269 echo "${ECHO_T}before 6" >&6
7270 fi
7271 fi
7272
7273 if test "${window_system}" = "x11"; then
7274 echo "$as_me:$LINENO: checking X11 version 5" >&5
7275 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7276 if test "${emacs_cv_x11_version_5+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 cat >conftest.$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 #include "confdefs.h"
7282 #include <X11/Xlib.h>
7283 int
7284 main ()
7285 {
7286 #if XlibSpecificationRelease < 5
7287 fail;
7288 #endif
7289
7290 ;
7291 return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -s conftest$ac_exeext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 (eval $ac_try) 2>&5
7303 ac_status=$?
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 emacs_cv_x11_version_5=yes
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 emacs_cv_x11_version_5=no
7311 fi
7312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7313 fi
7314
7315 if test $emacs_cv_x11_version_5 = yes; then
7316 echo "$as_me:$LINENO: result: 5 or newer" >&5
7317 echo "${ECHO_T}5 or newer" >&6
7318 HAVE_X11R5=yes
7319
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_X11R5 1
7322 _ACEOF
7323
7324 else
7325 HAVE_X11R5=no
7326 echo "$as_me:$LINENO: result: before 5" >&5
7327 echo "${ECHO_T}before 5" >&6
7328 fi
7329 fi
7330
7331 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7332 if test x"${HAVE_X11R5}" = xyes; then
7333 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7334 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7335 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 cat >conftest.$ac_ext <<_ACEOF
7339 #line $LINENO "configure"
7340 #include "confdefs.h"
7341
7342 #include <X11/Intrinsic.h>
7343 #include <X11/Xaw/Simple.h>
7344 int
7345 main ()
7346 {
7347
7348 ;
7349 return 0;
7350 }
7351 _ACEOF
7352 rm -f conftest.$ac_objext conftest$ac_exeext
7353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7354 (eval $ac_link) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -s conftest$ac_exeext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 emacs_cv_x11_version_5_with_xaw=yes
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 emacs_cv_x11_version_5_with_xaw=no
7369 fi
7370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7371 fi
7372
7373 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7374 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7375 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7376 USE_X_TOOLKIT=LUCID
7377 else
7378 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7379 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7380 USE_X_TOOLKIT=none
7381 fi
7382 else
7383 USE_X_TOOLKIT=none
7384 fi
7385 fi
7386
7387 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7388
7389 if test "${USE_X_TOOLKIT}" != "none"; then
7390 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7391 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7392 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 cat >conftest.$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7397 #include "confdefs.h"
7398 #include <X11/Intrinsic.h>
7399 int
7400 main ()
7401 {
7402 #if XtSpecificationRelease < 6
7403 fail;
7404 #endif
7405
7406 ;
7407 return 0;
7408 }
7409 _ACEOF
7410 rm -f conftest.$ac_objext conftest$ac_exeext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7412 (eval $ac_link) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try='test -s conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 emacs_cv_x11_toolkit_version_6=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7426 emacs_cv_x11_toolkit_version_6=no
7427 fi
7428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7429 fi
7430
7431 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7432 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7433 echo "$as_me:$LINENO: result: 6 or newer" >&5
7434 echo "${ECHO_T}6 or newer" >&6
7435
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_X11XTR6 1
7438 _ACEOF
7439
7440 else
7441 echo "$as_me:$LINENO: result: before 6" >&5
7442 echo "${ECHO_T}before 6" >&6
7443 fi
7444
7445 OLDLIBS="$LIBS"
7446 if test x$HAVE_X11XTR6 = xyes; then
7447 LIBS="-lXt -lSM -lICE $LIBS"
7448 else
7449 LIBS="-lXt $LIBS"
7450 fi
7451
7452 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7453 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7454 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 ac_check_lib_save_LIBS=$LIBS
7458 LIBS="-lXmu $LIBS"
7459 cat >conftest.$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7461 #include "confdefs.h"
7462
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7469 char XmuConvertStandardSelection ();
7470 int
7471 main ()
7472 {
7473 XmuConvertStandardSelection ();
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
7495 fi
7496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7500 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7501 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7502 cat >>confdefs.h <<_ACEOF
7503 #define HAVE_LIBXMU 1
7504 _ACEOF
7505
7506 LIBS="-lXmu $LIBS"
7507
7508 fi
7509
7510 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
7511 fi
7512
7513 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7514 if test "${HAVE_X11}" = "yes"; then
7515 if test "${USE_X_TOOLKIT}" != "none"; then
7516
7517 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7518 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7519 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 ac_check_lib_save_LIBS=$LIBS
7523 LIBS="-lXext $LIBS"
7524 cat >conftest.$ac_ext <<_ACEOF
7525 #line $LINENO "configure"
7526 #include "confdefs.h"
7527
7528 /* Override any gcc2 internal prototype to avoid an error. */
7529 #ifdef __cplusplus
7530 extern "C"
7531 #endif
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7534 char XShapeQueryExtension ();
7535 int
7536 main ()
7537 {
7538 XShapeQueryExtension ();
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>&5
7546 ac_status=$?
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 (eval $ac_try) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_lib_Xext_XShapeQueryExtension=yes
7556 else
7557 echo "$as_me: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 ac_cv_lib_Xext_XShapeQueryExtension=no
7560 fi
7561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7562 LIBS=$ac_check_lib_save_LIBS
7563 fi
7564 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7565 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7566 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7567 cat >>confdefs.h <<_ACEOF
7568 #define HAVE_LIBXEXT 1
7569 _ACEOF
7570
7571 LIBS="-lXext $LIBS"
7572
7573 fi
7574
7575 fi
7576 fi
7577
7578 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7579 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
7580 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
7581 if test "${emacs_cv_lesstif+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 # We put this in CFLAGS temporarily to precede other -I options
7585 # that might be in CFLAGS temporarily.
7586 # We put this in CPPFLAGS where it precedes the other -I options.
7587 OLD_CPPFLAGS=$CPPFLAGS
7588 OLD_CFLAGS=$CFLAGS
7589 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
7590 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
7591 cat >conftest.$ac_ext <<_ACEOF
7592 #line $LINENO "configure"
7593 #include "confdefs.h"
7594 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
7595 int
7596 main ()
7597 {
7598 int x = 5;
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605 (eval $ac_compile) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 emacs_cv_lesstif=yes
7616 else
7617 echo "$as_me: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 emacs_cv_lesstif=no
7620 fi
7621 rm -f conftest.$ac_objext conftest.$ac_ext
7622 fi
7623 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
7624 echo "${ECHO_T}$emacs_cv_lesstif" >&6
7625 if test $emacs_cv_lesstif = yes; then
7626 # Make sure this -I option remains in CPPFLAGS after it is set
7627 # back to REAL_CPPFLAGS.
7628 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
7629 # have those other -I options anyway. Ultimately, having this
7630 # directory ultimately in CPPFLAGS will be enough.
7631 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
7632 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
7633 else
7634 CFLAGS=$OLD_CFLAGS
7635 CPPFLAGS=$OLD_CPPFLAGS
7636 fi
7637 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7638 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7639 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 #include "confdefs.h"
7645 #include <Xm/Xm.h>
7646 int
7647 main ()
7648 {
7649 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7650 int x = 5;
7651 #else
7652 Motif version prior to 2.1.
7653 #endif
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 emacs_cv_motif_version_2_1=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7674 emacs_cv_motif_version_2_1=no
7675 fi
7676 rm -f conftest.$ac_objext conftest.$ac_ext
7677 fi
7678 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7679 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7680 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
7681 if test $emacs_cv_motif_version_2_1 = yes; then
7682 HAVE_LIBXP=no
7683
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_MOTIF_2_1 1
7686 _ACEOF
7687
7688 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7689 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7690 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 ac_check_lib_save_LIBS=$LIBS
7694 LIBS="-lXp $LIBS"
7695 cat >conftest.$ac_ext <<_ACEOF
7696 #line $LINENO "configure"
7697 #include "confdefs.h"
7698
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 #ifdef __cplusplus
7701 extern "C"
7702 #endif
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7705 char XpCreateContext ();
7706 int
7707 main ()
7708 {
7709 XpCreateContext ();
7710 ;
7711 return 0;
7712 }
7713 _ACEOF
7714 rm -f conftest.$ac_objext conftest$ac_exeext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_lib_Xp_XpCreateContext=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 ac_cv_lib_Xp_XpCreateContext=no
7731 fi
7732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7733 LIBS=$ac_check_lib_save_LIBS
7734 fi
7735 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7736 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7737 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7738 HAVE_LIBXP=yes
7739 fi
7740
7741 if test ${HAVE_LIBXP} = yes; then
7742
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_LIBXP 1
7745 _ACEOF
7746
7747 fi
7748 fi
7749 fi
7750
7751 ### Is -lXaw3d available?
7752 HAVE_XAW3D=no
7753 if test "${HAVE_X11}" = "yes"; then
7754 if test "${USE_X_TOOLKIT}" != "none"; then
7755 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7756 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7757 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7758 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 fi
7761 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7762 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7763 else
7764 # Is the header compilable?
7765 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7766 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7770 $ac_includes_default
7771 #include <X11/Xaw3d/Scrollbar.h>
7772 _ACEOF
7773 rm -f conftest.$ac_objext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7775 (eval $ac_compile) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_header_compiler=yes
7786 else
7787 echo "$as_me: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7789 ac_header_compiler=no
7790 fi
7791 rm -f conftest.$ac_objext conftest.$ac_ext
7792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7793 echo "${ECHO_T}$ac_header_compiler" >&6
7794
7795 # Is the header present?
7796 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7797 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7798 cat >conftest.$ac_ext <<_ACEOF
7799 #line $LINENO "configure"
7800 #include "confdefs.h"
7801 #include <X11/Xaw3d/Scrollbar.h>
7802 _ACEOF
7803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } >/dev/null; then
7811 if test -s conftest.err; then
7812 ac_cpp_err=$ac_c_preproc_warn_flag
7813 else
7814 ac_cpp_err=
7815 fi
7816 else
7817 ac_cpp_err=yes
7818 fi
7819 if test -z "$ac_cpp_err"; then
7820 ac_header_preproc=yes
7821 else
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7824 ac_header_preproc=no
7825 fi
7826 rm -f conftest.err conftest.$ac_ext
7827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828 echo "${ECHO_T}$ac_header_preproc" >&6
7829
7830 # So? What about this header?
7831 case $ac_header_compiler:$ac_header_preproc in
7832 yes:no )
7833 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7834 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7836 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7837 no:yes )
7838 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7839 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7841 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7844 esac
7845 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7846 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7847 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
7851 fi
7852 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7853 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7854
7855 fi
7856 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7857 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7858 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7859 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862 ac_check_lib_save_LIBS=$LIBS
7863 LIBS="-lXaw3d $LIBS"
7864 cat >conftest.$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7866 #include "confdefs.h"
7867
7868 /* Override any gcc2 internal prototype to avoid an error. */
7869 #ifdef __cplusplus
7870 extern "C"
7871 #endif
7872 /* We use char because int might match the return type of a gcc2
7873 builtin and then its argument prototype would still apply. */
7874 char XawScrollbarSetThumb ();
7875 int
7876 main ()
7877 {
7878 XawScrollbarSetThumb ();
7879 ;
7880 return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7899 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
7900 fi
7901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7902 LIBS=$ac_check_lib_save_LIBS
7903 fi
7904 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7905 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7906 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7907 HAVE_XAW3D=yes
7908 fi
7909
7910 fi
7911
7912
7913 if test "${HAVE_XAW3D}" = "yes"; then
7914
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_XAW3D 1
7917 _ACEOF
7918
7919 fi
7920 fi
7921 fi
7922
7923
7924
7925 USE_TOOLKIT_SCROLL_BARS=no
7926 if test "${with_toolkit_scroll_bars}" != "no"; then
7927 if test "${USE_X_TOOLKIT}" != "none"; then
7928 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7929 cat >>confdefs.h <<\_ACEOF
7930 #define USE_TOOLKIT_SCROLL_BARS 1
7931 _ACEOF
7932
7933 HAVE_XAW3D=no
7934 USE_TOOLKIT_SCROLL_BARS=yes
7935 elif test "${HAVE_XAW3D}" = "yes"; then
7936 cat >>confdefs.h <<\_ACEOF
7937 #define USE_TOOLKIT_SCROLL_BARS 1
7938 _ACEOF
7939
7940 USE_TOOLKIT_SCROLL_BARS=yes
7941 fi
7942 fi
7943 fi
7944
7945
7946 if test "${with_xim}" != "no"; then
7947
7948 cat >>confdefs.h <<\_ACEOF
7949 #define USE_XIM 1
7950 _ACEOF
7951
7952 fi
7953
7954 ### Use -lXpm if available, unless `--with-xpm=no'.
7955 HAVE_XPM=no
7956 if test "${HAVE_X11}" = "yes"; then
7957 if test "${with_xpm}" != "no"; then
7958 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7959 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
7960 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7961 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 fi
7964 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
7965 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7966 else
7967 # Is the header compilable?
7968 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
7969 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7971 #line $LINENO "configure"
7972 #include "confdefs.h"
7973 $ac_includes_default
7974 #include <X11/xpm.h>
7975 _ACEOF
7976 rm -f conftest.$ac_objext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7978 (eval $ac_compile) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try='test -s conftest.$ac_objext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 (eval $ac_try) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 ac_header_compiler=yes
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7992 ac_header_compiler=no
7993 fi
7994 rm -f conftest.$ac_objext conftest.$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7996 echo "${ECHO_T}$ac_header_compiler" >&6
7997
7998 # Is the header present?
7999 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8000 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8001 cat >conftest.$ac_ext <<_ACEOF
8002 #line $LINENO "configure"
8003 #include "confdefs.h"
8004 #include <X11/xpm.h>
8005 _ACEOF
8006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } >/dev/null; then
8014 if test -s conftest.err; then
8015 ac_cpp_err=$ac_c_preproc_warn_flag
8016 else
8017 ac_cpp_err=
8018 fi
8019 else
8020 ac_cpp_err=yes
8021 fi
8022 if test -z "$ac_cpp_err"; then
8023 ac_header_preproc=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 cat conftest.$ac_ext >&5
8027 ac_header_preproc=no
8028 fi
8029 rm -f conftest.err conftest.$ac_ext
8030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8031 echo "${ECHO_T}$ac_header_preproc" >&6
8032
8033 # So? What about this header?
8034 case $ac_header_compiler:$ac_header_preproc in
8035 yes:no )
8036 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8037 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8039 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8040 no:yes )
8041 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8042 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8044 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8046 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8047 esac
8048 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8049 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8050 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 ac_cv_header_X11_xpm_h=$ac_header_preproc
8054 fi
8055 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8056 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8057
8058 fi
8059 if test $ac_cv_header_X11_xpm_h = yes; then
8060 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8061 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8062 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 ac_check_lib_save_LIBS=$LIBS
8066 LIBS="-lXpm -lX11 $LIBS"
8067 cat >conftest.$ac_ext <<_ACEOF
8068 #line $LINENO "configure"
8069 #include "confdefs.h"
8070
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 #ifdef __cplusplus
8073 extern "C"
8074 #endif
8075 /* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8077 char XpmReadFileToPixmap ();
8078 int
8079 main ()
8080 {
8081 XpmReadFileToPixmap ();
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -s conftest$ac_exeext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8102 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8103 fi
8104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8105 LIBS=$ac_check_lib_save_LIBS
8106 fi
8107 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8108 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8109 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8110 HAVE_XPM=yes
8111 fi
8112
8113 fi
8114
8115
8116 if test "${HAVE_XPM}" = "yes"; then
8117 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8118 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 #include "X11/xpm.h"
8123 #ifndef XpmReturnAllocPixels
8124 no_return_alloc_pixels
8125 #endif
8126
8127 _ACEOF
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
8130 HAVE_XPM=no
8131 else
8132 HAVE_XPM=yes
8133 fi
8134 rm -f conftest*
8135
8136
8137 if test "${HAVE_XPM}" = "yes"; then
8138 echo "$as_me:$LINENO: result: yes" >&5
8139 echo "${ECHO_T}yes" >&6
8140 else
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8143 fi
8144 fi
8145 fi
8146
8147 if test "${HAVE_XPM}" = "yes"; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_XPM 1
8151 _ACEOF
8152
8153 fi
8154 fi
8155
8156 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8157 HAVE_JPEG=no
8158 if test "${HAVE_X11}" = "yes"; then
8159 if test "${with_jpeg}" != "no"; then
8160 if test "${ac_cv_header_jerror_h+set}" = set; then
8161 echo "$as_me:$LINENO: checking for jerror.h" >&5
8162 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8163 if test "${ac_cv_header_jerror_h+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 fi
8166 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8167 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8168 else
8169 # Is the header compilable?
8170 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8171 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8172 cat >conftest.$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8174 #include "confdefs.h"
8175 $ac_includes_default
8176 #include <jerror.h>
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_header_compiler=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 ac_header_compiler=no
8195 fi
8196 rm -f conftest.$ac_objext conftest.$ac_ext
8197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8198 echo "${ECHO_T}$ac_header_compiler" >&6
8199
8200 # Is the header present?
8201 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8202 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8204 #line $LINENO "configure"
8205 #include "confdefs.h"
8206 #include <jerror.h>
8207 _ACEOF
8208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } >/dev/null; then
8216 if test -s conftest.err; then
8217 ac_cpp_err=$ac_c_preproc_warn_flag
8218 else
8219 ac_cpp_err=
8220 fi
8221 else
8222 ac_cpp_err=yes
8223 fi
8224 if test -z "$ac_cpp_err"; then
8225 ac_header_preproc=yes
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 cat conftest.$ac_ext >&5
8229 ac_header_preproc=no
8230 fi
8231 rm -f conftest.err conftest.$ac_ext
8232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8233 echo "${ECHO_T}$ac_header_preproc" >&6
8234
8235 # So? What about this header?
8236 case $ac_header_compiler:$ac_header_preproc in
8237 yes:no )
8238 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8239 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8241 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8242 no:yes )
8243 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8244 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8245 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8246 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8249 esac
8250 echo "$as_me:$LINENO: checking for jerror.h" >&5
8251 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8252 if test "${ac_cv_header_jerror_h+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 ac_cv_header_jerror_h=$ac_header_preproc
8256 fi
8257 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8258 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8259
8260 fi
8261 if test $ac_cv_header_jerror_h = yes; then
8262 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8263 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8264 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267 ac_check_lib_save_LIBS=$LIBS
8268 LIBS="-ljpeg $LIBS"
8269 cat >conftest.$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8271 #include "confdefs.h"
8272
8273 /* Override any gcc2 internal prototype to avoid an error. */
8274 #ifdef __cplusplus
8275 extern "C"
8276 #endif
8277 /* We use char because int might match the return type of a gcc2
8278 builtin and then its argument prototype would still apply. */
8279 char jpeg_destroy_compress ();
8280 int
8281 main ()
8282 {
8283 jpeg_destroy_compress ();
8284 ;
8285 return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290 (eval $ac_link) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 cat conftest.$ac_ext >&5
8304 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8305 fi
8306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8307 LIBS=$ac_check_lib_save_LIBS
8308 fi
8309 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8310 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8311 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8312 HAVE_JPEG=yes
8313 fi
8314
8315 fi
8316
8317
8318 fi
8319
8320
8321 if test "${HAVE_JPEG}" = "yes"; then
8322 cat >>confdefs.h <<\_ACEOF
8323 #define HAVE_JPEG 1
8324 _ACEOF
8325
8326 cat >conftest.$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8328 #include "confdefs.h"
8329 #include <jpeglib.h>
8330 version=JPEG_LIB_VERSION
8331
8332 _ACEOF
8333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8334 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8335 cat >>confdefs.h <<\_ACEOF
8336 #define HAVE_JPEG 1
8337 _ACEOF
8338
8339 else
8340 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8341 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8342 HAVE_JPEG=no
8343 fi
8344 rm -f conftest*
8345
8346 fi
8347 fi
8348
8349 ### Use -lpng if available, unless `--with-png=no'.
8350 HAVE_PNG=no
8351 if test "${HAVE_X11}" = "yes"; then
8352 if test "${with_png}" != "no"; then
8353 if test "${ac_cv_header_png_h+set}" = set; then
8354 echo "$as_me:$LINENO: checking for png.h" >&5
8355 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8356 if test "${ac_cv_header_png_h+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 fi
8359 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8360 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8361 else
8362 # Is the header compilable?
8363 echo "$as_me:$LINENO: checking png.h usability" >&5
8364 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8366 #line $LINENO "configure"
8367 #include "confdefs.h"
8368 $ac_includes_default
8369 #include <png.h>
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_header_compiler=yes
8384 else
8385 echo "$as_me: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8387 ac_header_compiler=no
8388 fi
8389 rm -f conftest.$ac_objext conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8391 echo "${ECHO_T}$ac_header_compiler" >&6
8392
8393 # Is the header present?
8394 echo "$as_me:$LINENO: checking png.h presence" >&5
8395 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8396 cat >conftest.$ac_ext <<_ACEOF
8397 #line $LINENO "configure"
8398 #include "confdefs.h"
8399 #include <png.h>
8400 _ACEOF
8401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } >/dev/null; then
8409 if test -s conftest.err; then
8410 ac_cpp_err=$ac_c_preproc_warn_flag
8411 else
8412 ac_cpp_err=
8413 fi
8414 else
8415 ac_cpp_err=yes
8416 fi
8417 if test -z "$ac_cpp_err"; then
8418 ac_header_preproc=yes
8419 else
8420 echo "$as_me: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8422 ac_header_preproc=no
8423 fi
8424 rm -f conftest.err conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8426 echo "${ECHO_T}$ac_header_preproc" >&6
8427
8428 # So? What about this header?
8429 case $ac_header_compiler:$ac_header_preproc in
8430 yes:no )
8431 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8432 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8434 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8435 no:yes )
8436 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8437 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8438 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8439 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8441 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8442 esac
8443 echo "$as_me:$LINENO: checking for png.h" >&5
8444 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8445 if test "${ac_cv_header_png_h+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 ac_cv_header_png_h=$ac_header_preproc
8449 fi
8450 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8451 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8452
8453 fi
8454 if test $ac_cv_header_png_h = yes; then
8455 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8456 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8457 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460 ac_check_lib_save_LIBS=$LIBS
8461 LIBS="-lpng -lz -lm $LIBS"
8462 cat >conftest.$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8464 #include "confdefs.h"
8465
8466 /* Override any gcc2 internal prototype to avoid an error. */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char png_get_channels ();
8473 int
8474 main ()
8475 {
8476 png_get_channels ();
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_lib_png_png_get_channels=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 cat conftest.$ac_ext >&5
8497 ac_cv_lib_png_png_get_channels=no
8498 fi
8499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8500 LIBS=$ac_check_lib_save_LIBS
8501 fi
8502 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8503 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8504 if test $ac_cv_lib_png_png_get_channels = yes; then
8505 HAVE_PNG=yes
8506 fi
8507
8508 fi
8509
8510
8511 fi
8512
8513 if test "${HAVE_PNG}" = "yes"; then
8514
8515 cat >>confdefs.h <<\_ACEOF
8516 #define HAVE_PNG 1
8517 _ACEOF
8518
8519 fi
8520 fi
8521
8522 ### Use -ltiff if available, unless `--with-tiff=no'.
8523 HAVE_TIFF=no
8524 if test "${HAVE_X11}" = "yes"; then
8525 if test "${with_tiff}" != "no"; then
8526 if test "${ac_cv_header_tiffio_h+set}" = set; then
8527 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8528 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8529 if test "${ac_cv_header_tiffio_h+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 fi
8532 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8533 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8534 else
8535 # Is the header compilable?
8536 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8537 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8538 cat >conftest.$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541 $ac_includes_default
8542 #include <tiffio.h>
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -s conftest.$ac_objext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_header_compiler=yes
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8560 ac_header_compiler=no
8561 fi
8562 rm -f conftest.$ac_objext conftest.$ac_ext
8563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8564 echo "${ECHO_T}$ac_header_compiler" >&6
8565
8566 # Is the header present?
8567 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8568 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8569 cat >conftest.$ac_ext <<_ACEOF
8570 #line $LINENO "configure"
8571 #include "confdefs.h"
8572 #include <tiffio.h>
8573 _ACEOF
8574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } >/dev/null; then
8582 if test -s conftest.err; then
8583 ac_cpp_err=$ac_c_preproc_warn_flag
8584 else
8585 ac_cpp_err=
8586 fi
8587 else
8588 ac_cpp_err=yes
8589 fi
8590 if test -z "$ac_cpp_err"; then
8591 ac_header_preproc=yes
8592 else
8593 echo "$as_me: failed program was:" >&5
8594 cat conftest.$ac_ext >&5
8595 ac_header_preproc=no
8596 fi
8597 rm -f conftest.err conftest.$ac_ext
8598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8599 echo "${ECHO_T}$ac_header_preproc" >&6
8600
8601 # So? What about this header?
8602 case $ac_header_compiler:$ac_header_preproc in
8603 yes:no )
8604 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8605 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8608 no:yes )
8609 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8614 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8615 esac
8616 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8617 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8618 if test "${ac_cv_header_tiffio_h+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 ac_cv_header_tiffio_h=$ac_header_preproc
8622 fi
8623 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8624 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8625
8626 fi
8627 if test $ac_cv_header_tiffio_h = yes; then
8628 tifflibs="-lz -lm"
8629 # At least one tiff package requires the jpeg library.
8630 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
8631 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8632 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8633 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 ac_check_lib_save_LIBS=$LIBS
8637 LIBS="-ltiff $tifflibs $LIBS"
8638 cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 #include "confdefs.h"
8641
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 #ifdef __cplusplus
8644 extern "C"
8645 #endif
8646 /* We use char because int might match the return type of a gcc2
8647 builtin and then its argument prototype would still apply. */
8648 char TIFFGetVersion ();
8649 int
8650 main ()
8651 {
8652 TIFFGetVersion ();
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_tiff_TIFFGetVersion=yes
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8673 ac_cv_lib_tiff_TIFFGetVersion=no
8674 fi
8675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8679 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8680 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8681 HAVE_TIFF=yes
8682 fi
8683
8684 fi
8685
8686
8687 fi
8688
8689 if test "${HAVE_TIFF}" = "yes"; then
8690
8691 cat >>confdefs.h <<\_ACEOF
8692 #define HAVE_TIFF 1
8693 _ACEOF
8694
8695 fi
8696 fi
8697
8698 ### Use -lgif if available, unless `--with-gif=no'.
8699 HAVE_GIF=no
8700 if test "${HAVE_X11}" = "yes"; then
8701 if test "${with_gif}" != "no"; then
8702 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8703 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8704 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8705 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8709 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8710 else
8711 # Is the header compilable?
8712 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8713 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8715 #line $LINENO "configure"
8716 #include "confdefs.h"
8717 $ac_includes_default
8718 #include <gif_lib.h>
8719 _ACEOF
8720 rm -f conftest.$ac_objext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8722 (eval $ac_compile) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -s conftest.$ac_objext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_header_compiler=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8736 ac_header_compiler=no
8737 fi
8738 rm -f conftest.$ac_objext conftest.$ac_ext
8739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8740 echo "${ECHO_T}$ac_header_compiler" >&6
8741
8742 # Is the header present?
8743 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8744 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8745 cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8748 #include <gif_lib.h>
8749 _ACEOF
8750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev/null; then
8758 if test -s conftest.err; then
8759 ac_cpp_err=$ac_c_preproc_warn_flag
8760 else
8761 ac_cpp_err=
8762 fi
8763 else
8764 ac_cpp_err=yes
8765 fi
8766 if test -z "$ac_cpp_err"; then
8767 ac_header_preproc=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 ac_header_preproc=no
8772 fi
8773 rm -f conftest.err conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8775 echo "${ECHO_T}$ac_header_preproc" >&6
8776
8777 # So? What about this header?
8778 case $ac_header_compiler:$ac_header_preproc in
8779 yes:no )
8780 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8781 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8783 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8784 no:yes )
8785 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8786 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8788 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8790 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8791 esac
8792 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8793 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797 ac_cv_header_gif_lib_h=$ac_header_preproc
8798 fi
8799 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8800 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8801
8802 fi
8803 if test $ac_cv_header_gif_lib_h = yes; then
8804 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8805 # Earlier versions can crash Emacs.
8806 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8807 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8808 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 ac_check_lib_save_LIBS=$LIBS
8812 LIBS="-lungif $LIBS"
8813 cat >conftest.$ac_ext <<_ACEOF
8814 #line $LINENO "configure"
8815 #include "confdefs.h"
8816
8817 /* Override any gcc2 internal prototype to avoid an error. */
8818 #ifdef __cplusplus
8819 extern "C"
8820 #endif
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8823 char EGifPutExtensionLast ();
8824 int
8825 main ()
8826 {
8827 EGifPutExtensionLast ();
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_ungif_EGifPutExtensionLast=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 ac_cv_lib_ungif_EGifPutExtensionLast=no
8849 fi
8850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8851 LIBS=$ac_check_lib_save_LIBS
8852 fi
8853 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
8854 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
8855 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
8856 HAVE_GIF=yes
8857 fi
8858
8859 fi
8860
8861
8862 fi
8863
8864 if test "${HAVE_GIF}" = "yes"; then
8865
8866 cat >>confdefs.h <<\_ACEOF
8867 #define HAVE_GIF 1
8868 _ACEOF
8869
8870 fi
8871 fi
8872
8873 ### Use Mac OS X Carbon API to implement GUI.
8874 HAVE_CARBON=no
8875 if test "${with_carbon}" != "no"; then
8876 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8877 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8878 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8879 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 fi
8882 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8883 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8884 else
8885 # Is the header compilable?
8886 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8887 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 #include "confdefs.h"
8891 $ac_includes_default
8892 #include <Carbon/Carbon.h>
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -s conftest.$ac_objext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_header_compiler=yes
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8910 ac_header_compiler=no
8911 fi
8912 rm -f conftest.$ac_objext conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8914 echo "${ECHO_T}$ac_header_compiler" >&6
8915
8916 # Is the header present?
8917 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8918 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8919 cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 #include "confdefs.h"
8922 #include <Carbon/Carbon.h>
8923 _ACEOF
8924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } >/dev/null; then
8932 if test -s conftest.err; then
8933 ac_cpp_err=$ac_c_preproc_warn_flag
8934 else
8935 ac_cpp_err=
8936 fi
8937 else
8938 ac_cpp_err=yes
8939 fi
8940 if test -z "$ac_cpp_err"; then
8941 ac_header_preproc=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8945 ac_header_preproc=no
8946 fi
8947 rm -f conftest.err conftest.$ac_ext
8948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8949 echo "${ECHO_T}$ac_header_preproc" >&6
8950
8951 # So? What about this header?
8952 case $ac_header_compiler:$ac_header_preproc in
8953 yes:no )
8954 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8955 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8957 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8958 no:yes )
8959 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8960 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8962 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8964 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8965 esac
8966 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8967 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8968 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8972 fi
8973 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8974 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8975
8976 fi
8977 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8978 HAVE_CARBON=yes
8979 fi
8980
8981
8982 fi
8983
8984 if test "${HAVE_CARBON}" = "yes"; then
8985
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_CARBON 1
8988 _ACEOF
8989
8990 fi
8991
8992 ### Use session management (-lSM -lICE) if available
8993 HAVE_X_SM=no
8994 if test "${HAVE_X11}" = "yes"; then
8995 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8996 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
8997 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
8998 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 fi
9001 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9002 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9003 else
9004 # Is the header compilable?
9005 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9006 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 #include "confdefs.h"
9010 $ac_includes_default
9011 #include <X11/SM/SMlib.h>
9012 _ACEOF
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_header_compiler=yes
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 ac_header_compiler=no
9030 fi
9031 rm -f conftest.$ac_objext conftest.$ac_ext
9032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9033 echo "${ECHO_T}$ac_header_compiler" >&6
9034
9035 # Is the header present?
9036 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9037 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9041 #include <X11/SM/SMlib.h>
9042 _ACEOF
9043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } >/dev/null; then
9051 if test -s conftest.err; then
9052 ac_cpp_err=$ac_c_preproc_warn_flag
9053 else
9054 ac_cpp_err=
9055 fi
9056 else
9057 ac_cpp_err=yes
9058 fi
9059 if test -z "$ac_cpp_err"; then
9060 ac_header_preproc=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9064 ac_header_preproc=no
9065 fi
9066 rm -f conftest.err conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 echo "${ECHO_T}$ac_header_preproc" >&6
9069
9070 # So? What about this header?
9071 case $ac_header_compiler:$ac_header_preproc in
9072 yes:no )
9073 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9074 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9076 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9077 no:yes )
9078 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9079 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9081 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9083 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9084 esac
9085 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9086 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9087 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9091 fi
9092 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9093 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9094
9095 fi
9096 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9097 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9098 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9099 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 ac_check_lib_save_LIBS=$LIBS
9103 LIBS="-lSM $LIBS"
9104 cat >conftest.$ac_ext <<_ACEOF
9105 #line $LINENO "configure"
9106 #include "confdefs.h"
9107
9108 /* Override any gcc2 internal prototype to avoid an error. */
9109 #ifdef __cplusplus
9110 extern "C"
9111 #endif
9112 /* We use char because int might match the return type of a gcc2
9113 builtin and then its argument prototype would still apply. */
9114 char SmcOpenConnection ();
9115 int
9116 main ()
9117 {
9118 SmcOpenConnection ();
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext conftest$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -s conftest$ac_exeext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 (eval $ac_try) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_cv_lib_SM_SmcOpenConnection=yes
9136 else
9137 echo "$as_me: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 ac_cv_lib_SM_SmcOpenConnection=no
9140 fi
9141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_lib_save_LIBS
9143 fi
9144 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9145 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9146 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9147 HAVE_X_SM=yes
9148 else
9149 -lICE
9150 fi
9151
9152 fi
9153
9154
9155
9156 if test "${HAVE_X_SM}" = "yes"; then
9157
9158 cat >>confdefs.h <<\_ACEOF
9159 #define HAVE_X_SM 1
9160 _ACEOF
9161
9162 case "$LIBS" in
9163 *-lSM*) ;;
9164 *) LIBS="-lSM -lICE $LIBS" ;;
9165 esac
9166 fi
9167 fi
9168
9169 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9170 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9171 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9172 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175 cat >conftest.$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 #include "confdefs.h"
9178 #include <netdb.h>
9179 int
9180 main ()
9181 {
9182 return h_errno;
9183 ;
9184 return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext conftest$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 emacs_cv_netdb_declares_h_errno=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 emacs_cv_netdb_declares_h_errno=no
9204 fi
9205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9206 fi
9207 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9208 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9209 if test $emacs_cv_netdb_declares_h_errno = yes; then
9210
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_H_ERRNO 1
9213 _ACEOF
9214
9215 fi
9216
9217 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9218 # for constant arguments. Useless!
9219 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9220 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9221 if test "${ac_cv_working_alloca_h+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224 cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 #include "confdefs.h"
9227 #include <alloca.h>
9228 int
9229 main ()
9230 {
9231 char *p = (char *) alloca (2 * sizeof (int));
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_working_alloca_h=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 ac_cv_working_alloca_h=no
9253 fi
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9257 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9258 if test $ac_cv_working_alloca_h = yes; then
9259
9260 cat >>confdefs.h <<\_ACEOF
9261 #define HAVE_ALLOCA_H 1
9262 _ACEOF
9263
9264 fi
9265
9266 echo "$as_me:$LINENO: checking for alloca" >&5
9267 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9268 if test "${ac_cv_func_alloca_works+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line $LINENO "configure"
9273 #include "confdefs.h"
9274 #ifdef __GNUC__
9275 # define alloca __builtin_alloca
9276 #else
9277 # ifdef _MSC_VER
9278 # include <malloc.h>
9279 # define alloca _alloca
9280 # else
9281 # if HAVE_ALLOCA_H
9282 # include <alloca.h>
9283 # else
9284 # ifdef _AIX
9285 #pragma alloca
9286 # else
9287 # ifndef alloca /* predefined by HP cc +Olibcalls */
9288 char *alloca ();
9289 # endif
9290 # endif
9291 # endif
9292 # endif
9293 #endif
9294
9295 int
9296 main ()
9297 {
9298 char *p = (char *) alloca (1);
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305 (eval $ac_link) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -s conftest$ac_exeext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_cv_func_alloca_works=yes
9316 else
9317 echo "$as_me: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9319 ac_cv_func_alloca_works=no
9320 fi
9321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9322 fi
9323 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9324 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9325
9326 if test $ac_cv_func_alloca_works = yes; then
9327
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_ALLOCA 1
9330 _ACEOF
9331
9332 else
9333 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9334 # that cause trouble. Some versions do not even contain alloca or
9335 # contain a buggy version. If you still want to use their alloca,
9336 # use ar to extract alloca.o from them instead of compiling alloca.c.
9337
9338 ALLOCA=alloca.$ac_objext
9339
9340 cat >>confdefs.h <<\_ACEOF
9341 #define C_ALLOCA 1
9342 _ACEOF
9343
9344
9345 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9346 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9347 if test "${ac_cv_os_cray+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 cat >conftest.$ac_ext <<_ACEOF
9351 #line $LINENO "configure"
9352 #include "confdefs.h"
9353 #if defined(CRAY) && ! defined(CRAY2)
9354 webecray
9355 #else
9356 wenotbecray
9357 #endif
9358
9359 _ACEOF
9360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9361 $EGREP "webecray" >/dev/null 2>&1; then
9362 ac_cv_os_cray=yes
9363 else
9364 ac_cv_os_cray=no
9365 fi
9366 rm -f conftest*
9367
9368 fi
9369 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9370 echo "${ECHO_T}$ac_cv_os_cray" >&6
9371 if test $ac_cv_os_cray = yes; then
9372 for ac_func in _getb67 GETB67 getb67; do
9373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9374 echo "$as_me:$LINENO: checking for $ac_func" >&5
9375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9376 if eval "test \"\${$as_ac_var+set}\" = set"; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9381 #include "confdefs.h"
9382 /* System header to define __stub macros and hopefully few prototypes,
9383 which can conflict with char $ac_func (); below. */
9384 #include <assert.h>
9385 /* Override any gcc2 internal prototype to avoid an error. */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 /* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9391 char $ac_func ();
9392 char (*f) ();
9393
9394 int
9395 main ()
9396 {
9397 /* The GNU C library defines this for functions which it implements
9398 to always fail with ENOSYS. Some functions are actually named
9399 something starting with __ and the normal name is an alias. */
9400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9401 choke me
9402 #else
9403 f = $ac_func;
9404 #endif
9405
9406 ;
9407 return 0;
9408 }
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 eval "$as_ac_var=yes"
9423 else
9424 echo "$as_me: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 eval "$as_ac_var=no"
9427 fi
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429 fi
9430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9432 if test `eval echo '${'$as_ac_var'}'` = yes; then
9433
9434 cat >>confdefs.h <<_ACEOF
9435 #define CRAY_STACKSEG_END $ac_func
9436 _ACEOF
9437
9438 break
9439 fi
9440
9441 done
9442 fi
9443
9444 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9445 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9446 if test "${ac_cv_c_stack_direction+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449 if test "$cross_compiling" = yes; then
9450 ac_cv_c_stack_direction=0
9451 else
9452 cat >conftest.$ac_ext <<_ACEOF
9453 #line $LINENO "configure"
9454 #include "confdefs.h"
9455 int
9456 find_stack_direction ()
9457 {
9458 static char *addr = 0;
9459 auto char dummy;
9460 if (addr == 0)
9461 {
9462 addr = &dummy;
9463 return find_stack_direction ();
9464 }
9465 else
9466 return (&dummy > addr) ? 1 : -1;
9467 }
9468
9469 int
9470 main ()
9471 {
9472 exit (find_stack_direction () < 0);
9473 }
9474 _ACEOF
9475 rm -f conftest$ac_exeext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477 (eval $ac_link) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_c_stack_direction=1
9487 else
9488 echo "$as_me: program exited with status $ac_status" >&5
9489 echo "$as_me: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9491 ( exit $ac_status )
9492 ac_cv_c_stack_direction=-1
9493 fi
9494 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9495 fi
9496 fi
9497 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9498 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define STACK_DIRECTION $ac_cv_c_stack_direction
9502 _ACEOF
9503
9504
9505 fi
9506
9507
9508 # fmod, logb, and frexp are found in -lm on most systems.
9509 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9510
9511 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9512 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9513 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 ac_check_lib_save_LIBS=$LIBS
9517 LIBS="-lm $LIBS"
9518 cat >conftest.$ac_ext <<_ACEOF
9519 #line $LINENO "configure"
9520 #include "confdefs.h"
9521
9522 /* Override any gcc2 internal prototype to avoid an error. */
9523 #ifdef __cplusplus
9524 extern "C"
9525 #endif
9526 /* We use char because int might match the return type of a gcc2
9527 builtin and then its argument prototype would still apply. */
9528 char sqrt ();
9529 int
9530 main ()
9531 {
9532 sqrt ();
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_lib_m_sqrt=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9553 ac_cv_lib_m_sqrt=no
9554 fi
9555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9556 LIBS=$ac_check_lib_save_LIBS
9557 fi
9558 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9559 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9560 if test $ac_cv_lib_m_sqrt = yes; then
9561 cat >>confdefs.h <<_ACEOF
9562 #define HAVE_LIBM 1
9563 _ACEOF
9564
9565 LIBS="-lm $LIBS"
9566
9567 fi
9568
9569
9570 # Check for mail-locking functions in a "mail" library
9571
9572 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9573 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9574 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 ac_check_lib_save_LIBS=$LIBS
9578 LIBS="-lmail $LIBS"
9579 cat >conftest.$ac_ext <<_ACEOF
9580 #line $LINENO "configure"
9581 #include "confdefs.h"
9582
9583 /* Override any gcc2 internal prototype to avoid an error. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 /* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9589 char maillock ();
9590 int
9591 main ()
9592 {
9593 maillock ();
9594 ;
9595 return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_lib_mail_maillock=yes
9611 else
9612 echo "$as_me: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 ac_cv_lib_mail_maillock=no
9615 fi
9616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9618 fi
9619 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9620 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9621 if test $ac_cv_lib_mail_maillock = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623 #define HAVE_LIBMAIL 1
9624 _ACEOF
9625
9626 LIBS="-lmail $LIBS"
9627
9628 fi
9629
9630
9631 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9632 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9633 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 ac_check_lib_save_LIBS=$LIBS
9637 LIBS="-llockfile $LIBS"
9638 cat >conftest.$ac_ext <<_ACEOF
9639 #line $LINENO "configure"
9640 #include "confdefs.h"
9641
9642 /* Override any gcc2 internal prototype to avoid an error. */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 /* We use char because int might match the return type of a gcc2
9647 builtin and then its argument prototype would still apply. */
9648 char maillock ();
9649 int
9650 main ()
9651 {
9652 maillock ();
9653 ;
9654 return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -s conftest$ac_exeext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_lib_lockfile_maillock=yes
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 ac_cv_lib_lockfile_maillock=no
9674 fi
9675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9677 fi
9678 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9679 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9680 if test $ac_cv_lib_lockfile_maillock = yes; then
9681 cat >>confdefs.h <<_ACEOF
9682 #define HAVE_LIBLOCKFILE 1
9683 _ACEOF
9684
9685 LIBS="-llockfile $LIBS"
9686
9687 fi
9688
9689 # If we have the shared liblockfile, assume we must use it for mail
9690 # locking (e.g. Debian). If we couldn't link against liblockfile
9691 # (no liblockfile.a installed), ensure that we don't need to.
9692 if test "$ac_cv_lib_lockfile_maillock" = no; then
9693 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9694 set dummy liblockfile.so; ac_word=$2
9695 echo "$as_me:$LINENO: checking for $ac_word" >&5
9696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9697 if test "${ac_cv_prog_liblockfile+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 if test -n "$liblockfile"; then
9701 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
9702 else
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9705 for as_dir in $as_dummy
9706 do
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9711 ac_cv_prog_liblockfile="yes"
9712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 break 2
9714 fi
9715 done
9716 done
9717
9718 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
9719 fi
9720 fi
9721 liblockfile=$ac_cv_prog_liblockfile
9722 if test -n "$liblockfile"; then
9723 echo "$as_me:$LINENO: result: $liblockfile" >&5
9724 echo "${ECHO_T}$liblockfile" >&6
9725 else
9726 echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9728 fi
9729
9730 if test $ac_cv_prog_liblockfile = yes; then
9731 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9732 This probably means that movemail could lose mail.
9733 There may be a \`development' package to install containing liblockfile." >&5
9734 echo "$as_me: error: Shared liblockfile found but can't link against it.
9735 This probably means that movemail could lose mail.
9736 There may be a \`development' package to install containing liblockfile." >&2;}
9737 { (exit 1); exit 1; }; }
9738 else
9739 cat >>confdefs.h <<\_ACEOF
9740 #define LIBMAIL -llockfile
9741 _ACEOF
9742
9743 fi
9744 else :
9745 fi
9746
9747 for ac_func in touchlock
9748 do
9749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9750 echo "$as_me:$LINENO: checking for $ac_func" >&5
9751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9752 if eval "test \"\${$as_ac_var+set}\" = set"; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line $LINENO "configure"
9757 #include "confdefs.h"
9758 /* System header to define __stub macros and hopefully few prototypes,
9759 which can conflict with char $ac_func (); below. */
9760 #include <assert.h>
9761 /* Override any gcc2 internal prototype to avoid an error. */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9767 char $ac_func ();
9768 char (*f) ();
9769
9770 int
9771 main ()
9772 {
9773 /* The GNU C library defines this for functions which it implements
9774 to always fail with ENOSYS. Some functions are actually named
9775 something starting with __ and the normal name is an alias. */
9776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9777 choke me
9778 #else
9779 f = $ac_func;
9780 #endif
9781
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9788 (eval $ac_link) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 eval "$as_ac_var=yes"
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9802 eval "$as_ac_var=no"
9803 fi
9804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9805 fi
9806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9808 if test `eval echo '${'$as_ac_var'}'` = yes; then
9809 cat >>confdefs.h <<_ACEOF
9810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9811 _ACEOF
9812
9813 fi
9814 done
9815
9816
9817 for ac_header in maillock.h
9818 do
9819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo "$as_me:$LINENO: checking for $ac_header" >&5
9822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 fi
9826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9828 else
9829 # Is the header compilable?
9830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9833 #line $LINENO "configure"
9834 #include "confdefs.h"
9835 $ac_includes_default
9836 #include <$ac_header>
9837 _ACEOF
9838 rm -f conftest.$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840 (eval $ac_compile) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -s conftest.$ac_objext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_header_compiler=yes
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 ac_header_compiler=no
9855 fi
9856 rm -f conftest.$ac_objext conftest.$ac_ext
9857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9858 echo "${ECHO_T}$ac_header_compiler" >&6
9859
9860 # Is the header present?
9861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9863 cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9866 #include <$ac_header>
9867 _ACEOF
9868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } >/dev/null; then
9876 if test -s conftest.err; then
9877 ac_cpp_err=$ac_c_preproc_warn_flag
9878 else
9879 ac_cpp_err=
9880 fi
9881 else
9882 ac_cpp_err=yes
9883 fi
9884 if test -z "$ac_cpp_err"; then
9885 ac_header_preproc=yes
9886 else
9887 echo "$as_me: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 ac_header_preproc=no
9890 fi
9891 rm -f conftest.err conftest.$ac_ext
9892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9893 echo "${ECHO_T}$ac_header_preproc" >&6
9894
9895 # So? What about this header?
9896 case $ac_header_compiler:$ac_header_preproc in
9897 yes:no )
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9902 no:yes )
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9909 esac
9910 echo "$as_me:$LINENO: checking for $ac_header" >&5
9911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915 eval "$as_ac_Header=$ac_header_preproc"
9916 fi
9917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9919
9920 fi
9921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9922 cat >>confdefs.h <<_ACEOF
9923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9924 _ACEOF
9925
9926 fi
9927
9928 done
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
9981
9982
9983
9984
9985
9986
9987
9988 for ac_func in gethostname getdomainname dup2 \
9989 rename closedir mkdir rmdir sysinfo \
9990 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
9991 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
9992 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
9993 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
9994 sendto recvfrom getsockopt setsockopt getsockname getpeername \
9995 gai_strerror mkstemp getline getdelim mremap memmove
9996 do
9997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9998 echo "$as_me:$LINENO: checking for $ac_func" >&5
9999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10000 if eval "test \"\${$as_ac_var+set}\" = set"; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10005 #include "confdefs.h"
10006 /* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char $ac_func (); below. */
10008 #include <assert.h>
10009 /* Override any gcc2 internal prototype to avoid an error. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10015 char $ac_func ();
10016 char (*f) ();
10017
10018 int
10019 main ()
10020 {
10021 /* The GNU C library defines this for functions which it implements
10022 to always fail with ENOSYS. Some functions are actually named
10023 something starting with __ and the normal name is an alias. */
10024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10025 choke me
10026 #else
10027 f = $ac_func;
10028 #endif
10029
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 eval "$as_ac_var=yes"
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 eval "$as_ac_var=no"
10051 fi
10052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10053 fi
10054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10056 if test `eval echo '${'$as_ac_var'}'` = yes; then
10057 cat >>confdefs.h <<_ACEOF
10058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10059 _ACEOF
10060
10061 fi
10062 done
10063
10064
10065
10066 for ac_header in sys/un.h
10067 do
10068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10070 echo "$as_me:$LINENO: checking for $ac_header" >&5
10071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 fi
10075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10077 else
10078 # Is the header compilable?
10079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10084 $ac_includes_default
10085 #include <$ac_header>
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_header_compiler=yes
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 ac_header_compiler=no
10104 fi
10105 rm -f conftest.$ac_objext conftest.$ac_ext
10106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10107 echo "${ECHO_T}$ac_header_compiler" >&6
10108
10109 # Is the header present?
10110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
10114 #include "confdefs.h"
10115 #include <$ac_header>
10116 _ACEOF
10117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10119 ac_status=$?
10120 grep -v '^ *+' conftest.er1 >conftest.err
10121 rm -f conftest.er1
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } >/dev/null; then
10125 if test -s conftest.err; then
10126 ac_cpp_err=$ac_c_preproc_warn_flag
10127 else
10128 ac_cpp_err=
10129 fi
10130 else
10131 ac_cpp_err=yes
10132 fi
10133 if test -z "$ac_cpp_err"; then
10134 ac_header_preproc=yes
10135 else
10136 echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 ac_header_preproc=no
10139 fi
10140 rm -f conftest.err conftest.$ac_ext
10141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10142 echo "${ECHO_T}$ac_header_preproc" >&6
10143
10144 # So? What about this header?
10145 case $ac_header_compiler:$ac_header_preproc in
10146 yes:no )
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10151 no:yes )
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10158 esac
10159 echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 eval "$as_ac_Header=$ac_header_preproc"
10165 fi
10166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10168
10169 fi
10170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10173 _ACEOF
10174
10175 fi
10176
10177 done
10178
10179
10180
10181
10182 for ac_header in sys/time.h unistd.h
10183 do
10184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10186 echo "$as_me:$LINENO: checking for $ac_header" >&5
10187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 fi
10191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10193 else
10194 # Is the header compilable?
10195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10198 #line $LINENO "configure"
10199 #include "confdefs.h"
10200 $ac_includes_default
10201 #include <$ac_header>
10202 _ACEOF
10203 rm -f conftest.$ac_objext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205 (eval $ac_compile) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_header_compiler=yes
10216 else
10217 echo "$as_me: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10219 ac_header_compiler=no
10220 fi
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10223 echo "${ECHO_T}$ac_header_compiler" >&6
10224
10225 # Is the header present?
10226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10228 cat >conftest.$ac_ext <<_ACEOF
10229 #line $LINENO "configure"
10230 #include "confdefs.h"
10231 #include <$ac_header>
10232 _ACEOF
10233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev/null; then
10241 if test -s conftest.err; then
10242 ac_cpp_err=$ac_c_preproc_warn_flag
10243 else
10244 ac_cpp_err=
10245 fi
10246 else
10247 ac_cpp_err=yes
10248 fi
10249 if test -z "$ac_cpp_err"; then
10250 ac_header_preproc=yes
10251 else
10252 echo "$as_me: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 ac_header_preproc=no
10255 fi
10256 rm -f conftest.err conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10258 echo "${ECHO_T}$ac_header_preproc" >&6
10259
10260 # So? What about this header?
10261 case $ac_header_compiler:$ac_header_preproc in
10262 yes:no )
10263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10267 no:yes )
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10274 esac
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 eval "$as_ac_Header=$ac_header_preproc"
10281 fi
10282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10284
10285 fi
10286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10287 cat >>confdefs.h <<_ACEOF
10288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10289 _ACEOF
10290
10291 fi
10292
10293 done
10294
10295
10296 for ac_func in alarm
10297 do
10298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10299 echo "$as_me:$LINENO: checking for $ac_func" >&5
10300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10301 if eval "test \"\${$as_ac_var+set}\" = set"; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 cat >conftest.$ac_ext <<_ACEOF
10305 #line $LINENO "configure"
10306 #include "confdefs.h"
10307 /* System header to define __stub macros and hopefully few prototypes,
10308 which can conflict with char $ac_func (); below. */
10309 #include <assert.h>
10310 /* Override any gcc2 internal prototype to avoid an error. */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10316 char $ac_func ();
10317 char (*f) ();
10318
10319 int
10320 main ()
10321 {
10322 /* The GNU C library defines this for functions which it implements
10323 to always fail with ENOSYS. Some functions are actually named
10324 something starting with __ and the normal name is an alias. */
10325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10326 choke me
10327 #else
10328 f = $ac_func;
10329 #endif
10330
10331 ;
10332 return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 eval "$as_ac_var=yes"
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10351 eval "$as_ac_var=no"
10352 fi
10353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10354 fi
10355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10357 if test `eval echo '${'$as_ac_var'}'` = yes; then
10358 cat >>confdefs.h <<_ACEOF
10359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10360 _ACEOF
10361
10362 fi
10363 done
10364
10365 echo "$as_me:$LINENO: checking for working mktime" >&5
10366 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10367 if test "${ac_cv_func_working_mktime+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370 if test "$cross_compiling" = yes; then
10371 ac_cv_func_working_mktime=no
10372 else
10373 cat >conftest.$ac_ext <<_ACEOF
10374 #line $LINENO "configure"
10375 #include "confdefs.h"
10376 /* Test program from Paul Eggert and Tony Leneis. */
10377 #if TIME_WITH_SYS_TIME
10378 # include <sys/time.h>
10379 # include <time.h>
10380 #else
10381 # if HAVE_SYS_TIME_H
10382 # include <sys/time.h>
10383 # else
10384 # include <time.h>
10385 # endif
10386 #endif
10387
10388 #if HAVE_UNISTD_H
10389 # include <unistd.h>
10390 #endif
10391
10392 #if !HAVE_ALARM
10393 # define alarm(X) /* empty */
10394 #endif
10395
10396 /* Work around redefinition to rpl_putenv by other config tests. */
10397 #undef putenv
10398
10399 static time_t time_t_max;
10400
10401 /* Values we'll use to set the TZ environment variable. */
10402 static const char *const tz_strings[] = {
10403 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10404 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10405 };
10406 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10407
10408 /* Fail if mktime fails to convert a date in the spring-forward gap.
10409 Based on a problem report from Andreas Jaeger. */
10410 static void
10411 spring_forward_gap ()
10412 {
10413 /* glibc (up to about 1998-10-07) failed this test. */
10414 struct tm tm;
10415
10416 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10417 instead of "TZ=America/Vancouver" in order to detect the bug even
10418 on systems that don't support the Olson extension, or don't have the
10419 full zoneinfo tables installed. */
10420 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10421
10422 tm.tm_year = 98;
10423 tm.tm_mon = 3;
10424 tm.tm_mday = 5;
10425 tm.tm_hour = 2;
10426 tm.tm_min = 0;
10427 tm.tm_sec = 0;
10428 tm.tm_isdst = -1;
10429 if (mktime (&tm) == (time_t)-1)
10430 exit (1);
10431 }
10432
10433 static void
10434 mktime_test (now)
10435 time_t now;
10436 {
10437 struct tm *lt;
10438 if ((lt = localtime (&now)) && mktime (lt) != now)
10439 exit (1);
10440 now = time_t_max - now;
10441 if ((lt = localtime (&now)) && mktime (lt) != now)
10442 exit (1);
10443 }
10444
10445 static void
10446 irix_6_4_bug ()
10447 {
10448 /* Based on code from Ariel Faigon. */
10449 struct tm tm;
10450 tm.tm_year = 96;
10451 tm.tm_mon = 3;
10452 tm.tm_mday = 0;
10453 tm.tm_hour = 0;
10454 tm.tm_min = 0;
10455 tm.tm_sec = 0;
10456 tm.tm_isdst = -1;
10457 mktime (&tm);
10458 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10459 exit (1);
10460 }
10461
10462 static void
10463 bigtime_test (j)
10464 int j;
10465 {
10466 struct tm tm;
10467 time_t now;
10468 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10469 now = mktime (&tm);
10470 if (now != (time_t) -1)
10471 {
10472 struct tm *lt = localtime (&now);
10473 if (! (lt
10474 && lt->tm_year == tm.tm_year
10475 && lt->tm_mon == tm.tm_mon
10476 && lt->tm_mday == tm.tm_mday
10477 && lt->tm_hour == tm.tm_hour
10478 && lt->tm_min == tm.tm_min
10479 && lt->tm_sec == tm.tm_sec
10480 && lt->tm_yday == tm.tm_yday
10481 && lt->tm_wday == tm.tm_wday
10482 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10483 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10484 exit (1);
10485 }
10486 }
10487
10488 int
10489 main ()
10490 {
10491 time_t t, delta;
10492 int i, j;
10493
10494 /* This test makes some buggy mktime implementations loop.
10495 Give up after 60 seconds; a mktime slower than that
10496 isn't worth using anyway. */
10497 alarm (60);
10498
10499 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10500 continue;
10501 time_t_max--;
10502 delta = time_t_max / 997; /* a suitable prime number */
10503 for (i = 0; i < N_STRINGS; i++)
10504 {
10505 if (tz_strings[i])
10506 putenv (tz_strings[i]);
10507
10508 for (t = 0; t <= time_t_max - delta; t += delta)
10509 mktime_test (t);
10510 mktime_test ((time_t) 60 * 60);
10511 mktime_test ((time_t) 60 * 60 * 24);
10512
10513 for (j = 1; 0 < j; j *= 2)
10514 bigtime_test (j);
10515 bigtime_test (j - 1);
10516 }
10517 irix_6_4_bug ();
10518 spring_forward_gap ();
10519 exit (0);
10520 }
10521 _ACEOF
10522 rm -f conftest$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_func_working_mktime=yes
10534 else
10535 echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 ( exit $ac_status )
10539 ac_cv_func_working_mktime=no
10540 fi
10541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10542 fi
10543 fi
10544 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10545 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10546 if test $ac_cv_func_working_mktime = no; then
10547 LIBOBJS="$LIBOBJS mktime.$ac_objext"
10548 fi
10549
10550 if test "$ac_cv_func_working_mktime" = no; then
10551
10552 cat >>confdefs.h <<\_ACEOF
10553 #define BROKEN_MKTIME 1
10554 _ACEOF
10555
10556 fi
10557
10558 ac_have_func=no # yes means we've found a way to get the load average.
10559
10560 # Make sure getloadavg.c is where it belongs, at configure-time.
10561 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10562 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
10563 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
10564 { (exit 1); exit 1; }; }
10565
10566 ac_save_LIBS=$LIBS
10567
10568 # Check for getloadavg, but be sure not to touch the cache variable.
10569 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10570 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10571 if test "${ac_cv_func_getloadavg+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char getloadavg (); below. */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10586 char getloadavg ();
10587 char (*f) ();
10588
10589 int
10590 main ()
10591 {
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10596 choke me
10597 #else
10598 f = getloadavg;
10599 #endif
10600
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_func_getloadavg=yes
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 ac_cv_func_getloadavg=no
10622 fi
10623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10626 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10627 if test $ac_cv_func_getloadavg = yes; then
10628 exit 0
10629 else
10630 exit 1
10631 fi
10632 ) && ac_have_func=yes
10633
10634 # On HPUX9, an unprivileged user can get load averages through this function.
10635
10636 for ac_func in pstat_getdynamic
10637 do
10638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10639 echo "$as_me:$LINENO: checking for $ac_func" >&5
10640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10641 if eval "test \"\${$as_ac_var+set}\" = set"; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10647 /* System header to define __stub macros and hopefully few prototypes,
10648 which can conflict with char $ac_func (); below. */
10649 #include <assert.h>
10650 /* Override any gcc2 internal prototype to avoid an error. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10656 char $ac_func ();
10657 char (*f) ();
10658
10659 int
10660 main ()
10661 {
10662 /* The GNU C library defines this for functions which it implements
10663 to always fail with ENOSYS. Some functions are actually named
10664 something starting with __ and the normal name is an alias. */
10665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10666 choke me
10667 #else
10668 f = $ac_func;
10669 #endif
10670
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677 (eval $ac_link) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -s conftest$ac_exeext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 eval "$as_ac_var=yes"
10688 else
10689 echo "$as_me: failed program was:" >&5
10690 cat conftest.$ac_ext >&5
10691 eval "$as_ac_var=no"
10692 fi
10693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10694 fi
10695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10697 if test `eval echo '${'$as_ac_var'}'` = yes; then
10698 cat >>confdefs.h <<_ACEOF
10699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10700 _ACEOF
10701
10702 fi
10703 done
10704
10705
10706 # Solaris has libkstat which does not require root.
10707
10708 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10709 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10710 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-lkstat $LIBS"
10715 cat >conftest.$ac_ext <<_ACEOF
10716 #line $LINENO "configure"
10717 #include "confdefs.h"
10718
10719 /* Override any gcc2 internal prototype to avoid an error. */
10720 #ifdef __cplusplus
10721 extern "C"
10722 #endif
10723 /* We use char because int might match the return type of a gcc2
10724 builtin and then its argument prototype would still apply. */
10725 char kstat_open ();
10726 int
10727 main ()
10728 {
10729 kstat_open ();
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_kstat_kstat_open=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 cat conftest.$ac_ext >&5
10750 ac_cv_lib_kstat_kstat_open=no
10751 fi
10752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10754 fi
10755 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10756 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
10757 if test $ac_cv_lib_kstat_kstat_open = yes; then
10758 cat >>confdefs.h <<_ACEOF
10759 #define HAVE_LIBKSTAT 1
10760 _ACEOF
10761
10762 LIBS="-lkstat $LIBS"
10763
10764 fi
10765
10766 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
10767
10768 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10769 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10770 # to get the right answer into the cache.
10771 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10772 if test $ac_have_func = no; then
10773 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10774 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10775 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778 ac_check_lib_save_LIBS=$LIBS
10779 LIBS="-lelf $LIBS"
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 #include "confdefs.h"
10783
10784 /* Override any gcc2 internal prototype to avoid an error. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char elf_begin ();
10791 int
10792 main ()
10793 {
10794 elf_begin ();
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 ac_cv_lib_elf_elf_begin=yes
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10815 ac_cv_lib_elf_elf_begin=no
10816 fi
10817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10821 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10822 if test $ac_cv_lib_elf_elf_begin = yes; then
10823 LIBS="-lelf $LIBS"
10824 fi
10825
10826 fi
10827 if test $ac_have_func = no; then
10828 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10829 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10830 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833 ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-lkvm $LIBS"
10835 cat >conftest.$ac_ext <<_ACEOF
10836 #line $LINENO "configure"
10837 #include "confdefs.h"
10838
10839 /* Override any gcc2 internal prototype to avoid an error. */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 /* We use char because int might match the return type of a gcc2
10844 builtin and then its argument prototype would still apply. */
10845 char kvm_open ();
10846 int
10847 main ()
10848 {
10849 kvm_open ();
10850 ;
10851 return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_lib_kvm_kvm_open=yes
10867 else
10868 echo "$as_me: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 ac_cv_lib_kvm_kvm_open=no
10871 fi
10872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10874 fi
10875 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10876 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10877 if test $ac_cv_lib_kvm_kvm_open = yes; then
10878 LIBS="-lkvm $LIBS"
10879 fi
10880
10881 # Check for the 4.4BSD definition of getloadavg.
10882 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10883 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10884 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887 ac_check_lib_save_LIBS=$LIBS
10888 LIBS="-lutil $LIBS"
10889 cat >conftest.$ac_ext <<_ACEOF
10890 #line $LINENO "configure"
10891 #include "confdefs.h"
10892
10893 /* Override any gcc2 internal prototype to avoid an error. */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899 char getloadavg ();
10900 int
10901 main ()
10902 {
10903 getloadavg ();
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
10914 { ac_try='test -s conftest$ac_exeext'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; }; then
10920 ac_cv_lib_util_getloadavg=yes
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10924 ac_cv_lib_util_getloadavg=no
10925 fi
10926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10928 fi
10929 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10930 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10931 if test $ac_cv_lib_util_getloadavg = yes; then
10932 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10933 fi
10934
10935 fi
10936
10937 if test $ac_have_func = no; then
10938 # There is a commonly available library for RS/6000 AIX.
10939 # Since it is not a standard part of AIX, it might be installed locally.
10940 ac_getloadavg_LIBS=$LIBS
10941 LIBS="-L/usr/local/lib $LIBS"
10942 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10943 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10944 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-lgetloadavg $LIBS"
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 #include "confdefs.h"
10952
10953 /* Override any gcc2 internal prototype to avoid an error. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10959 char getloadavg ();
10960 int
10961 main ()
10962 {
10963 getloadavg ();
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -s conftest$ac_exeext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_lib_getloadavg_getloadavg=yes
10981 else
10982 echo "$as_me: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10984 ac_cv_lib_getloadavg_getloadavg=no
10985 fi
10986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10988 fi
10989 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10990 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10991 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
10992 LIBS="-lgetloadavg $LIBS"
10993 else
10994 LIBS=$ac_getloadavg_LIBS
10995 fi
10996
10997 fi
10998
10999 # Make sure it is really in the library, if we think we found it,
11000 # otherwise set up the replacement function.
11001
11002 for ac_func in getloadavg
11003 do
11004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 echo "$as_me:$LINENO: checking for $ac_func" >&5
11006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11007 if eval "test \"\${$as_ac_var+set}\" = set"; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010 cat >conftest.$ac_ext <<_ACEOF
11011 #line $LINENO "configure"
11012 #include "confdefs.h"
11013 /* System header to define __stub macros and hopefully few prototypes,
11014 which can conflict with char $ac_func (); below. */
11015 #include <assert.h>
11016 /* Override any gcc2 internal prototype to avoid an error. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 /* We use char because int might match the return type of a gcc2
11021 builtin and then its argument prototype would still apply. */
11022 char $ac_func ();
11023 char (*f) ();
11024
11025 int
11026 main ()
11027 {
11028 /* The GNU C library defines this for functions which it implements
11029 to always fail with ENOSYS. Some functions are actually named
11030 something starting with __ and the normal name is an alias. */
11031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11032 choke me
11033 #else
11034 f = $ac_func;
11035 #endif
11036
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 eval "$as_ac_var=yes"
11054 else
11055 echo "$as_me: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 eval "$as_ac_var=no"
11058 fi
11059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11060 fi
11061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11063 if test `eval echo '${'$as_ac_var'}'` = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11066 _ACEOF
11067
11068 else
11069 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11070
11071 cat >>confdefs.h <<\_ACEOF
11072 #define C_GETLOADAVG 1
11073 _ACEOF
11074
11075 # Figure out what our getloadavg.c needs.
11076 ac_have_func=no
11077 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11078 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11079 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11080 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 fi
11083 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11084 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11085 else
11086 # Is the header compilable?
11087 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11088 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11089 cat >conftest.$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11091 #include "confdefs.h"
11092 $ac_includes_default
11093 #include <sys/dg_sys_info.h>
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_header_compiler=yes
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11111 ac_header_compiler=no
11112 fi
11113 rm -f conftest.$ac_objext conftest.$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 echo "${ECHO_T}$ac_header_compiler" >&6
11116
11117 # Is the header present?
11118 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11119 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11122 #include "confdefs.h"
11123 #include <sys/dg_sys_info.h>
11124 _ACEOF
11125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } >/dev/null; then
11133 if test -s conftest.err; then
11134 ac_cpp_err=$ac_c_preproc_warn_flag
11135 else
11136 ac_cpp_err=
11137 fi
11138 else
11139 ac_cpp_err=yes
11140 fi
11141 if test -z "$ac_cpp_err"; then
11142 ac_header_preproc=yes
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 cat conftest.$ac_ext >&5
11146 ac_header_preproc=no
11147 fi
11148 rm -f conftest.err conftest.$ac_ext
11149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150 echo "${ECHO_T}$ac_header_preproc" >&6
11151
11152 # So? What about this header?
11153 case $ac_header_compiler:$ac_header_preproc in
11154 yes:no )
11155 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11156 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11158 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11159 no:yes )
11160 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11161 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11163 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11165 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11166 esac
11167 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11168 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11169 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11173 fi
11174 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11175 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11176
11177 fi
11178 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11179 ac_have_func=yes
11180
11181 cat >>confdefs.h <<\_ACEOF
11182 #define DGUX 1
11183 _ACEOF
11184
11185
11186 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11187 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11188 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-ldgc $LIBS"
11193 cat >conftest.$ac_ext <<_ACEOF
11194 #line $LINENO "configure"
11195 #include "confdefs.h"
11196
11197 /* Override any gcc2 internal prototype to avoid an error. */
11198 #ifdef __cplusplus
11199 extern "C"
11200 #endif
11201 /* We use char because int might match the return type of a gcc2
11202 builtin and then its argument prototype would still apply. */
11203 char dg_sys_info ();
11204 int
11205 main ()
11206 {
11207 dg_sys_info ();
11208 ;
11209 return 0;
11210 }
11211 _ACEOF
11212 rm -f conftest.$ac_objext conftest$ac_exeext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11214 (eval $ac_link) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } &&
11218 { ac_try='test -s conftest$ac_exeext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_lib_dgc_dg_sys_info=yes
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11228 ac_cv_lib_dgc_dg_sys_info=no
11229 fi
11230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11232 fi
11233 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11234 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11235 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11236 cat >>confdefs.h <<_ACEOF
11237 #define HAVE_LIBDGC 1
11238 _ACEOF
11239
11240 LIBS="-ldgc $LIBS"
11241
11242 fi
11243
11244 fi
11245
11246
11247
11248 if test "${ac_cv_header_locale_h+set}" = set; then
11249 echo "$as_me:$LINENO: checking for locale.h" >&5
11250 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11251 if test "${ac_cv_header_locale_h+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 fi
11254 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11255 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11256 else
11257 # Is the header compilable?
11258 echo "$as_me:$LINENO: checking locale.h usability" >&5
11259 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11260 cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11262 #include "confdefs.h"
11263 $ac_includes_default
11264 #include <locale.h>
11265 _ACEOF
11266 rm -f conftest.$ac_objext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11268 (eval $ac_compile) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -s conftest.$ac_objext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_header_compiler=yes
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11282 ac_header_compiler=no
11283 fi
11284 rm -f conftest.$ac_objext conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286 echo "${ECHO_T}$ac_header_compiler" >&6
11287
11288 # Is the header present?
11289 echo "$as_me:$LINENO: checking locale.h presence" >&5
11290 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11292 #line $LINENO "configure"
11293 #include "confdefs.h"
11294 #include <locale.h>
11295 _ACEOF
11296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } >/dev/null; then
11304 if test -s conftest.err; then
11305 ac_cpp_err=$ac_c_preproc_warn_flag
11306 else
11307 ac_cpp_err=
11308 fi
11309 else
11310 ac_cpp_err=yes
11311 fi
11312 if test -z "$ac_cpp_err"; then
11313 ac_header_preproc=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11317 ac_header_preproc=no
11318 fi
11319 rm -f conftest.err conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6
11322
11323 # So? What about this header?
11324 case $ac_header_compiler:$ac_header_preproc in
11325 yes:no )
11326 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11327 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11329 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11330 no:yes )
11331 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11332 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11334 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11336 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11337 esac
11338 echo "$as_me:$LINENO: checking for locale.h" >&5
11339 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11340 if test "${ac_cv_header_locale_h+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 ac_cv_header_locale_h=$ac_header_preproc
11344 fi
11345 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11346 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11347
11348 fi
11349
11350
11351
11352 for ac_func in setlocale
11353 do
11354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11355 echo "$as_me:$LINENO: checking for $ac_func" >&5
11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11357 if eval "test \"\${$as_ac_var+set}\" = set"; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360 cat >conftest.$ac_ext <<_ACEOF
11361 #line $LINENO "configure"
11362 #include "confdefs.h"
11363 /* System header to define __stub macros and hopefully few prototypes,
11364 which can conflict with char $ac_func (); below. */
11365 #include <assert.h>
11366 /* Override any gcc2 internal prototype to avoid an error. */
11367 #ifdef __cplusplus
11368 extern "C"
11369 #endif
11370 /* We use char because int might match the return type of a gcc2
11371 builtin and then its argument prototype would still apply. */
11372 char $ac_func ();
11373 char (*f) ();
11374
11375 int
11376 main ()
11377 {
11378 /* The GNU C library defines this for functions which it implements
11379 to always fail with ENOSYS. Some functions are actually named
11380 something starting with __ and the normal name is an alias. */
11381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11382 choke me
11383 #else
11384 f = $ac_func;
11385 #endif
11386
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393 (eval $ac_link) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -s conftest$ac_exeext'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 eval "$as_ac_var=yes"
11404 else
11405 echo "$as_me: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11407 eval "$as_ac_var=no"
11408 fi
11409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11410 fi
11411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11413 if test `eval echo '${'$as_ac_var'}'` = yes; then
11414 cat >>confdefs.h <<_ACEOF
11415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11416 _ACEOF
11417
11418 fi
11419 done
11420
11421
11422 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11423 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11424 # Irix 4.0.5F has the header but not the library.
11425 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11426 ac_have_func=yes
11427
11428 cat >>confdefs.h <<\_ACEOF
11429 #define SVR4 1
11430 _ACEOF
11431
11432 fi
11433
11434 if test $ac_have_func = no; then
11435 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11436 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11437 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11438 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 fi
11441 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11442 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11443 else
11444 # Is the header compilable?
11445 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11446 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11447 cat >conftest.$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 #include "confdefs.h"
11450 $ac_includes_default
11451 #include <inq_stats/cpustats.h>
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_header_compiler=yes
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 ac_header_compiler=no
11470 fi
11471 rm -f conftest.$ac_objext conftest.$ac_ext
11472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11473 echo "${ECHO_T}$ac_header_compiler" >&6
11474
11475 # Is the header present?
11476 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11477 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11478 cat >conftest.$ac_ext <<_ACEOF
11479 #line $LINENO "configure"
11480 #include "confdefs.h"
11481 #include <inq_stats/cpustats.h>
11482 _ACEOF
11483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } >/dev/null; then
11491 if test -s conftest.err; then
11492 ac_cpp_err=$ac_c_preproc_warn_flag
11493 else
11494 ac_cpp_err=
11495 fi
11496 else
11497 ac_cpp_err=yes
11498 fi
11499 if test -z "$ac_cpp_err"; then
11500 ac_header_preproc=yes
11501 else
11502 echo "$as_me: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 ac_header_preproc=no
11505 fi
11506 rm -f conftest.err conftest.$ac_ext
11507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11508 echo "${ECHO_T}$ac_header_preproc" >&6
11509
11510 # So? What about this header?
11511 case $ac_header_compiler:$ac_header_preproc in
11512 yes:no )
11513 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11514 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11516 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11517 no:yes )
11518 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11523 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11524 esac
11525 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11526 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11527 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11531 fi
11532 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11533 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11534
11535 fi
11536 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11537 ac_have_func=yes
11538
11539 cat >>confdefs.h <<\_ACEOF
11540 #define UMAX 1
11541 _ACEOF
11542
11543
11544 cat >>confdefs.h <<\_ACEOF
11545 #define UMAX4_3 1
11546 _ACEOF
11547
11548 fi
11549
11550
11551 fi
11552
11553 if test $ac_have_func = no; then
11554 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11555 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11556 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11557 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 fi
11560 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11561 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11562 else
11563 # Is the header compilable?
11564 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11565 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11567 #line $LINENO "configure"
11568 #include "confdefs.h"
11569 $ac_includes_default
11570 #include <sys/cpustats.h>
11571 _ACEOF
11572 rm -f conftest.$ac_objext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574 (eval $ac_compile) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -s conftest.$ac_objext'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584 ac_header_compiler=yes
11585 else
11586 echo "$as_me: failed program was:" >&5
11587 cat conftest.$ac_ext >&5
11588 ac_header_compiler=no
11589 fi
11590 rm -f conftest.$ac_objext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6
11593
11594 # Is the header present?
11595 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11596 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11599 #include "confdefs.h"
11600 #include <sys/cpustats.h>
11601 _ACEOF
11602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11604 ac_status=$?
11605 grep -v '^ *+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev/null; then
11610 if test -s conftest.err; then
11611 ac_cpp_err=$ac_c_preproc_warn_flag
11612 else
11613 ac_cpp_err=
11614 fi
11615 else
11616 ac_cpp_err=yes
11617 fi
11618 if test -z "$ac_cpp_err"; then
11619 ac_header_preproc=yes
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 cat conftest.$ac_ext >&5
11623 ac_header_preproc=no
11624 fi
11625 rm -f conftest.err conftest.$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11627 echo "${ECHO_T}$ac_header_preproc" >&6
11628
11629 # So? What about this header?
11630 case $ac_header_compiler:$ac_header_preproc in
11631 yes:no )
11632 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11633 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11635 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11636 no:yes )
11637 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11638 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11640 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11642 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11643 esac
11644 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11645 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11646 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11650 fi
11651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11652 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11653
11654 fi
11655 if test $ac_cv_header_sys_cpustats_h = yes; then
11656 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11657 #define UMAX 1
11658 _ACEOF
11659
11660 fi
11661
11662
11663 fi
11664
11665 if test $ac_have_func = no; then
11666
11667 for ac_header in mach/mach.h
11668 do
11669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11671 echo "$as_me:$LINENO: checking for $ac_header" >&5
11672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 fi
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11678 else
11679 # Is the header compilable?
11680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11685 $ac_includes_default
11686 #include <$ac_header>
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_header_compiler=yes
11701 else
11702 echo "$as_me: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11704 ac_header_compiler=no
11705 fi
11706 rm -f conftest.$ac_objext conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6
11709
11710 # Is the header present?
11711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 #include <$ac_header>
11717 _ACEOF
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } >/dev/null; then
11726 if test -s conftest.err; then
11727 ac_cpp_err=$ac_c_preproc_warn_flag
11728 else
11729 ac_cpp_err=
11730 fi
11731 else
11732 ac_cpp_err=yes
11733 fi
11734 if test -z "$ac_cpp_err"; then
11735 ac_header_preproc=yes
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 cat conftest.$ac_ext >&5
11739 ac_header_preproc=no
11740 fi
11741 rm -f conftest.err conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11744
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc in
11747 yes:no )
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11752 no:yes )
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11759 esac
11760 echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 eval "$as_ac_Header=$ac_header_preproc"
11766 fi
11767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11769
11770 fi
11771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774 _ACEOF
11775
11776 fi
11777
11778 done
11779
11780 fi
11781
11782
11783 for ac_header in nlist.h
11784 do
11785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11787 echo "$as_me:$LINENO: checking for $ac_header" >&5
11788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 fi
11792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11794 else
11795 # Is the header compilable?
11796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11799 #line $LINENO "configure"
11800 #include "confdefs.h"
11801 $ac_includes_default
11802 #include <$ac_header>
11803 _ACEOF
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_header_compiler=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 cat conftest.$ac_ext >&5
11820 ac_header_compiler=no
11821 fi
11822 rm -f conftest.$ac_objext conftest.$ac_ext
11823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 echo "${ECHO_T}$ac_header_compiler" >&6
11825
11826 # Is the header present?
11827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11829 cat >conftest.$ac_ext <<_ACEOF
11830 #line $LINENO "configure"
11831 #include "confdefs.h"
11832 #include <$ac_header>
11833 _ACEOF
11834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } >/dev/null; then
11842 if test -s conftest.err; then
11843 ac_cpp_err=$ac_c_preproc_warn_flag
11844 else
11845 ac_cpp_err=
11846 fi
11847 else
11848 ac_cpp_err=yes
11849 fi
11850 if test -z "$ac_cpp_err"; then
11851 ac_header_preproc=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11855 ac_header_preproc=no
11856 fi
11857 rm -f conftest.err conftest.$ac_ext
11858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11859 echo "${ECHO_T}$ac_header_preproc" >&6
11860
11861 # So? What about this header?
11862 case $ac_header_compiler:$ac_header_preproc in
11863 yes:no )
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11868 no:yes )
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11875 esac
11876 echo "$as_me:$LINENO: checking for $ac_header" >&5
11877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881 eval "$as_ac_Header=$ac_header_preproc"
11882 fi
11883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11885
11886 fi
11887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11888 cat >>confdefs.h <<_ACEOF
11889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11890 _ACEOF
11891 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11892 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11893 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 #include "confdefs.h"
11899 #include <nlist.h>
11900
11901 int
11902 main ()
11903 {
11904 static struct nlist ac_aggr;
11905 if (ac_aggr.n_un.n_name)
11906 return 0;
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913 (eval $ac_compile) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -s conftest.$ac_objext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 ac_cv_member_struct_nlist_n_un_n_name=yes
11924 else
11925 echo "$as_me: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11927 cat >conftest.$ac_ext <<_ACEOF
11928 #line $LINENO "configure"
11929 #include "confdefs.h"
11930 #include <nlist.h>
11931
11932 int
11933 main ()
11934 {
11935 static struct nlist ac_aggr;
11936 if (sizeof ac_aggr.n_un.n_name)
11937 return 0;
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_member_struct_nlist_n_un_n_name=yes
11955 else
11956 echo "$as_me: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11958 ac_cv_member_struct_nlist_n_un_n_name=no
11959 fi
11960 rm -f conftest.$ac_objext conftest.$ac_ext
11961 fi
11962 rm -f conftest.$ac_objext conftest.$ac_ext
11963 fi
11964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11965 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11966 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11967
11968 cat >>confdefs.h <<_ACEOF
11969 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11970 _ACEOF
11971
11972
11973 cat >>confdefs.h <<\_ACEOF
11974 #define NLIST_NAME_UNION 1
11975 _ACEOF
11976
11977 fi
11978
11979
11980 fi
11981
11982 done
11983
11984 fi
11985 done
11986
11987
11988 # Some definitions of getloadavg require that the program be installed setgid.
11989 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11990 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11991 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994 cat >conftest.$ac_ext <<_ACEOF
11995 #line $LINENO "configure"
11996 #include "confdefs.h"
11997 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11998 #ifdef LDAV_PRIVILEGED
11999 Yowza Am I SETGID yet
12000 #endif
12001 _ACEOF
12002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12003 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
12004 ac_cv_func_getloadavg_setgid=yes
12005 else
12006 ac_cv_func_getloadavg_setgid=no
12007 fi
12008 rm -f conftest*
12009
12010 fi
12011 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12012 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12013 if test $ac_cv_func_getloadavg_setgid = yes; then
12014 NEED_SETGID=true
12015
12016 cat >>confdefs.h <<\_ACEOF
12017 #define GETLOADAVG_PRIVILEGED 1
12018 _ACEOF
12019
12020 else
12021 NEED_SETGID=false
12022 fi
12023
12024 if test $ac_cv_func_getloadavg_setgid = yes; then
12025 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12026 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12027 if test "${ac_cv_group_kmem+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12031 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12032 # If we got an error (system does not support symlinks), try without -L.
12033 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12034 ac_cv_group_kmem=`echo $ac_ls_output \
12035 | sed -ne 's/[ ][ ]*/ /g;
12036 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12037 / /s/.* //;p;'`
12038
12039 fi
12040 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12041 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12042 KMEM_GROUP=$ac_cv_group_kmem
12043 fi
12044 if test "x$ac_save_LIBS" = x; then
12045 GETLOADAVG_LIBS=$LIBS
12046 else
12047 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12048 fi
12049 LIBS=$ac_save_LIBS
12050
12051
12052
12053 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12054 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12055 if test "${ac_cv_sys_largefile_source+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 while :; do
12059 ac_cv_sys_largefile_source=no
12060 cat >conftest.$ac_ext <<_ACEOF
12061 #line $LINENO "configure"
12062 #include "confdefs.h"
12063 #include <stdio.h>
12064 int
12065 main ()
12066 {
12067 return !fseeko;
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -s conftest.$ac_objext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 break
12085 else
12086 echo "$as_me: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12088 fi
12089 rm -f conftest.$ac_objext conftest.$ac_ext
12090 cat >conftest.$ac_ext <<_ACEOF
12091 #line $LINENO "configure"
12092 #include "confdefs.h"
12093 #define _LARGEFILE_SOURCE 1
12094 #include <stdio.h>
12095 int
12096 main ()
12097 {
12098 return !fseeko;
12099 ;
12100 return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_cv_sys_largefile_source=1; break
12116 else
12117 echo "$as_me: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12119 fi
12120 rm -f conftest.$ac_objext conftest.$ac_ext
12121 break
12122 done
12123 fi
12124 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12125 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12126 if test "$ac_cv_sys_largefile_source" != no; then
12127
12128 cat >>confdefs.h <<_ACEOF
12129 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12130 _ACEOF
12131
12132 fi
12133 rm -f conftest*
12134
12135 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12136 # in glibc 2.1.3, but that breaks too many other things.
12137 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12138 echo "$as_me:$LINENO: checking for fseeko" >&5
12139 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12140 if test "${ac_cv_func_fseeko+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 cat >conftest.$ac_ext <<_ACEOF
12144 #line $LINENO "configure"
12145 #include "confdefs.h"
12146 #include <stdio.h>
12147 int
12148 main ()
12149 {
12150 return fseeko && fseeko (stdin, 0, 0);
12151 ;
12152 return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157 (eval $ac_link) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -s conftest$ac_exeext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 ac_cv_func_fseeko=yes
12168 else
12169 echo "$as_me: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 ac_cv_func_fseeko=no
12172 fi
12173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12174 fi
12175 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12176 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12177 if test $ac_cv_func_fseeko = yes; then
12178
12179 cat >>confdefs.h <<\_ACEOF
12180 #define HAVE_FSEEKO 1
12181 _ACEOF
12182
12183 fi
12184
12185
12186 # UNIX98 PTYs.
12187
12188 for ac_func in grantpt
12189 do
12190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12191 echo "$as_me:$LINENO: checking for $ac_func" >&5
12192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12193 if eval "test \"\${$as_ac_var+set}\" = set"; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 #include "confdefs.h"
12199 /* System header to define __stub macros and hopefully few prototypes,
12200 which can conflict with char $ac_func (); below. */
12201 #include <assert.h>
12202 /* Override any gcc2 internal prototype to avoid an error. */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208 char $ac_func ();
12209 char (*f) ();
12210
12211 int
12212 main ()
12213 {
12214 /* The GNU C library defines this for functions which it implements
12215 to always fail with ENOSYS. Some functions are actually named
12216 something starting with __ and the normal name is an alias. */
12217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12218 choke me
12219 #else
12220 f = $ac_func;
12221 #endif
12222
12223 ;
12224 return 0;
12225 }
12226 _ACEOF
12227 rm -f conftest.$ac_objext conftest$ac_exeext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229 (eval $ac_link) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 eval "$as_ac_var=yes"
12240 else
12241 echo "$as_me: failed program was:" >&5
12242 cat conftest.$ac_ext >&5
12243 eval "$as_ac_var=no"
12244 fi
12245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12246 fi
12247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12249 if test `eval echo '${'$as_ac_var'}'` = yes; then
12250 cat >>confdefs.h <<_ACEOF
12251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12252 _ACEOF
12253
12254 fi
12255 done
12256
12257
12258 # PTY-related GNU extensions.
12259
12260 for ac_func in getpt
12261 do
12262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12263 echo "$as_me:$LINENO: checking for $ac_func" >&5
12264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12265 if eval "test \"\${$as_ac_var+set}\" = set"; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 #include "confdefs.h"
12271 /* System header to define __stub macros and hopefully few prototypes,
12272 which can conflict with char $ac_func (); below. */
12273 #include <assert.h>
12274 /* Override any gcc2 internal prototype to avoid an error. */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 /* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12280 char $ac_func ();
12281 char (*f) ();
12282
12283 int
12284 main ()
12285 {
12286 /* The GNU C library defines this for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12290 choke me
12291 #else
12292 f = $ac_func;
12293 #endif
12294
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 eval "$as_ac_var=yes"
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 eval "$as_ac_var=no"
12316 fi
12317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12318 fi
12319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12321 if test `eval echo '${'$as_ac_var'}'` = yes; then
12322 cat >>confdefs.h <<_ACEOF
12323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12324 _ACEOF
12325
12326 fi
12327 done
12328
12329
12330 # Check this now, so that we will NOT find the above functions in ncurses.
12331 # That is because we have not set up to link ncurses in lib-src.
12332 # It's better to believe a function is not available
12333 # than to expect to find it in ncurses.
12334
12335 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12336 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12337 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lncurses $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12344 #include "confdefs.h"
12345
12346 /* Override any gcc2 internal prototype to avoid an error. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 /* We use char because int might match the return type of a gcc2
12351 builtin and then its argument prototype would still apply. */
12352 char tparm ();
12353 int
12354 main ()
12355 {
12356 tparm ();
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_lib_ncurses_tparm=yes
12374 else
12375 echo "$as_me: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 ac_cv_lib_ncurses_tparm=no
12378 fi
12379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12383 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12384 if test $ac_cv_lib_ncurses_tparm = yes; then
12385 cat >>confdefs.h <<_ACEOF
12386 #define HAVE_LIBNCURSES 1
12387 _ACEOF
12388
12389 LIBS="-lncurses $LIBS"
12390
12391 fi
12392
12393
12394 # Do we need the Hesiod library to provide the support routines?
12395 if test "$with_hesiod" = yes ; then
12396 # Don't set $LIBS here -- see comments above.
12397 resolv=no
12398 echo "$as_me:$LINENO: checking for res_send" >&5
12399 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12400 if test "${ac_cv_func_res_send+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 #include "confdefs.h"
12406 /* System header to define __stub macros and hopefully few prototypes,
12407 which can conflict with char res_send (); below. */
12408 #include <assert.h>
12409 /* Override any gcc2 internal prototype to avoid an error. */
12410 #ifdef __cplusplus
12411 extern "C"
12412 #endif
12413 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12415 char res_send ();
12416 char (*f) ();
12417
12418 int
12419 main ()
12420 {
12421 /* The GNU C library defines this for functions which it implements
12422 to always fail with ENOSYS. Some functions are actually named
12423 something starting with __ and the normal name is an alias. */
12424 #if defined (__stub_res_send) || defined (__stub___res_send)
12425 choke me
12426 #else
12427 f = res_send;
12428 #endif
12429
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436 (eval $ac_link) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try='test -s conftest$ac_exeext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_func_res_send=yes
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 cat conftest.$ac_ext >&5
12450 ac_cv_func_res_send=no
12451 fi
12452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12453 fi
12454 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12455 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12456 if test $ac_cv_func_res_send = yes; then
12457 :
12458 else
12459 echo "$as_me:$LINENO: checking for __res_send" >&5
12460 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12461 if test "${ac_cv_func___res_send+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 cat >conftest.$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12466 #include "confdefs.h"
12467 /* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char __res_send (); below. */
12469 #include <assert.h>
12470 /* Override any gcc2 internal prototype to avoid an error. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 /* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
12476 char __res_send ();
12477 char (*f) ();
12478
12479 int
12480 main ()
12481 {
12482 /* The GNU C library defines this for functions which it implements
12483 to always fail with ENOSYS. Some functions are actually named
12484 something starting with __ and the normal name is an alias. */
12485 #if defined (__stub___res_send) || defined (__stub_____res_send)
12486 choke me
12487 #else
12488 f = __res_send;
12489 #endif
12490
12491 ;
12492 return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_func___res_send=yes
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 cat conftest.$ac_ext >&5
12511 ac_cv_func___res_send=no
12512 fi
12513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12514 fi
12515 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12516 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12517 if test $ac_cv_func___res_send = yes; then
12518 :
12519 else
12520 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12521 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12522 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lresolv $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 #line $LINENO "configure"
12529 #include "confdefs.h"
12530
12531 /* Override any gcc2 internal prototype to avoid an error. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537 char res_send ();
12538 int
12539 main ()
12540 {
12541 res_send ();
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest$ac_exeext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_lib_resolv_res_send=yes
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 ac_cv_lib_resolv_res_send=no
12563 fi
12564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12568 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12569 if test $ac_cv_lib_resolv_res_send = yes; then
12570 resolv=yes
12571 else
12572 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12573 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12574 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577 ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-lresolv $LIBS"
12579 cat >conftest.$ac_ext <<_ACEOF
12580 #line $LINENO "configure"
12581 #include "confdefs.h"
12582
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 /* We use char because int might match the return type of a gcc2
12588 builtin and then its argument prototype would still apply. */
12589 char __res_send ();
12590 int
12591 main ()
12592 {
12593 __res_send ();
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600 (eval $ac_link) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -s conftest$ac_exeext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_lib_resolv___res_send=yes
12611 else
12612 echo "$as_me: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12614 ac_cv_lib_resolv___res_send=no
12615 fi
12616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12617 LIBS=$ac_check_lib_save_LIBS
12618 fi
12619 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12620 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12621 if test $ac_cv_lib_resolv___res_send = yes; then
12622 resolv=yes
12623 fi
12624
12625 fi
12626
12627 fi
12628
12629 fi
12630
12631 if test "$resolv" = yes ; then
12632 RESOLVLIB=-lresolv
12633
12634 cat >>confdefs.h <<\_ACEOF
12635 #define HAVE_LIBRESOLV 1
12636 _ACEOF
12637
12638 else
12639 RESOLVLIB=
12640 fi
12641 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12642 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12643 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646 cat >conftest.$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 #include "confdefs.h"
12649 /* System header to define __stub macros and hopefully few prototypes,
12650 which can conflict with char hes_getmailhost (); below. */
12651 #include <assert.h>
12652 /* Override any gcc2 internal prototype to avoid an error. */
12653 #ifdef __cplusplus
12654 extern "C"
12655 #endif
12656 /* We use char because int might match the return type of a gcc2
12657 builtin and then its argument prototype would still apply. */
12658 char hes_getmailhost ();
12659 char (*f) ();
12660
12661 int
12662 main ()
12663 {
12664 /* The GNU C library defines this for functions which it implements
12665 to always fail with ENOSYS. Some functions are actually named
12666 something starting with __ and the normal name is an alias. */
12667 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
12668 choke me
12669 #else
12670 f = hes_getmailhost;
12671 #endif
12672
12673 ;
12674 return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679 (eval $ac_link) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -s conftest$ac_exeext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_cv_func_hes_getmailhost=yes
12690 else
12691 echo "$as_me: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 ac_cv_func_hes_getmailhost=no
12694 fi
12695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12696 fi
12697 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
12698 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
12699 if test $ac_cv_func_hes_getmailhost = yes; then
12700 :
12701 else
12702 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12703 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
12704 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707 ac_check_lib_save_LIBS=$LIBS
12708 LIBS="-lhesiod $RESOLVLIB $LIBS"
12709 cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 #include "confdefs.h"
12712
12713 /* Override any gcc2 internal prototype to avoid an error. */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12719 char hes_getmailhost ();
12720 int
12721 main ()
12722 {
12723 hes_getmailhost ();
12724 ;
12725 return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730 (eval $ac_link) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -s conftest$ac_exeext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_lib_hesiod_hes_getmailhost=yes
12741 else
12742 echo "$as_me: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12744 ac_cv_lib_hesiod_hes_getmailhost=no
12745 fi
12746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12747 LIBS=$ac_check_lib_save_LIBS
12748 fi
12749 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12750 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
12751 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12752
12753 cat >>confdefs.h <<\_ACEOF
12754 #define HAVE_LIBHESIOD 1
12755 _ACEOF
12756
12757 else
12758 :
12759 fi
12760
12761 fi
12762
12763 fi
12764
12765 # These tell us which Kerberos-related libraries to use.
12766 if test "${with_kerberos+set}" = set; then
12767
12768 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12769 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
12770 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773 ac_check_lib_save_LIBS=$LIBS
12774 LIBS="-lcom_err $LIBS"
12775 cat >conftest.$ac_ext <<_ACEOF
12776 #line $LINENO "configure"
12777 #include "confdefs.h"
12778
12779 /* Override any gcc2 internal prototype to avoid an error. */
12780 #ifdef __cplusplus
12781 extern "C"
12782 #endif
12783 /* We use char because int might match the return type of a gcc2
12784 builtin and then its argument prototype would still apply. */
12785 char com_err ();
12786 int
12787 main ()
12788 {
12789 com_err ();
12790 ;
12791 return 0;
12792 }
12793 _ACEOF
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796 (eval $ac_link) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_lib_com_err_com_err=yes
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 ac_cv_lib_com_err_com_err=no
12811 fi
12812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12814 fi
12815 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12816 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
12817 if test $ac_cv_lib_com_err_com_err = yes; then
12818 cat >>confdefs.h <<_ACEOF
12819 #define HAVE_LIBCOM_ERR 1
12820 _ACEOF
12821
12822 LIBS="-lcom_err $LIBS"
12823
12824 fi
12825
12826
12827 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12828 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
12829 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832 ac_check_lib_save_LIBS=$LIBS
12833 LIBS="-lk5crypto $LIBS"
12834 cat >conftest.$ac_ext <<_ACEOF
12835 #line $LINENO "configure"
12836 #include "confdefs.h"
12837
12838 /* Override any gcc2 internal prototype to avoid an error. */
12839 #ifdef __cplusplus
12840 extern "C"
12841 #endif
12842 /* We use char because int might match the return type of a gcc2
12843 builtin and then its argument prototype would still apply. */
12844 char mit_des_cbc_encrypt ();
12845 int
12846 main ()
12847 {
12848 mit_des_cbc_encrypt ();
12849 ;
12850 return 0;
12851 }
12852 _ACEOF
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
12859 { ac_try='test -s conftest$ac_exeext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12866 else
12867 echo "$as_me: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12869 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12870 fi
12871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12872 LIBS=$ac_check_lib_save_LIBS
12873 fi
12874 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12875 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
12876 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12877 cat >>confdefs.h <<_ACEOF
12878 #define HAVE_LIBK5CRYPTO 1
12879 _ACEOF
12880
12881 LIBS="-lk5crypto $LIBS"
12882
12883 fi
12884
12885
12886 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12887 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12888 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 ac_check_lib_save_LIBS=$LIBS
12892 LIBS="-lcrypto $LIBS"
12893 cat >conftest.$ac_ext <<_ACEOF
12894 #line $LINENO "configure"
12895 #include "confdefs.h"
12896
12897 /* Override any gcc2 internal prototype to avoid an error. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 /* We use char because int might match the return type of a gcc2
12902 builtin and then its argument prototype would still apply. */
12903 char mit_des_cbc_encrypt ();
12904 int
12905 main ()
12906 {
12907 mit_des_cbc_encrypt ();
12908 ;
12909 return 0;
12910 }
12911 _ACEOF
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12914 (eval $ac_link) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -s conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12925 else
12926 echo "$as_me: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12928 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12929 fi
12930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12932 fi
12933 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12934 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
12935 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12936 cat >>confdefs.h <<_ACEOF
12937 #define HAVE_LIBCRYPTO 1
12938 _ACEOF
12939
12940 LIBS="-lcrypto $LIBS"
12941
12942 fi
12943
12944
12945 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12946 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
12947 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950 ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lkrb5 $LIBS"
12952 cat >conftest.$ac_ext <<_ACEOF
12953 #line $LINENO "configure"
12954 #include "confdefs.h"
12955
12956 /* Override any gcc2 internal prototype to avoid an error. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962 char krb5_init_context ();
12963 int
12964 main ()
12965 {
12966 krb5_init_context ();
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_lib_krb5_krb5_init_context=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12987 ac_cv_lib_krb5_krb5_init_context=no
12988 fi
12989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12990 LIBS=$ac_check_lib_save_LIBS
12991 fi
12992 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12993 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
12994 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12995 cat >>confdefs.h <<_ACEOF
12996 #define HAVE_LIBKRB5 1
12997 _ACEOF
12998
12999 LIBS="-lkrb5 $LIBS"
13000
13001 fi
13002
13003 if test "${with_kerberos5+set}" != set; then
13004
13005 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13006 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13007 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010 ac_check_lib_save_LIBS=$LIBS
13011 LIBS="-ldes425 $LIBS"
13012 cat >conftest.$ac_ext <<_ACEOF
13013 #line $LINENO "configure"
13014 #include "confdefs.h"
13015
13016 /* Override any gcc2 internal prototype to avoid an error. */
13017 #ifdef __cplusplus
13018 extern "C"
13019 #endif
13020 /* We use char because int might match the return type of a gcc2
13021 builtin and then its argument prototype would still apply. */
13022 char des_cbc_encrypt ();
13023 int
13024 main ()
13025 {
13026 des_cbc_encrypt ();
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 rm -f conftest.$ac_objext conftest$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_lib_des425_des_cbc_encrypt=yes
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13047 ac_cv_lib_des425_des_cbc_encrypt=no
13048 fi
13049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13050 LIBS=$ac_check_lib_save_LIBS
13051 fi
13052 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13053 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13054 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13055 cat >>confdefs.h <<_ACEOF
13056 #define HAVE_LIBDES425 1
13057 _ACEOF
13058
13059 LIBS="-ldes425 $LIBS"
13060
13061 else
13062
13063 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13064 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13065 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-ldes $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 #include "confdefs.h"
13073
13074 /* Override any gcc2 internal prototype to avoid an error. */
13075 #ifdef __cplusplus
13076 extern "C"
13077 #endif
13078 /* We use char because int might match the return type of a gcc2
13079 builtin and then its argument prototype would still apply. */
13080 char des_cbc_encrypt ();
13081 int
13082 main ()
13083 {
13084 des_cbc_encrypt ();
13085 ;
13086 return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13091 (eval $ac_link) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -s conftest$ac_exeext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_lib_des_des_cbc_encrypt=yes
13102 else
13103 echo "$as_me: failed program was:" >&5
13104 cat conftest.$ac_ext >&5
13105 ac_cv_lib_des_des_cbc_encrypt=no
13106 fi
13107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13109 fi
13110 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13111 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13112 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13113 cat >>confdefs.h <<_ACEOF
13114 #define HAVE_LIBDES 1
13115 _ACEOF
13116
13117 LIBS="-ldes $LIBS"
13118
13119 fi
13120
13121 fi
13122
13123
13124 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13125 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13126 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 else
13129 ac_check_lib_save_LIBS=$LIBS
13130 LIBS="-lkrb4 $LIBS"
13131 cat >conftest.$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13133 #include "confdefs.h"
13134
13135 /* Override any gcc2 internal prototype to avoid an error. */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 /* We use char because int might match the return type of a gcc2
13140 builtin and then its argument prototype would still apply. */
13141 char krb_get_cred ();
13142 int
13143 main ()
13144 {
13145 krb_get_cred ();
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152 (eval $ac_link) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_krb4_krb_get_cred=yes
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 ac_cv_lib_krb4_krb_get_cred=no
13167 fi
13168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13169 LIBS=$ac_check_lib_save_LIBS
13170 fi
13171 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13172 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13173 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13174 cat >>confdefs.h <<_ACEOF
13175 #define HAVE_LIBKRB4 1
13176 _ACEOF
13177
13178 LIBS="-lkrb4 $LIBS"
13179
13180 else
13181
13182 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13183 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13184 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187 ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lkrb $LIBS"
13189 cat >conftest.$ac_ext <<_ACEOF
13190 #line $LINENO "configure"
13191 #include "confdefs.h"
13192
13193 /* Override any gcc2 internal prototype to avoid an error. */
13194 #ifdef __cplusplus
13195 extern "C"
13196 #endif
13197 /* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
13199 char krb_get_cred ();
13200 int
13201 main ()
13202 {
13203 krb_get_cred ();
13204 ;
13205 return 0;
13206 }
13207 _ACEOF
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_krb_krb_get_cred=yes
13221 else
13222 echo "$as_me: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 ac_cv_lib_krb_krb_get_cred=no
13225 fi
13226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13228 fi
13229 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13230 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13231 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13232 cat >>confdefs.h <<_ACEOF
13233 #define HAVE_LIBKRB 1
13234 _ACEOF
13235
13236 LIBS="-lkrb $LIBS"
13237
13238 fi
13239
13240 fi
13241
13242 fi
13243
13244 if test "${with_kerberos5+set}" = set; then
13245
13246 for ac_header in krb5.h
13247 do
13248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13250 echo "$as_me:$LINENO: checking for $ac_header" >&5
13251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 fi
13255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13257 else
13258 # Is the header compilable?
13259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13261 cat >conftest.$ac_ext <<_ACEOF
13262 #line $LINENO "configure"
13263 #include "confdefs.h"
13264 $ac_includes_default
13265 #include <$ac_header>
13266 _ACEOF
13267 rm -f conftest.$ac_objext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler=yes
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13283 ac_header_compiler=no
13284 fi
13285 rm -f conftest.$ac_objext conftest.$ac_ext
13286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13287 echo "${ECHO_T}$ac_header_compiler" >&6
13288
13289 # Is the header present?
13290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13292 cat >conftest.$ac_ext <<_ACEOF
13293 #line $LINENO "configure"
13294 #include "confdefs.h"
13295 #include <$ac_header>
13296 _ACEOF
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null; then
13305 if test -s conftest.err; then
13306 ac_cpp_err=$ac_c_preproc_warn_flag
13307 else
13308 ac_cpp_err=
13309 fi
13310 else
13311 ac_cpp_err=yes
13312 fi
13313 if test -z "$ac_cpp_err"; then
13314 ac_header_preproc=yes
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13318 ac_header_preproc=no
13319 fi
13320 rm -f conftest.err conftest.$ac_ext
13321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6
13323
13324 # So? What about this header?
13325 case $ac_header_compiler:$ac_header_preproc in
13326 yes:no )
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13331 no:yes )
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13338 esac
13339 echo "$as_me:$LINENO: checking for $ac_header" >&5
13340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 eval "$as_ac_Header=$ac_header_preproc"
13345 fi
13346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348
13349 fi
13350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13351 cat >>confdefs.h <<_ACEOF
13352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13353 _ACEOF
13354
13355 fi
13356
13357 done
13358
13359 else
13360
13361 for ac_header in des.h
13362 do
13363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo "$as_me:$LINENO: checking for $ac_header" >&5
13366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 fi
13370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372 else
13373 # Is the header compilable?
13374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13376 cat >conftest.$ac_ext <<_ACEOF
13377 #line $LINENO "configure"
13378 #include "confdefs.h"
13379 $ac_includes_default
13380 #include <$ac_header>
13381 _ACEOF
13382 rm -f conftest.$ac_objext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13384 (eval $ac_compile) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 ac_header_compiler=yes
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 cat conftest.$ac_ext >&5
13398 ac_header_compiler=no
13399 fi
13400 rm -f conftest.$ac_objext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13402 echo "${ECHO_T}$ac_header_compiler" >&6
13403
13404 # Is the header present?
13405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13407 cat >conftest.$ac_ext <<_ACEOF
13408 #line $LINENO "configure"
13409 #include "confdefs.h"
13410 #include <$ac_header>
13411 _ACEOF
13412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } >/dev/null; then
13420 if test -s conftest.err; then
13421 ac_cpp_err=$ac_c_preproc_warn_flag
13422 else
13423 ac_cpp_err=
13424 fi
13425 else
13426 ac_cpp_err=yes
13427 fi
13428 if test -z "$ac_cpp_err"; then
13429 ac_header_preproc=yes
13430 else
13431 echo "$as_me: failed program was:" >&5
13432 cat conftest.$ac_ext >&5
13433 ac_header_preproc=no
13434 fi
13435 rm -f conftest.err conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13437 echo "${ECHO_T}$ac_header_preproc" >&6
13438
13439 # So? What about this header?
13440 case $ac_header_compiler:$ac_header_preproc in
13441 yes:no )
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13446 no:yes )
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13453 esac
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459 eval "$as_ac_Header=$ac_header_preproc"
13460 fi
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463
13464 fi
13465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13468 _ACEOF
13469
13470 else
13471
13472 for ac_header in kerberosIV/des.h
13473 do
13474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13476 echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 fi
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13483 else
13484 # Is the header compilable?
13485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13487 cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 #include "confdefs.h"
13490 $ac_includes_default
13491 #include <$ac_header>
13492 _ACEOF
13493 rm -f conftest.$ac_objext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13495 (eval $ac_compile) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_header_compiler=yes
13506 else
13507 echo "$as_me: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 ac_header_compiler=no
13510 fi
13511 rm -f conftest.$ac_objext conftest.$ac_ext
13512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13513 echo "${ECHO_T}$ac_header_compiler" >&6
13514
13515 # Is the header present?
13516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13518 cat >conftest.$ac_ext <<_ACEOF
13519 #line $LINENO "configure"
13520 #include "confdefs.h"
13521 #include <$ac_header>
13522 _ACEOF
13523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null; then
13531 if test -s conftest.err; then
13532 ac_cpp_err=$ac_c_preproc_warn_flag
13533 else
13534 ac_cpp_err=
13535 fi
13536 else
13537 ac_cpp_err=yes
13538 fi
13539 if test -z "$ac_cpp_err"; then
13540 ac_header_preproc=yes
13541 else
13542 echo "$as_me: failed program was:" >&5
13543 cat conftest.$ac_ext >&5
13544 ac_header_preproc=no
13545 fi
13546 rm -f conftest.err conftest.$ac_ext
13547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13548 echo "${ECHO_T}$ac_header_preproc" >&6
13549
13550 # So? What about this header?
13551 case $ac_header_compiler:$ac_header_preproc in
13552 yes:no )
13553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13557 no:yes )
13558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13564 esac
13565 echo "$as_me:$LINENO: checking for $ac_header" >&5
13566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570 eval "$as_ac_Header=$ac_header_preproc"
13571 fi
13572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13574
13575 fi
13576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13577 cat >>confdefs.h <<_ACEOF
13578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13579 _ACEOF
13580
13581 else
13582
13583 for ac_header in kerberos/des.h
13584 do
13585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13587 echo "$as_me:$LINENO: checking for $ac_header" >&5
13588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 fi
13592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13594 else
13595 # Is the header compilable?
13596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 #include "confdefs.h"
13601 $ac_includes_default
13602 #include <$ac_header>
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_header_compiler=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 ac_header_compiler=no
13621 fi
13622 rm -f conftest.$ac_objext conftest.$ac_ext
13623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13624 echo "${ECHO_T}$ac_header_compiler" >&6
13625
13626 # Is the header present?
13627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13631 #include "confdefs.h"
13632 #include <$ac_header>
13633 _ACEOF
13634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } >/dev/null; then
13642 if test -s conftest.err; then
13643 ac_cpp_err=$ac_c_preproc_warn_flag
13644 else
13645 ac_cpp_err=
13646 fi
13647 else
13648 ac_cpp_err=yes
13649 fi
13650 if test -z "$ac_cpp_err"; then
13651 ac_header_preproc=yes
13652 else
13653 echo "$as_me: failed program was:" >&5
13654 cat conftest.$ac_ext >&5
13655 ac_header_preproc=no
13656 fi
13657 rm -f conftest.err conftest.$ac_ext
13658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13659 echo "${ECHO_T}$ac_header_preproc" >&6
13660
13661 # So? What about this header?
13662 case $ac_header_compiler:$ac_header_preproc in
13663 yes:no )
13664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13668 no:yes )
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13675 esac
13676 echo "$as_me:$LINENO: checking for $ac_header" >&5
13677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 else
13681 eval "$as_ac_Header=$ac_header_preproc"
13682 fi
13683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13685
13686 fi
13687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13688 cat >>confdefs.h <<_ACEOF
13689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13690 _ACEOF
13691
13692 fi
13693
13694 done
13695
13696 fi
13697
13698 done
13699
13700 fi
13701
13702 done
13703
13704
13705 for ac_header in krb.h
13706 do
13707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13709 echo "$as_me:$LINENO: checking for $ac_header" >&5
13710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 fi
13714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13716 else
13717 # Is the header compilable?
13718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13720 cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 #include "confdefs.h"
13723 $ac_includes_default
13724 #include <$ac_header>
13725 _ACEOF
13726 rm -f conftest.$ac_objext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_header_compiler=yes
13739 else
13740 echo "$as_me: failed program was:" >&5
13741 cat conftest.$ac_ext >&5
13742 ac_header_compiler=no
13743 fi
13744 rm -f conftest.$ac_objext conftest.$ac_ext
13745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13746 echo "${ECHO_T}$ac_header_compiler" >&6
13747
13748 # Is the header present?
13749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13751 cat >conftest.$ac_ext <<_ACEOF
13752 #line $LINENO "configure"
13753 #include "confdefs.h"
13754 #include <$ac_header>
13755 _ACEOF
13756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } >/dev/null; then
13764 if test -s conftest.err; then
13765 ac_cpp_err=$ac_c_preproc_warn_flag
13766 else
13767 ac_cpp_err=
13768 fi
13769 else
13770 ac_cpp_err=yes
13771 fi
13772 if test -z "$ac_cpp_err"; then
13773 ac_header_preproc=yes
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 cat conftest.$ac_ext >&5
13777 ac_header_preproc=no
13778 fi
13779 rm -f conftest.err conftest.$ac_ext
13780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13781 echo "${ECHO_T}$ac_header_preproc" >&6
13782
13783 # So? What about this header?
13784 case $ac_header_compiler:$ac_header_preproc in
13785 yes:no )
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13790 no:yes )
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13797 esac
13798 echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 else
13803 eval "$as_ac_Header=$ac_header_preproc"
13804 fi
13805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13807
13808 fi
13809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13810 cat >>confdefs.h <<_ACEOF
13811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13812 _ACEOF
13813
13814 else
13815
13816 for ac_header in kerberosIV/krb.h
13817 do
13818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13820 echo "$as_me:$LINENO: checking for $ac_header" >&5
13821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 fi
13825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13827 else
13828 # Is the header compilable?
13829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13833 #include "confdefs.h"
13834 $ac_includes_default
13835 #include <$ac_header>
13836 _ACEOF
13837 rm -f conftest.$ac_objext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -s conftest.$ac_objext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_header_compiler=yes
13850 else
13851 echo "$as_me: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13853 ac_header_compiler=no
13854 fi
13855 rm -f conftest.$ac_objext conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13857 echo "${ECHO_T}$ac_header_compiler" >&6
13858
13859 # Is the header present?
13860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13864 #include "confdefs.h"
13865 #include <$ac_header>
13866 _ACEOF
13867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev/null; then
13875 if test -s conftest.err; then
13876 ac_cpp_err=$ac_c_preproc_warn_flag
13877 else
13878 ac_cpp_err=
13879 fi
13880 else
13881 ac_cpp_err=yes
13882 fi
13883 if test -z "$ac_cpp_err"; then
13884 ac_header_preproc=yes
13885 else
13886 echo "$as_me: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13888 ac_header_preproc=no
13889 fi
13890 rm -f conftest.err conftest.$ac_ext
13891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13892 echo "${ECHO_T}$ac_header_preproc" >&6
13893
13894 # So? What about this header?
13895 case $ac_header_compiler:$ac_header_preproc in
13896 yes:no )
13897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13901 no:yes )
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13908 esac
13909 echo "$as_me:$LINENO: checking for $ac_header" >&5
13910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914 eval "$as_ac_Header=$ac_header_preproc"
13915 fi
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13918
13919 fi
13920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13921 cat >>confdefs.h <<_ACEOF
13922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13923 _ACEOF
13924
13925 else
13926
13927 for ac_header in kerberos/krb.h
13928 do
13929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13931 echo "$as_me:$LINENO: checking for $ac_header" >&5
13932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 fi
13936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13938 else
13939 # Is the header compilable?
13940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13942 cat >conftest.$ac_ext <<_ACEOF
13943 #line $LINENO "configure"
13944 #include "confdefs.h"
13945 $ac_includes_default
13946 #include <$ac_header>
13947 _ACEOF
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_header_compiler=yes
13961 else
13962 echo "$as_me: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 ac_header_compiler=no
13965 fi
13966 rm -f conftest.$ac_objext conftest.$ac_ext
13967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13968 echo "${ECHO_T}$ac_header_compiler" >&6
13969
13970 # Is the header present?
13971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13974 #line $LINENO "configure"
13975 #include "confdefs.h"
13976 #include <$ac_header>
13977 _ACEOF
13978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } >/dev/null; then
13986 if test -s conftest.err; then
13987 ac_cpp_err=$ac_c_preproc_warn_flag
13988 else
13989 ac_cpp_err=
13990 fi
13991 else
13992 ac_cpp_err=yes
13993 fi
13994 if test -z "$ac_cpp_err"; then
13995 ac_header_preproc=yes
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 ac_header_preproc=no
14000 fi
14001 rm -f conftest.err conftest.$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 echo "${ECHO_T}$ac_header_preproc" >&6
14004
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc in
14007 yes:no )
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14012 no:yes )
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14019 esac
14020 echo "$as_me:$LINENO: checking for $ac_header" >&5
14021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025 eval "$as_ac_Header=$ac_header_preproc"
14026 fi
14027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14029
14030 fi
14031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14032 cat >>confdefs.h <<_ACEOF
14033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14034 _ACEOF
14035
14036 fi
14037
14038 done
14039
14040 fi
14041
14042 done
14043
14044 fi
14045
14046 done
14047
14048 fi
14049
14050 for ac_header in com_err.h
14051 do
14052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14054 echo "$as_me:$LINENO: checking for $ac_header" >&5
14055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 fi
14059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14061 else
14062 # Is the header compilable?
14063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14066 #line $LINENO "configure"
14067 #include "confdefs.h"
14068 $ac_includes_default
14069 #include <$ac_header>
14070 _ACEOF
14071 rm -f conftest.$ac_objext
14072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_header_compiler=yes
14084 else
14085 echo "$as_me: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 ac_header_compiler=no
14088 fi
14089 rm -f conftest.$ac_objext conftest.$ac_ext
14090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14091 echo "${ECHO_T}$ac_header_compiler" >&6
14092
14093 # Is the header present?
14094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14096 cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 #include "confdefs.h"
14099 #include <$ac_header>
14100 _ACEOF
14101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } >/dev/null; then
14109 if test -s conftest.err; then
14110 ac_cpp_err=$ac_c_preproc_warn_flag
14111 else
14112 ac_cpp_err=
14113 fi
14114 else
14115 ac_cpp_err=yes
14116 fi
14117 if test -z "$ac_cpp_err"; then
14118 ac_header_preproc=yes
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14122 ac_header_preproc=no
14123 fi
14124 rm -f conftest.err conftest.$ac_ext
14125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14126 echo "${ECHO_T}$ac_header_preproc" >&6
14127
14128 # So? What about this header?
14129 case $ac_header_compiler:$ac_header_preproc in
14130 yes:no )
14131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14135 no:yes )
14136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14142 esac
14143 echo "$as_me:$LINENO: checking for $ac_header" >&5
14144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148 eval "$as_ac_Header=$ac_header_preproc"
14149 fi
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14152
14153 fi
14154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14155 cat >>confdefs.h <<_ACEOF
14156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14157 _ACEOF
14158
14159 fi
14160
14161 done
14162
14163 fi
14164
14165 # Solaris requires -lintl if you want strerror (which calls dgettext)
14166 # to return localized messages.
14167
14168 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14169 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14170 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173 ac_check_lib_save_LIBS=$LIBS
14174 LIBS="-lintl $LIBS"
14175 cat >conftest.$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14177 #include "confdefs.h"
14178
14179 /* Override any gcc2 internal prototype to avoid an error. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 /* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14185 char dgettext ();
14186 int
14187 main ()
14188 {
14189 dgettext ();
14190 ;
14191 return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196 (eval $ac_link) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -s conftest$ac_exeext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_cv_lib_intl_dgettext=yes
14207 else
14208 echo "$as_me: failed program was:" >&5
14209 cat conftest.$ac_ext >&5
14210 ac_cv_lib_intl_dgettext=no
14211 fi
14212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14214 fi
14215 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14216 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14217 if test $ac_cv_lib_intl_dgettext = yes; then
14218 cat >>confdefs.h <<_ACEOF
14219 #define HAVE_LIBINTL 1
14220 _ACEOF
14221
14222 LIBS="-lintl $LIBS"
14223
14224 fi
14225
14226
14227 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14228 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14229 if test "${emacs_cv_localtime_cache+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232 if test x$ac_cv_func_tzset = xyes; then
14233 if test "$cross_compiling" = yes; then
14234 # If we have tzset, assume the worst when cross-compiling.
14235 emacs_cv_localtime_cache=yes
14236 else
14237 cat >conftest.$ac_ext <<_ACEOF
14238 #line $LINENO "configure"
14239 #include "confdefs.h"
14240 #include <time.h>
14241 extern char **environ;
14242 unset_TZ ()
14243 {
14244 char **from, **to;
14245 for (to = from = environ; (*to = *from); from++)
14246 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14247 to++;
14248 }
14249 char TZ_GMT0[] = "TZ=GMT0";
14250 char TZ_PST8[] = "TZ=PST8";
14251 main()
14252 {
14253 time_t now = time ((time_t *) 0);
14254 int hour_GMT0, hour_unset;
14255 if (putenv (TZ_GMT0) != 0)
14256 exit (1);
14257 hour_GMT0 = localtime (&now)->tm_hour;
14258 unset_TZ ();
14259 hour_unset = localtime (&now)->tm_hour;
14260 if (putenv (TZ_PST8) != 0)
14261 exit (1);
14262 if (localtime (&now)->tm_hour == hour_GMT0)
14263 exit (1);
14264 unset_TZ ();
14265 if (localtime (&now)->tm_hour != hour_unset)
14266 exit (1);
14267 exit (0);
14268 }
14269 _ACEOF
14270 rm -f conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 emacs_cv_localtime_cache=no
14282 else
14283 echo "$as_me: program exited with status $ac_status" >&5
14284 echo "$as_me: failed program was:" >&5
14285 cat conftest.$ac_ext >&5
14286 ( exit $ac_status )
14287 emacs_cv_localtime_cache=yes
14288 fi
14289 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14290 fi
14291 else
14292 # If we lack tzset, report that localtime does not cache TZ,
14293 # since we can't invalidate the cache if we don't have tzset.
14294 emacs_cv_localtime_cache=no
14295 fi
14296 fi
14297 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14298 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14299 if test $emacs_cv_localtime_cache = yes; then
14300
14301 cat >>confdefs.h <<\_ACEOF
14302 #define LOCALTIME_CACHE 1
14303 _ACEOF
14304
14305 fi
14306
14307 if test "x$HAVE_TIMEVAL" = xyes; then
14308
14309 for ac_func in gettimeofday
14310 do
14311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14312 echo "$as_me:$LINENO: checking for $ac_func" >&5
14313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14314 if eval "test \"\${$as_ac_var+set}\" = set"; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317 cat >conftest.$ac_ext <<_ACEOF
14318 #line $LINENO "configure"
14319 #include "confdefs.h"
14320 /* System header to define __stub macros and hopefully few prototypes,
14321 which can conflict with char $ac_func (); below. */
14322 #include <assert.h>
14323 /* Override any gcc2 internal prototype to avoid an error. */
14324 #ifdef __cplusplus
14325 extern "C"
14326 #endif
14327 /* We use char because int might match the return type of a gcc2
14328 builtin and then its argument prototype would still apply. */
14329 char $ac_func ();
14330 char (*f) ();
14331
14332 int
14333 main ()
14334 {
14335 /* The GNU C library defines this for functions which it implements
14336 to always fail with ENOSYS. Some functions are actually named
14337 something starting with __ and the normal name is an alias. */
14338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14339 choke me
14340 #else
14341 f = $ac_func;
14342 #endif
14343
14344 ;
14345 return 0;
14346 }
14347 _ACEOF
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350 (eval $ac_link) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 eval "$as_ac_var=yes"
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14364 eval "$as_ac_var=no"
14365 fi
14366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14367 fi
14368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14370 if test `eval echo '${'$as_ac_var'}'` = yes; then
14371 cat >>confdefs.h <<_ACEOF
14372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14373 _ACEOF
14374
14375 fi
14376 done
14377
14378 if test $ac_cv_func_gettimeofday = yes; then
14379 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14380 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14381 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384 cat >conftest.$ac_ext <<_ACEOF
14385 #line $LINENO "configure"
14386 #include "confdefs.h"
14387
14388 #ifdef TIME_WITH_SYS_TIME
14389 #include <sys/time.h>
14390 #include <time.h>
14391 #else
14392 #ifdef HAVE_SYS_TIME_H
14393 #include <sys/time.h>
14394 #else
14395 #include <time.h>
14396 #endif
14397 #endif
14398 int
14399 main ()
14400 {
14401 struct timeval time;
14402 gettimeofday (&time, 0);
14403 ;
14404 return 0;
14405 }
14406 _ACEOF
14407 rm -f conftest.$ac_objext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14409 (eval $ac_compile) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -s conftest.$ac_objext'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 emacs_cv_gettimeofday_two_arguments=yes
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14423 emacs_cv_gettimeofday_two_arguments=no
14424 fi
14425 rm -f conftest.$ac_objext conftest.$ac_ext
14426 fi
14427 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14428 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14429 if test $emacs_cv_gettimeofday_two_arguments = no; then
14430
14431 cat >>confdefs.h <<\_ACEOF
14432 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14433 _ACEOF
14434
14435 fi
14436 fi
14437 fi
14438
14439 if test "$ac_cv_func_gettimeofday" = yes; then
14440 echo "$as_me:$LINENO: checking for struct timezone" >&5
14441 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14442 if test "${emacs_cv_struct_timezone+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445 cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 #include "confdefs.h"
14448 #include <sys/time.h>
14449 int
14450 main ()
14451 {
14452 struct timezone tz;
14453 ;
14454 return 0;
14455 }
14456 _ACEOF
14457 rm -f conftest.$ac_objext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459 (eval $ac_compile) 2>&5
14460 ac_status=$?
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try='test -s conftest.$ac_objext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 if test "$cross_compiling" = yes; then
14470 emacs_cv_struct_timezone=yes
14471 else
14472 cat >conftest.$ac_ext <<_ACEOF
14473 #line $LINENO "configure"
14474 #include "confdefs.h"
14475
14476 #ifdef TIME_WITH_SYS_TIME
14477 #include <sys/time.h>
14478 #include <time.h>
14479 #else
14480 #ifdef HAVE_SYS_TIME_H
14481 #include <sys/time.h>
14482 #else
14483 #include <time.h>
14484 #endif
14485 #endif
14486 main () {
14487 struct timeval time;
14488 struct timezone dummy;
14489 exit (gettimeofday (&time, &dummy));
14490 }
14491 _ACEOF
14492 rm -f conftest$ac_exeext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14494 (eval $ac_link) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 emacs_cv_struct_timezone=yes
14504 else
14505 echo "$as_me: program exited with status $ac_status" >&5
14506 echo "$as_me: failed program was:" >&5
14507 cat conftest.$ac_ext >&5
14508 ( exit $ac_status )
14509 emacs_cv_struct_timezone=no
14510 fi
14511 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14512 fi
14513 else
14514 echo "$as_me: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 emacs_cv_struct_timezone=no
14517 fi
14518 rm -f conftest.$ac_objext conftest.$ac_ext
14519 fi
14520 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14521 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14522 fi
14523
14524 ok_so_far=yes
14525 echo "$as_me:$LINENO: checking for socket" >&5
14526 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14527 if test "${ac_cv_func_socket+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530 cat >conftest.$ac_ext <<_ACEOF
14531 #line $LINENO "configure"
14532 #include "confdefs.h"
14533 /* System header to define __stub macros and hopefully few prototypes,
14534 which can conflict with char socket (); below. */
14535 #include <assert.h>
14536 /* Override any gcc2 internal prototype to avoid an error. */
14537 #ifdef __cplusplus
14538 extern "C"
14539 #endif
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14542 char socket ();
14543 char (*f) ();
14544
14545 int
14546 main ()
14547 {
14548 /* The GNU C library defines this for functions which it implements
14549 to always fail with ENOSYS. Some functions are actually named
14550 something starting with __ and the normal name is an alias. */
14551 #if defined (__stub_socket) || defined (__stub___socket)
14552 choke me
14553 #else
14554 f = socket;
14555 #endif
14556
14557 ;
14558 return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14563 (eval $ac_link) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest$ac_exeext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_cv_func_socket=yes
14574 else
14575 echo "$as_me: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14577 ac_cv_func_socket=no
14578 fi
14579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14580 fi
14581 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14582 echo "${ECHO_T}$ac_cv_func_socket" >&6
14583 if test $ac_cv_func_socket = yes; then
14584 :
14585 else
14586 ok_so_far=no
14587 fi
14588
14589 if test $ok_so_far = yes; then
14590 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14591 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14592 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14593 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 fi
14596 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14597 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14598 else
14599 # Is the header compilable?
14600 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
14601 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
14602 cat >conftest.$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14604 #include "confdefs.h"
14605 $ac_includes_default
14606 #include <netinet/in.h>
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_header_compiler=yes
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 ac_header_compiler=no
14625 fi
14626 rm -f conftest.$ac_objext conftest.$ac_ext
14627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14628 echo "${ECHO_T}$ac_header_compiler" >&6
14629
14630 # Is the header present?
14631 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
14632 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line $LINENO "configure"
14635 #include "confdefs.h"
14636 #include <netinet/in.h>
14637 _ACEOF
14638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } >/dev/null; then
14646 if test -s conftest.err; then
14647 ac_cpp_err=$ac_c_preproc_warn_flag
14648 else
14649 ac_cpp_err=
14650 fi
14651 else
14652 ac_cpp_err=yes
14653 fi
14654 if test -z "$ac_cpp_err"; then
14655 ac_header_preproc=yes
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 cat conftest.$ac_ext >&5
14659 ac_header_preproc=no
14660 fi
14661 rm -f conftest.err conftest.$ac_ext
14662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663 echo "${ECHO_T}$ac_header_preproc" >&6
14664
14665 # So? What about this header?
14666 case $ac_header_compiler:$ac_header_preproc in
14667 yes:no )
14668 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
14669 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14671 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14672 no:yes )
14673 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
14674 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
14676 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14678 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14679 esac
14680 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14681 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14682 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685 ac_cv_header_netinet_in_h=$ac_header_preproc
14686 fi
14687 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14688 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14689
14690 fi
14691 if test $ac_cv_header_netinet_in_h = yes; then
14692 :
14693 else
14694 ok_so_far=no
14695 fi
14696
14697
14698 fi
14699 if test $ok_so_far = yes; then
14700 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14701 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14702 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14703 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 fi
14706 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14707 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14708 else
14709 # Is the header compilable?
14710 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
14711 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
14712 cat >conftest.$ac_ext <<_ACEOF
14713 #line $LINENO "configure"
14714 #include "confdefs.h"
14715 $ac_includes_default
14716 #include <arpa/inet.h>
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_header_compiler=yes
14731 else
14732 echo "$as_me: failed program was:" >&5
14733 cat conftest.$ac_ext >&5
14734 ac_header_compiler=no
14735 fi
14736 rm -f conftest.$ac_objext conftest.$ac_ext
14737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14738 echo "${ECHO_T}$ac_header_compiler" >&6
14739
14740 # Is the header present?
14741 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
14742 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
14743 cat >conftest.$ac_ext <<_ACEOF
14744 #line $LINENO "configure"
14745 #include "confdefs.h"
14746 #include <arpa/inet.h>
14747 _ACEOF
14748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14750 ac_status=$?
14751 grep -v '^ *+' conftest.er1 >conftest.err
14752 rm -f conftest.er1
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } >/dev/null; then
14756 if test -s conftest.err; then
14757 ac_cpp_err=$ac_c_preproc_warn_flag
14758 else
14759 ac_cpp_err=
14760 fi
14761 else
14762 ac_cpp_err=yes
14763 fi
14764 if test -z "$ac_cpp_err"; then
14765 ac_header_preproc=yes
14766 else
14767 echo "$as_me: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14769 ac_header_preproc=no
14770 fi
14771 rm -f conftest.err conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773 echo "${ECHO_T}$ac_header_preproc" >&6
14774
14775 # So? What about this header?
14776 case $ac_header_compiler:$ac_header_preproc in
14777 yes:no )
14778 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
14779 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14782 no:yes )
14783 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
14784 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
14786 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14788 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14789 esac
14790 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14791 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14792 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 ac_cv_header_arpa_inet_h=$ac_header_preproc
14796 fi
14797 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14798 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14799
14800 fi
14801 if test $ac_cv_header_arpa_inet_h = yes; then
14802 :
14803 else
14804 ok_so_far=no
14805 fi
14806
14807
14808 fi
14809 if test $ok_so_far = yes; then
14810
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_INET_SOCKETS 1
14813 _ACEOF
14814
14815 fi
14816
14817 if test -f /usr/lpp/X11/bin/smt.exp; then
14818
14819 cat >>confdefs.h <<\_ACEOF
14820 #define HAVE_AIX_SMT_EXP 1
14821 _ACEOF
14822
14823 fi
14824
14825 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
14826 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
14827 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14828 echo "$as_me:$LINENO: result: yes" >&5
14829 echo "${ECHO_T}yes" >&6
14830
14831 cat >>confdefs.h <<\_ACEOF
14832 #define HAVE_DEV_PTMX 1
14833 _ACEOF
14834
14835 else
14836 echo "$as_me:$LINENO: result: no" >&5
14837 echo "${ECHO_T}no" >&6
14838 fi
14839
14840 echo "$as_me:$LINENO: checking for pid_t" >&5
14841 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14842 if test "${ac_cv_type_pid_t+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845 cat >conftest.$ac_ext <<_ACEOF
14846 #line $LINENO "configure"
14847 #include "confdefs.h"
14848 $ac_includes_default
14849 int
14850 main ()
14851 {
14852 if ((pid_t *) 0)
14853 return 0;
14854 if (sizeof (pid_t))
14855 return 0;
14856 ;
14857 return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_type_pid_t=yes
14873 else
14874 echo "$as_me: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14876 ac_cv_type_pid_t=no
14877 fi
14878 rm -f conftest.$ac_objext conftest.$ac_ext
14879 fi
14880 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14881 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14882 if test $ac_cv_type_pid_t = yes; then
14883 :
14884 else
14885
14886 cat >>confdefs.h <<_ACEOF
14887 #define pid_t int
14888 _ACEOF
14889
14890 fi
14891
14892
14893
14894 for ac_header in unistd.h vfork.h
14895 do
14896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14898 echo "$as_me:$LINENO: checking for $ac_header" >&5
14899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 fi
14903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14905 else
14906 # Is the header compilable?
14907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14909 cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14911 #include "confdefs.h"
14912 $ac_includes_default
14913 #include <$ac_header>
14914 _ACEOF
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_header_compiler=yes
14928 else
14929 echo "$as_me: failed program was:" >&5
14930 cat conftest.$ac_ext >&5
14931 ac_header_compiler=no
14932 fi
14933 rm -f conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14935 echo "${ECHO_T}$ac_header_compiler" >&6
14936
14937 # Is the header present?
14938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14940 cat >conftest.$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14942 #include "confdefs.h"
14943 #include <$ac_header>
14944 _ACEOF
14945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14947 ac_status=$?
14948 grep -v '^ *+' conftest.er1 >conftest.err
14949 rm -f conftest.er1
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } >/dev/null; then
14953 if test -s conftest.err; then
14954 ac_cpp_err=$ac_c_preproc_warn_flag
14955 else
14956 ac_cpp_err=
14957 fi
14958 else
14959 ac_cpp_err=yes
14960 fi
14961 if test -z "$ac_cpp_err"; then
14962 ac_header_preproc=yes
14963 else
14964 echo "$as_me: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14966 ac_header_preproc=no
14967 fi
14968 rm -f conftest.err conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14970 echo "${ECHO_T}$ac_header_preproc" >&6
14971
14972 # So? What about this header?
14973 case $ac_header_compiler:$ac_header_preproc in
14974 yes:no )
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14979 no:yes )
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14986 esac
14987 echo "$as_me:$LINENO: checking for $ac_header" >&5
14988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 else
14992 eval "$as_ac_Header=$ac_header_preproc"
14993 fi
14994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14996
14997 fi
14998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14999 cat >>confdefs.h <<_ACEOF
15000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15001 _ACEOF
15002
15003 fi
15004
15005 done
15006
15007
15008
15009 for ac_func in fork vfork
15010 do
15011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15012 echo "$as_me:$LINENO: checking for $ac_func" >&5
15013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15014 if eval "test \"\${$as_ac_var+set}\" = set"; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017 cat >conftest.$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15019 #include "confdefs.h"
15020 /* System header to define __stub macros and hopefully few prototypes,
15021 which can conflict with char $ac_func (); below. */
15022 #include <assert.h>
15023 /* Override any gcc2 internal prototype to avoid an error. */
15024 #ifdef __cplusplus
15025 extern "C"
15026 #endif
15027 /* We use char because int might match the return type of a gcc2
15028 builtin and then its argument prototype would still apply. */
15029 char $ac_func ();
15030 char (*f) ();
15031
15032 int
15033 main ()
15034 {
15035 /* The GNU C library defines this for functions which it implements
15036 to always fail with ENOSYS. Some functions are actually named
15037 something starting with __ and the normal name is an alias. */
15038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15039 choke me
15040 #else
15041 f = $ac_func;
15042 #endif
15043
15044 ;
15045 return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -s conftest$ac_exeext'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 eval "$as_ac_var=yes"
15061 else
15062 echo "$as_me: failed program was:" >&5
15063 cat conftest.$ac_ext >&5
15064 eval "$as_ac_var=no"
15065 fi
15066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15067 fi
15068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15070 if test `eval echo '${'$as_ac_var'}'` = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15073 _ACEOF
15074
15075 fi
15076 done
15077
15078 if test "x$ac_cv_func_fork" = xyes; then
15079 echo "$as_me:$LINENO: checking for working fork" >&5
15080 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15081 if test "${ac_cv_func_fork_works+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084 if test "$cross_compiling" = yes; then
15085 ac_cv_func_fork_works=cross
15086 else
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* By Ruediger Kuhlmann. */
15089 #include <sys/types.h>
15090 #if HAVE_UNISTD_H
15091 # include <unistd.h>
15092 #endif
15093 /* Some systems only have a dummy stub for fork() */
15094 int main ()
15095 {
15096 if (fork() < 0)
15097 exit (1);
15098 exit (0);
15099 }
15100 _ACEOF
15101 rm -f conftest$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103 (eval $ac_link) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_func_fork_works=yes
15113 else
15114 echo "$as_me: program exited with status $ac_status" >&5
15115 echo "$as_me: failed program was:" >&5
15116 cat conftest.$ac_ext >&5
15117 ( exit $ac_status )
15118 ac_cv_func_fork_works=no
15119 fi
15120 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 fi
15123 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15124 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15125
15126 else
15127 ac_cv_func_fork_works=$ac_cv_func_fork
15128 fi
15129 if test "x$ac_cv_func_fork_works" = xcross; then
15130 case $host in
15131 *-*-amigaos* | *-*-msdosdjgpp*)
15132 # Override, as these systems have only a dummy fork() stub
15133 ac_cv_func_fork_works=no
15134 ;;
15135 *)
15136 ac_cv_func_fork_works=yes
15137 ;;
15138 esac
15139 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15140 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15141 fi
15142 ac_cv_func_vfork_works=$ac_cv_func_vfork
15143 if test "x$ac_cv_func_vfork" = xyes; then
15144 echo "$as_me:$LINENO: checking for working vfork" >&5
15145 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15146 if test "${ac_cv_func_vfork_works+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149 if test "$cross_compiling" = yes; then
15150 ac_cv_func_vfork_works=cross
15151 else
15152 cat >conftest.$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15154 #include "confdefs.h"
15155 /* Thanks to Paul Eggert for this test. */
15156 #include <stdio.h>
15157 #include <sys/types.h>
15158 #include <sys/stat.h>
15159 #if HAVE_UNISTD_H
15160 # include <unistd.h>
15161 #endif
15162 #if HAVE_VFORK_H
15163 # include <vfork.h>
15164 #endif
15165 /* On some sparc systems, changes by the child to local and incoming
15166 argument registers are propagated back to the parent. The compiler
15167 is told about this with #include <vfork.h>, but some compilers
15168 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15169 static variable whose address is put into a register that is
15170 clobbered by the vfork. */
15171 static
15172 #ifdef __cplusplus
15173 sparc_address_test (int arg)
15174 # else
15175 sparc_address_test (arg) int arg;
15176 #endif
15177 {
15178 static pid_t child;
15179 if (!child) {
15180 child = vfork ();
15181 if (child < 0) {
15182 perror ("vfork");
15183 _exit(2);
15184 }
15185 if (!child) {
15186 arg = getpid();
15187 write(-1, "", 0);
15188 _exit (arg);
15189 }
15190 }
15191 }
15192
15193 int
15194 main ()
15195 {
15196 pid_t parent = getpid ();
15197 pid_t child;
15198
15199 sparc_address_test ();
15200
15201 child = vfork ();
15202
15203 if (child == 0) {
15204 /* Here is another test for sparc vfork register problems. This
15205 test uses lots of local variables, at least as many local
15206 variables as main has allocated so far including compiler
15207 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15208 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15209 reuse the register of parent for one of the local variables,
15210 since it will think that parent can't possibly be used any more
15211 in this routine. Assigning to the local variable will thus
15212 munge parent in the parent process. */
15213 pid_t
15214 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15215 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15216 /* Convince the compiler that p..p7 are live; otherwise, it might
15217 use the same hardware register for all 8 local variables. */
15218 if (p != p1 || p != p2 || p != p3 || p != p4
15219 || p != p5 || p != p6 || p != p7)
15220 _exit(1);
15221
15222 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15223 from child file descriptors. If the child closes a descriptor
15224 before it execs or exits, this munges the parent's descriptor
15225 as well. Test for this by closing stdout in the child. */
15226 _exit(close(fileno(stdout)) != 0);
15227 } else {
15228 int status;
15229 struct stat st;
15230
15231 while (wait(&status) != child)
15232 ;
15233 exit(
15234 /* Was there some problem with vforking? */
15235 child < 0
15236
15237 /* Did the child fail? (This shouldn't happen.) */
15238 || status
15239
15240 /* Did the vfork/compiler bug occur? */
15241 || parent != getpid()
15242
15243 /* Did the file descriptor bug occur? */
15244 || fstat(fileno(stdout), &st) != 0
15245 );
15246 }
15247 }
15248 _ACEOF
15249 rm -f conftest$ac_exeext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15251 (eval $ac_link) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_cv_func_vfork_works=yes
15261 else
15262 echo "$as_me: program exited with status $ac_status" >&5
15263 echo "$as_me: failed program was:" >&5
15264 cat conftest.$ac_ext >&5
15265 ( exit $ac_status )
15266 ac_cv_func_vfork_works=no
15267 fi
15268 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15269 fi
15270 fi
15271 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15272 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15273
15274 fi;
15275 if test "x$ac_cv_func_fork_works" = xcross; then
15276 ac_cv_func_vfork_works=ac_cv_func_vfork
15277 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15278 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15279 fi
15280
15281 if test "x$ac_cv_func_vfork_works" = xyes; then
15282
15283 cat >>confdefs.h <<\_ACEOF
15284 #define HAVE_WORKING_VFORK 1
15285 _ACEOF
15286
15287 else
15288
15289 cat >>confdefs.h <<\_ACEOF
15290 #define vfork fork
15291 _ACEOF
15292
15293 fi
15294 if test "x$ac_cv_func_fork_works" = xyes; then
15295
15296 cat >>confdefs.h <<\_ACEOF
15297 #define HAVE_WORKING_FORK 1
15298 _ACEOF
15299
15300 fi
15301
15302
15303 echo "$as_me:$LINENO: checking for size_t" >&5
15304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15305 if test "${ac_cv_type_size_t+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 cat >conftest.$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 #include "confdefs.h"
15311 $ac_includes_default
15312 int
15313 main ()
15314 {
15315 if ((size_t *) 0)
15316 return 0;
15317 if (sizeof (size_t))
15318 return 0;
15319 ;
15320 return 0;
15321 }
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -s conftest.$ac_objext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_type_size_t=yes
15336 else
15337 echo "$as_me: failed program was:" >&5
15338 cat conftest.$ac_ext >&5
15339 ac_cv_type_size_t=no
15340 fi
15341 rm -f conftest.$ac_objext conftest.$ac_ext
15342 fi
15343 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15344 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15345 if test $ac_cv_type_size_t = yes; then
15346
15347 cat >>confdefs.h <<_ACEOF
15348 #define HAVE_SIZE_T 1
15349 _ACEOF
15350
15351
15352 fi
15353
15354
15355 # Set up the CFLAGS for real compilation, so we can substitute it.
15356 CFLAGS="$REAL_CFLAGS"
15357 CPPFLAGS="$REAL_CPPFLAGS"
15358
15359 #### Find out which version of Emacs this is.
15360 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15361 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15362 if test x"${version}" = x; then
15363 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15364 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15365 { (exit 1); exit 1; }; }
15366 fi
15367
15368 ### Specify what sort of things we'll be editing into Makefile and config.h.
15369 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404 cat >>confdefs.h <<_ACEOF
15405 #define EMACS_CONFIGURATION "${canonical}"
15406 _ACEOF
15407
15408
15409 cat >>confdefs.h <<_ACEOF
15410 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15411 _ACEOF
15412
15413
15414 cat >>confdefs.h <<_ACEOF
15415 #define config_machfile "${machfile}"
15416 _ACEOF
15417
15418
15419 cat >>confdefs.h <<_ACEOF
15420 #define config_opsysfile "${opsysfile}"
15421 _ACEOF
15422
15423
15424 cat >>confdefs.h <<_ACEOF
15425 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15426 _ACEOF
15427
15428
15429 cat >>confdefs.h <<_ACEOF
15430 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15431 _ACEOF
15432
15433
15434 cat >>confdefs.h <<_ACEOF
15435 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15436 _ACEOF
15437
15438
15439 cat >>confdefs.h <<_ACEOF
15440 #define UNEXEC_SRC ${UNEXEC_SRC}
15441 _ACEOF
15442
15443
15444 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15445
15446 cat >>confdefs.h <<\_ACEOF
15447 #define HAVE_X_WINDOWS 1
15448 _ACEOF
15449
15450 fi
15451 if test "${USE_X_TOOLKIT}" != "none" ; then
15452
15453 cat >>confdefs.h <<\_ACEOF
15454 #define USE_X_TOOLKIT 1
15455 _ACEOF
15456
15457 fi
15458 if test "${HAVE_X11}" = "yes" ; then
15459
15460 cat >>confdefs.h <<\_ACEOF
15461 #define HAVE_X11 1
15462 _ACEOF
15463
15464 fi
15465 if test "${HAVE_XFREE386}" = "yes" ; then
15466
15467 cat >>confdefs.h <<\_ACEOF
15468 #define HAVE_XFREE386 1
15469 _ACEOF
15470
15471 fi
15472 if test "${HAVE_MENUS}" = "yes" ; then
15473
15474 cat >>confdefs.h <<\_ACEOF
15475 #define HAVE_MENUS 1
15476 _ACEOF
15477
15478 fi
15479 if test "${GNU_MALLOC}" = "yes" ; then
15480
15481 cat >>confdefs.h <<\_ACEOF
15482 #define GNU_MALLOC 1
15483 _ACEOF
15484
15485 fi
15486 if test "${REL_ALLOC}" = "yes" ; then
15487
15488 cat >>confdefs.h <<\_ACEOF
15489 #define REL_ALLOC 1
15490 _ACEOF
15491
15492 fi
15493
15494
15495 for ac_header in nlist.h
15496 do
15497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15499 echo "$as_me:$LINENO: checking for $ac_header" >&5
15500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 fi
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15506 else
15507 # Is the header compilable?
15508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15510 cat >conftest.$ac_ext <<_ACEOF
15511 #line $LINENO "configure"
15512 #include "confdefs.h"
15513 $ac_includes_default
15514 #include <$ac_header>
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } &&
15522 { ac_try='test -s conftest.$ac_objext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler=yes
15529 else
15530 echo "$as_me: failed program was:" >&5
15531 cat conftest.$ac_ext >&5
15532 ac_header_compiler=no
15533 fi
15534 rm -f conftest.$ac_objext conftest.$ac_ext
15535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6
15537
15538 # Is the header present?
15539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 #include <$ac_header>
15545 _ACEOF
15546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15548 ac_status=$?
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } >/dev/null; then
15554 if test -s conftest.err; then
15555 ac_cpp_err=$ac_c_preproc_warn_flag
15556 else
15557 ac_cpp_err=
15558 fi
15559 else
15560 ac_cpp_err=yes
15561 fi
15562 if test -z "$ac_cpp_err"; then
15563 ac_header_preproc=yes
15564 else
15565 echo "$as_me: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 ac_header_preproc=no
15568 fi
15569 rm -f conftest.err conftest.$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 echo "${ECHO_T}$ac_header_preproc" >&6
15572
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc in
15575 yes:no )
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15580 no:yes )
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15587 esac
15588 echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593 eval "$as_ac_Header=$ac_header_preproc"
15594 fi
15595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15597
15598 fi
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600 cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15602 _ACEOF
15603
15604 cat >>confdefs.h <<\_ACEOF
15605 #define NLIST_STRUCT 1
15606 _ACEOF
15607
15608 fi
15609
15610 done
15611
15612
15613
15614
15615
15616
15617 #### Report on what we decided to do.
15618 echo "
15619 Configured for \`${canonical}'.
15620
15621 Where should the build process find the source code? ${srcdir}
15622 What operating system and machine description files should Emacs use?
15623 \`${opsysfile}' and \`${machfile}'
15624 What compiler should emacs be built with? ${CC} ${CFLAGS}
15625 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15626 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15627 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15628 What window system should Emacs use? ${window_system}
15629 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
15630
15631 if test -n "${x_includes}"; then
15632 echo " Where do we find X Windows header files? ${x_includes}"
15633 else
15634 echo " Where do we find X Windows header files? Standard dirs"
15635 fi
15636 if test -n "${x_libraries}"; then
15637 echo " Where do we find X Windows libraries? ${x_libraries}"
15638 else
15639 echo " Where do we find X Windows libraries? Standard dirs"
15640 fi
15641
15642 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15643 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15644 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15645 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15646 echo " Does Emacs use -lungif? ${HAVE_GIF}"
15647 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15648 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15649 echo
15650
15651 # Remove any trailing slashes in these variables.
15652 test "${prefix}" != NONE &&
15653 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15654 test "${exec_prefix}" != NONE &&
15655 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15656
15657 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
15658 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
15659 ## from Makefile.c can correctly provide the arg `-traditional' to the
15660 ## C preprocessor.
15661
15662 cat >conftest.$ac_ext <<_ACEOF
15663 #line $LINENO "configure"
15664 #include "confdefs.h"
15665 yes..yes
15666 _ACEOF
15667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15668 $EGREP "yes..yes" >/dev/null 2>&1; then
15669 CPP_NEED_TRADITIONAL=no
15670 else
15671 CPP_NEED_TRADITIONAL=yes
15672 fi
15673 rm -f conftest*
15674
15675
15676 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"
15677 ac_config_commands="$ac_config_commands default"
15678 cat >confcache <<\_ACEOF
15679 # This file is a shell script that caches the results of configure
15680 # tests run on this system so they can be shared between configure
15681 # scripts and configure runs, see configure's option --config-cache.
15682 # It is not useful on other systems. If it contains results you don't
15683 # want to keep, you may remove or edit it.
15684 #
15685 # config.status only pays attention to the cache file if you give it
15686 # the --recheck option to rerun configure.
15687 #
15688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15690 # following values.
15691
15692 _ACEOF
15693
15694 # The following way of writing the cache mishandles newlines in values,
15695 # but we know of no workaround that is simple, portable, and efficient.
15696 # So, don't put newlines in cache variables' values.
15697 # Ultrix sh set writes to stderr and can't be redirected directly,
15698 # and sets the high bit in the cache file unless we assign to the vars.
15699 {
15700 (set) 2>&1 |
15701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15702 *ac_space=\ *)
15703 # `set' does not quote correctly, so add quotes (double-quote
15704 # substitution turns \\\\ into \\, and sed turns \\ into \).
15705 sed -n \
15706 "s/'/'\\\\''/g;
15707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15708 ;;
15709 *)
15710 # `set' quotes correctly as required by POSIX, so do not add quotes.
15711 sed -n \
15712 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15713 ;;
15714 esac;
15715 } |
15716 sed '
15717 t clear
15718 : clear
15719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15720 t end
15721 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15722 : end' >>confcache
15723 if cmp -s $cache_file confcache; then :; else
15724 if test -w $cache_file; then
15725 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15726 cat confcache >$cache_file
15727 else
15728 echo "not updating unwritable cache $cache_file"
15729 fi
15730 fi
15731 rm -f confcache
15732
15733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15734 # Let make expand exec_prefix.
15735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15736
15737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15739 # trailing colons and then remove the whole line if VPATH becomes empty
15740 # (actually we leave an empty line to preserve line numbers).
15741 if test "x$srcdir" = x.; then
15742 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15743 s/:*\$(srcdir):*/:/;
15744 s/:*\${srcdir}:*/:/;
15745 s/:*@srcdir@:*/:/;
15746 s/^\([^=]*=[ ]*\):*/\1/;
15747 s/:*$//;
15748 s/^[^=]*=[ ]*$//;
15749 }'
15750 fi
15751
15752 DEFS=-DHAVE_CONFIG_H
15753
15754 ac_libobjs=
15755 ac_ltlibobjs=
15756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15757 # 1. Remove the extension, and $U if already installed.
15758 ac_i=`echo "$ac_i" |
15759 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15760 # 2. Add them.
15761 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15762 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15763 done
15764 LIBOBJS=$ac_libobjs
15765
15766 LTLIBOBJS=$ac_ltlibobjs
15767
15768
15769
15770 : ${CONFIG_STATUS=./config.status}
15771 ac_clean_files_save=$ac_clean_files
15772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15773 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15774 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15775 cat >$CONFIG_STATUS <<_ACEOF
15776 #! $SHELL
15777 # Generated by $as_me.
15778 # Run this file to recreate the current configuration.
15779 # Compiler output produced by configure, useful for debugging
15780 # configure, is in config.log if it exists.
15781
15782 debug=false
15783 SHELL=\${CONFIG_SHELL-$SHELL}
15784 _ACEOF
15785
15786 cat >>$CONFIG_STATUS <<\_ACEOF
15787 ## --------------------- ##
15788 ## M4sh Initialization. ##
15789 ## --------------------- ##
15790
15791 # Be Bourne compatible
15792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15793 emulate sh
15794 NULLCMD=:
15795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15796 # is contrary to our usage. Disable this feature.
15797 alias -g '${1+"$@"}'='"$@"'
15798 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15799 set -o posix
15800 fi
15801
15802 # Support unset when possible.
15803 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15804 as_unset=unset
15805 else
15806 as_unset=false
15807 fi
15808
15809
15810 # Work around bugs in pre-3.0 UWIN ksh.
15811 $as_unset ENV MAIL MAILPATH
15812 PS1='$ '
15813 PS2='> '
15814 PS4='+ '
15815
15816 # NLS nuisances.
15817 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
15818 do
15819 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15820 eval $as_var=C; export $as_var
15821 else
15822 $as_unset $as_var
15823 fi
15824 done
15825
15826 # Required to use basename.
15827 if expr a : '\(a\)' >/dev/null 2>&1; then
15828 as_expr=expr
15829 else
15830 as_expr=false
15831 fi
15832
15833 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15834 as_basename=basename
15835 else
15836 as_basename=false
15837 fi
15838
15839
15840 # Name of the executable.
15841 as_me=`$as_basename "$0" ||
15842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15843 X"$0" : 'X\(//\)$' \| \
15844 X"$0" : 'X\(/\)$' \| \
15845 . : '\(.\)' 2>/dev/null ||
15846 echo X/"$0" |
15847 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15848 /^X\/\(\/\/\)$/{ s//\1/; q; }
15849 /^X\/\(\/\).*/{ s//\1/; q; }
15850 s/.*/./; q'`
15851
15852
15853 # PATH needs CR, and LINENO needs CR and PATH.
15854 # Avoid depending upon Character Ranges.
15855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15858 as_cr_digits='0123456789'
15859 as_cr_alnum=$as_cr_Letters$as_cr_digits
15860
15861 # The user is always right.
15862 if test "${PATH_SEPARATOR+set}" != set; then
15863 echo "#! /bin/sh" >conftest.sh
15864 echo "exit 0" >>conftest.sh
15865 chmod +x conftest.sh
15866 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
15867 PATH_SEPARATOR=';'
15868 else
15869 PATH_SEPARATOR=:
15870 fi
15871 rm -f conftest.sh
15872 fi
15873
15874
15875 as_lineno_1=$LINENO
15876 as_lineno_2=$LINENO
15877 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15878 test "x$as_lineno_1" != "x$as_lineno_2" &&
15879 test "x$as_lineno_3" = "x$as_lineno_2" || {
15880 # Find who we are. Look in the path if we contain no path at all
15881 # relative or not.
15882 case $0 in
15883 *[\\/]* ) as_myself=$0 ;;
15884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15886 do
15887 IFS=$as_save_IFS
15888 test -z "$as_dir" && as_dir=.
15889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15890 done
15891
15892 ;;
15893 esac
15894 # We did not find ourselves, most probably we were run as `sh COMMAND'
15895 # in which case we are not to be found in the path.
15896 if test "x$as_myself" = x; then
15897 as_myself=$0
15898 fi
15899 if test ! -f "$as_myself"; then
15900 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15901 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15902 { (exit 1); exit 1; }; }
15903 fi
15904 case $CONFIG_SHELL in
15905 '')
15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15907 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15908 do
15909 IFS=$as_save_IFS
15910 test -z "$as_dir" && as_dir=.
15911 for as_base in sh bash ksh sh5; do
15912 case $as_dir in
15913 /*)
15914 if ("$as_dir/$as_base" -c '
15915 as_lineno_1=$LINENO
15916 as_lineno_2=$LINENO
15917 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15918 test "x$as_lineno_1" != "x$as_lineno_2" &&
15919 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15920 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15921 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15922 CONFIG_SHELL=$as_dir/$as_base
15923 export CONFIG_SHELL
15924 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15925 fi;;
15926 esac
15927 done
15928 done
15929 ;;
15930 esac
15931
15932 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15933 # uniformly replaced by the line number. The first 'sed' inserts a
15934 # line-number line before each line; the second 'sed' does the real
15935 # work. The second script uses 'N' to pair each line-number line
15936 # with the numbered line, and appends trailing '-' during
15937 # substitution so that $LINENO is not a special case at line end.
15938 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15939 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15940 sed '=' <$as_myself |
15941 sed '
15942 N
15943 s,$,-,
15944 : loop
15945 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15946 t loop
15947 s,-$,,
15948 s,^['$as_cr_digits']*\n,,
15949 ' >$as_me.lineno &&
15950 chmod +x $as_me.lineno ||
15951 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15952 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15953 { (exit 1); exit 1; }; }
15954
15955 # Don't try to exec as it changes $[0], causing all sort of problems
15956 # (the dirname of $[0] is not the place where we might find the
15957 # original and so on. Autoconf is especially sensible to this).
15958 . ./$as_me.lineno
15959 # Exit status is that of the last command.
15960 exit
15961 }
15962
15963
15964 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15965 *c*,-n*) ECHO_N= ECHO_C='
15966 ' ECHO_T=' ' ;;
15967 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15968 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15969 esac
15970
15971 if expr a : '\(a\)' >/dev/null 2>&1; then
15972 as_expr=expr
15973 else
15974 as_expr=false
15975 fi
15976
15977 rm -f conf$$ conf$$.exe conf$$.file
15978 echo >conf$$.file
15979 if ln -s conf$$.file conf$$ 2>/dev/null; then
15980 # We could just check for DJGPP; but this test a) works b) is more generic
15981 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15982 if test -f conf$$.exe; then
15983 # Don't use ln at all; we don't have any links
15984 as_ln_s='cp -p'
15985 else
15986 as_ln_s='ln -s'
15987 fi
15988 elif ln conf$$.file conf$$ 2>/dev/null; then
15989 as_ln_s=ln
15990 else
15991 as_ln_s='cp -p'
15992 fi
15993 rm -f conf$$ conf$$.exe conf$$.file
15994
15995 if mkdir -p . 2>/dev/null; then
15996 as_mkdir_p=:
15997 else
15998 as_mkdir_p=false
15999 fi
16000
16001 as_executable_p="test -f"
16002
16003 # Sed expression to map a string onto a valid CPP name.
16004 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16005
16006 # Sed expression to map a string onto a valid variable name.
16007 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16008
16009
16010 # IFS
16011 # We need space, tab and new line, in precisely that order.
16012 as_nl='
16013 '
16014 IFS=" $as_nl"
16015
16016 # CDPATH.
16017 $as_unset CDPATH
16018
16019 exec 6>&1
16020
16021 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16022 # report actual input values of CONFIG_FILES etc. instead of their
16023 # values after options handling. Logging --version etc. is OK.
16024 exec 5>>config.log
16025 {
16026 echo
16027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16028 ## Running $as_me. ##
16029 _ASBOX
16030 } >&5
16031 cat >&5 <<_CSEOF
16032
16033 This file was extended by $as_me, which was
16034 generated by GNU Autoconf 2.54. Invocation command line was
16035
16036 CONFIG_FILES = $CONFIG_FILES
16037 CONFIG_HEADERS = $CONFIG_HEADERS
16038 CONFIG_LINKS = $CONFIG_LINKS
16039 CONFIG_COMMANDS = $CONFIG_COMMANDS
16040 $ $0 $@
16041
16042 _CSEOF
16043 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16044 echo >&5
16045 _ACEOF
16046
16047 # Files that config.status was made for.
16048 if test -n "$ac_config_files"; then
16049 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16050 fi
16051
16052 if test -n "$ac_config_headers"; then
16053 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16054 fi
16055
16056 if test -n "$ac_config_links"; then
16057 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16058 fi
16059
16060 if test -n "$ac_config_commands"; then
16061 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16062 fi
16063
16064 cat >>$CONFIG_STATUS <<\_ACEOF
16065
16066 ac_cs_usage="\
16067 \`$as_me' instantiates files from templates according to the
16068 current configuration.
16069
16070 Usage: $0 [OPTIONS] [FILE]...
16071
16072 -h, --help print this help, then exit
16073 -V, --version print version number, then exit
16074 -d, --debug don't remove temporary files
16075 --recheck update $as_me by reconfiguring in the same conditions
16076 --file=FILE[:TEMPLATE]
16077 instantiate the configuration file FILE
16078 --header=FILE[:TEMPLATE]
16079 instantiate the configuration header FILE
16080
16081 Configuration files:
16082 $config_files
16083
16084 Configuration headers:
16085 $config_headers
16086
16087 Configuration commands:
16088 $config_commands
16089
16090 Report bugs to <bug-autoconf@gnu.org>."
16091 _ACEOF
16092
16093 cat >>$CONFIG_STATUS <<_ACEOF
16094 ac_cs_version="\\
16095 config.status
16096 configured by $0, generated by GNU Autoconf 2.54,
16097 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16098
16099 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16100 Free Software Foundation, Inc.
16101 This config.status script is free software; the Free Software Foundation
16102 gives unlimited permission to copy, distribute and modify it."
16103 srcdir=$srcdir
16104 INSTALL="$INSTALL"
16105 _ACEOF
16106
16107 cat >>$CONFIG_STATUS <<\_ACEOF
16108 # If no file are specified by the user, then we need to provide default
16109 # value. By we need to know if files were specified by the user.
16110 ac_need_defaults=:
16111 while test $# != 0
16112 do
16113 case $1 in
16114 --*=*)
16115 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16116 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16117 ac_shift=:
16118 ;;
16119 -*)
16120 ac_option=$1
16121 ac_optarg=$2
16122 ac_shift=shift
16123 ;;
16124 *) # This is not an option, so the user has probably given explicit
16125 # arguments.
16126 ac_option=$1
16127 ac_need_defaults=false;;
16128 esac
16129
16130 case $ac_option in
16131 # Handling of the options.
16132 _ACEOF
16133 cat >>$CONFIG_STATUS <<_ACEOF
16134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16135 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16136 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16137 _ACEOF
16138 cat >>$CONFIG_STATUS <<\_ACEOF
16139 --version | --vers* | -V )
16140 echo "$ac_cs_version"; exit 0 ;;
16141 --he | --h)
16142 # Conflict between --help and --header
16143 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16144 Try \`$0 --help' for more information." >&5
16145 echo "$as_me: error: ambiguous option: $1
16146 Try \`$0 --help' for more information." >&2;}
16147 { (exit 1); exit 1; }; };;
16148 --help | --hel | -h )
16149 echo "$ac_cs_usage"; exit 0 ;;
16150 --debug | --d* | -d )
16151 debug=: ;;
16152 --file | --fil | --fi | --f )
16153 $ac_shift
16154 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16155 ac_need_defaults=false;;
16156 --header | --heade | --head | --hea )
16157 $ac_shift
16158 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16159 ac_need_defaults=false;;
16160
16161 # This is an error.
16162 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16163 Try \`$0 --help' for more information." >&5
16164 echo "$as_me: error: unrecognized option: $1
16165 Try \`$0 --help' for more information." >&2;}
16166 { (exit 1); exit 1; }; } ;;
16167
16168 *) ac_config_targets="$ac_config_targets $1" ;;
16169
16170 esac
16171 shift
16172 done
16173
16174 _ACEOF
16175
16176 cat >>$CONFIG_STATUS <<_ACEOF
16177 #
16178 # INIT-COMMANDS section.
16179 #
16180
16181 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16182
16183 _ACEOF
16184
16185
16186
16187 cat >>$CONFIG_STATUS <<\_ACEOF
16188 for ac_config_target in $ac_config_targets
16189 do
16190 case "$ac_config_target" in
16191 # Handling of arguments.
16192 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16193 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16194 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16195 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16196 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16197 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16198 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16199 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
16200 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
16201 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16202 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16203 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16204 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16205 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16206 { (exit 1); exit 1; }; };;
16207 esac
16208 done
16209
16210 # If the user did not use the arguments to specify the items to instantiate,
16211 # then the envvar interface is used. Set only those that are not.
16212 # We use the long form for the default assignment because of an extremely
16213 # bizarre bug on SunOS 4.1.3.
16214 if $ac_need_defaults; then
16215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16217 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16218 fi
16219
16220 # Create a temporary directory, and hook for its removal unless debugging.
16221 $debug ||
16222 {
16223 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16224 trap '{ (exit 1); exit 1; }' 1 2 13 15
16225 }
16226
16227 # Create a (secure) tmp directory for tmp files.
16228 : ${TMPDIR=/tmp}
16229 {
16230 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16231 test -n "$tmp" && test -d "$tmp"
16232 } ||
16233 {
16234 tmp=$TMPDIR/cs$$-$RANDOM
16235 (umask 077 && mkdir $tmp)
16236 } ||
16237 {
16238 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16239 { (exit 1); exit 1; }
16240 }
16241
16242 _ACEOF
16243
16244 cat >>$CONFIG_STATUS <<_ACEOF
16245
16246 #
16247 # CONFIG_FILES section.
16248 #
16249
16250 # No need to generate the scripts if there are no CONFIG_FILES.
16251 # This happens for instance when ./config.status config.h
16252 if test -n "\$CONFIG_FILES"; then
16253 # Protect against being on the right side of a sed subst in config.status.
16254 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16255 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16256 s,@SHELL@,$SHELL,;t t
16257 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16258 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16259 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16260 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16261 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16262 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16263 s,@exec_prefix@,$exec_prefix,;t t
16264 s,@prefix@,$prefix,;t t
16265 s,@program_transform_name@,$program_transform_name,;t t
16266 s,@bindir@,$bindir,;t t
16267 s,@sbindir@,$sbindir,;t t
16268 s,@libexecdir@,$libexecdir,;t t
16269 s,@datadir@,$datadir,;t t
16270 s,@sysconfdir@,$sysconfdir,;t t
16271 s,@sharedstatedir@,$sharedstatedir,;t t
16272 s,@localstatedir@,$localstatedir,;t t
16273 s,@libdir@,$libdir,;t t
16274 s,@includedir@,$includedir,;t t
16275 s,@oldincludedir@,$oldincludedir,;t t
16276 s,@infodir@,$infodir,;t t
16277 s,@mandir@,$mandir,;t t
16278 s,@build_alias@,$build_alias,;t t
16279 s,@host_alias@,$host_alias,;t t
16280 s,@target_alias@,$target_alias,;t t
16281 s,@DEFS@,$DEFS,;t t
16282 s,@ECHO_C@,$ECHO_C,;t t
16283 s,@ECHO_N@,$ECHO_N,;t t
16284 s,@ECHO_T@,$ECHO_T,;t t
16285 s,@LIBS@,$LIBS,;t t
16286 s,@build@,$build,;t t
16287 s,@build_cpu@,$build_cpu,;t t
16288 s,@build_vendor@,$build_vendor,;t t
16289 s,@build_os@,$build_os,;t t
16290 s,@host@,$host,;t t
16291 s,@host_cpu@,$host_cpu,;t t
16292 s,@host_vendor@,$host_vendor,;t t
16293 s,@host_os@,$host_os,;t t
16294 s,@CC@,$CC,;t t
16295 s,@CFLAGS@,$CFLAGS,;t t
16296 s,@LDFLAGS@,$LDFLAGS,;t t
16297 s,@CPPFLAGS@,$CPPFLAGS,;t t
16298 s,@ac_ct_CC@,$ac_ct_CC,;t t
16299 s,@EXEEXT@,$EXEEXT,;t t
16300 s,@OBJEXT@,$OBJEXT,;t t
16301 s,@LN_S@,$LN_S,;t t
16302 s,@CPP@,$CPP,;t t
16303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16304 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16305 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16306 s,@RANLIB@,$RANLIB,;t t
16307 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16308 s,@EGREP@,$EGREP,;t t
16309 s,@LIBSOUND@,$LIBSOUND,;t t
16310 s,@SET_MAKE@,$SET_MAKE,;t t
16311 s,@ALLOCA@,$ALLOCA,;t t
16312 s,@liblockfile@,$liblockfile,;t t
16313 s,@LIBOBJS@,$LIBOBJS,;t t
16314 s,@NEED_SETGID@,$NEED_SETGID,;t t
16315 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16316 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16317 s,@version@,$version,;t t
16318 s,@configuration@,$configuration,;t t
16319 s,@canonical@,$canonical,;t t
16320 s,@srcdir@,$srcdir,;t t
16321 s,@lispdir@,$lispdir,;t t
16322 s,@locallisppath@,$locallisppath,;t t
16323 s,@lisppath@,$lisppath,;t t
16324 s,@x_default_search_path@,$x_default_search_path,;t t
16325 s,@etcdir@,$etcdir,;t t
16326 s,@archlibdir@,$archlibdir,;t t
16327 s,@docdir@,$docdir,;t t
16328 s,@bitmapdir@,$bitmapdir,;t t
16329 s,@gamedir@,$gamedir,;t t
16330 s,@gameuser@,$gameuser,;t t
16331 s,@c_switch_system@,$c_switch_system,;t t
16332 s,@c_switch_machine@,$c_switch_machine,;t t
16333 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16334 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16335 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16336 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16337 s,@machfile@,$machfile,;t t
16338 s,@opsysfile@,$opsysfile,;t t
16339 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16340 CEOF
16341
16342 _ACEOF
16343
16344 cat >>$CONFIG_STATUS <<\_ACEOF
16345 # Split the substitutions into bite-sized pieces for seds with
16346 # small command number limits, like on Digital OSF/1 and HP-UX.
16347 ac_max_sed_lines=48
16348 ac_sed_frag=1 # Number of current file.
16349 ac_beg=1 # First line for current file.
16350 ac_end=$ac_max_sed_lines # Line after last line for current file.
16351 ac_more_lines=:
16352 ac_sed_cmds=
16353 while $ac_more_lines; do
16354 if test $ac_beg -gt 1; then
16355 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16356 else
16357 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16358 fi
16359 if test ! -s $tmp/subs.frag; then
16360 ac_more_lines=false
16361 else
16362 # The purpose of the label and of the branching condition is to
16363 # speed up the sed processing (if there are no `@' at all, there
16364 # is no need to browse any of the substitutions).
16365 # These are the two extra sed commands mentioned above.
16366 (echo ':t
16367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16368 if test -z "$ac_sed_cmds"; then
16369 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16370 else
16371 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16372 fi
16373 ac_sed_frag=`expr $ac_sed_frag + 1`
16374 ac_beg=$ac_end
16375 ac_end=`expr $ac_end + $ac_max_sed_lines`
16376 fi
16377 done
16378 if test -z "$ac_sed_cmds"; then
16379 ac_sed_cmds=cat
16380 fi
16381 fi # test -n "$CONFIG_FILES"
16382
16383 _ACEOF
16384 cat >>$CONFIG_STATUS <<\_ACEOF
16385 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16387 case $ac_file in
16388 - | *:- | *:-:* ) # input from stdin
16389 cat >$tmp/stdin
16390 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16392 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16394 * ) ac_file_in=$ac_file.in ;;
16395 esac
16396
16397 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16398 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16400 X"$ac_file" : 'X\(//\)[^/]' \| \
16401 X"$ac_file" : 'X\(//\)$' \| \
16402 X"$ac_file" : 'X\(/\)' \| \
16403 . : '\(.\)' 2>/dev/null ||
16404 echo X"$ac_file" |
16405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16407 /^X\(\/\/\)$/{ s//\1/; q; }
16408 /^X\(\/\).*/{ s//\1/; q; }
16409 s/.*/./; q'`
16410 { if $as_mkdir_p; then
16411 mkdir -p "$ac_dir"
16412 else
16413 as_dir="$ac_dir"
16414 as_dirs=
16415 while test ! -d "$as_dir"; do
16416 as_dirs="$as_dir $as_dirs"
16417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16419 X"$as_dir" : 'X\(//\)[^/]' \| \
16420 X"$as_dir" : 'X\(//\)$' \| \
16421 X"$as_dir" : 'X\(/\)' \| \
16422 . : '\(.\)' 2>/dev/null ||
16423 echo X"$as_dir" |
16424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16426 /^X\(\/\/\)$/{ s//\1/; q; }
16427 /^X\(\/\).*/{ s//\1/; q; }
16428 s/.*/./; q'`
16429 done
16430 test ! -n "$as_dirs" || mkdir $as_dirs
16431 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16432 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16433 { (exit 1); exit 1; }; }; }
16434
16435 ac_builddir=.
16436
16437 if test "$ac_dir" != .; then
16438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16439 # A "../" for each directory in $ac_dir_suffix.
16440 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16441 else
16442 ac_dir_suffix= ac_top_builddir=
16443 fi
16444
16445 case $srcdir in
16446 .) # No --srcdir option. We are building in place.
16447 ac_srcdir=.
16448 if test -z "$ac_top_builddir"; then
16449 ac_top_srcdir=.
16450 else
16451 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16452 fi ;;
16453 [\\/]* | ?:[\\/]* ) # Absolute path.
16454 ac_srcdir=$srcdir$ac_dir_suffix;
16455 ac_top_srcdir=$srcdir ;;
16456 *) # Relative path.
16457 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16458 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16459 esac
16460 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16461 # absolute.
16462 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16463 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16464 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16465 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16466
16467
16468 case $INSTALL in
16469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16470 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16471 esac
16472
16473 if test x"$ac_file" != x-; then
16474 { echo "$as_me:$LINENO: creating $ac_file" >&5
16475 echo "$as_me: creating $ac_file" >&6;}
16476 rm -f "$ac_file"
16477 fi
16478 # Let's still pretend it is `configure' which instantiates (i.e., don't
16479 # use $as_me), people would be surprised to read:
16480 # /* config.h. Generated by config.status. */
16481 if test x"$ac_file" = x-; then
16482 configure_input=
16483 else
16484 configure_input="$ac_file. "
16485 fi
16486 configure_input=$configure_input"Generated from `echo $ac_file_in |
16487 sed 's,.*/,,'` by configure."
16488
16489 # First look for the input files in the build tree, otherwise in the
16490 # src tree.
16491 ac_file_inputs=`IFS=:
16492 for f in $ac_file_in; do
16493 case $f in
16494 -) echo $tmp/stdin ;;
16495 [\\/$]*)
16496 # Absolute (can't be DOS-style, as IFS=:)
16497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16498 echo "$as_me: error: cannot find input file: $f" >&2;}
16499 { (exit 1); exit 1; }; }
16500 echo $f;;
16501 *) # Relative
16502 if test -f "$f"; then
16503 # Build tree
16504 echo $f
16505 elif test -f "$srcdir/$f"; then
16506 # Source tree
16507 echo $srcdir/$f
16508 else
16509 # /dev/null tree
16510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16511 echo "$as_me: error: cannot find input file: $f" >&2;}
16512 { (exit 1); exit 1; }; }
16513 fi;;
16514 esac
16515 done` || { (exit 1); exit 1; }
16516 _ACEOF
16517 cat >>$CONFIG_STATUS <<_ACEOF
16518 sed "$ac_vpsub
16519 $extrasub
16520 _ACEOF
16521 cat >>$CONFIG_STATUS <<\_ACEOF
16522 :t
16523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16524 s,@configure_input@,$configure_input,;t t
16525 s,@srcdir@,$ac_srcdir,;t t
16526 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16527 s,@top_srcdir@,$ac_top_srcdir,;t t
16528 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16529 s,@builddir@,$ac_builddir,;t t
16530 s,@abs_builddir@,$ac_abs_builddir,;t t
16531 s,@top_builddir@,$ac_top_builddir,;t t
16532 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16533 s,@INSTALL@,$ac_INSTALL,;t t
16534 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16535 rm -f $tmp/stdin
16536 if test x"$ac_file" != x-; then
16537 mv $tmp/out $ac_file
16538 else
16539 cat $tmp/out
16540 rm -f $tmp/out
16541 fi
16542
16543 done
16544 _ACEOF
16545 cat >>$CONFIG_STATUS <<\_ACEOF
16546
16547 #
16548 # CONFIG_HEADER section.
16549 #
16550
16551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16553 #
16554 # ac_d sets the value in "#define NAME VALUE" lines.
16555 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16556 ac_dB='[ ].*$,\1#\2'
16557 ac_dC=' '
16558 ac_dD=',;t'
16559 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16560 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16561 ac_uB='$,\1#\2define\3'
16562 ac_uC=' '
16563 ac_uD=',;t'
16564
16565 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16567 case $ac_file in
16568 - | *:- | *:-:* ) # input from stdin
16569 cat >$tmp/stdin
16570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16574 * ) ac_file_in=$ac_file.in ;;
16575 esac
16576
16577 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16578 echo "$as_me: creating $ac_file" >&6;}
16579
16580 # First look for the input files in the build tree, otherwise in the
16581 # src tree.
16582 ac_file_inputs=`IFS=:
16583 for f in $ac_file_in; do
16584 case $f in
16585 -) echo $tmp/stdin ;;
16586 [\\/$]*)
16587 # Absolute (can't be DOS-style, as IFS=:)
16588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16589 echo "$as_me: error: cannot find input file: $f" >&2;}
16590 { (exit 1); exit 1; }; }
16591 echo $f;;
16592 *) # Relative
16593 if test -f "$f"; then
16594 # Build tree
16595 echo $f
16596 elif test -f "$srcdir/$f"; then
16597 # Source tree
16598 echo $srcdir/$f
16599 else
16600 # /dev/null tree
16601 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16602 echo "$as_me: error: cannot find input file: $f" >&2;}
16603 { (exit 1); exit 1; }; }
16604 fi;;
16605 esac
16606 done` || { (exit 1); exit 1; }
16607 # Remove the trailing spaces.
16608 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16609
16610 _ACEOF
16611
16612 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16613 # `conftest.undefs', that substitutes the proper values into
16614 # config.h.in to produce config.h. The first handles `#define'
16615 # templates, and the second `#undef' templates.
16616 # And first: Protect against being on the right side of a sed subst in
16617 # config.status. Protect against being in an unquoted here document
16618 # in config.status.
16619 rm -f conftest.defines conftest.undefs
16620 # Using a here document instead of a string reduces the quoting nightmare.
16621 # Putting comments in sed scripts is not portable.
16622 #
16623 # `end' is used to avoid that the second main sed command (meant for
16624 # 0-ary CPP macros) applies to n-ary macro definitions.
16625 # See the Autoconf documentation for `clear'.
16626 cat >confdef2sed.sed <<\_ACEOF
16627 s/[\\&,]/\\&/g
16628 s,[\\$`],\\&,g
16629 t clear
16630 : clear
16631 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16632 t end
16633 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16634 : end
16635 _ACEOF
16636 # If some macros were called several times there might be several times
16637 # the same #defines, which is useless. Nevertheless, we may not want to
16638 # sort them, since we want the *last* AC-DEFINE to be honored.
16639 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16640 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16641 rm -f confdef2sed.sed
16642
16643 # This sed command replaces #undef with comments. This is necessary, for
16644 # example, in the case of _POSIX_SOURCE, which is predefined and required
16645 # on some systems where configure will not decide to define it.
16646 cat >>conftest.undefs <<\_ACEOF
16647 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16648 _ACEOF
16649
16650 # Break up conftest.defines because some shells have a limit on the size
16651 # of here documents, and old seds have small limits too (100 cmds).
16652 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16653 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16654 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16655 echo ' :' >>$CONFIG_STATUS
16656 rm -f conftest.tail
16657 while grep . conftest.defines >/dev/null
16658 do
16659 # Write a limited-size here document to $tmp/defines.sed.
16660 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16661 # Speed up: don't consider the non `#define' lines.
16662 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16663 # Work around the forget-to-reset-the-flag bug.
16664 echo 't clr' >>$CONFIG_STATUS
16665 echo ': clr' >>$CONFIG_STATUS
16666 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16667 echo 'CEOF
16668 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16669 rm -f $tmp/in
16670 mv $tmp/out $tmp/in
16671 ' >>$CONFIG_STATUS
16672 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16673 rm -f conftest.defines
16674 mv conftest.tail conftest.defines
16675 done
16676 rm -f conftest.defines
16677 echo ' fi # grep' >>$CONFIG_STATUS
16678 echo >>$CONFIG_STATUS
16679
16680 # Break up conftest.undefs because some shells have a limit on the size
16681 # of here documents, and old seds have small limits too (100 cmds).
16682 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16683 rm -f conftest.tail
16684 while grep . conftest.undefs >/dev/null
16685 do
16686 # Write a limited-size here document to $tmp/undefs.sed.
16687 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16688 # Speed up: don't consider the non `#undef'
16689 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16690 # Work around the forget-to-reset-the-flag bug.
16691 echo 't clr' >>$CONFIG_STATUS
16692 echo ': clr' >>$CONFIG_STATUS
16693 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16694 echo 'CEOF
16695 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16696 rm -f $tmp/in
16697 mv $tmp/out $tmp/in
16698 ' >>$CONFIG_STATUS
16699 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16700 rm -f conftest.undefs
16701 mv conftest.tail conftest.undefs
16702 done
16703 rm -f conftest.undefs
16704
16705 cat >>$CONFIG_STATUS <<\_ACEOF
16706 # Let's still pretend it is `configure' which instantiates (i.e., don't
16707 # use $as_me), people would be surprised to read:
16708 # /* config.h. Generated by config.status. */
16709 if test x"$ac_file" = x-; then
16710 echo "/* Generated by configure. */" >$tmp/config.h
16711 else
16712 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16713 fi
16714 cat $tmp/in >>$tmp/config.h
16715 rm -f $tmp/in
16716 if test x"$ac_file" != x-; then
16717 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16718 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16719 echo "$as_me: $ac_file is unchanged" >&6;}
16720 else
16721 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16723 X"$ac_file" : 'X\(//\)[^/]' \| \
16724 X"$ac_file" : 'X\(//\)$' \| \
16725 X"$ac_file" : 'X\(/\)' \| \
16726 . : '\(.\)' 2>/dev/null ||
16727 echo X"$ac_file" |
16728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16730 /^X\(\/\/\)$/{ s//\1/; q; }
16731 /^X\(\/\).*/{ s//\1/; q; }
16732 s/.*/./; q'`
16733 { if $as_mkdir_p; then
16734 mkdir -p "$ac_dir"
16735 else
16736 as_dir="$ac_dir"
16737 as_dirs=
16738 while test ! -d "$as_dir"; do
16739 as_dirs="$as_dir $as_dirs"
16740 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16742 X"$as_dir" : 'X\(//\)[^/]' \| \
16743 X"$as_dir" : 'X\(//\)$' \| \
16744 X"$as_dir" : 'X\(/\)' \| \
16745 . : '\(.\)' 2>/dev/null ||
16746 echo X"$as_dir" |
16747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16749 /^X\(\/\/\)$/{ s//\1/; q; }
16750 /^X\(\/\).*/{ s//\1/; q; }
16751 s/.*/./; q'`
16752 done
16753 test ! -n "$as_dirs" || mkdir $as_dirs
16754 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16756 { (exit 1); exit 1; }; }; }
16757
16758 rm -f $ac_file
16759 mv $tmp/config.h $ac_file
16760 fi
16761 else
16762 cat $tmp/config.h
16763 rm -f $tmp/config.h
16764 fi
16765 done
16766 _ACEOF
16767 cat >>$CONFIG_STATUS <<\_ACEOF
16768
16769 #
16770 # CONFIG_COMMANDS section.
16771 #
16772 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16773 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16774 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16775 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16776 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777 X"$ac_dest" : 'X\(//\)[^/]' \| \
16778 X"$ac_dest" : 'X\(//\)$' \| \
16779 X"$ac_dest" : 'X\(/\)' \| \
16780 . : '\(.\)' 2>/dev/null ||
16781 echo X"$ac_dest" |
16782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16784 /^X\(\/\/\)$/{ s//\1/; q; }
16785 /^X\(\/\).*/{ s//\1/; q; }
16786 s/.*/./; q'`
16787 ac_builddir=.
16788
16789 if test "$ac_dir" != .; then
16790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16791 # A "../" for each directory in $ac_dir_suffix.
16792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16793 else
16794 ac_dir_suffix= ac_top_builddir=
16795 fi
16796
16797 case $srcdir in
16798 .) # No --srcdir option. We are building in place.
16799 ac_srcdir=.
16800 if test -z "$ac_top_builddir"; then
16801 ac_top_srcdir=.
16802 else
16803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16804 fi ;;
16805 [\\/]* | ?:[\\/]* ) # Absolute path.
16806 ac_srcdir=$srcdir$ac_dir_suffix;
16807 ac_top_srcdir=$srcdir ;;
16808 *) # Relative path.
16809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16811 esac
16812 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16813 # absolute.
16814 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16815 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16816 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16817 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16818
16819
16820 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16821 echo "$as_me: executing $ac_dest commands" >&6;}
16822 case $ac_dest in
16823 default )
16824
16825 ### Make the necessary directories, if they don't exist.
16826 for dir in etc lisp ; do
16827 test -d ${dir} || mkdir ${dir}
16828 done
16829
16830 # Build src/Makefile from ${srcdir}/src/Makefile.c
16831 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
16832 # This must be done after src/config.h is built, since we rely on that file.
16833
16834 # Now get this: Some word that is part of the ${srcdir} directory name
16835 # or the ${configuration} value might, just might, happen to be an
16836 # identifier like `sun4' or `i386' or something, and be predefined by
16837 # the C preprocessor to some helpful value like 1, or maybe the empty
16838 # string. Needless to say consequent macro substitutions are less
16839 # than conducive to the makefile finding the correct directory.
16840 undefs="`echo $top_srcdir $configuration $canonical |
16841 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
16842 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
16843 `"
16844
16845 echo creating src/epaths.h
16846 ${MAKE-make} epaths-force
16847
16848 # As of 2000-11-19, newest development versions of GNU cpp preprocess
16849 # `..' to `. .' unless invoked with -traditional
16850
16851 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
16852 CPPFLAGS="$CPPFLAGS -traditional"
16853 fi
16854
16855 echo creating lib-src/Makefile
16856 ( cd lib-src
16857 rm -f junk.c junk1.c junk2.c
16858 sed -e '/start of cpp stuff/q' \
16859 < Makefile.c > junk1.c
16860 sed -e '1,/start of cpp stuff/d'\
16861 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
16862 < Makefile.c > junk.c
16863 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
16864 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
16865 cat junk1.c junk2.c > Makefile.new
16866 rm -f junk.c junk1.c junk2.c
16867 chmod 444 Makefile.new
16868 mv -f Makefile.new Makefile
16869 )
16870
16871 echo creating src/Makefile
16872 ( cd src
16873 rm -f junk.c junk1.c junk2.c
16874 sed -e '/start of cpp stuff/q' \
16875 < Makefile.c > junk1.c
16876 sed -e '1,/start of cpp stuff/d'\
16877 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
16878 < Makefile.c > junk.c
16879 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
16880 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
16881 cat junk1.c junk2.c > Makefile.new
16882 rm -f junk.c junk1.c junk2.c
16883 chmod 444 Makefile.new
16884 mv -f Makefile.new Makefile
16885 )
16886
16887 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16888 echo creating src/.gdbinit
16889 echo source $srcdir/src/.gdbinit > src/.gdbinit
16890 fi
16891
16892 # This is how we know whether to re-run configure in certain cases.
16893 touch src/config.stamp
16894
16895 ;;
16896 esac
16897 done
16898 _ACEOF
16899
16900 cat >>$CONFIG_STATUS <<\_ACEOF
16901
16902 { (exit 0); exit 0; }
16903 _ACEOF
16904 chmod +x $CONFIG_STATUS
16905 ac_clean_files=$ac_clean_files_save
16906
16907
16908 # configure is writing to config.log, and then calls config.status.
16909 # config.status does its own redirection, appending to config.log.
16910 # Unfortunately, on DOS this fails, as config.log is still kept open
16911 # by configure, so config.status won't be able to write to it; its
16912 # output is simply discarded. So we exec the FD to /dev/null,
16913 # effectively closing config.log, so it can be properly (re)opened and
16914 # appended to by config.status. When coming back to configure, we
16915 # need to make the FD available again.
16916 if test "$no_create" != yes; then
16917 ac_cs_success=:
16918 exec 5>/dev/null
16919 $SHELL $CONFIG_STATUS || ac_cs_success=false
16920 exec 5>>config.log
16921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16922 # would make configure fail if this is the last instruction.
16923 $ac_cs_success || { (exit 1); exit 1; }
16924 fi
16925
16926