GTK version
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
847 fi
848
849 if test -n "$ac_init_help"; then
850
851 cat <<\_ACEOF
852
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --disable-largefile omit support for large files
859
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
883
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 fi
951 cd $ac_popdir
952 done
953 fi
954
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
958
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
965 fi
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
970
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
973
974 $ $0 $@
975
976 _ACEOF
977 {
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
982
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999
1000 _ASUNAME
1001
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1004 do
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1009
1010 } >&5
1011
1012 cat >&5 <<_ACEOF
1013
1014
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1018
1019 _ACEOF
1020
1021
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1033 do
1034 for ac_arg
1035 do
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 2)
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1059 ;;
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1062 fi
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1066 ;;
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1080 {
1081 echo
1082
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1090 {
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 ;;
1098 *)
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ;;
1102 esac;
1103 }
1104 echo
1105
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1113 do
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1118
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1127 do
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1132 fi
1133
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1143 fi
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1151 ' 0
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1156
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1161
1162 # Predefined preprocessor variables.
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1187
1188
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 fi
1197 fi
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1204 fi
1205 done
1206
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1217 fi
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1222 fi
1223
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1243 *)
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1265 fi
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1273 fi
1274
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1300
1301
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it if useless.
1309 cat <<\_ACEOF >conftest.sed
1310 s/[\\$]/&&/g;s/;s,x,x,$//
1311 _ACEOF
1312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313 rm conftest.sed
1314
1315
1316 lispdir='${datadir}/emacs/${version}/lisp'
1317 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath='${locallisppath}:${lispdir}'
1320 etcdir='${datadir}/emacs/${version}/etc'
1321 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir='${datadir}/emacs/${version}/etc'
1323 gamedir='${localstatedir}/games/emacs'
1324
1325 gameuser=games
1326
1327
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1331
1332 fi;
1333
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339 #define MAIL_USE_POP 1
1340 _ACEOF
1341
1342 else :
1343 fi
1344 else
1345 cat >>confdefs.h <<\_ACEOF
1346 #define MAIL_USE_POP 1
1347 _ACEOF
1348
1349 fi;
1350
1351
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356 #define KERBEROS 1
1357 _ACEOF
1358
1359 fi;
1360
1361
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369 #define KERBEROS 1
1370 _ACEOF
1371
1372 fi
1373 fi
1374
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1378
1379 fi;
1380
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1384
1385 cat >>confdefs.h <<\_ACEOF
1386 #define HESIOD 1
1387 _ACEOF
1388
1389 fi;
1390
1391
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1395
1396 fi;
1397
1398
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1409 * )
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1417 ;;
1418 esac
1419 with_x_toolkit=$val
1420
1421 fi;
1422
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1426
1427 fi;
1428
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1432
1433 fi;
1434
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1438
1439 fi;
1440
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1444
1445 fi;
1446
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1449 withval="$with_png"
1450
1451 fi;
1452
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1456
1457 fi;
1458
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1462
1463 fi;
1464
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1468
1469 fi;
1470
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1474
1475 fi;
1476
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1480
1481 fi;
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1486 fi;
1487
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1493 unset CDPATH
1494 case "${srcdir}" in
1495 /* ) ;;
1496 . )
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1503 then
1504 srcdir="$PWD"
1505 else
1506 srcdir="`(cd ${srcdir}; pwd)`"
1507 fi
1508 ;;
1509 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1510 esac
1511
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1527
1528 extrasub='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1536 fi
1537
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1540
1541 ### Canonicalize the configuration name.
1542
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1557 fi
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1563 fi
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591 fi
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613 fi
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622 canonical=$host
1623 configuration=${host_alias-$host}
1624
1625
1626
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1630
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1639 ###
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1645 ###
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1649
1650 machine='' opsys='' unported=no
1651 case "${canonical}" in
1652
1653 ## FreeBSD ports
1654 *-*-freebsd* )
1655 opsys=freebsd
1656 case "${canonical}" in
1657 alpha*-*-freebsd*) machine=alpha ;;
1658 i[3456]86-*-freebsd*) machine=intel386 ;;
1659 esac
1660 ;;
1661
1662 ## NetBSD ports
1663 *-*-netbsd* )
1664 opsys=netbsd
1665 case "${canonical}" in
1666 alpha*-*-netbsd*) machine=alpha ;;
1667 i[3456]86-*-netbsd*) machine=intel386 ;;
1668 m68k-*-netbsd*)
1669 # This is somewhat bogus.
1670 machine=hp9000s300 ;;
1671 powerpc-apple-netbsd*) machine=macppc ;;
1672 mips-*-netbsd*) machine=pmax ;;
1673 mipsel-*-netbsd*) machine=pmax ;;
1674 mipseb-*-netbsd*) machine=pmax ;;
1675 ns32k-*-netbsd*) machine=ns32000 ;;
1676 powerpc-*-netbsd*) machine=macppc ;;
1677 sparc*-*-netbsd*) machine=sparc ;;
1678 vax-*-netbsd*) machine=vax ;;
1679 arm-*-netbsd*) machine=arm ;;
1680 esac
1681 ;;
1682
1683 ## OpenBSD ports
1684 *-*-openbsd* )
1685 opsys=openbsd
1686 case "${canonical}" in
1687 alpha*-*-openbsd*) machine=alpha ;;
1688 i386-*-openbsd*) machine=intel386 ;;
1689 m68k-*-openbsd*) machine=hp9000s300 ;;
1690 mipsel-*-openbsd*) machine=pmax ;;
1691 ns32k-*-openbsd*) machine=ns32000 ;;
1692 sparc-*-openbsd*) machine=sparc ;;
1693 vax-*-openbsd*) machine=vax ;;
1694 esac
1695 ;;
1696
1697 ## Acorn RISCiX:
1698 arm-acorn-riscix1.1* )
1699 machine=acorn opsys=riscix1-1
1700 ;;
1701 arm-acorn-riscix1.2* | arm-acorn-riscix )
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine=acorn opsys=riscix12
1705 ;;
1706
1707 ## BSDI ports
1708 *-*-bsdi* )
1709 opsys=bsdi
1710 case "${canonical}" in
1711 i[345]86-*-bsdi*) machine=intel386 ;;
1712 sparc-*-bsdi*) machine=sparc ;;
1713 powerpc-*-bsdi*) machine=macppc ;;
1714 esac
1715 case "${canonical}" in
1716 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1717 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1718 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1719 *-*-bsdi3* ) opsys=bsdos3 ;;
1720 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1721 esac
1722 ;;
1723
1724 ## Alliant machines
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1730 fx80-alliant-* )
1731 machine=alliant4 opsys=bsd4-2
1732 ;;
1733 i860-alliant-* )
1734 machine=alliant-2800 opsys=bsd4-3
1735 ;;
1736
1737 ## Alpha (DEC) machines.
1738 alpha*-dec-osf* )
1739 machine=alpha opsys=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1742 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP=/usr/bin/cpp
1748 case "${canonical}" in
1749 alpha*-dec-osf[5-9]*)
1750 opsys=osf5-0 ;;
1751 esac
1752 ;;
1753
1754 alpha*-*-linux-gnu* )
1755 machine=alpha opsys=gnu-linux
1756 ;;
1757
1758 arm*-*-linux-gnu* )
1759 machine=arm opsys=gnu-linux
1760 ;;
1761
1762 ppc-*-linux | \
1763 powerpc-*-linux* )
1764 machine=macppc opsys=gnu-linux
1765 ;;
1766
1767 ## Altos 3068
1768 m68*-altos-sysv* )
1769 machine=altos opsys=usg5-2
1770 ;;
1771
1772 ## Amdahl UTS
1773 580-amdahl-sysv* )
1774 machine=amdahl opsys=usg5-2-2
1775 ;;
1776
1777 ## Apollo, Domain/OS
1778 m68*-apollo-* )
1779 machine=apollo opsys=bsd4-3
1780 ;;
1781
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1783 we32k-att-sysv* )
1784 machine=att3b opsys=usg5-2-2
1785 ;;
1786
1787 ## AT&T 3b1 - The Mighty Unix PC!
1788 m68*-att-sysv* )
1789 machine=7300 opsys=usg5-2-2
1790 ;;
1791
1792 ## Bull dpx20
1793 rs6000-bull-bosx* )
1794 machine=ibmrs6000 opsys=aix3-2
1795 ;;
1796
1797 ## Bull dpx2
1798 m68*-bull-sysv3* )
1799 machine=dpx2 opsys=usg5-3
1800 ;;
1801
1802 ## Bull sps7
1803 m68*-bull-sysv2* )
1804 machine=sps7 opsys=usg5-2
1805 ;;
1806
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1808
1809 ## Celerity
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd* )
1814 machine=celerity opsys=bsd4-2
1815 ;;
1816
1817 ## Clipper
1818 ## What operating systems does this chip run that Emacs has been
1819 ## tested on?
1820 clipper-* )
1821 machine=clipper
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1824 ;;
1825
1826 ## Compaq Nonstop
1827 mips-compaq-nonstopux* )
1828 machine=nonstopux opsys=nonstopux
1829 ;;
1830
1831 ## Convex
1832 *-convex-bsd* | *-convex-convexos* )
1833 machine=convex opsys=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP="cc -E -P"
1836 ;;
1837
1838 ## Cubix QBx/386
1839 i[3456]86-cubix-sysv* )
1840 machine=intel386 opsys=usg5-3
1841 ;;
1842
1843 ## Cydra 5
1844 cydra*-cydrome-sysv* )
1845 machine=cydra5 opsys=usg5-3
1846 ;;
1847
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1855 machine=aviion opsys=dgux4
1856 ;;
1857 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine=aviion opsys=dgux5-4-3
1861 ;;
1862 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1863 machine=aviion opsys=dgux5-4r2
1864 ;;
1865 m88k-dg-dgux* )
1866 machine=aviion opsys=dgux
1867 ;;
1868
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i[345]86-dg-dguxR4* )
1873 machine=aviion-intel opsys=dgux4
1874 ;;
1875
1876 ## DECstations
1877 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1878 machine=pmax opsys=bsd4-2
1879 ;;
1880 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1881 machine=pmax opsys=bsd4-3
1882 ;;
1883 mips-dec-ultrix* )
1884 machine=pmax opsys=ultrix4-3
1885 ;;
1886 mips-dec-osf* )
1887 machine=pmax opsys=osf1
1888 ;;
1889 mips-dec-mach_bsd4.3* )
1890 machine=pmax opsys=mach-bsd4-3
1891 ;;
1892
1893 ## Motorola Delta m88k
1894 m88k-motorola-sysv4* )
1895 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1896 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1897 # I hope there are not other 4.0 versions for this machine
1898 # which really need usg5-4 instead.
1899 machine=delta88k opsys=usg5-4-2
1900 ;;
1901 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1902 machine=delta88k opsys=usg5-3
1903 ;;
1904
1905 ## Dual machines
1906 m68*-dual-sysv* )
1907 machine=dual opsys=usg5-2
1908 ;;
1909 m68*-dual-uniplus* )
1910 machine=dual opsys=unipl5-2
1911 ;;
1912
1913 ## Elxsi 6400
1914 elxsi-elxsi-sysv* )
1915 machine=elxsi opsys=usg5-2
1916 ;;
1917
1918 ## Encore machines
1919 ns16k-encore-bsd* )
1920 machine=ns16000 opsys=umax
1921 ;;
1922
1923 ## The GEC 63 - apparently, this port isn't really finished yet.
1924 # I'm sure we finished off the last of the machines, though. -- fx
1925
1926 ## Gould Power Node and NP1
1927 pn-gould-bsd4.2* )
1928 machine=gould opsys=bsd4-2
1929 ;;
1930 pn-gould-bsd4.3* )
1931 machine=gould opsys=bsd4-3
1932 ;;
1933 np1-gould-bsd* )
1934 machine=gould-np1 opsys=bsd4-3
1935 ;;
1936
1937 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1938 ## as far as Emacs is concerned).
1939 m88k-harris-cxux* )
1940 # Build needs to be different on 7.0 and later releases
1941 case "`uname -r`" in
1942 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1943 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1944 esac
1945 NON_GNU_CPP="/lib/cpp"
1946 ;;
1947 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1948 m68k-harris-cxux* )
1949 machine=nh3000 opsys=cxux
1950 ;;
1951 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1952 powerpc-harris-powerunix )
1953 machine=nh6000 opsys=powerunix
1954 NON_GNU_CPP="cc -Xo -E -P"
1955 ;;
1956 ## SR2001/SR2201 running HI-UX/MPP
1957 hppa1.1-hitachi-hiuxmpp* )
1958 machine=sr2k opsys=hiuxmpp
1959 ;;
1960 hppa1.1-hitachi-hiuxwe2* )
1961 machine=sr2k opsys=hiuxwe2
1962 ;;
1963 ## Honeywell XPS100
1964 xps*-honeywell-sysv* )
1965 machine=xps100 opsys=usg5-2
1966 ;;
1967
1968 ## HP 9000 series 200 or 300
1969 m68*-hp-bsd* )
1970 machine=hp9000s300 opsys=bsd4-3
1971 ;;
1972 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1973 m68*-hp-hpux* )
1974 case "`uname -r`" in
1975 ## Someone's system reports A.B8.05 for this.
1976 ## I wonder what other possibilities there are.
1977 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1978 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1979 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1980 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1981 *) machine=hp9000s300 opsys=hpux ;;
1982 esac
1983 ;;
1984
1985 ## HP 9000 series 700 and 800, running HP/UX
1986 hppa*-hp-hpux7* )
1987 machine=hp800 opsys=hpux
1988 ;;
1989 hppa*-hp-hpux8* )
1990 machine=hp800 opsys=hpux8
1991 ;;
1992 hppa*-hp-hpux9shr* )
1993 machine=hp800 opsys=hpux9shr
1994 ;;
1995 hppa*-hp-hpux9* )
1996 machine=hp800 opsys=hpux9
1997 ;;
1998 hppa*-hp-hpux10* )
1999 machine=hp800 opsys=hpux10
2000 ;;
2001 hppa*-hp-hpux1[1-9]* )
2002 machine=hp800 opsys=hpux11
2003 ;;
2004
2005 hppa*-*-linux-gnu* )
2006 machine=hp800 opsys=gnu-linux
2007 ;;
2008
2009 ## HP 9000 series 700 and 800, running HP/UX
2010 hppa*-hp-hpux* )
2011 ## Cross-compilation? Nah!
2012 case "`uname -r`" in
2013 ## Someone's system reports A.B8.05 for this.
2014 ## I wonder what other possibilities there are.
2015 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2016 *.08.* ) machine=hp800 opsys=hpux8 ;;
2017 *.09.* ) machine=hp800 opsys=hpux9 ;;
2018 *) machine=hp800 opsys=hpux10 ;;
2019 esac
2020 ;;
2021 hppa*-*-nextstep* )
2022 machine=hp800 opsys=nextstep
2023 ;;
2024
2025 ## Orion machines
2026 orion-orion-bsd* )
2027 machine=orion opsys=bsd4-2
2028 ;;
2029 clipper-orion-bsd* )
2030 machine=orion105 opsys=bsd4-2
2031 ;;
2032
2033 ## IBM machines
2034 i[3456]86-ibm-aix1.1* )
2035 machine=ibmps2-aix opsys=usg5-2-2
2036 ;;
2037 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2038 machine=ibmps2-aix opsys=usg5-3
2039 ;;
2040 i370-ibm-aix*)
2041 machine=ibm370aix opsys=usg5-3
2042 ;;
2043 s390-*-linux-gnu)
2044 machine=ibms390 opsys=gnu-linux
2045 ;;
2046 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2047 machine=ibmrs6000 opsys=aix3-1
2048 ;;
2049 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2050 machine=ibmrs6000 opsys=aix3-2-5
2051 ;;
2052 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2053 machine=ibmrs6000 opsys=aix4-1
2054 ;;
2055 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2056 machine=ibmrs6000 opsys=aix4-2
2057 ;;
2058 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2059 machine=ibmrs6000 opsys=aix4-2
2060 ;;
2061 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2062 machine=ibmrs6000 opsys=aix4
2063 ;;
2064 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2065 machine=ibmrs6000 opsys=aix4-1
2066 ;;
2067 rs6000-ibm-aix* | powerpc-ibm-aix* )
2068 machine=ibmrs6000 opsys=aix3-2
2069 ;;
2070 romp-ibm-bsd4.3* )
2071 machine=ibmrt opsys=bsd4-3
2072 ;;
2073 romp-ibm-bsd4.2* )
2074 machine=ibmrt opsys=bsd4-2
2075 ;;
2076 romp-ibm-aos4.3* )
2077 machine=ibmrt opsys=bsd4-3
2078 ;;
2079 romp-ibm-aos4.2* )
2080 machine=ibmrt opsys=bsd4-2
2081 ;;
2082 romp-ibm-aos* )
2083 machine=ibmrt opsys=bsd4-3
2084 ;;
2085 romp-ibm-bsd* )
2086 machine=ibmrt opsys=bsd4-3
2087 ;;
2088 romp-ibm-aix* )
2089 machine=ibmrt-aix opsys=usg5-2-2
2090 ;;
2091
2092 ## Integrated Solutions `Optimum V'
2093 m68*-isi-bsd4.2* )
2094 machine=isi-ov opsys=bsd4-2
2095 ;;
2096 m68*-isi-bsd4.3* )
2097 machine=isi-ov opsys=bsd4-3
2098 ;;
2099
2100 ## Intel 386 machines where we do care about the manufacturer
2101 i[3456]86-intsys-sysv* )
2102 machine=is386 opsys=usg5-2-2
2103 ;;
2104
2105 ## Prime EXL
2106 i[3456]86-prime-sysv* )
2107 machine=i386 opsys=usg5-3
2108 ;;
2109
2110 ## Sequent Symmetry running Dynix
2111 i[3456]86-sequent-bsd* )
2112 machine=symmetry opsys=bsd4-3
2113 ;;
2114
2115 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2116 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2117 machine=sequent-ptx opsys=ptx4
2118 NON_GNU_CPP=/lib/cpp
2119 ;;
2120
2121 ## Sequent Symmetry running DYNIX/ptx
2122 ## Use the old cpp rather than the newer ANSI one.
2123 i[3456]86-sequent-ptx* )
2124 machine=sequent-ptx opsys=ptx
2125 NON_GNU_CPP="/lib/cpp"
2126 ;;
2127
2128 ## ncr machine running svr4.3.
2129 i[3456]86-ncr-sysv4.3 )
2130 machine=ncr386 opsys=usg5-4-3
2131 ;;
2132
2133 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2134 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2135 i[3456]86-ncr-sysv* )
2136 machine=ncr386 opsys=usg5-4-2
2137 ;;
2138
2139 ## Intel Paragon OSF/1
2140 i860-intel-osf1* )
2141 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2142 ;;
2143
2144 ## Intel 860
2145 i860-*-sysv4* )
2146 machine=i860 opsys=usg5-4
2147 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2148 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2149 ;;
2150
2151 ## Macintosh PowerPC
2152 powerpc*-*-linux-gnu* )
2153 machine=macppc opsys=gnu-linux
2154 ;;
2155
2156 ## Masscomp machines
2157 m68*-masscomp-rtu* )
2158 machine=masscomp opsys=rtu
2159 ;;
2160
2161 ## Megatest machines
2162 m68*-megatest-bsd* )
2163 machine=mega68 opsys=bsd4-2
2164 ;;
2165
2166 ## Workstations sold by MIPS
2167 ## This is not necessarily all workstations using the MIPS processor -
2168 ## Irises are produced by SGI, and DECstations by DEC.
2169
2170 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2171 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2172 ## it gives for choosing between the alternatives seems to be "Use
2173 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2174 ## the BSD world." I'll assume that these are instructions for
2175 ## handling two odd situations, and that every other situation
2176 ## should use mips.h and usg5-2-2, they being listed first.
2177 mips-mips-usg* )
2178 machine=mips4
2179 ## Fall through to the general code at the bottom to decide on the OS.
2180 ;;
2181 mips-mips-riscos4* )
2182 machine=mips4 opsys=bsd4-3
2183 NON_GNU_CC="cc -systype bsd43"
2184 NON_GNU_CPP="cc -systype bsd43 -E"
2185 ;;
2186 mips-mips-riscos5* )
2187 machine=mips4 opsys=riscos5
2188 NON_GNU_CC="cc -systype bsd43"
2189 NON_GNU_CPP="cc -systype bsd43 -E"
2190 ;;
2191 mips-mips-bsd* )
2192 machine=mips opsys=bsd4-3
2193 ;;
2194 mips-mips-* )
2195 machine=mips opsys=usg5-2-2
2196 ;;
2197
2198 ## NeXT
2199 m68*-next-* | m68k-*-nextstep* )
2200 machine=m68k opsys=nextstep
2201 ;;
2202
2203 ## The complete machine from National Semiconductor
2204 ns32k-ns-genix* )
2205 machine=ns32000 opsys=usg5-2
2206 ;;
2207
2208 ## NCR machines
2209 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2210 machine=tower32 opsys=usg5-2-2
2211 ;;
2212 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2213 machine=tower32v3 opsys=usg5-3
2214 ;;
2215
2216 ## NEC EWS4800
2217 mips-nec-sysv4*)
2218 machine=ews4800 opsys=ux4800
2219 ;;
2220
2221 ## Nixdorf Targon 31
2222 m68*-nixdorf-sysv* )
2223 machine=targon31 opsys=usg5-2-2
2224 ;;
2225
2226 ## Nu (TI or LMI)
2227 m68*-nu-sysv* )
2228 machine=nu opsys=usg5-2
2229 ;;
2230
2231 ## Plexus
2232 m68*-plexus-sysv* )
2233 machine=plexus opsys=usg5-2
2234 ;;
2235
2236 ## Pyramid machines
2237 ## I don't really have any idea what sort of processor the Pyramid has,
2238 ## so I'm assuming it is its own architecture.
2239 pyramid-pyramid-bsd* )
2240 machine=pyramid opsys=bsd4-2
2241 ;;
2242
2243 ## Sequent Balance
2244 ns32k-sequent-bsd4.2* )
2245 machine=sequent opsys=bsd4-2
2246 ;;
2247 ns32k-sequent-bsd4.3* )
2248 machine=sequent opsys=bsd4-3
2249 ;;
2250
2251 ## Siemens Nixdorf
2252 mips-siemens-sysv* | mips-sni-sysv*)
2253 machine=mips-siemens opsys=usg5-4
2254 NON_GNU_CC=/usr/ccs/bin/cc
2255 NON_GNU_CPP=/usr/ccs/lib/cpp
2256 ;;
2257
2258 ## Silicon Graphics machines
2259 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2260 m68*-sgi-iris3.5* )
2261 machine=irist opsys=iris3-5
2262 ;;
2263 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2264 machine=irist opsys=iris3-6
2265 ;;
2266 ## Iris 4D
2267 mips-sgi-irix3* )
2268 machine=iris4d opsys=irix3-3
2269 ;;
2270 mips-sgi-irix4* )
2271 machine=iris4d opsys=irix4-0
2272 ;;
2273 mips-sgi-irix6.5 )
2274 machine=iris4d opsys=irix6-5
2275 # Without defining _LANGUAGE_C, things get masked out in the headers
2276 # so that, for instance, grepping for `free' in stdlib.h fails and
2277 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2278 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2279 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2280 ;;
2281 mips-sgi-irix6* )
2282 machine=iris4d opsys=irix6-0
2283 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2284 # but presumably it does no harm.
2285 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2286 # -32 probably isn't necessary in later v.6s -- anyone know which?
2287 NON_GCC_TEST_OPTIONS=-32
2288 ;;
2289 mips-sgi-irix5.[01]* )
2290 machine=iris4d opsys=irix5-0
2291 ;;
2292 mips-sgi-irix5* | mips-sgi-irix* )
2293 machine=iris4d opsys=irix5-2
2294 ;;
2295
2296 ## SONY machines
2297 m68*-sony-bsd4.2* )
2298 machine=news opsys=bsd4-2
2299 ;;
2300 m68*-sony-bsd4.3* )
2301 machine=news opsys=bsd4-3
2302 ;;
2303 m68*-sony-newsos3* | m68*-sony-news3*)
2304 machine=news opsys=bsd4-3
2305 ;;
2306 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2307 machine=news-risc opsys=bsd4-3
2308 ;;
2309 mips-sony-newsos6* )
2310 machine=news-r6 opsys=newsos6
2311 ;;
2312 mips-sony-news* )
2313 machine=news-risc opsys=newsos5
2314 ;;
2315
2316 ## Stride
2317 m68*-stride-sysv* )
2318 machine=stride opsys=usg5-2
2319 ;;
2320
2321 ## Suns
2322 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2323 machine=sparc opsys=gnu-linux
2324 ;;
2325
2326 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2327 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2328 | rs6000-*-solaris2*)
2329 case "${canonical}" in
2330 m68*-sunos1* ) machine=sun1 ;;
2331 m68*-sunos2* ) machine=sun2 ;;
2332 m68* ) machine=sun3 ;;
2333 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2334 i[3456]86-*-* ) machine=intel386 ;;
2335 powerpcle* ) machine=powerpcle ;;
2336 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2337 sparc* ) machine=sparc ;;
2338 * ) unported=yes ;;
2339 esac
2340 case "${canonical}" in
2341 ## The Sun386 didn't get past 4.0.
2342 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2343 *-sunos4.0* ) opsys=sunos4-0 ;;
2344 *-sunos4.1.[3-9]*noshare )
2345 ## This name is sunos413 instead of sunos4-1-3
2346 ## to avoid a file name conflict on MSDOS.
2347 opsys=sunos413
2348 NON_GNU_CPP=/usr/lib/cpp
2349 NON_GCC_TEST_OPTIONS=-Bstatic
2350 GCC_TEST_OPTIONS=-static
2351 ;;
2352 *-sunos4.1.[3-9]* | *-sunos4shr*)
2353 opsys=sunos4shr
2354 NON_GNU_CPP=/usr/lib/cpp
2355 ;;
2356 *-sunos4* | *-sunos )
2357 opsys=sunos4-1
2358 NON_GCC_TEST_OPTIONS=-Bstatic
2359 GCC_TEST_OPTIONS=-static
2360 ;;
2361 *-sunos5.3* | *-solaris2.3* )
2362 opsys=sol2-3
2363 NON_GNU_CPP=/usr/ccs/lib/cpp
2364 ;;
2365 *-sunos5.4* | *-solaris2.4* )
2366 opsys=sol2-4
2367 NON_GNU_CPP=/usr/ccs/lib/cpp
2368 RANLIB="ar -ts"
2369 ;;
2370 *-sunos5.5* | *-solaris2.5* )
2371 opsys=sol2-5
2372 NON_GNU_CPP=/usr/ccs/lib/cpp
2373 RANLIB="ar -ts"
2374 ;;
2375 *-sunos5.6* | *-solaris2.6* )
2376 opsys=sol2-6
2377 NON_GNU_CPP=/usr/ccs/lib/cpp
2378 RANLIB="ar -ts"
2379 ;;
2380 *-sunos5* | *-solaris* )
2381 opsys=sol2-6
2382 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 ;;
2384 * ) opsys=bsd4-2 ;;
2385 esac
2386 ## Watch out for a compiler that we know will not work.
2387 case "${canonical}" in
2388 *-solaris* | *-sunos5* )
2389 if [ "x$CC" = x/usr/ucb/cc ]; then
2390 ## /usr/ucb/cc doesn't work;
2391 ## we should find some other compiler that does work.
2392 unset CC
2393 fi
2394 ;;
2395 *) ;;
2396 esac
2397 ;;
2398 sparc-*-nextstep* )
2399 machine=sparc opsys=nextstep
2400 ;;
2401
2402 ## Tadpole 68k
2403 m68*-tadpole-sysv* )
2404 machine=tad68k opsys=usg5-3
2405 ;;
2406
2407 ## Tahoe machines
2408 tahoe-tahoe-bsd4.2* )
2409 machine=tahoe opsys=bsd4-2
2410 ;;
2411 tahoe-tahoe-bsd4.3* )
2412 machine=tahoe opsys=bsd4-3
2413 ;;
2414
2415 ## Tandem Integrity S2
2416 mips-tandem-sysv* )
2417 machine=tandem-s2 opsys=usg5-3
2418 ;;
2419
2420 ## Tektronix XD88
2421 m88k-tektronix-sysv3* )
2422 machine=tekxd88 opsys=usg5-3
2423 ;;
2424
2425 ## Tektronix 16000 box (6130?)
2426 ns16k-tektronix-bsd* )
2427 machine=ns16000 opsys=bsd4-2
2428 ;;
2429 ## Tektronix 4300
2430 ## src/m/tek4300.h hints that this is a m68k machine.
2431 m68*-tektronix-bsd* )
2432 machine=tek4300 opsys=bsd4-3
2433 ;;
2434
2435 ## Titan P2 or P3
2436 ## We seem to have lost the machine-description file titan.h!
2437 titan-titan-sysv* )
2438 machine=titan opsys=usg5-3
2439 ;;
2440
2441 ## Ustation E30 (SS5E)
2442 m68*-unisys-uniplus* )
2443 machine=ustation opsystem=unipl5-2
2444 ;;
2445
2446 ## Vaxen.
2447 vax-dec-* )
2448 machine=vax
2449 case "${canonical}" in
2450 *-bsd4.1* ) opsys=bsd4-1 ;;
2451 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2452 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2453 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2454 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2455 *-vms* ) opsys=vms ;;
2456 * ) unported=yes
2457 esac
2458 ;;
2459
2460 ## Whitechapel MG1
2461 ns16k-whitechapel-* )
2462 machine=mg1
2463 ## We don't know what sort of OS runs on these; we'll let the
2464 ## operating system guessing code below try.
2465 ;;
2466
2467 ## Wicat
2468 m68*-wicat-sysv* )
2469 machine=wicat opsys=usg5-2
2470 ;;
2471
2472 ## IA-64
2473 ia64*-*-linux* )
2474 machine=ia64 opsys=gnu-linux
2475 ;;
2476
2477 ## Intel 386 machines where we don't care about the manufacturer
2478 i[3456]86-*-* )
2479 machine=intel386
2480 case "${canonical}" in
2481 *-lynxos* ) opsys=lynxos ;;
2482 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2483 *-isc2.2* ) opsys=isc2-2 ;;
2484 *-isc4.0* ) opsys=isc4-0 ;;
2485 *-isc4.* ) opsys=isc4-1
2486 GCC_TEST_OPTIONS=-posix
2487 NON_GCC_TEST_OPTIONS=-Xp
2488 ;;
2489 *-isc* ) opsys=isc3-0 ;;
2490 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2491 *-esix* ) opsys=esix ;;
2492 *-xenix* ) opsys=xenix ;;
2493 *-linux-gnu* ) opsys=gnu-linux ;;
2494 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2495 *-sco3.2v5* ) opsys=sco5
2496 NON_GNU_CPP=/lib/cpp
2497 # Prevent -belf from being passed to $CPP.
2498 # /lib/cpp does not accept it.
2499 OVERRIDE_CPPFLAGS=" "
2500 ;;
2501 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2502 *-386bsd* ) opsys=386bsd ;;
2503 *-nextstep* ) opsys=nextstep ;;
2504 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2505 esac
2506 ;;
2507
2508 ## m68k Linux-based GNU system
2509 m68k-*-linux-gnu* )
2510 machine=m68k opsys=gnu-linux
2511 ;;
2512
2513 ## Mips Linux-based GNU system
2514 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2515 machine=mips opsys=gnu-linux
2516 ;;
2517
2518 ## UXP/DS
2519 sparc-fujitsu-sysv4* )
2520 machine=sparc opsys=uxpds
2521 NON_GNU_CPP=/usr/ccs/lib/cpp
2522 RANLIB="ar -ts"
2523 ;;
2524
2525 ## UXP/V
2526 f301-fujitsu-uxpv4.1)
2527 machine=f301 opsys=uxpv
2528 ;;
2529
2530 ## Darwin / Mac OS X
2531 powerpc-apple-darwin* )
2532 machine=powermac opsys=darwin
2533 # Define CPP as follows to make autoconf work correctly.
2534 CPP="cc -E -traditional-cpp"
2535 ;;
2536
2537 ## AMD x86-64 Linux-based GNU system
2538 x86_64-*-linux-gnu* )
2539 machine=amdx86-64 opsys=gnu-linux
2540 ;;
2541
2542 * )
2543 unported=yes
2544 ;;
2545 esac
2546
2547 ### If the code above didn't choose an operating system, just choose
2548 ### an operating system based on the configuration name. You really
2549 ### only want to use this when you have no idea what the right
2550 ### operating system is; if you know what operating systems a machine
2551 ### runs, it's cleaner to make it explicit in the case statement
2552 ### above.
2553 if test x"${opsys}" = x; then
2554 case "${canonical}" in
2555 *-gnu* ) opsys=gnu ;;
2556 *-bsd4.[01] ) opsys=bsd4-1 ;;
2557 *-bsd4.2 ) opsys=bsd4-2 ;;
2558 *-bsd4.3 ) opsys=bsd4-3 ;;
2559 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2560 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2561 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2562 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2563 *-sysv4.2uw* ) opsys=unixware ;;
2564 *-sysv4.1* | *-sysvr4.1* )
2565 NON_GNU_CPP=/usr/lib/cpp
2566 opsys=usg5-4 ;;
2567 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2568 if [ x$NON_GNU_CPP = x ]; then
2569 if [ -f /usr/ccs/lib/cpp ]; then
2570 NON_GNU_CPP=/usr/ccs/lib/cpp
2571 else
2572 NON_GNU_CPP=/lib/cpp
2573 fi
2574 fi
2575 opsys=usg5-4-2 ;;
2576 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2577 * )
2578 unported=yes
2579 ;;
2580 esac
2581 fi
2582
2583
2584
2585 if test $unported = yes; then
2586 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2587 Check \`etc/MACHINES' for recognized configuration names." >&5
2588 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2589 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2590 { (exit 1); exit 1; }; }
2591 fi
2592
2593 machfile="m/${machine}.h"
2594 opsysfile="s/${opsys}.h"
2595
2596
2597 #### Choose a compiler.
2598 test -n "$CC" && cc_specified=yes
2599
2600 # Save the value of CFLAGS that the user specified.
2601 SPECIFIED_CFLAGS="$CFLAGS"
2602
2603 case ${with_gcc} in
2604 "yes" ) CC="gcc" GCC=yes ;;
2605 "no" ) : ${CC=cc} ;;
2606 * )
2607 esac
2608 ac_ext=c
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2616 echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637
2638 fi
2639 fi
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642 echo "$as_me:$LINENO: result: $CC" >&5
2643 echo "${ECHO_T}$CC" >&6
2644 else
2645 echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2647 fi
2648
2649 fi
2650 if test -z "$ac_cv_prog_CC"; then
2651 ac_ct_CC=$CC
2652 # Extract the first word of "gcc", so it can be a program name with args.
2653 set dummy gcc; ac_word=$2
2654 echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659 if test -n "$ac_ct_CC"; then
2660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_ac_ct_CC="gcc"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673 done
2674 done
2675
2676 fi
2677 fi
2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 echo "${ECHO_T}$ac_ct_CC" >&6
2682 else
2683 echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2685 fi
2686
2687 CC=$ac_ct_CC
2688 else
2689 CC="$ac_cv_prog_CC"
2690 fi
2691
2692 if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}cc; ac_word=$2
2696 echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC="${ac_tool_prefix}cc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717
2718 fi
2719 fi
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722 echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6
2724 else
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2727 fi
2728
2729 fi
2730 if test -z "$ac_cv_prog_CC"; then
2731 ac_ct_CC=$CC
2732 # Extract the first word of "cc", so it can be a program name with args.
2733 set dummy cc; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC="cc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755
2756 fi
2757 fi
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6
2762 else
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2765 fi
2766
2767 CC=$ac_ct_CC
2768 else
2769 CC="$ac_cv_prog_CC"
2770 fi
2771
2772 fi
2773 if test -z "$CC"; then
2774 # Extract the first word of "cc", so it can be a program name with args.
2775 set dummy cc; ac_word=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 ac_prog_rejected=no
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2793 ac_prog_rejected=yes
2794 continue
2795 fi
2796 ac_cv_prog_CC="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802
2803 if test $ac_prog_rejected = yes; then
2804 # We found a bogon in the path, so make sure we never use it.
2805 set dummy $ac_cv_prog_CC
2806 shift
2807 if test $# != 0; then
2808 # We chose a different compiler from the bogus one.
2809 # However, it has the same basename, so the bogon will be chosen
2810 # first if we set CC to just the basename; use the full file name.
2811 shift
2812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2813 fi
2814 fi
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 echo "$as_me:$LINENO: result: $CC" >&5
2820 echo "${ECHO_T}$CC" >&6
2821 else
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2824 fi
2825
2826 fi
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog in cl
2830 do
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 echo "$as_me:$LINENO: result: $CC" >&5
2860 echo "${ECHO_T}$CC" >&6
2861 else
2862 echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2864 fi
2865
2866 test -n "$CC" && break
2867 done
2868 fi
2869 if test -z "$CC"; then
2870 ac_ct_CC=$CC
2871 for ac_prog in cl
2872 do
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy $ac_prog; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_ac_ct_CC="$ac_prog"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896
2897 fi
2898 fi
2899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900 if test -n "$ac_ct_CC"; then
2901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902 echo "${ECHO_T}$ac_ct_CC" >&6
2903 else
2904 echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 fi
2907
2908 test -n "$ac_ct_CC" && break
2909 done
2910
2911 CC=$ac_ct_CC
2912 fi
2913
2914 fi
2915
2916
2917 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2918 See \`config.log' for more details." >&5
2919 echo "$as_me: error: no acceptable C compiler found in \$PATH
2920 See \`config.log' for more details." >&2;}
2921 { (exit 1); exit 1; }; }
2922
2923 # Provide some information about the compiler.
2924 echo "$as_me:$LINENO:" \
2925 "checking for C compiler version" >&5
2926 ac_compiler=`set X $ac_compile; echo $2`
2927 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2928 (eval $ac_compiler --version </dev/null >&5) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2933 (eval $ac_compiler -v </dev/null >&5) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2938 (eval $ac_compiler -V </dev/null >&5) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942
2943 cat >conftest.$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950
2951 int
2952 main ()
2953 {
2954
2955 ;
2956 return 0;
2957 }
2958 _ACEOF
2959 ac_clean_files_save=$ac_clean_files
2960 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2961 # Try to create an executable without -o first, disregard a.out.
2962 # It will help us diagnose broken compilers, and finding out an intuition
2963 # of exeext.
2964 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2965 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2966 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2968 (eval $ac_link_default) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # Find the output, starting from the most likely. This scheme is
2973 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2974 # resort.
2975
2976 # Be careful to initialize this variable, since it used to be cached.
2977 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2978 ac_cv_exeext=
2979 # b.out is created by i960 compilers.
2980 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2981 do
2982 test -f "$ac_file" || continue
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2985 ;;
2986 conftest.$ac_ext )
2987 # This is the source file.
2988 ;;
2989 [ab].out )
2990 # We found the default executable, but exeext='' is most
2991 # certainly right.
2992 break;;
2993 *.* )
2994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 # FIXME: I believe we export ac_cv_exeext for Libtool,
2996 # but it would be cool to find out if it's true. Does anybody
2997 # maintain Libtool? --akim.
2998 export ac_cv_exeext
2999 break;;
3000 * )
3001 break;;
3002 esac
3003 done
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: C compiler cannot create executables
3011 See \`config.log' for more details." >&2;}
3012 { (exit 77); exit 77; }; }
3013 fi
3014
3015 ac_exeext=$ac_cv_exeext
3016 echo "$as_me:$LINENO: result: $ac_file" >&5
3017 echo "${ECHO_T}$ac_file" >&6
3018
3019 # Check the compiler produces executables we can run. If not, either
3020 # the compiler is broken, or we cross compile.
3021 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3022 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3023 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3024 # If not cross compiling, check that we can run a simple program.
3025 if test "$cross_compiling" != yes; then
3026 if { ac_try='./$ac_file'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 cross_compiling=no
3033 else
3034 if test "$cross_compiling" = maybe; then
3035 cross_compiling=yes
3036 else
3037 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3038 If you meant to cross compile, use \`--host'.
3039 See \`config.log' for more details." >&5
3040 echo "$as_me: error: cannot run C compiled programs.
3041 If you meant to cross compile, use \`--host'.
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3044 fi
3045 fi
3046 fi
3047 echo "$as_me:$LINENO: result: yes" >&5
3048 echo "${ECHO_T}yes" >&6
3049
3050 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3051 ac_clean_files=$ac_clean_files_save
3052 # Check the compiler produces executables we can run. If not, either
3053 # the compiler is broken, or we cross compile.
3054 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3055 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3056 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3057 echo "${ECHO_T}$cross_compiling" >&6
3058
3059 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3060 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3062 (eval $ac_link) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; then
3066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3068 # work properly (i.e., refer to `conftest.exe'), while it won't with
3069 # `rm'.
3070 for ac_file in conftest.exe conftest conftest.*; do
3071 test -f "$ac_file" || continue
3072 case $ac_file in
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 export ac_cv_exeext
3076 break;;
3077 * ) break;;
3078 esac
3079 done
3080 else
3081 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&5
3083 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&2;}
3085 { (exit 1); exit 1; }; }
3086 fi
3087
3088 rm -f conftest$ac_cv_exeext
3089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3090 echo "${ECHO_T}$ac_cv_exeext" >&6
3091
3092 rm -f conftest.$ac_ext
3093 EXEEXT=$ac_cv_exeext
3094 ac_exeext=$EXEEXT
3095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3097 if test "${ac_cv_objext+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3107
3108 int
3109 main ()
3110 {
3111
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.o conftest.obj
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3126 break;;
3127 esac
3128 done
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3134 See \`config.log' for more details." >&5
3135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3136 See \`config.log' for more details." >&2;}
3137 { (exit 1); exit 1; }; }
3138 fi
3139
3140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141 fi
3142 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143 echo "${ECHO_T}$ac_cv_objext" >&6
3144 OBJEXT=$ac_cv_objext
3145 ac_objext=$OBJEXT
3146 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 cat >conftest.$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3158
3159 int
3160 main ()
3161 {
3162 #ifndef __GNUC__
3163 choke me
3164 #endif
3165
3166 ;
3167 return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_compiler_gnu=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 ac_compiler_gnu=no
3188 fi
3189 rm -f conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3191
3192 fi
3193 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3195 GCC=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CFLAGS=${CFLAGS+set}
3197 ac_save_CFLAGS=$CFLAGS
3198 CFLAGS="-g"
3199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3201 if test "${ac_cv_prog_cc_g+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 cat >conftest.$ac_ext <<_ACEOF
3205 #line $LINENO "configure"
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3211
3212 int
3213 main ()
3214 {
3215
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_cv_prog_cc_g=yes
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 ac_cv_prog_cc_g=no
3238 fi
3239 rm -f conftest.$ac_objext conftest.$ac_ext
3240 fi
3241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3243 if test "$ac_test_CFLAGS" = set; then
3244 CFLAGS=$ac_save_CFLAGS
3245 elif test $ac_cv_prog_cc_g = yes; then
3246 if test "$GCC" = yes; then
3247 CFLAGS="-g -O2"
3248 else
3249 CFLAGS="-g"
3250 fi
3251 else
3252 if test "$GCC" = yes; then
3253 CFLAGS="-O2"
3254 else
3255 CFLAGS=
3256 fi
3257 fi
3258 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3259 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3260 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 ac_cv_prog_cc_stdc=no
3264 ac_save_CC=$CC
3265 cat >conftest.$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <stdarg.h>
3273 #include <stdio.h>
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3280 char **p;
3281 int i;
3282 {
3283 return p[i];
3284 }
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3286 {
3287 char *s;
3288 va_list v;
3289 va_start (v,p);
3290 s = g (p, va_arg (v,int));
3291 va_end (v);
3292 return s;
3293 }
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3298 int argc;
3299 char **argv;
3300 int
3301 main ()
3302 {
3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 ;
3305 return 0;
3306 }
3307 _ACEOF
3308 # Don't try gcc -ansi; that turns off useful extensions and
3309 # breaks some systems' header files.
3310 # AIX -qlanglvl=ansi
3311 # Ultrix and OSF/1 -std1
3312 # HP-UX 10.20 and later -Ae
3313 # HP-UX older versions -Aa -D_HPUX_SOURCE
3314 # SVR4 -Xc -D__EXTENSIONS__
3315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 do
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
3319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -s conftest.$ac_objext'
3325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 (eval $ac_try) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; }; then
3330 ac_cv_prog_cc_stdc=$ac_arg
3331 break
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 fi
3337 rm -f conftest.$ac_objext
3338 done
3339 rm -f conftest.$ac_ext conftest.$ac_objext
3340 CC=$ac_save_CC
3341
3342 fi
3343
3344 case "x$ac_cv_prog_cc_stdc" in
3345 x|xno)
3346 echo "$as_me:$LINENO: result: none needed" >&5
3347 echo "${ECHO_T}none needed" >&6 ;;
3348 *)
3349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3351 CC="$CC $ac_cv_prog_cc_stdc" ;;
3352 esac
3353
3354 # Some people use a C++ compiler to compile C. Since we use `exit',
3355 # in C++ we need to declare it. In case someone uses the same compiler
3356 # for both compiling C and C++ we need to have the C++ compiler decide
3357 # the declaration of exit, since it's the most demanding environment.
3358 cat >conftest.$ac_ext <<_ACEOF
3359 #ifndef __cplusplus
3360 choke me
3361 #endif
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 for ac_declaration in \
3376 ''\
3377 '#include <stdlib.h>' \
3378 'extern "C" void std::exit (int) throw (); using std::exit;' \
3379 'extern "C" void std::exit (int); using std::exit;' \
3380 'extern "C" void exit (int) throw ();' \
3381 'extern "C" void exit (int);' \
3382 'void exit (int);'
3383 do
3384 cat >conftest.$ac_ext <<_ACEOF
3385 #line $LINENO "configure"
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <stdlib.h>
3392 $ac_declaration
3393 int
3394 main ()
3395 {
3396 exit (42);
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403 (eval $ac_compile) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 :
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 continue
3419 fi
3420 rm -f conftest.$ac_objext conftest.$ac_ext
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_declaration
3429 int
3430 main ()
3431 {
3432 exit (42);
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3449 break
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454 fi
3455 rm -f conftest.$ac_objext conftest.$ac_ext
3456 done
3457 rm -f conftest*
3458 if test -n "$ac_declaration"; then
3459 echo '#ifdef __cplusplus' >>confdefs.h
3460 echo $ac_declaration >>confdefs.h
3461 echo '#endif' >>confdefs.h
3462 fi
3463
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 fi
3469 rm -f conftest.$ac_objext conftest.$ac_ext
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476
3477 # On Suns, sometimes $CPP names a directory.
3478 if test -n "$CPP" && test -d "$CPP"; then
3479 CPP=
3480 fi
3481
3482 #### Some systems specify a CPP to use unless we are using GCC.
3483 #### Now that we know whether we are using GCC, we can decide whether
3484 #### to use that one.
3485 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3486 then
3487 CPP="$NON_GNU_CPP"
3488 fi
3489
3490 #### Some systems specify a CC to use unless we are using GCC.
3491 #### Now that we know whether we are using GCC, we can decide whether
3492 #### to use that one.
3493 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3494 test x$cc_specified != xyes
3495 then
3496 CC="$NON_GNU_CC"
3497 fi
3498
3499 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3500 then
3501 CC="$CC $GCC_TEST_OPTIONS"
3502 fi
3503
3504 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3505 then
3506 CC="$CC $NON_GCC_TEST_OPTIONS"
3507 fi
3508
3509 #### Some other nice autoconf tests.
3510
3511 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3512 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3513 LN_S=$as_ln_s
3514 if test "$LN_S" = "ln -s"; then
3515 echo "$as_me:$LINENO: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3519 echo "${ECHO_T}no, using $LN_S" >&6
3520 fi
3521
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3528 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3529 # On Suns, sometimes $CPP names a directory.
3530 if test -n "$CPP" && test -d "$CPP"; then
3531 CPP=
3532 fi
3533 if test -z "$CPP"; then
3534 if test "${ac_cv_prog_CPP+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 # Double quotes because CPP needs to be expanded
3538 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3539 do
3540 ac_preproc_ok=false
3541 for ac_c_preproc_warn_flag in '' yes
3542 do
3543 # Use a header file that comes with gcc, so configuring glibc
3544 # with a fresh cross-compiler works.
3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3546 # <limits.h> exists even on freestanding compilers.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 #line $LINENO "configure"
3551 /* confdefs.h. */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #ifdef __STDC__
3557 # include <limits.h>
3558 #else
3559 # include <assert.h>
3560 #endif
3561 Syntax error
3562 _ACEOF
3563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 else
3574 ac_cpp_err=
3575 fi
3576 else
3577 ac_cpp_err=yes
3578 fi
3579 if test -z "$ac_cpp_err"; then
3580 :
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 # Broken: fails on valid input.
3586 continue
3587 fi
3588 rm -f conftest.err conftest.$ac_ext
3589
3590 # OK, works on sane cases. Now check whether non-existent headers
3591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 #include <ac_nonexistent.h>
3600 _ACEOF
3601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 else
3612 ac_cpp_err=
3613 fi
3614 else
3615 ac_cpp_err=yes
3616 fi
3617 if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3619 continue
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 # Passes both tests.
3625 ac_preproc_ok=:
3626 break
3627 fi
3628 rm -f conftest.err conftest.$ac_ext
3629
3630 done
3631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632 rm -f conftest.err conftest.$ac_ext
3633 if $ac_preproc_ok; then
3634 break
3635 fi
3636
3637 done
3638 ac_cv_prog_CPP=$CPP
3639
3640 fi
3641 CPP=$ac_cv_prog_CPP
3642 else
3643 ac_cv_prog_CPP=$CPP
3644 fi
3645 echo "$as_me:$LINENO: result: $CPP" >&5
3646 echo "${ECHO_T}$CPP" >&6
3647 ac_preproc_ok=false
3648 for ac_c_preproc_warn_flag in '' yes
3649 do
3650 # Use a header file that comes with gcc, so configuring glibc
3651 # with a fresh cross-compiler works.
3652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653 # <limits.h> exists even on freestanding compilers.
3654 # On the NeXT, cc -E runs the code through the compiler's parser,
3655 # not just through cpp. "Syntax error" is here to catch this case.
3656 cat >conftest.$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #ifdef __STDC__
3664 # include <limits.h>
3665 #else
3666 # include <assert.h>
3667 #endif
3668 Syntax error
3669 _ACEOF
3670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev/null; then
3678 if test -s conftest.err; then
3679 ac_cpp_err=$ac_c_preproc_warn_flag
3680 else
3681 ac_cpp_err=
3682 fi
3683 else
3684 ac_cpp_err=yes
3685 fi
3686 if test -z "$ac_cpp_err"; then
3687 :
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 # Broken: fails on valid input.
3693 continue
3694 fi
3695 rm -f conftest.err conftest.$ac_ext
3696
3697 # OK, works on sane cases. Now check whether non-existent headers
3698 # can be detected and how.
3699 cat >conftest.$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 #include <ac_nonexistent.h>
3707 _ACEOF
3708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3710 ac_status=$?
3711 grep -v '^ *+' conftest.er1 >conftest.err
3712 rm -f conftest.er1
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } >/dev/null; then
3716 if test -s conftest.err; then
3717 ac_cpp_err=$ac_c_preproc_warn_flag
3718 else
3719 ac_cpp_err=
3720 fi
3721 else
3722 ac_cpp_err=yes
3723 fi
3724 if test -z "$ac_cpp_err"; then
3725 # Broken: success on invalid input.
3726 continue
3727 else
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 # Passes both tests.
3732 ac_preproc_ok=:
3733 break
3734 fi
3735 rm -f conftest.err conftest.$ac_ext
3736
3737 done
3738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3739 rm -f conftest.err conftest.$ac_ext
3740 if $ac_preproc_ok; then
3741 :
3742 else
3743 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3744 See \`config.log' for more details." >&5
3745 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3746 See \`config.log' for more details." >&2;}
3747 { (exit 1); exit 1; }; }
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756 # Find a good install program. We prefer a C program (faster),
3757 # so one script is as good as another. But avoid the broken or
3758 # incompatible versions:
3759 # SysV /etc/install, /usr/sbin/install
3760 # SunOS /usr/etc/install
3761 # IRIX /sbin/install
3762 # AIX /bin/install
3763 # AmigaOS /C/install, which installs bootblocks on floppy discs
3764 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3765 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3766 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3767 # ./install, which can be erroneously created by make from ./install.sh.
3768 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3769 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3770 if test -z "$INSTALL"; then
3771 if test "${ac_cv_path_install+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 # Account for people who put trailing slashes in PATH elements.
3780 case $as_dir/ in
3781 ./ | .// | /cC/* | \
3782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3783 /usr/ucb/* ) ;;
3784 *)
3785 # OSF1 and SCO ODT 3.0 have their own names for install.
3786 # Don't use installbsd from OSF since it installs stuff as root
3787 # by default.
3788 for ac_prog in ginstall scoinst install; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3791 if test $ac_prog = install &&
3792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3793 # AIX install. It has an incompatible calling convention.
3794 :
3795 elif test $ac_prog = install &&
3796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3797 # program-specific install script used by HP pwplus--don't use.
3798 :
3799 else
3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801 break 3
3802 fi
3803 fi
3804 done
3805 done
3806 ;;
3807 esac
3808 done
3809
3810
3811 fi
3812 if test "${ac_cv_path_install+set}" = set; then
3813 INSTALL=$ac_cv_path_install
3814 else
3815 # As a last resort, use the slow shell script. We don't cache a
3816 # path for INSTALL within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the path is relative.
3819 INSTALL=$ac_install_sh
3820 fi
3821 fi
3822 echo "$as_me:$LINENO: result: $INSTALL" >&5
3823 echo "${ECHO_T}$INSTALL" >&6
3824
3825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3826 # It thinks the first close brace ends the variable substitution.
3827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3828
3829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3830
3831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3832
3833 if test "x$RANLIB" = x; then
3834 if test -n "$ac_tool_prefix"; then
3835 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3836 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3837 echo "$as_me:$LINENO: checking for $ac_word" >&5
3838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839 if test "${ac_cv_prog_RANLIB+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 if test -n "$RANLIB"; then
3843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3855 fi
3856 done
3857 done
3858
3859 fi
3860 fi
3861 RANLIB=$ac_cv_prog_RANLIB
3862 if test -n "$RANLIB"; then
3863 echo "$as_me:$LINENO: result: $RANLIB" >&5
3864 echo "${ECHO_T}$RANLIB" >&6
3865 else
3866 echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3868 fi
3869
3870 fi
3871 if test -z "$ac_cv_prog_RANLIB"; then
3872 ac_ct_RANLIB=$RANLIB
3873 # Extract the first word of "ranlib", so it can be a program name with args.
3874 set dummy ranlib; ac_word=$2
3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 if test -n "$ac_ct_RANLIB"; then
3881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_RANLIB="ranlib"
3891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894 done
3895 done
3896
3897 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3898 fi
3899 fi
3900 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3901 if test -n "$ac_ct_RANLIB"; then
3902 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3903 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3904 else
3905 echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3907 fi
3908
3909 RANLIB=$ac_ct_RANLIB
3910 else
3911 RANLIB="$ac_cv_prog_RANLIB"
3912 fi
3913
3914 fi
3915 # Extract the first word of "install-info", so it can be a program name with args.
3916 set dummy install-info; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 case $INSTALL_INFO in
3923 [\\/]* | ?:[\\/]*)
3924 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3925 ;;
3926 *)
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938 done
3939 done
3940
3941 ;;
3942 esac
3943 fi
3944 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3945
3946 if test -n "$INSTALL_INFO"; then
3947 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3948 echo "${ECHO_T}$INSTALL_INFO" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954 # Extract the first word of "install-info", so it can be a program name with args.
3955 set dummy install-info; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 case $INSTALL_INFO in
3962 [\\/]* | ?:[\\/]*)
3963 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3964 ;;
3965 *)
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in /usr/sbin
3968 do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977 done
3978 done
3979
3980 ;;
3981 esac
3982 fi
3983 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3984
3985 if test -n "$INSTALL_INFO"; then
3986 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3987 echo "${ECHO_T}$INSTALL_INFO" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3991 fi
3992
3993 # Extract the first word of "install-info", so it can be a program name with args.
3994 set dummy install-info; ac_word=$2
3995 echo "$as_me:$LINENO: checking for $ac_word" >&5
3996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000 case $INSTALL_INFO in
4001 [\\/]* | ?:[\\/]*)
4002 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4003 ;;
4004 *)
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in /sbin
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018
4019 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4020 ;;
4021 esac
4022 fi
4023 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4024
4025 if test -n "$INSTALL_INFO"; then
4026 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4027 echo "${ECHO_T}$INSTALL_INFO" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4031 fi
4032
4033
4034
4035 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4036 then
4037 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4038 fi
4039
4040 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4041 then
4042 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4043 fi
4044
4045
4046
4047 echo "$as_me:$LINENO: checking for egrep" >&5
4048 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4049 if test "${ac_cv_prog_egrep+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4053 then ac_cv_prog_egrep='grep -E'
4054 else ac_cv_prog_egrep='egrep'
4055 fi
4056 fi
4057 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4058 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4059 EGREP=$ac_cv_prog_egrep
4060
4061
4062
4063 echo "$as_me:$LINENO: checking for AIX" >&5
4064 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4065 cat >conftest.$ac_ext <<_ACEOF
4066 #line $LINENO "configure"
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 #ifdef _AIX
4073 yes
4074 #endif
4075
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "yes" >/dev/null 2>&1; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080 echo "${ECHO_T}yes" >&6
4081 cat >>confdefs.h <<\_ACEOF
4082 #define _ALL_SOURCE 1
4083 _ACEOF
4084
4085 else
4086 echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4088 fi
4089 rm -f conftest*
4090
4091
4092
4093 #### Extract some information from the operating system and machine files.
4094
4095 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4096 - which libraries the lib-src programs will want, and
4097 - whether the GNU malloc routines are usable..." >&5
4098 echo "$as_me: checking the machine- and system-dependent files to find out
4099 - which libraries the lib-src programs will want, and
4100 - whether the GNU malloc routines are usable..." >&6;}
4101
4102 ### First figure out CFLAGS (which we use for running the compiler here)
4103 ### and REAL_CFLAGS (which we use for real compilation).
4104 ### The two are the same except on a few systems, where they are made
4105 ### different to work around various lossages. For example,
4106 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4107 ### as implying static linking.
4108
4109 ### If the CFLAGS env var is specified, we use that value
4110 ### instead of the default.
4111
4112 ### It's not important that this name contain the PID; you can't run
4113 ### two configures in the same directory and have anything work
4114 ### anyway.
4115 tempcname="conftest.c"
4116
4117 echo '
4118 #include "'${srcdir}'/src/'${opsysfile}'"
4119 #include "'${srcdir}'/src/'${machfile}'"
4120 #ifndef LIBS_MACHINE
4121 #define LIBS_MACHINE
4122 #endif
4123 #ifndef LIBS_SYSTEM
4124 #define LIBS_SYSTEM
4125 #endif
4126 #ifndef C_SWITCH_SYSTEM
4127 #define C_SWITCH_SYSTEM
4128 #endif
4129 #ifndef C_SWITCH_MACHINE
4130 #define C_SWITCH_MACHINE
4131 #endif
4132 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4133 configure___ c_switch_system=C_SWITCH_SYSTEM
4134 configure___ c_switch_machine=C_SWITCH_MACHINE
4135
4136 #ifndef LIB_X11_LIB
4137 #define LIB_X11_LIB -lX11
4138 #endif
4139
4140 #ifndef LIBX11_MACHINE
4141 #define LIBX11_MACHINE
4142 #endif
4143
4144 #ifndef LIBX11_SYSTEM
4145 #define LIBX11_SYSTEM
4146 #endif
4147 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4148
4149 #ifdef UNEXEC
4150 configure___ unexec=UNEXEC
4151 #else
4152 configure___ unexec=unexec.o
4153 #endif
4154
4155 #ifdef SYSTEM_MALLOC
4156 configure___ system_malloc=yes
4157 #else
4158 configure___ system_malloc=no
4159 #endif
4160
4161 #ifdef USE_MMAP_FOR_BUFFERS
4162 configure___ use_mmap_for_buffers=yes
4163 #else
4164 configure___ use_mmap_for_buffers=no
4165 #endif
4166
4167 #ifndef C_DEBUG_SWITCH
4168 #define C_DEBUG_SWITCH -g
4169 #endif
4170
4171 #ifndef C_OPTIMIZE_SWITCH
4172 #ifdef __GNUC__
4173 #define C_OPTIMIZE_SWITCH -O2
4174 #else
4175 #define C_OPTIMIZE_SWITCH -O
4176 #endif
4177 #endif
4178
4179 #ifndef LD_SWITCH_MACHINE
4180 #define LD_SWITCH_MACHINE
4181 #endif
4182
4183 #ifndef LD_SWITCH_SYSTEM
4184 #define LD_SWITCH_SYSTEM
4185 #endif
4186
4187 #ifndef LD_SWITCH_X_SITE_AUX
4188 #define LD_SWITCH_X_SITE_AUX
4189 #endif
4190
4191 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4192 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4193
4194 #ifdef THIS_IS_CONFIGURE
4195
4196 /* Get the CFLAGS for tests in configure. */
4197 #ifdef __GNUC__
4198 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4199 #else
4200 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4201 #endif
4202
4203 #else /* not THIS_IS_CONFIGURE */
4204
4205 /* Get the CFLAGS for real compilation. */
4206 #ifdef __GNUC__
4207 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4208 #else
4209 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4210 #endif
4211
4212 #endif /* not THIS_IS_CONFIGURE */
4213 ' > ${tempcname}
4214
4215 # The value of CPP is a quoted variable reference, so we need to do this
4216 # to get its actual value...
4217 CPP=`eval "echo $CPP"`
4218 eval `${CPP} -Isrc ${tempcname} \
4219 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4220 if test "x$SPECIFIED_CFLAGS" = x; then
4221 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4222 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4223 else
4224 REAL_CFLAGS="$CFLAGS"
4225 fi
4226 rm ${tempcname}
4227
4228 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4229
4230 ### Make sure subsequent tests use flags consistent with the build flags.
4231
4232 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4233 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4234 else
4235 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4236 fi
4237
4238
4239
4240
4241 cat >>confdefs.h <<\_ACEOF
4242 #define _GNU_SOURCE 1
4243 _ACEOF
4244
4245
4246
4247 # Check whether --enable-largefile or --disable-largefile was given.
4248 if test "${enable_largefile+set}" = set; then
4249 enableval="$enable_largefile"
4250
4251 fi;
4252 if test "$enable_largefile" != no; then
4253
4254 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4255 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4256 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 ac_cv_sys_largefile_CC=no
4260 if test "$GCC" != yes; then
4261 ac_save_CC=$CC
4262 while :; do
4263 # IRIX 6.2 and later do not support large files by default,
4264 # so use the C compiler's -n32 option if that helps.
4265 cat >conftest.$ac_ext <<_ACEOF
4266 #line $LINENO "configure"
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <sys/types.h>
4273 /* Check that off_t can represent 2**63 - 1 correctly.
4274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4275 since some C++ compilers masquerading as C compilers
4276 incorrectly reject 9223372036854775807. */
4277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4279 && LARGE_OFF_T % 2147483647 == 1)
4280 ? 1 : -1];
4281 int
4282 main ()
4283 {
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 break
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 fi
4307 rm -f conftest.$ac_objext
4308 CC="$CC -n32"
4309 rm -f conftest.$ac_objext
4310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -s conftest.$ac_objext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 (eval $ac_try) 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 ac_cv_sys_largefile_CC=' -n32'; break
4322 else
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326 fi
4327 rm -f conftest.$ac_objext
4328 break
4329 done
4330 CC=$ac_save_CC
4331 rm -f conftest.$ac_ext
4332 fi
4333 fi
4334 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4335 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4336 if test "$ac_cv_sys_largefile_CC" != no; then
4337 CC=$CC$ac_cv_sys_largefile_CC
4338 fi
4339
4340 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4341 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4342 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 while :; do
4346 ac_cv_sys_file_offset_bits=no
4347 cat >conftest.$ac_ext <<_ACEOF
4348 #line $LINENO "configure"
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #include <sys/types.h>
4355 /* Check that off_t can represent 2**63 - 1 correctly.
4356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4357 since some C++ compilers masquerading as C compilers
4358 incorrectly reject 9223372036854775807. */
4359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4361 && LARGE_OFF_T % 2147483647 == 1)
4362 ? 1 : -1];
4363 int
4364 main ()
4365 {
4366
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 break
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 fi
4389 rm -f conftest.$ac_objext conftest.$ac_ext
4390 cat >conftest.$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #define _FILE_OFFSET_BITS 64
4398 #include <sys/types.h>
4399 /* Check that off_t can represent 2**63 - 1 correctly.
4400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4401 since some C++ compilers masquerading as C compilers
4402 incorrectly reject 9223372036854775807. */
4403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4405 && LARGE_OFF_T % 2147483647 == 1)
4406 ? 1 : -1];
4407 int
4408 main ()
4409 {
4410
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_sys_file_offset_bits=64; break
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432 fi
4433 rm -f conftest.$ac_objext conftest.$ac_ext
4434 break
4435 done
4436 fi
4437 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4438 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4439 if test "$ac_cv_sys_file_offset_bits" != no; then
4440
4441 cat >>confdefs.h <<_ACEOF
4442 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4443 _ACEOF
4444
4445 fi
4446 rm -f conftest*
4447 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4448 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4449 if test "${ac_cv_sys_large_files+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 while :; do
4453 ac_cv_sys_large_files=no
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line $LINENO "configure"
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <sys/types.h>
4462 /* Check that off_t can represent 2**63 - 1 correctly.
4463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4464 since some C++ compilers masquerading as C compilers
4465 incorrectly reject 9223372036854775807. */
4466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4468 && LARGE_OFF_T % 2147483647 == 1)
4469 ? 1 : -1];
4470 int
4471 main ()
4472 {
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.$ac_objext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 break
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 fi
4496 rm -f conftest.$ac_objext conftest.$ac_ext
4497 cat >conftest.$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 #define _LARGE_FILES 1
4505 #include <sys/types.h>
4506 /* Check that off_t can represent 2**63 - 1 correctly.
4507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4508 since some C++ compilers masquerading as C compilers
4509 incorrectly reject 9223372036854775807. */
4510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4512 && LARGE_OFF_T % 2147483647 == 1)
4513 ? 1 : -1];
4514 int
4515 main ()
4516 {
4517
4518 ;
4519 return 0;
4520 }
4521 _ACEOF
4522 rm -f conftest.$ac_objext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_cv_sys_large_files=1; break
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 fi
4540 rm -f conftest.$ac_objext conftest.$ac_ext
4541 break
4542 done
4543 fi
4544 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4545 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4546 if test "$ac_cv_sys_large_files" != no; then
4547
4548 cat >>confdefs.h <<_ACEOF
4549 #define _LARGE_FILES $ac_cv_sys_large_files
4550 _ACEOF
4551
4552 fi
4553 rm -f conftest*
4554 fi
4555
4556
4557 if test "${with_sound}" != "no"; then
4558 # Sound support for GNU/Linux and the free BSDs.
4559 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4560 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4561 if test "${ac_cv_header_stdc+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <stdlib.h>
4572 #include <stdarg.h>
4573 #include <string.h>
4574 #include <float.h>
4575
4576 int
4577 main ()
4578 {
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_header_stdc=yes
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601 ac_cv_header_stdc=no
4602 fi
4603 rm -f conftest.$ac_objext conftest.$ac_ext
4604
4605 if test $ac_cv_header_stdc = yes; then
4606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4607 cat >conftest.$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 /* confdefs.h. */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 #include <string.h>
4615
4616 _ACEOF
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "memchr" >/dev/null 2>&1; then
4619 :
4620 else
4621 ac_cv_header_stdc=no
4622 fi
4623 rm -f conftest*
4624
4625 fi
4626
4627 if test $ac_cv_header_stdc = yes; then
4628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <stdlib.h>
4637
4638 _ACEOF
4639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640 $EGREP "free" >/dev/null 2>&1; then
4641 :
4642 else
4643 ac_cv_header_stdc=no
4644 fi
4645 rm -f conftest*
4646
4647 fi
4648
4649 if test $ac_cv_header_stdc = yes; then
4650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4651 if test "$cross_compiling" = yes; then
4652 :
4653 else
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 #include <ctype.h>
4662 #if ((' ' & 0x0FF) == 0x020)
4663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4665 #else
4666 # define ISLOWER(c) \
4667 (('a' <= (c) && (c) <= 'i') \
4668 || ('j' <= (c) && (c) <= 'r') \
4669 || ('s' <= (c) && (c) <= 'z'))
4670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4671 #endif
4672
4673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674 int
4675 main ()
4676 {
4677 int i;
4678 for (i = 0; i < 256; i++)
4679 if (XOR (islower (i), ISLOWER (i))
4680 || toupper (i) != TOUPPER (i))
4681 exit(2);
4682 exit (0);
4683 }
4684 _ACEOF
4685 rm -f conftest$ac_exeext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687 (eval $ac_link) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 :
4697 else
4698 echo "$as_me: program exited with status $ac_status" >&5
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 ( exit $ac_status )
4703 ac_cv_header_stdc=no
4704 fi
4705 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4706 fi
4707 fi
4708 fi
4709 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4710 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4711 if test $ac_cv_header_stdc = yes; then
4712
4713 cat >>confdefs.h <<\_ACEOF
4714 #define STDC_HEADERS 1
4715 _ACEOF
4716
4717 fi
4718
4719 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4730 inttypes.h stdint.h unistd.h
4731 do
4732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733 echo "$as_me:$LINENO: checking for $ac_header" >&5
4734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 cat >conftest.$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746
4747 #include <$ac_header>
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 eval "$as_ac_Header=yes"
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 eval "$as_ac_Header=no"
4767 fi
4768 rm -f conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4775 _ACEOF
4776
4777 fi
4778
4779 done
4780
4781
4782
4783
4784
4785 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4786 do
4787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4789 echo "$as_me:$LINENO: checking for $ac_header" >&5
4790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 fi
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 else
4797 # Is the header compilable?
4798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4801 #line $LINENO "configure"
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4808 #include <$ac_header>
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_header_compiler=yes
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 ac_header_compiler=no
4828 fi
4829 rm -f conftest.$ac_objext conftest.$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6
4832
4833 # Is the header present?
4834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #include <$ac_header>
4844 _ACEOF
4845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null; then
4853 if test -s conftest.err; then
4854 ac_cpp_err=$ac_c_preproc_warn_flag
4855 else
4856 ac_cpp_err=
4857 fi
4858 else
4859 ac_cpp_err=yes
4860 fi
4861 if test -z "$ac_cpp_err"; then
4862 ac_header_preproc=yes
4863 else
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867 ac_header_preproc=no
4868 fi
4869 rm -f conftest.err conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4872
4873 # So? What about this header?
4874 case $ac_header_compiler:$ac_header_preproc in
4875 yes:no )
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4880 (
4881 cat <<\_ASBOX
4882 ## ------------------------------------ ##
4883 ## Report this to bug-autoconf@gnu.org. ##
4884 ## ------------------------------------ ##
4885 _ASBOX
4886 ) |
4887 sed "s/^/$as_me: WARNING: /" >&2
4888 ;;
4889 no:yes )
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4896 (
4897 cat <<\_ASBOX
4898 ## ------------------------------------ ##
4899 ## Report this to bug-autoconf@gnu.org. ##
4900 ## ------------------------------------ ##
4901 _ASBOX
4902 ) |
4903 sed "s/^/$as_me: WARNING: /" >&2
4904 ;;
4905 esac
4906 echo "$as_me:$LINENO: checking for $ac_header" >&5
4907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 eval "$as_ac_Header=$ac_header_preproc"
4912 fi
4913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4915
4916 fi
4917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4918 cat >>confdefs.h <<_ACEOF
4919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4920 _ACEOF
4921
4922 fi
4923
4924 done
4925
4926 # Emulation library used on NetBSD.
4927 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4928 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4929 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 ac_check_lib_save_LIBS=$LIBS
4933 LIBS="-lossaudio $LIBS"
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941
4942 /* Override any gcc2 internal prototype to avoid an error. */
4943 #ifdef __cplusplus
4944 extern "C"
4945 #endif
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4948 char _oss_ioctl ();
4949 int
4950 main ()
4951 {
4952 _oss_ioctl ();
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 rm -f conftest.$ac_objext conftest$ac_exeext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4959 (eval $ac_link) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -s conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_cv_lib_ossaudio__oss_ioctl=yes
4970 else
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 ac_cv_lib_ossaudio__oss_ioctl=no
4975 fi
4976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4977 LIBS=$ac_check_lib_save_LIBS
4978 fi
4979 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4980 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4981 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4982 LIBSOUND=-lossaudio
4983 else
4984 LIBSOUND=
4985 fi
4986
4987
4988 fi
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5013 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5014 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
5015 sys/param.h sys/vlimit.h sys/resource.h
5016 do
5017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5019 echo "$as_me:$LINENO: checking for $ac_header" >&5
5020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 fi
5024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5026 else
5027 # Is the header compilable?
5028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5030 cat >conftest.$ac_ext <<_ACEOF
5031 #line $LINENO "configure"
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 $ac_includes_default
5038 #include <$ac_header>
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_header_compiler=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057 ac_header_compiler=no
5058 fi
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5061 echo "${ECHO_T}$ac_header_compiler" >&6
5062
5063 # Is the header present?
5064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <$ac_header>
5074 _ACEOF
5075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_c_preproc_warn_flag
5085 else
5086 ac_cpp_err=
5087 fi
5088 else
5089 ac_cpp_err=yes
5090 fi
5091 if test -z "$ac_cpp_err"; then
5092 ac_header_preproc=yes
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5096
5097 ac_header_preproc=no
5098 fi
5099 rm -f conftest.err conftest.$ac_ext
5100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5101 echo "${ECHO_T}$ac_header_preproc" >&6
5102
5103 # So? What about this header?
5104 case $ac_header_compiler:$ac_header_preproc in
5105 yes:no )
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5110 (
5111 cat <<\_ASBOX
5112 ## ------------------------------------ ##
5113 ## Report this to bug-autoconf@gnu.org. ##
5114 ## ------------------------------------ ##
5115 _ASBOX
5116 ) |
5117 sed "s/^/$as_me: WARNING: /" >&2
5118 ;;
5119 no:yes )
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5126 (
5127 cat <<\_ASBOX
5128 ## ------------------------------------ ##
5129 ## Report this to bug-autoconf@gnu.org. ##
5130 ## ------------------------------------ ##
5131 _ASBOX
5132 ) |
5133 sed "s/^/$as_me: WARNING: /" >&2
5134 ;;
5135 esac
5136 echo "$as_me:$LINENO: checking for $ac_header" >&5
5137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 eval "$as_ac_Header=$ac_header_preproc"
5142 fi
5143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5145
5146 fi
5147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148 cat >>confdefs.h <<_ACEOF
5149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5150 _ACEOF
5151
5152 fi
5153
5154 done
5155
5156
5157 for ac_header in term.h
5158 do
5159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5160 echo "$as_me:$LINENO: checking for $ac_header" >&5
5161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #include <$ac_header>
5173 _ACEOF
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } >/dev/null; then
5182 if test -s conftest.err; then
5183 ac_cpp_err=$ac_c_preproc_warn_flag
5184 else
5185 ac_cpp_err=
5186 fi
5187 else
5188 ac_cpp_err=yes
5189 fi
5190 if test -z "$ac_cpp_err"; then
5191 eval "$as_ac_Header=yes"
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 eval "$as_ac_Header=no"
5197 fi
5198 rm -f conftest.err conftest.$ac_ext
5199 fi
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h <<_ACEOF
5204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205 _ACEOF
5206
5207 fi
5208
5209 done
5210
5211 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5212 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5213 if test "${ac_cv_header_stdc+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 cat >conftest.$ac_ext <<_ACEOF
5217 #line $LINENO "configure"
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #include <stdlib.h>
5224 #include <stdarg.h>
5225 #include <string.h>
5226 #include <float.h>
5227
5228 int
5229 main ()
5230 {
5231
5232 ;
5233 return 0;
5234 }
5235 _ACEOF
5236 rm -f conftest.$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_header_stdc=yes
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 ac_cv_header_stdc=no
5254 fi
5255 rm -f conftest.$ac_objext conftest.$ac_ext
5256
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat >conftest.$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <string.h>
5267
5268 _ACEOF
5269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5270 $EGREP "memchr" >/dev/null 2>&1; then
5271 :
5272 else
5273 ac_cv_header_stdc=no
5274 fi
5275 rm -f conftest*
5276
5277 fi
5278
5279 if test $ac_cv_header_stdc = yes; then
5280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 #line $LINENO "configure"
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 #include <stdlib.h>
5289
5290 _ACEOF
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "free" >/dev/null 2>&1; then
5293 :
5294 else
5295 ac_cv_header_stdc=no
5296 fi
5297 rm -f conftest*
5298
5299 fi
5300
5301 if test $ac_cv_header_stdc = yes; then
5302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303 if test "$cross_compiling" = yes; then
5304 :
5305 else
5306 cat >conftest.$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <ctype.h>
5314 #if ((' ' & 0x0FF) == 0x020)
5315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5317 #else
5318 # define ISLOWER(c) \
5319 (('a' <= (c) && (c) <= 'i') \
5320 || ('j' <= (c) && (c) <= 'r') \
5321 || ('s' <= (c) && (c) <= 'z'))
5322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5323 #endif
5324
5325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 int
5327 main ()
5328 {
5329 int i;
5330 for (i = 0; i < 256; i++)
5331 if (XOR (islower (i), ISLOWER (i))
5332 || toupper (i) != TOUPPER (i))
5333 exit(2);
5334 exit (0);
5335 }
5336 _ACEOF
5337 rm -f conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 :
5349 else
5350 echo "$as_me: program exited with status $ac_status" >&5
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ( exit $ac_status )
5355 ac_cv_header_stdc=no
5356 fi
5357 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5358 fi
5359 fi
5360 fi
5361 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5362 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5363 if test $ac_cv_header_stdc = yes; then
5364
5365 cat >>confdefs.h <<\_ACEOF
5366 #define STDC_HEADERS 1
5367 _ACEOF
5368
5369 fi
5370
5371 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5372 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5373 if test "${ac_cv_header_time+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 cat >conftest.$ac_ext <<_ACEOF
5377 #line $LINENO "configure"
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <sys/types.h>
5384 #include <sys/time.h>
5385 #include <time.h>
5386
5387 int
5388 main ()
5389 {
5390 if ((struct tm *) 0)
5391 return 0;
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_header_time=yes
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ac_cv_header_time=no
5414 fi
5415 rm -f conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5418 echo "${ECHO_T}$ac_cv_header_time" >&6
5419 if test $ac_cv_header_time = yes; then
5420
5421 cat >>confdefs.h <<\_ACEOF
5422 #define TIME_WITH_SYS_TIME 1
5423 _ACEOF
5424
5425 fi
5426
5427 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5428 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5429 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 cat >conftest.$ac_ext <<_ACEOF
5433 #line $LINENO "configure"
5434 /* confdefs.h. */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 $ac_includes_default
5440 int
5441 main ()
5442 {
5443 #ifndef sys_siglist
5444 char *p = (char *) sys_siglist;
5445 #endif
5446
5447 ;
5448 return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_have_decl_sys_siglist=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_cv_have_decl_sys_siglist=no
5469 fi
5470 rm -f conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5473 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5474 if test $ac_cv_have_decl_sys_siglist = yes; then
5475
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_DECL_SYS_SIGLIST 1
5478 _ACEOF
5479
5480
5481 else
5482 cat >>confdefs.h <<_ACEOF
5483 #define HAVE_DECL_SYS_SIGLIST 0
5484 _ACEOF
5485
5486
5487 fi
5488
5489
5490 if test $ac_cv_have_decl_sys_siglist != yes; then
5491 # For Tru64, at least:
5492 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5493 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5494 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 cat >conftest.$ac_ext <<_ACEOF
5498 #line $LINENO "configure"
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 int
5506 main ()
5507 {
5508 #ifndef __sys_siglist
5509 char *p = (char *) __sys_siglist;
5510 #endif
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -s conftest.$ac_objext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_cv_have_decl___sys_siglist=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_cv_have_decl___sys_siglist=no
5534 fi
5535 rm -f conftest.$ac_objext conftest.$ac_ext
5536 fi
5537 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5538 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5539 if test $ac_cv_have_decl___sys_siglist = yes; then
5540
5541 cat >>confdefs.h <<_ACEOF
5542 #define HAVE_DECL___SYS_SIGLIST 1
5543 _ACEOF
5544
5545
5546 else
5547 cat >>confdefs.h <<_ACEOF
5548 #define HAVE_DECL___SYS_SIGLIST 0
5549 _ACEOF
5550
5551
5552 fi
5553
5554
5555 if test $ac_cv_have_decl___sys_siglist = yes; then
5556
5557 cat >>confdefs.h <<\_ACEOF
5558 #define sys_siglist __sys_siglist
5559 _ACEOF
5560
5561 fi
5562 fi
5563 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5564 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5565 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 #line $LINENO "configure"
5570 /* confdefs.h. */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 #include <sys/wait.h>
5577 #ifndef WEXITSTATUS
5578 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5579 #endif
5580 #ifndef WIFEXITED
5581 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5582 #endif
5583
5584 int
5585 main ()
5586 {
5587 int s;
5588 wait (&s);
5589 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_header_sys_wait_h=yes
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ac_cv_header_sys_wait_h=no
5612 fi
5613 rm -f conftest.$ac_objext conftest.$ac_ext
5614 fi
5615 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5616 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5617 if test $ac_cv_header_sys_wait_h = yes; then
5618
5619 cat >>confdefs.h <<\_ACEOF
5620 #define HAVE_SYS_WAIT_H 1
5621 _ACEOF
5622
5623 fi
5624
5625
5626 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5627 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5628 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #ifdef TIME_WITH_SYS_TIME
5639 #include <sys/time.h>
5640 #include <time.h>
5641 #else
5642 #ifdef HAVE_SYS_TIME_H
5643 #include <sys/time.h>
5644 #else
5645 #include <time.h>
5646 #endif
5647 #endif
5648 #ifdef HAVE_UTIME_H
5649 #include <utime.h>
5650 #endif
5651 int
5652 main ()
5653 {
5654 static struct utimbuf x; x.actime = x.modtime;
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 emacs_cv_struct_utimbuf=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 emacs_cv_struct_utimbuf=no
5677 fi
5678 rm -f conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5681 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5682 if test $emacs_cv_struct_utimbuf = yes; then
5683
5684 cat >>confdefs.h <<\_ACEOF
5685 #define HAVE_STRUCT_UTIMBUF 1
5686 _ACEOF
5687
5688 fi
5689
5690 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5691 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5692 if test "${ac_cv_type_signal+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695 cat >conftest.$ac_ext <<_ACEOF
5696 #line $LINENO "configure"
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <sys/types.h>
5703 #include <signal.h>
5704 #ifdef signal
5705 # undef signal
5706 #endif
5707 #ifdef __cplusplus
5708 extern "C" void (*signal (int, void (*)(int)))(int);
5709 #else
5710 void (*signal ()) ();
5711 #endif
5712
5713 int
5714 main ()
5715 {
5716 int i;
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_type_signal=void
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cv_type_signal=int
5739 fi
5740 rm -f conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5743 echo "${ECHO_T}$ac_cv_type_signal" >&6
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define RETSIGTYPE $ac_cv_type_signal
5747 _ACEOF
5748
5749
5750
5751 echo "$as_me:$LINENO: checking for speed_t" >&5
5752 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5753 if test "${emacs_cv_speed_t+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #include <termios.h>
5764 int
5765 main ()
5766 {
5767 speed_t x = 1;
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 emacs_cv_speed_t=yes
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 emacs_cv_speed_t=no
5790 fi
5791 rm -f conftest.$ac_objext conftest.$ac_ext
5792 fi
5793 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5794 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5795 if test $emacs_cv_speed_t = yes; then
5796
5797 cat >>confdefs.h <<\_ACEOF
5798 #define HAVE_SPEED_T 1
5799 _ACEOF
5800
5801 fi
5802
5803 echo "$as_me:$LINENO: checking for struct timeval" >&5
5804 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5805 if test "${emacs_cv_struct_timeval+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 cat >conftest.$ac_ext <<_ACEOF
5809 #line $LINENO "configure"
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #ifdef TIME_WITH_SYS_TIME
5816 #include <sys/time.h>
5817 #include <time.h>
5818 #else
5819 #ifdef HAVE_SYS_TIME_H
5820 #include <sys/time.h>
5821 #else
5822 #include <time.h>
5823 #endif
5824 #endif
5825 int
5826 main ()
5827 {
5828 static struct timeval x; x.tv_sec = x.tv_usec;
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 emacs_cv_struct_timeval=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 emacs_cv_struct_timeval=no
5851 fi
5852 rm -f conftest.$ac_objext conftest.$ac_ext
5853 fi
5854 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5855 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5856 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5857 if test $emacs_cv_struct_timeval = yes; then
5858
5859 cat >>confdefs.h <<\_ACEOF
5860 #define HAVE_TIMEVAL 1
5861 _ACEOF
5862
5863 fi
5864
5865 echo "$as_me:$LINENO: checking for struct exception" >&5
5866 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5867 if test "${emacs_cv_struct_exception+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 cat >conftest.$ac_ext <<_ACEOF
5871 #line $LINENO "configure"
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <math.h>
5878 int
5879 main ()
5880 {
5881 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -s conftest.$ac_objext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 emacs_cv_struct_exception=yes
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 emacs_cv_struct_exception=no
5904 fi
5905 rm -f conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5908 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5909 HAVE_EXCEPTION=$emacs_cv_struct_exception
5910 if test $emacs_cv_struct_exception != yes; then
5911
5912 cat >>confdefs.h <<\_ACEOF
5913 #define NO_MATHERR 1
5914 _ACEOF
5915
5916 fi
5917
5918 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5919 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5920 if test "${ac_cv_struct_tm+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923 cat >conftest.$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/types.h>
5931 #include <time.h>
5932
5933 int
5934 main ()
5935 {
5936 struct tm *tp; tp->tm_sec;
5937 ;
5938 return 0;
5939 }
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_struct_tm=time.h
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_cv_struct_tm=sys/time.h
5959 fi
5960 rm -f conftest.$ac_objext conftest.$ac_ext
5961 fi
5962 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5963 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5964 if test $ac_cv_struct_tm = sys/time.h; then
5965
5966 cat >>confdefs.h <<\_ACEOF
5967 #define TM_IN_SYS_TIME 1
5968 _ACEOF
5969
5970 fi
5971
5972 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5973 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5974 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 #line $LINENO "configure"
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5985 #include <$ac_cv_struct_tm>
5986
5987
5988 int
5989 main ()
5990 {
5991 static struct tm ac_aggr;
5992 if (ac_aggr.tm_zone)
5993 return 0;
5994 ;
5995 return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -s conftest.$ac_objext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_member_struct_tm_tm_zone=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <sys/types.h>
6023 #include <$ac_cv_struct_tm>
6024
6025
6026 int
6027 main ()
6028 {
6029 static struct tm ac_aggr;
6030 if (sizeof ac_aggr.tm_zone)
6031 return 0;
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -s conftest.$ac_objext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_cv_member_struct_tm_tm_zone=yes
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 ac_cv_member_struct_tm_tm_zone=no
6054 fi
6055 rm -f conftest.$ac_objext conftest.$ac_ext
6056 fi
6057 rm -f conftest.$ac_objext conftest.$ac_ext
6058 fi
6059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6060 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6061 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6062
6063 cat >>confdefs.h <<_ACEOF
6064 #define HAVE_STRUCT_TM_TM_ZONE 1
6065 _ACEOF
6066
6067
6068 fi
6069
6070 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6071
6072 cat >>confdefs.h <<\_ACEOF
6073 #define HAVE_TM_ZONE 1
6074 _ACEOF
6075
6076 else
6077 echo "$as_me:$LINENO: checking for tzname" >&5
6078 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6079 if test "${ac_cv_var_tzname+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 cat >conftest.$ac_ext <<_ACEOF
6083 #line $LINENO "configure"
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <time.h>
6090 #ifndef tzname /* For SGI. */
6091 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6092 #endif
6093
6094 int
6095 main ()
6096 {
6097 atoi(*tzname);
6098 ;
6099 return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_var_tzname=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_var_tzname=no
6120 fi
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6122 fi
6123 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6124 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6125 if test $ac_cv_var_tzname = yes; then
6126
6127 cat >>confdefs.h <<\_ACEOF
6128 #define HAVE_TZNAME 1
6129 _ACEOF
6130
6131 fi
6132 fi
6133
6134 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6135 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6136 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 cat >conftest.$ac_ext <<_ACEOF
6140 #line $LINENO "configure"
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 #include <time.h>
6147
6148 int
6149 main ()
6150 {
6151 static struct tm ac_aggr;
6152 if (ac_aggr.tm_gmtoff)
6153 return 0;
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_member_struct_tm_tm_gmtoff=yes
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 cat >conftest.$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #include <time.h>
6183
6184 int
6185 main ()
6186 {
6187 static struct tm ac_aggr;
6188 if (sizeof ac_aggr.tm_gmtoff)
6189 return 0;
6190 ;
6191 return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_member_struct_tm_tm_gmtoff=yes
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 ac_cv_member_struct_tm_tm_gmtoff=no
6212 fi
6213 rm -f conftest.$ac_objext conftest.$ac_ext
6214 fi
6215 rm -f conftest.$ac_objext conftest.$ac_ext
6216 fi
6217 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6218 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6219 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6220
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HAVE_TM_GMTOFF 1
6223 _ACEOF
6224
6225 fi
6226
6227
6228
6229 echo "$as_me:$LINENO: checking for function prototypes" >&5
6230 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6231 if test "$ac_cv_prog_cc_stdc" != no; then
6232 echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6
6234
6235 cat >>confdefs.h <<\_ACEOF
6236 #define PROTOTYPES 1
6237 _ACEOF
6238
6239
6240 cat >>confdefs.h <<\_ACEOF
6241 #define __PROTOTYPES 1
6242 _ACEOF
6243
6244 else
6245 echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6
6247 fi
6248
6249 echo "$as_me:$LINENO: checking for working volatile" >&5
6250 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6251 if test "${ac_cv_c_volatile+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 cat >conftest.$ac_ext <<_ACEOF
6255 #line $LINENO "configure"
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261
6262 int
6263 main ()
6264 {
6265
6266 volatile int x;
6267 int * volatile y;
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6274 (eval $ac_compile) 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -s conftest.$ac_objext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 ac_cv_c_volatile=yes
6285 else
6286 echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 ac_cv_c_volatile=no
6290 fi
6291 rm -f conftest.$ac_objext conftest.$ac_ext
6292 fi
6293 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6294 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6295 if test $ac_cv_c_volatile = no; then
6296
6297 cat >>confdefs.h <<\_ACEOF
6298 #define volatile
6299 _ACEOF
6300
6301 fi
6302
6303 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6304 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6305 if test "${ac_cv_c_const+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308 cat >conftest.$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6310 /* confdefs.h. */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315
6316 int
6317 main ()
6318 {
6319 /* FIXME: Include the comments suggested by Paul. */
6320 #ifndef __cplusplus
6321 /* Ultrix mips cc rejects this. */
6322 typedef int charset[2];
6323 const charset x;
6324 /* SunOS 4.1.1 cc rejects this. */
6325 char const *const *ccp;
6326 char **p;
6327 /* NEC SVR4.0.2 mips cc rejects this. */
6328 struct point {int x, y;};
6329 static struct point const zero = {0,0};
6330 /* AIX XL C 1.02.0.0 rejects this.
6331 It does not let you subtract one const X* pointer from another in
6332 an arm of an if-expression whose if-part is not a constant
6333 expression */
6334 const char *g = "string";
6335 ccp = &g + (g ? g-g : 0);
6336 /* HPUX 7.0 cc rejects these. */
6337 ++ccp;
6338 p = (char**) ccp;
6339 ccp = (char const *const *) p;
6340 { /* SCO 3.2v4 cc rejects this. */
6341 char *t;
6342 char const *s = 0 ? (char *) 0 : (char const *) 0;
6343
6344 *t++ = 0;
6345 }
6346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6347 int x[] = {25, 17};
6348 const int *foo = &x[0];
6349 ++foo;
6350 }
6351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6352 typedef const int *iptr;
6353 iptr p = 0;
6354 ++p;
6355 }
6356 { /* AIX XL C 1.02.0.0 rejects this saying
6357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6358 struct s { int j; const int *ap[3]; };
6359 struct s *b; b->j = 5;
6360 }
6361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6362 const int foo = 10;
6363 }
6364 #endif
6365
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_cv_c_const=yes
6383 else
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_cv_c_const=no
6388 fi
6389 rm -f conftest.$ac_objext conftest.$ac_ext
6390 fi
6391 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6392 echo "${ECHO_T}$ac_cv_c_const" >&6
6393 if test $ac_cv_c_const = no; then
6394
6395 cat >>confdefs.h <<\_ACEOF
6396 #define const
6397 _ACEOF
6398
6399 fi
6400
6401 echo "$as_me:$LINENO: checking for void * support" >&5
6402 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6403 if test "${emacs_cv_void_star+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 cat >conftest.$ac_ext <<_ACEOF
6407 #line $LINENO "configure"
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413
6414 int
6415 main ()
6416 {
6417 void * foo;
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 emacs_cv_void_star=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 emacs_cv_void_star=no
6440 fi
6441 rm -f conftest.$ac_objext conftest.$ac_ext
6442 fi
6443 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6444 echo "${ECHO_T}$emacs_cv_void_star" >&6
6445 if test $emacs_cv_void_star = yes; then
6446 cat >>confdefs.h <<\_ACEOF
6447 #define POINTER_TYPE void
6448 _ACEOF
6449
6450 else
6451 cat >>confdefs.h <<\_ACEOF
6452 #define POINTER_TYPE char
6453 _ACEOF
6454
6455 fi
6456
6457
6458
6459 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6460 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6461 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6462 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 cat >conftest.make <<\_ACEOF
6466 all:
6467 @echo 'ac_maketemp="$(MAKE)"'
6468 _ACEOF
6469 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6470 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6471 if test -n "$ac_maketemp"; then
6472 eval ac_cv_prog_make_${ac_make}_set=yes
6473 else
6474 eval ac_cv_prog_make_${ac_make}_set=no
6475 fi
6476 rm -f conftest.make
6477 fi
6478 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480 echo "${ECHO_T}yes" >&6
6481 SET_MAKE=
6482 else
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6485 SET_MAKE="MAKE=${MAKE-make}"
6486 fi
6487
6488
6489 echo "$as_me:$LINENO: checking for long file names" >&5
6490 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6491 if test "${ac_cv_sys_long_file_names+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 ac_cv_sys_long_file_names=yes
6495 # Test for long file names in all the places we know might matter:
6496 # . the current directory, where building will happen
6497 # $prefix/lib where we will be installing things
6498 # $exec_prefix/lib likewise
6499 # eval it to expand exec_prefix.
6500 # $TMPDIR if set, where it might want to write temporary files
6501 # if $TMPDIR is not set:
6502 # /tmp where it might want to write temporary files
6503 # /var/tmp likewise
6504 # /usr/tmp likewise
6505 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6506 ac_tmpdirs=$TMPDIR
6507 else
6508 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6509 fi
6510 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6511 test -d $ac_dir || continue
6512 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6513 ac_xdir=$ac_dir/cf$$
6514 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6515 ac_tf1=$ac_xdir/conftest9012345
6516 ac_tf2=$ac_xdir/conftest9012346
6517 (echo 1 >$ac_tf1) 2>/dev/null
6518 (echo 2 >$ac_tf2) 2>/dev/null
6519 ac_val=`cat $ac_tf1 2>/dev/null`
6520 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6521 ac_cv_sys_long_file_names=no
6522 rm -rf $ac_xdir 2>/dev/null
6523 break
6524 fi
6525 rm -rf $ac_xdir 2>/dev/null
6526 done
6527 fi
6528 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6529 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6530 if test $ac_cv_sys_long_file_names = yes; then
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define HAVE_LONG_FILE_NAMES 1
6534 _ACEOF
6535
6536 fi
6537
6538
6539 #### Choose a window system.
6540
6541 echo "$as_me:$LINENO: checking for X" >&5
6542 echo $ECHO_N "checking for X... $ECHO_C" >&6
6543
6544
6545 # Check whether --with-x or --without-x was given.
6546 if test "${with_x+set}" = set; then
6547 withval="$with_x"
6548
6549 fi;
6550 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6551 if test "x$with_x" = xno; then
6552 # The user explicitly disabled X.
6553 have_x=disabled
6554 else
6555 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6556 # Both variables are already set.
6557 have_x=yes
6558 else
6559 if test "${ac_cv_have_x+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 # One or both of the vars are not set, and there is no cached value.
6563 ac_x_includes=no ac_x_libraries=no
6564 rm -fr conftest.dir
6565 if mkdir conftest.dir; then
6566 cd conftest.dir
6567 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6568 cat >Imakefile <<'_ACEOF'
6569 acfindx:
6570 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6571 _ACEOF
6572 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6574 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6575 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6576 for ac_extension in a so sl; do
6577 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6578 test -f $ac_im_libdir/libX11.$ac_extension; then
6579 ac_im_usrlibdir=$ac_im_libdir; break
6580 fi
6581 done
6582 # Screen out bogus values from the imake configuration. They are
6583 # bogus both because they are the default anyway, and because
6584 # using them would break gcc on systems where it needs fixed includes.
6585 case $ac_im_incroot in
6586 /usr/include) ;;
6587 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6588 esac
6589 case $ac_im_usrlibdir in
6590 /usr/lib | /lib) ;;
6591 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6592 esac
6593 fi
6594 cd ..
6595 rm -fr conftest.dir
6596 fi
6597
6598 # Standard set of common directories for X headers.
6599 # Check X11 before X11Rn because it is often a symlink to the current release.
6600 ac_x_header_dirs='
6601 /usr/X11/include
6602 /usr/X11R6/include
6603 /usr/X11R5/include
6604 /usr/X11R4/include
6605
6606 /usr/include/X11
6607 /usr/include/X11R6
6608 /usr/include/X11R5
6609 /usr/include/X11R4
6610
6611 /usr/local/X11/include
6612 /usr/local/X11R6/include
6613 /usr/local/X11R5/include
6614 /usr/local/X11R4/include
6615
6616 /usr/local/include/X11
6617 /usr/local/include/X11R6
6618 /usr/local/include/X11R5
6619 /usr/local/include/X11R4
6620
6621 /usr/X386/include
6622 /usr/x386/include
6623 /usr/XFree86/include/X11
6624
6625 /usr/include
6626 /usr/local/include
6627 /usr/unsupported/include
6628 /usr/athena/include
6629 /usr/local/x11r5/include
6630 /usr/lpp/Xamples/include
6631
6632 /usr/openwin/include
6633 /usr/openwin/share/include'
6634
6635 if test "$ac_x_includes" = no; then
6636 # Guess where to find include files, by looking for Intrinsic.h.
6637 # First, try using that file with no special directory specified.
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <X11/Intrinsic.h>
6646 _ACEOF
6647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } >/dev/null; then
6655 if test -s conftest.err; then
6656 ac_cpp_err=$ac_c_preproc_warn_flag
6657 else
6658 ac_cpp_err=
6659 fi
6660 else
6661 ac_cpp_err=yes
6662 fi
6663 if test -z "$ac_cpp_err"; then
6664 # We can compile using X headers with no special include directory.
6665 ac_x_includes=
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 for ac_dir in $ac_x_header_dirs; do
6671 if test -r "$ac_dir/X11/Intrinsic.h"; then
6672 ac_x_includes=$ac_dir
6673 break
6674 fi
6675 done
6676 fi
6677 rm -f conftest.err conftest.$ac_ext
6678 fi # $ac_x_includes = no
6679
6680 if test "$ac_x_libraries" = no; then
6681 # Check for the libraries.
6682 # See if we find them without any special options.
6683 # Don't add to $LIBS permanently.
6684 ac_save_LIBS=$LIBS
6685 LIBS="-lXt $LIBS"
6686 cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <X11/Intrinsic.h>
6694 int
6695 main ()
6696 {
6697 XtMalloc (0)
6698 ;
6699 return 0;
6700 }
6701 _ACEOF
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704 (eval $ac_link) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -s conftest$ac_exeext'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6714 LIBS=$ac_save_LIBS
6715 # We can link X programs with no special library path.
6716 ac_x_libraries=
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 LIBS=$ac_save_LIBS
6722 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6723 do
6724 # Don't even attempt the hair of trying to link an X program!
6725 for ac_extension in a so sl; do
6726 if test -r $ac_dir/libXt.$ac_extension; then
6727 ac_x_libraries=$ac_dir
6728 break 2
6729 fi
6730 done
6731 done
6732 fi
6733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6734 fi # $ac_x_libraries = no
6735
6736 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6737 # Didn't find X anywhere. Cache the known absence of X.
6738 ac_cv_have_x="have_x=no"
6739 else
6740 # Record where we found X for the cache.
6741 ac_cv_have_x="have_x=yes \
6742 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6743 fi
6744 fi
6745
6746 fi
6747 eval "$ac_cv_have_x"
6748 fi # $with_x != no
6749
6750 if test "$have_x" != yes; then
6751 echo "$as_me:$LINENO: result: $have_x" >&5
6752 echo "${ECHO_T}$have_x" >&6
6753 no_x=yes
6754 else
6755 # If each of the values was on the command line, it overrides each guess.
6756 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6757 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6758 # Update the cache value to reflect the command line values.
6759 ac_cv_have_x="have_x=yes \
6760 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6761 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6762 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6763 fi
6764
6765 if test "$no_x" = yes; then
6766 window_system=none
6767 else
6768 window_system=x11
6769 fi
6770
6771 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6772 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6773 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6774 x_default_search_path=""
6775 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6776 x_search_path="\
6777 ${x_library}/X11/%L/%T/%N%C%S:\
6778 ${x_library}/X11/%l/%T/%N%C%S:\
6779 ${x_library}/X11/%T/%N%C%S:\
6780 ${x_library}/X11/%L/%T/%N%S:\
6781 ${x_library}/X11/%l/%T/%N%S:\
6782 ${x_library}/X11/%T/%N%S"
6783 if test x"${x_default_search_path}" = x; then
6784 x_default_search_path=${x_search_path}
6785 else
6786 x_default_search_path="${x_search_path}:${x_default_search_path}"
6787 fi
6788 done
6789 fi
6790 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6791 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6792 fi
6793
6794 if test x"${x_includes}" = x; then
6795 bitmapdir=/usr/include/X11/bitmaps
6796 else
6797 # accumulate include directories that have X11 bitmap subdirectories
6798 bmd_acc="dummyval"
6799 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6800 if test -d "${bmd}/X11/bitmaps"; then
6801 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6802 fi
6803 if test -d "${bmd}/bitmaps"; then
6804 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6805 fi
6806 done
6807 if test ${bmd_acc} != "dummyval"; then
6808 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6809 fi
6810 fi
6811
6812 case "${window_system}" in
6813 x11 )
6814 HAVE_X_WINDOWS=yes
6815 HAVE_X11=yes
6816 case "${with_x_toolkit}" in
6817 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6818 motif ) USE_X_TOOLKIT=MOTIF ;;
6819 gtk ) with_gtk=yes
6820 USE_X_TOOLKIT=none ;;
6821 no ) USE_X_TOOLKIT=none ;;
6822 * ) USE_X_TOOLKIT=maybe ;;
6823 esac
6824 ;;
6825 none )
6826 HAVE_X_WINDOWS=no
6827 HAVE_X11=no
6828 USE_X_TOOLKIT=none
6829 ;;
6830 esac
6831
6832 ### If we're using X11, we should use the X menu package.
6833 HAVE_MENUS=no
6834 case ${HAVE_X11} in
6835 yes ) HAVE_MENUS=yes ;;
6836 esac
6837
6838 if test "${opsys}" = "hpux9"; then
6839 case "${x_libraries}" in
6840 *X11R4* )
6841 opsysfile="s/hpux9-x11r4.h"
6842 ;;
6843 esac
6844 fi
6845
6846 if test "${opsys}" = "hpux9shr"; then
6847 case "${x_libraries}" in
6848 *X11R4* )
6849 opsysfile="s/hpux9shxr4.h"
6850 ;;
6851 esac
6852 fi
6853
6854 ### Compute the unexec source name from the object name.
6855 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6856
6857 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6858 # Assume not, until told otherwise.
6859 GNU_MALLOC=yes
6860 doug_lea_malloc=yes
6861 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6862 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6863 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 cat >conftest.$ac_ext <<_ACEOF
6867 #line $LINENO "configure"
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 /* System header to define __stub macros and hopefully few prototypes,
6874 which can conflict with char malloc_get_state (); below.
6875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6876 <limits.h> exists even on freestanding compilers. */
6877 #ifdef __STDC__
6878 # include <limits.h>
6879 #else
6880 # include <assert.h>
6881 #endif
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 #ifdef __cplusplus
6884 extern "C"
6885 {
6886 #endif
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char malloc_get_state ();
6890 /* The GNU C library defines this for functions which it implements
6891 to always fail with ENOSYS. Some functions are actually named
6892 something starting with __ and the normal name is an alias. */
6893 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6894 choke me
6895 #else
6896 char (*f) () = malloc_get_state;
6897 #endif
6898 #ifdef __cplusplus
6899 }
6900 #endif
6901
6902 int
6903 main ()
6904 {
6905 return f != malloc_get_state;
6906 ;
6907 return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_func_malloc_get_state=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 ac_cv_func_malloc_get_state=no
6928 fi
6929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6930 fi
6931 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6932 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6933 if test $ac_cv_func_malloc_get_state = yes; then
6934 :
6935 else
6936 doug_lea_malloc=no
6937 fi
6938
6939 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6940 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6941 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 #line $LINENO "configure"
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 /* System header to define __stub macros and hopefully few prototypes,
6952 which can conflict with char malloc_set_state (); below.
6953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6954 <limits.h> exists even on freestanding compilers. */
6955 #ifdef __STDC__
6956 # include <limits.h>
6957 #else
6958 # include <assert.h>
6959 #endif
6960 /* Override any gcc2 internal prototype to avoid an error. */
6961 #ifdef __cplusplus
6962 extern "C"
6963 {
6964 #endif
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6967 char malloc_set_state ();
6968 /* The GNU C library defines this for functions which it implements
6969 to always fail with ENOSYS. Some functions are actually named
6970 something starting with __ and the normal name is an alias. */
6971 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6972 choke me
6973 #else
6974 char (*f) () = malloc_set_state;
6975 #endif
6976 #ifdef __cplusplus
6977 }
6978 #endif
6979
6980 int
6981 main ()
6982 {
6983 return f != malloc_set_state;
6984 ;
6985 return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest$ac_exeext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_func_malloc_set_state=yes
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 ac_cv_func_malloc_set_state=no
7006 fi
7007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008 fi
7009 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7010 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7011 if test $ac_cv_func_malloc_set_state = yes; then
7012 :
7013 else
7014 doug_lea_malloc=no
7015 fi
7016
7017 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7018 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7019 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 extern void (* __after_morecore_hook)();
7030 int
7031 main ()
7032 {
7033 __after_morecore_hook = 0
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -s conftest$ac_exeext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 emacs_cv_var___after_morecore_hook=yes
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 emacs_cv_var___after_morecore_hook=no
7056 fi
7057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058 fi
7059 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7060 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7061 if test $emacs_cv_var___after_morecore_hook = no; then
7062 doug_lea_malloc=no
7063 fi
7064 if test "${system_malloc}" = "yes"; then
7065 GNU_MALLOC=no
7066 GNU_MALLOC_reason="
7067 (The GNU allocators don't work with this system configuration.)"
7068 fi
7069 if test "$doug_lea_malloc" = "yes" ; then
7070 if test "$GNU_MALLOC" = yes ; then
7071 GNU_MALLOC_reason="
7072 (Using Doug Lea's new malloc from the GNU C Library.)"
7073 fi
7074
7075 cat >>confdefs.h <<\_ACEOF
7076 #define DOUG_LEA_MALLOC 1
7077 _ACEOF
7078
7079 fi
7080
7081 if test x"${REL_ALLOC}" = x; then
7082 REL_ALLOC=${GNU_MALLOC}
7083 fi
7084
7085
7086
7087
7088 for ac_header in stdlib.h unistd.h
7089 do
7090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo "$as_me:$LINENO: checking for $ac_header" >&5
7093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 fi
7097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7099 else
7100 # Is the header compilable?
7101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7103 cat >conftest.$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 $ac_includes_default
7111 #include <$ac_header>
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_header_compiler=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_header_compiler=no
7131 fi
7132 rm -f conftest.$ac_objext conftest.$ac_ext
7133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7134 echo "${ECHO_T}$ac_header_compiler" >&6
7135
7136 # Is the header present?
7137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 #include <$ac_header>
7147 _ACEOF
7148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } >/dev/null; then
7156 if test -s conftest.err; then
7157 ac_cpp_err=$ac_c_preproc_warn_flag
7158 else
7159 ac_cpp_err=
7160 fi
7161 else
7162 ac_cpp_err=yes
7163 fi
7164 if test -z "$ac_cpp_err"; then
7165 ac_header_preproc=yes
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 ac_header_preproc=no
7171 fi
7172 rm -f conftest.err conftest.$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7174 echo "${ECHO_T}$ac_header_preproc" >&6
7175
7176 # So? What about this header?
7177 case $ac_header_compiler:$ac_header_preproc in
7178 yes:no )
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183 (
7184 cat <<\_ASBOX
7185 ## ------------------------------------ ##
7186 ## Report this to bug-autoconf@gnu.org. ##
7187 ## ------------------------------------ ##
7188 _ASBOX
7189 ) |
7190 sed "s/^/$as_me: WARNING: /" >&2
7191 ;;
7192 no:yes )
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7199 (
7200 cat <<\_ASBOX
7201 ## ------------------------------------ ##
7202 ## Report this to bug-autoconf@gnu.org. ##
7203 ## ------------------------------------ ##
7204 _ASBOX
7205 ) |
7206 sed "s/^/$as_me: WARNING: /" >&2
7207 ;;
7208 esac
7209 echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 eval "$as_ac_Header=$ac_header_preproc"
7215 fi
7216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7218
7219 fi
7220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221 cat >>confdefs.h <<_ACEOF
7222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7223 _ACEOF
7224
7225 fi
7226
7227 done
7228
7229
7230 for ac_func in getpagesize
7231 do
7232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7233 echo "$as_me:$LINENO: checking for $ac_func" >&5
7234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7235 if eval "test \"\${$as_ac_var+set}\" = set"; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line $LINENO "configure"
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 /* System header to define __stub macros and hopefully few prototypes,
7246 which can conflict with char $ac_func (); below.
7247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 <limits.h> exists even on freestanding compilers. */
7249 #ifdef __STDC__
7250 # include <limits.h>
7251 #else
7252 # include <assert.h>
7253 #endif
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 #ifdef __cplusplus
7256 extern "C"
7257 {
7258 #endif
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7261 char $ac_func ();
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7266 choke me
7267 #else
7268 char (*f) () = $ac_func;
7269 #endif
7270 #ifdef __cplusplus
7271 }
7272 #endif
7273
7274 int
7275 main ()
7276 {
7277 return f != $ac_func;
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284 (eval $ac_link) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -s conftest$ac_exeext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 eval "$as_ac_var=yes"
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 eval "$as_ac_var=no"
7300 fi
7301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7302 fi
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7305 if test `eval echo '${'$as_ac_var'}'` = yes; then
7306 cat >>confdefs.h <<_ACEOF
7307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7308 _ACEOF
7309
7310 fi
7311 done
7312
7313 echo "$as_me:$LINENO: checking for working mmap" >&5
7314 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7315 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318 if test "$cross_compiling" = yes; then
7319 ac_cv_func_mmap_fixed_mapped=no
7320 else
7321 cat >conftest.$ac_ext <<_ACEOF
7322 #line $LINENO "configure"
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 /* malloc might have been renamed as rpl_malloc. */
7330 #undef malloc
7331
7332 /* Thanks to Mike Haertel and Jim Avera for this test.
7333 Here is a matrix of mmap possibilities:
7334 mmap private not fixed
7335 mmap private fixed at somewhere currently unmapped
7336 mmap private fixed at somewhere already mapped
7337 mmap shared not fixed
7338 mmap shared fixed at somewhere currently unmapped
7339 mmap shared fixed at somewhere already mapped
7340 For private mappings, we should verify that changes cannot be read()
7341 back from the file, nor mmap's back from the file at a different
7342 address. (There have been systems where private was not correctly
7343 implemented like the infamous i386 svr4.0, and systems where the
7344 VM page cache was not coherent with the file system buffer cache
7345 like early versions of FreeBSD and possibly contemporary NetBSD.)
7346 For shared mappings, we should conversely verify that changes get
7347 propagated back to all the places they're supposed to be.
7348
7349 Grep wants private fixed already mapped.
7350 The main things grep needs to know about mmap are:
7351 * does it exist and is it safe to write into the mmap'd area
7352 * how to use it (BSD variants) */
7353
7354 #include <fcntl.h>
7355 #include <sys/mman.h>
7356
7357 #if !STDC_HEADERS && !HAVE_STDLIB_H
7358 char *malloc ();
7359 #endif
7360
7361 /* This mess was copied from the GNU getpagesize.h. */
7362 #if !HAVE_GETPAGESIZE
7363 /* Assume that all systems that can run configure have sys/param.h. */
7364 # if !HAVE_SYS_PARAM_H
7365 # define HAVE_SYS_PARAM_H 1
7366 # endif
7367
7368 # ifdef _SC_PAGESIZE
7369 # define getpagesize() sysconf(_SC_PAGESIZE)
7370 # else /* no _SC_PAGESIZE */
7371 # if HAVE_SYS_PARAM_H
7372 # include <sys/param.h>
7373 # ifdef EXEC_PAGESIZE
7374 # define getpagesize() EXEC_PAGESIZE
7375 # else /* no EXEC_PAGESIZE */
7376 # ifdef NBPG
7377 # define getpagesize() NBPG * CLSIZE
7378 # ifndef CLSIZE
7379 # define CLSIZE 1
7380 # endif /* no CLSIZE */
7381 # else /* no NBPG */
7382 # ifdef NBPC
7383 # define getpagesize() NBPC
7384 # else /* no NBPC */
7385 # ifdef PAGESIZE
7386 # define getpagesize() PAGESIZE
7387 # endif /* PAGESIZE */
7388 # endif /* no NBPC */
7389 # endif /* no NBPG */
7390 # endif /* no EXEC_PAGESIZE */
7391 # else /* no HAVE_SYS_PARAM_H */
7392 # define getpagesize() 8192 /* punt totally */
7393 # endif /* no HAVE_SYS_PARAM_H */
7394 # endif /* no _SC_PAGESIZE */
7395
7396 #endif /* no HAVE_GETPAGESIZE */
7397
7398 int
7399 main ()
7400 {
7401 char *data, *data2, *data3;
7402 int i, pagesize;
7403 int fd;
7404
7405 pagesize = getpagesize ();
7406
7407 /* First, make a file with some known garbage in it. */
7408 data = (char *) malloc (pagesize);
7409 if (!data)
7410 exit (1);
7411 for (i = 0; i < pagesize; ++i)
7412 *(data + i) = rand ();
7413 umask (0);
7414 fd = creat ("conftest.mmap", 0600);
7415 if (fd < 0)
7416 exit (1);
7417 if (write (fd, data, pagesize) != pagesize)
7418 exit (1);
7419 close (fd);
7420
7421 /* Next, try to mmap the file at a fixed address which already has
7422 something else allocated at it. If we can, also make sure that
7423 we see the same garbage. */
7424 fd = open ("conftest.mmap", O_RDWR);
7425 if (fd < 0)
7426 exit (1);
7427 data2 = (char *) malloc (2 * pagesize);
7428 if (!data2)
7429 exit (1);
7430 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7431 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7432 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7433 exit (1);
7434 for (i = 0; i < pagesize; ++i)
7435 if (*(data + i) != *(data2 + i))
7436 exit (1);
7437
7438 /* Finally, make sure that changes to the mapped area do not
7439 percolate back to the file as seen by read(). (This is a bug on
7440 some variants of i386 svr4.0.) */
7441 for (i = 0; i < pagesize; ++i)
7442 *(data2 + i) = *(data2 + i) + 1;
7443 data3 = (char *) malloc (pagesize);
7444 if (!data3)
7445 exit (1);
7446 if (read (fd, data3, pagesize) != pagesize)
7447 exit (1);
7448 for (i = 0; i < pagesize; ++i)
7449 if (*(data + i) != *(data3 + i))
7450 exit (1);
7451 close (fd);
7452 exit (0);
7453 }
7454 _ACEOF
7455 rm -f conftest$ac_exeext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7457 (eval $ac_link) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 (eval $ac_try) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7466 ac_cv_func_mmap_fixed_mapped=yes
7467 else
7468 echo "$as_me: program exited with status $ac_status" >&5
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472 ( exit $ac_status )
7473 ac_cv_func_mmap_fixed_mapped=no
7474 fi
7475 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7476 fi
7477 fi
7478 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7479 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7480 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7481
7482 cat >>confdefs.h <<\_ACEOF
7483 #define HAVE_MMAP 1
7484 _ACEOF
7485
7486 fi
7487 rm -f conftest.mmap
7488
7489 if test $use_mmap_for_buffers = yes; then
7490 REL_ALLOC=no
7491 fi
7492
7493 LIBS="$libsrc_libs $LIBS"
7494
7495
7496 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7497 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7498 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 ac_check_lib_save_LIBS=$LIBS
7502 LIBS="-ldnet $LIBS"
7503 cat >conftest.$ac_ext <<_ACEOF
7504 #line $LINENO "configure"
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510
7511 /* Override any gcc2 internal prototype to avoid an error. */
7512 #ifdef __cplusplus
7513 extern "C"
7514 #endif
7515 /* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7517 char dnet_ntoa ();
7518 int
7519 main ()
7520 {
7521 dnet_ntoa ();
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -s conftest$ac_exeext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_lib_dnet_dnet_ntoa=yes
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_cv_lib_dnet_dnet_ntoa=no
7544 fi
7545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7546 LIBS=$ac_check_lib_save_LIBS
7547 fi
7548 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7549 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7550 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552 #define HAVE_LIBDNET 1
7553 _ACEOF
7554
7555 LIBS="-ldnet $LIBS"
7556
7557 fi
7558
7559
7560 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7561 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7562 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 ac_check_lib_save_LIBS=$LIBS
7566 LIBS="-lXbsd $LIBS"
7567 cat >conftest.$ac_ext <<_ACEOF
7568 #line $LINENO "configure"
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574
7575
7576 int
7577 main ()
7578 {
7579 main ();
7580 ;
7581 return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -s conftest$ac_exeext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 ac_cv_lib_Xbsd_main=yes
7597 else
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7600
7601 ac_cv_lib_Xbsd_main=no
7602 fi
7603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7604 LIBS=$ac_check_lib_save_LIBS
7605 fi
7606 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7607 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7608 if test $ac_cv_lib_Xbsd_main = yes; then
7609 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7610 fi
7611
7612
7613
7614 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7615 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7616 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 ac_check_lib_save_LIBS=$LIBS
7620 LIBS="-lpthreads $LIBS"
7621 cat >conftest.$ac_ext <<_ACEOF
7622 #line $LINENO "configure"
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628
7629 /* Override any gcc2 internal prototype to avoid an error. */
7630 #ifdef __cplusplus
7631 extern "C"
7632 #endif
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7635 char cma_open ();
7636 int
7637 main ()
7638 {
7639 cma_open ();
7640 ;
7641 return 0;
7642 }
7643 _ACEOF
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646 (eval $ac_link) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try='test -s conftest$ac_exeext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_cv_lib_pthreads_cma_open=yes
7657 else
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_cv_lib_pthreads_cma_open=no
7662 fi
7663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7664 LIBS=$ac_check_lib_save_LIBS
7665 fi
7666 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7667 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7668 if test $ac_cv_lib_pthreads_cma_open = yes; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define HAVE_LIBPTHREADS 1
7671 _ACEOF
7672
7673 LIBS="-lpthreads $LIBS"
7674
7675 fi
7676
7677
7678 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7679 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7680 if test -d /usr/X386/include; then
7681 HAVE_XFREE386=yes
7682 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7683 else
7684 HAVE_XFREE386=no
7685 fi
7686 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7687 echo "${ECHO_T}$HAVE_XFREE386" >&6
7688
7689 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7690 # used for the tests that follow. We set them back to REAL_CFLAGS and
7691 # REAL_CPPFLAGS later on.
7692
7693 REAL_CPPFLAGS="$CPPFLAGS"
7694
7695 if test "${HAVE_X11}" = "yes"; then
7696 DEFS="$C_SWITCH_X_SITE $DEFS"
7697 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7698 LIBS="$LIBX $LIBS"
7699 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7700 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7701
7702 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7703 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7704 # but it's more convenient here to set LD_RUN_PATH
7705 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7706 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7707 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7708 export LD_RUN_PATH
7709 fi
7710
7711 if test "${opsys}" = "gnu-linux"; then
7712 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7713 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7714 cat >conftest.$ac_ext <<_ACEOF
7715 #line $LINENO "configure"
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721
7722 int
7723 main ()
7724 {
7725 XOpenDisplay ("foo");
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 xlinux_first_failure=no
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 xlinux_first_failure=yes
7748 fi
7749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7750 if test "${xlinux_first_failure}" = "yes"; then
7751 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7752 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7753 OLD_CPPFLAGS="$CPPFLAGS"
7754 OLD_LIBS="$LIBS"
7755 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7756 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7757 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7758 LIBS="$LIBS -b i486-linuxaout"
7759 cat >conftest.$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7761 /* confdefs.h. */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7766
7767 int
7768 main ()
7769 {
7770 XOpenDisplay ("foo");
7771 ;
7772 return 0;
7773 }
7774 _ACEOF
7775 rm -f conftest.$ac_objext conftest$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 xlinux_second_failure=no
7788 else
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7791
7792 xlinux_second_failure=yes
7793 fi
7794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7795 if test "${xlinux_second_failure}" = "yes"; then
7796 # If we get the same failure with -b, there is no use adding -b.
7797 # So take it out. This plays safe.
7798 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7799 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7800 CPPFLAGS="$OLD_CPPFLAGS"
7801 LIBS="$OLD_LIBS"
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7804 else
7805 echo "$as_me:$LINENO: result: yes" >&5
7806 echo "${ECHO_T}yes" >&6
7807 fi
7808 else
7809 echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7811 fi
7812 fi
7813
7814 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7815 # header files included from there.
7816 echo "$as_me:$LINENO: checking for Xkb" >&5
7817 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7819 #line $LINENO "configure"
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <X11/Xlib.h>
7826 #include <X11/XKBlib.h>
7827 int
7828 main ()
7829 {
7830 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7831 ;
7832 return 0;
7833 }
7834 _ACEOF
7835 rm -f conftest.$ac_objext conftest$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 emacs_xkb=yes
7848 else
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 emacs_xkb=no
7853 fi
7854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7855 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7856 echo "${ECHO_T}$emacs_xkb" >&6
7857 if test $emacs_xkb = yes; then
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_XKBGETKEYBOARD 1
7861 _ACEOF
7862
7863 fi
7864
7865
7866
7867
7868
7869 for ac_func in XrmSetDatabase XScreenResourceString \
7870 XScreenNumberOfScreen XSetWMProtocols
7871 do
7872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7873 echo "$as_me:$LINENO: checking for $ac_func" >&5
7874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_var+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 /* System header to define __stub macros and hopefully few prototypes,
7886 which can conflict with char $ac_func (); below.
7887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7888 <limits.h> exists even on freestanding compilers. */
7889 #ifdef __STDC__
7890 # include <limits.h>
7891 #else
7892 # include <assert.h>
7893 #endif
7894 /* Override any gcc2 internal prototype to avoid an error. */
7895 #ifdef __cplusplus
7896 extern "C"
7897 {
7898 #endif
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7901 char $ac_func ();
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7906 choke me
7907 #else
7908 char (*f) () = $ac_func;
7909 #endif
7910 #ifdef __cplusplus
7911 }
7912 #endif
7913
7914 int
7915 main ()
7916 {
7917 return f != $ac_func;
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7924 (eval $ac_link) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try='test -s conftest$ac_exeext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 (eval $ac_try) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 eval "$as_ac_var=yes"
7935 else
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 eval "$as_ac_var=no"
7940 fi
7941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7942 fi
7943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7945 if test `eval echo '${'$as_ac_var'}'` = yes; then
7946 cat >>confdefs.h <<_ACEOF
7947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7948 _ACEOF
7949
7950 fi
7951 done
7952
7953 fi
7954
7955 if test "${window_system}" = "x11"; then
7956 echo "$as_me:$LINENO: checking X11 version 6" >&5
7957 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7958 if test "${emacs_cv_x11_version_6+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961 cat >conftest.$ac_ext <<_ACEOF
7962 #line $LINENO "configure"
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 #include <X11/Xlib.h>
7969 int
7970 main ()
7971 {
7972 #if XlibSpecificationRelease < 6
7973 fail;
7974 #endif
7975
7976 ;
7977 return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7982 (eval $ac_link) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -s conftest$ac_exeext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 emacs_cv_x11_version_6=yes
7993 else
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997 emacs_cv_x11_version_6=no
7998 fi
7999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8000 fi
8001
8002 if test $emacs_cv_x11_version_6 = yes; then
8003 echo "$as_me:$LINENO: result: 6 or newer" >&5
8004 echo "${ECHO_T}6 or newer" >&6
8005
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_X11R6 1
8008 _ACEOF
8009
8010 else
8011 echo "$as_me:$LINENO: result: before 6" >&5
8012 echo "${ECHO_T}before 6" >&6
8013 fi
8014 fi
8015
8016 if test "${window_system}" = "x11"; then
8017 echo "$as_me:$LINENO: checking X11 version 5" >&5
8018 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8019 if test "${emacs_cv_x11_version_5+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
8022 cat >conftest.$ac_ext <<_ACEOF
8023 #line $LINENO "configure"
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 #include <X11/Xlib.h>
8030 int
8031 main ()
8032 {
8033 #if XlibSpecificationRelease < 5
8034 fail;
8035 #endif
8036
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 emacs_cv_x11_version_5=yes
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 emacs_cv_x11_version_5=no
8059 fi
8060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8061 fi
8062
8063 if test $emacs_cv_x11_version_5 = yes; then
8064 echo "$as_me:$LINENO: result: 5 or newer" >&5
8065 echo "${ECHO_T}5 or newer" >&6
8066 HAVE_X11R5=yes
8067
8068 cat >>confdefs.h <<\_ACEOF
8069 #define HAVE_X11R5 1
8070 _ACEOF
8071
8072 else
8073 HAVE_X11R5=no
8074 echo "$as_me:$LINENO: result: before 5" >&5
8075 echo "${ECHO_T}before 5" >&6
8076 fi
8077 fi
8078
8079
8080
8081 HAVE_GTK=no
8082 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8083 if test "$USE_X_TOOLKIT" != "none"; then
8084 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8085 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8086 { (exit 1); exit 1; }; };
8087 fi
8088 GLIB_REQUIRED=2.0.1
8089 GTK_REQUIRED=2.0.1
8090 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8091
8092 if test "X${with_pkg_config_prog}" != X; then
8093 PKG_CONFIG="${with_pkg_config_prog}"
8094 fi
8095
8096 succeeded=no
8097
8098 if test -z "$PKG_CONFIG"; then
8099 # Extract the first word of "pkg-config", so it can be a program name with args.
8100 set dummy pkg-config; ac_word=$2
8101 echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 case $PKG_CONFIG in
8107 [\\/]* | ?:[\\/]*)
8108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8109 ;;
8110 *)
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124
8125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8126 ;;
8127 esac
8128 fi
8129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8130
8131 if test -n "$PKG_CONFIG"; then
8132 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8133 echo "${ECHO_T}$PKG_CONFIG" >&6
8134 else
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8137 fi
8138
8139 fi
8140
8141 if test "$PKG_CONFIG" = "no" ; then
8142 echo "*** The pkg-config script could not be found. Make sure it is"
8143 echo "*** in your path, or give the full path to pkg-config with"
8144 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8146 else
8147 PKG_CONFIG_MIN_VERSION=0.9.0
8148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8149 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8150 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8151
8152 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8155 succeeded=yes
8156
8157 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8158 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8159 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8160 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8161 echo "${ECHO_T}$GTK_CFLAGS" >&6
8162
8163 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8164 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8165 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8166 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8167 echo "${ECHO_T}$GTK_LIBS" >&6
8168 else
8169 GTK_CFLAGS=""
8170 GTK_LIBS=""
8171 ## If we have a custom action on failure, don't print errors, but
8172 ## do set a variable so people can do so.
8173 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8174 echo $GTK_PKG_ERRORS
8175 fi
8176
8177
8178
8179 else
8180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8182 fi
8183 fi
8184
8185 if test $succeeded = yes; then
8186 :
8187 else
8188 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8189 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8190 { (exit 1); exit 1; }; }
8191 fi
8192
8193
8194
8195 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8196 HAVE_GTK=yes
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define HAVE_GTK 1
8200 _ACEOF
8201
8202 USE_X_TOOLKIT=none
8203
8204 with_toolkit_scroll_bars=yes
8205 fi
8206
8207 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8208 if test x"${HAVE_X11R5}" = xyes; then
8209 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8210 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8211 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 cat >conftest.$ac_ext <<_ACEOF
8215 #line $LINENO "configure"
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221
8222 #include <X11/Intrinsic.h>
8223 #include <X11/Xaw/Simple.h>
8224 int
8225 main ()
8226 {
8227
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 emacs_cv_x11_version_5_with_xaw=yes
8245 else
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 emacs_cv_x11_version_5_with_xaw=no
8250 fi
8251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8252 fi
8253
8254 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8255 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8256 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8257 USE_X_TOOLKIT=LUCID
8258 else
8259 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8260 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8261 USE_X_TOOLKIT=none
8262 fi
8263 else
8264 USE_X_TOOLKIT=none
8265 fi
8266 fi
8267
8268 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8269
8270 if test "${USE_X_TOOLKIT}" != "none"; then
8271 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8272 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8273 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276 cat >conftest.$ac_ext <<_ACEOF
8277 #line $LINENO "configure"
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 #include <X11/Intrinsic.h>
8284 int
8285 main ()
8286 {
8287 #if XtSpecificationRelease < 6
8288 fail;
8289 #endif
8290
8291 ;
8292 return 0;
8293 }
8294 _ACEOF
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 emacs_cv_x11_toolkit_version_6=yes
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312 emacs_cv_x11_toolkit_version_6=no
8313 fi
8314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8315 fi
8316
8317 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8318 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8319 echo "$as_me:$LINENO: result: 6 or newer" >&5
8320 echo "${ECHO_T}6 or newer" >&6
8321
8322 cat >>confdefs.h <<\_ACEOF
8323 #define HAVE_X11XTR6 1
8324 _ACEOF
8325
8326 else
8327 echo "$as_me:$LINENO: result: before 6" >&5
8328 echo "${ECHO_T}before 6" >&6
8329 fi
8330
8331 OLDLIBS="$LIBS"
8332 if test x$HAVE_X11XTR6 = xyes; then
8333 LIBS="-lXt -lSM -lICE $LIBS"
8334 else
8335 LIBS="-lXt $LIBS"
8336 fi
8337
8338 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8339 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8340 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 ac_check_lib_save_LIBS=$LIBS
8344 LIBS="-lXmu $LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352
8353 /* Override any gcc2 internal prototype to avoid an error. */
8354 #ifdef __cplusplus
8355 extern "C"
8356 #endif
8357 /* We use char because int might match the return type of a gcc2
8358 builtin and then its argument prototype would still apply. */
8359 char XmuConvertStandardSelection ();
8360 int
8361 main ()
8362 {
8363 XmuConvertStandardSelection ();
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -s conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8386 fi
8387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8388 LIBS=$ac_check_lib_save_LIBS
8389 fi
8390 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8391 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8392 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8393 cat >>confdefs.h <<_ACEOF
8394 #define HAVE_LIBXMU 1
8395 _ACEOF
8396
8397 LIBS="-lXmu $LIBS"
8398
8399 fi
8400
8401 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8402 fi
8403
8404 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8405 if test "${HAVE_X11}" = "yes"; then
8406 if test "${USE_X_TOOLKIT}" != "none"; then
8407
8408 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8409 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8410 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 ac_check_lib_save_LIBS=$LIBS
8414 LIBS="-lXext $LIBS"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422
8423 /* Override any gcc2 internal prototype to avoid an error. */
8424 #ifdef __cplusplus
8425 extern "C"
8426 #endif
8427 /* We use char because int might match the return type of a gcc2
8428 builtin and then its argument prototype would still apply. */
8429 char XShapeQueryExtension ();
8430 int
8431 main ()
8432 {
8433 XShapeQueryExtension ();
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -s conftest$ac_exeext'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_lib_Xext_XShapeQueryExtension=yes
8451 else
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8454
8455 ac_cv_lib_Xext_XShapeQueryExtension=no
8456 fi
8457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8458 LIBS=$ac_check_lib_save_LIBS
8459 fi
8460 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8461 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8462 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8463 cat >>confdefs.h <<_ACEOF
8464 #define HAVE_LIBXEXT 1
8465 _ACEOF
8466
8467 LIBS="-lXext $LIBS"
8468
8469 fi
8470
8471 fi
8472 fi
8473
8474 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8475 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8476 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8477 if test "${emacs_cv_lesstif+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480 # We put this in CFLAGS temporarily to precede other -I options
8481 # that might be in CFLAGS temporarily.
8482 # We put this in CPPFLAGS where it precedes the other -I options.
8483 OLD_CPPFLAGS=$CPPFLAGS
8484 OLD_CFLAGS=$CFLAGS
8485 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8486 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8487 cat >conftest.$ac_ext <<_ACEOF
8488 #line $LINENO "configure"
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8495 int
8496 main ()
8497 {
8498 int x = 5;
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 emacs_cv_lesstif=yes
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 emacs_cv_lesstif=no
8521 fi
8522 rm -f conftest.$ac_objext conftest.$ac_ext
8523 fi
8524 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8525 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8526 if test $emacs_cv_lesstif = yes; then
8527 # Make sure this -I option remains in CPPFLAGS after it is set
8528 # back to REAL_CPPFLAGS.
8529 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8530 # have those other -I options anyway. Ultimately, having this
8531 # directory ultimately in CPPFLAGS will be enough.
8532 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8533 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8534 else
8535 CFLAGS=$OLD_CFLAGS
8536 CPPFLAGS=$OLD_CPPFLAGS
8537 fi
8538 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8539 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8540 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8545 /* confdefs.h. */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 #include <Xm/Xm.h>
8551 int
8552 main ()
8553 {
8554 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8555 int x = 5;
8556 #else
8557 Motif version prior to 2.1.
8558 #endif
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -s conftest.$ac_objext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 emacs_cv_motif_version_2_1=yes
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 emacs_cv_motif_version_2_1=no
8581 fi
8582 rm -f conftest.$ac_objext conftest.$ac_ext
8583 fi
8584 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8585 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8586 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8587 if test $emacs_cv_motif_version_2_1 = yes; then
8588 HAVE_LIBXP=no
8589
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_MOTIF_2_1 1
8592 _ACEOF
8593
8594 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8595 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8596 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599 ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lXp $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8602 #line $LINENO "configure"
8603 /* confdefs.h. */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608
8609 /* Override any gcc2 internal prototype to avoid an error. */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 /* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8615 char XpCreateContext ();
8616 int
8617 main ()
8618 {
8619 XpCreateContext ();
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626 (eval $ac_link) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -s conftest$ac_exeext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_cv_lib_Xp_XpCreateContext=yes
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 ac_cv_lib_Xp_XpCreateContext=no
8642 fi
8643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8645 fi
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8647 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8648 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8649 HAVE_LIBXP=yes
8650 fi
8651
8652 if test ${HAVE_LIBXP} = yes; then
8653
8654 cat >>confdefs.h <<\_ACEOF
8655 #define HAVE_LIBXP 1
8656 _ACEOF
8657
8658 fi
8659 fi
8660 fi
8661
8662 ### Is -lXaw3d available?
8663 HAVE_XAW3D=no
8664 if test "${HAVE_X11}" = "yes"; then
8665 if test "${USE_X_TOOLKIT}" != "none"; then
8666 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8667 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8668 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <X11/Xaw3d/Scrollbar.h>
8679 _ACEOF
8680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } >/dev/null; then
8688 if test -s conftest.err; then
8689 ac_cpp_err=$ac_c_preproc_warn_flag
8690 else
8691 ac_cpp_err=
8692 fi
8693 else
8694 ac_cpp_err=yes
8695 fi
8696 if test -z "$ac_cpp_err"; then
8697 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8703 fi
8704 rm -f conftest.err conftest.$ac_ext
8705 fi
8706 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8707 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8708 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8709 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8710 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8711 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714 ac_check_lib_save_LIBS=$LIBS
8715 LIBS="-lXaw3d $LIBS"
8716 cat >conftest.$ac_ext <<_ACEOF
8717 #line $LINENO "configure"
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723
8724 /* Override any gcc2 internal prototype to avoid an error. */
8725 #ifdef __cplusplus
8726 extern "C"
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730 char XawScrollbarSetThumb ();
8731 int
8732 main ()
8733 {
8734 XawScrollbarSetThumb ();
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741 (eval $ac_link) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8757 fi
8758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8759 LIBS=$ac_check_lib_save_LIBS
8760 fi
8761 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8762 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8763 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8764 HAVE_XAW3D=yes
8765 fi
8766
8767 fi
8768
8769
8770 if test "${HAVE_XAW3D}" = "yes"; then
8771
8772 cat >>confdefs.h <<\_ACEOF
8773 #define HAVE_XAW3D 1
8774 _ACEOF
8775
8776 fi
8777 fi
8778 fi
8779
8780
8781
8782 USE_TOOLKIT_SCROLL_BARS=no
8783 if test "${with_toolkit_scroll_bars}" != "no"; then
8784 if test "${USE_X_TOOLKIT}" != "none"; then
8785 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8786 cat >>confdefs.h <<\_ACEOF
8787 #define USE_TOOLKIT_SCROLL_BARS 1
8788 _ACEOF
8789
8790 HAVE_XAW3D=no
8791 USE_TOOLKIT_SCROLL_BARS=yes
8792 elif test "${HAVE_XAW3D}" = "yes"; then
8793 cat >>confdefs.h <<\_ACEOF
8794 #define USE_TOOLKIT_SCROLL_BARS 1
8795 _ACEOF
8796
8797 USE_TOOLKIT_SCROLL_BARS=yes
8798 fi
8799 elif test "${HAVE_GTK}" = "yes"; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define USE_TOOLKIT_SCROLL_BARS 1
8802 _ACEOF
8803
8804 USE_TOOLKIT_SCROLL_BARS=yes
8805 fi
8806 fi
8807
8808
8809 if test "${with_xim}" != "no"; then
8810
8811 cat >>confdefs.h <<\_ACEOF
8812 #define USE_XIM 1
8813 _ACEOF
8814
8815 fi
8816
8817 ### Use -lXpm if available, unless `--with-xpm=no'.
8818 HAVE_XPM=no
8819 if test "${HAVE_X11}" = "yes"; then
8820 if test "${with_xpm}" != "no"; then
8821 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8822 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8823 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8824 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 fi
8827 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8828 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8829 else
8830 # Is the header compilable?
8831 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8832 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8833 cat >conftest.$ac_ext <<_ACEOF
8834 #line $LINENO "configure"
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 $ac_includes_default
8841 #include <X11/xpm.h>
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -s conftest.$ac_objext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 (eval $ac_try) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_header_compiler=yes
8856 else
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 ac_header_compiler=no
8861 fi
8862 rm -f conftest.$ac_objext conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8864 echo "${ECHO_T}$ac_header_compiler" >&6
8865
8866 # Is the header present?
8867 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8868 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8871 /* confdefs.h. */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 #include <X11/xpm.h>
8877 _ACEOF
8878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } >/dev/null; then
8886 if test -s conftest.err; then
8887 ac_cpp_err=$ac_c_preproc_warn_flag
8888 else
8889 ac_cpp_err=
8890 fi
8891 else
8892 ac_cpp_err=yes
8893 fi
8894 if test -z "$ac_cpp_err"; then
8895 ac_header_preproc=yes
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ac_header_preproc=no
8901 fi
8902 rm -f conftest.err conftest.$ac_ext
8903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8904 echo "${ECHO_T}$ac_header_preproc" >&6
8905
8906 # So? What about this header?
8907 case $ac_header_compiler:$ac_header_preproc in
8908 yes:no )
8909 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8910 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8912 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8913 (
8914 cat <<\_ASBOX
8915 ## ------------------------------------ ##
8916 ## Report this to bug-autoconf@gnu.org. ##
8917 ## ------------------------------------ ##
8918 _ASBOX
8919 ) |
8920 sed "s/^/$as_me: WARNING: /" >&2
8921 ;;
8922 no:yes )
8923 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8924 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8926 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8929 (
8930 cat <<\_ASBOX
8931 ## ------------------------------------ ##
8932 ## Report this to bug-autoconf@gnu.org. ##
8933 ## ------------------------------------ ##
8934 _ASBOX
8935 ) |
8936 sed "s/^/$as_me: WARNING: /" >&2
8937 ;;
8938 esac
8939 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8940 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8941 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 ac_cv_header_X11_xpm_h=$ac_header_preproc
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8947 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8948
8949 fi
8950 if test $ac_cv_header_X11_xpm_h = yes; then
8951 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8952 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8953 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 ac_check_lib_save_LIBS=$LIBS
8957 LIBS="-lXpm -lX11 $LIBS"
8958 cat >conftest.$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8972 char XpmReadFileToPixmap ();
8973 int
8974 main ()
8975 {
8976 XpmReadFileToPixmap ();
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8999 fi
9000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9001 LIBS=$ac_check_lib_save_LIBS
9002 fi
9003 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9004 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9005 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9006 HAVE_XPM=yes
9007 fi
9008
9009 fi
9010
9011
9012 if test "${HAVE_XPM}" = "yes"; then
9013 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9014 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9015 cat >conftest.$ac_ext <<_ACEOF
9016 #line $LINENO "configure"
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 #include "X11/xpm.h"
9023 #ifndef XpmReturnAllocPixels
9024 no_return_alloc_pixels
9025 #endif
9026
9027 _ACEOF
9028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9029 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9030 HAVE_XPM=no
9031 else
9032 HAVE_XPM=yes
9033 fi
9034 rm -f conftest*
9035
9036
9037 if test "${HAVE_XPM}" = "yes"; then
9038 echo "$as_me:$LINENO: result: yes" >&5
9039 echo "${ECHO_T}yes" >&6
9040 else
9041 echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6
9043 fi
9044 fi
9045 fi
9046
9047 if test "${HAVE_XPM}" = "yes"; then
9048
9049 cat >>confdefs.h <<\_ACEOF
9050 #define HAVE_XPM 1
9051 _ACEOF
9052
9053 fi
9054 fi
9055
9056 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9057 HAVE_JPEG=no
9058 if test "${HAVE_X11}" = "yes"; then
9059 if test "${with_jpeg}" != "no"; then
9060 if test "${ac_cv_header_jerror_h+set}" = set; then
9061 echo "$as_me:$LINENO: checking for jerror.h" >&5
9062 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_jerror_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 fi
9066 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9067 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9068 else
9069 # Is the header compilable?
9070 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9071 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9072 cat >conftest.$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 /* confdefs.h. */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079 $ac_includes_default
9080 #include <jerror.h>
9081 _ACEOF
9082 rm -f conftest.$ac_objext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084 (eval $ac_compile) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler=yes
9095 else
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_header_compiler=no
9100 fi
9101 rm -f conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9104
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9107 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9110 /* confdefs.h. */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 #include <jerror.h>
9116 _ACEOF
9117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } >/dev/null; then
9125 if test -s conftest.err; then
9126 ac_cpp_err=$ac_c_preproc_warn_flag
9127 else
9128 ac_cpp_err=
9129 fi
9130 else
9131 ac_cpp_err=yes
9132 fi
9133 if test -z "$ac_cpp_err"; then
9134 ac_header_preproc=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 ac_header_preproc=no
9140 fi
9141 rm -f conftest.err conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9144
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc in
9147 yes:no )
9148 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9151 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9152 (
9153 cat <<\_ASBOX
9154 ## ------------------------------------ ##
9155 ## Report this to bug-autoconf@gnu.org. ##
9156 ## ------------------------------------ ##
9157 _ASBOX
9158 ) |
9159 sed "s/^/$as_me: WARNING: /" >&2
9160 ;;
9161 no:yes )
9162 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9163 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9165 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9167 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9168 (
9169 cat <<\_ASBOX
9170 ## ------------------------------------ ##
9171 ## Report this to bug-autoconf@gnu.org. ##
9172 ## ------------------------------------ ##
9173 _ASBOX
9174 ) |
9175 sed "s/^/$as_me: WARNING: /" >&2
9176 ;;
9177 esac
9178 echo "$as_me:$LINENO: checking for jerror.h" >&5
9179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9180 if test "${ac_cv_header_jerror_h+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 ac_cv_header_jerror_h=$ac_header_preproc
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9187
9188 fi
9189 if test $ac_cv_header_jerror_h = yes; then
9190 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195 ac_check_lib_save_LIBS=$LIBS
9196 LIBS="-ljpeg $LIBS"
9197 cat >conftest.$ac_ext <<_ACEOF
9198 #line $LINENO "configure"
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204
9205 /* Override any gcc2 internal prototype to avoid an error. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9211 char jpeg_destroy_compress ();
9212 int
9213 main ()
9214 {
9215 jpeg_destroy_compress ();
9216 ;
9217 return 0;
9218 }
9219 _ACEOF
9220 rm -f conftest.$ac_objext conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -s conftest$ac_exeext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9238 fi
9239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9240 LIBS=$ac_check_lib_save_LIBS
9241 fi
9242 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9243 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9244 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9245 HAVE_JPEG=yes
9246 fi
9247
9248 fi
9249
9250
9251 fi
9252
9253
9254 if test "${HAVE_JPEG}" = "yes"; then
9255 cat >>confdefs.h <<\_ACEOF
9256 #define HAVE_JPEG 1
9257 _ACEOF
9258
9259 cat >conftest.$ac_ext <<_ACEOF
9260 #line $LINENO "configure"
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 #include <jpeglib.h>
9267 version=JPEG_LIB_VERSION
9268
9269 _ACEOF
9270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9271 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9272 cat >>confdefs.h <<\_ACEOF
9273 #define HAVE_JPEG 1
9274 _ACEOF
9275
9276 else
9277 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9278 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9279 HAVE_JPEG=no
9280 fi
9281 rm -f conftest*
9282
9283 fi
9284 fi
9285
9286 ### Use -lpng if available, unless `--with-png=no'.
9287 HAVE_PNG=no
9288 if test "${HAVE_X11}" = "yes"; then
9289 if test "${with_png}" != "no"; then
9290 if test "${ac_cv_header_png_h+set}" = set; then
9291 echo "$as_me:$LINENO: checking for png.h" >&5
9292 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9293 if test "${ac_cv_header_png_h+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 fi
9296 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9297 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9298 else
9299 # Is the header compilable?
9300 echo "$as_me:$LINENO: checking png.h usability" >&5
9301 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 #include <png.h>
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -s conftest.$ac_objext'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 ac_header_compiler=yes
9325 else
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_header_compiler=no
9330 fi
9331 rm -f conftest.$ac_objext conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9333 echo "${ECHO_T}$ac_header_compiler" >&6
9334
9335 # Is the header present?
9336 echo "$as_me:$LINENO: checking png.h presence" >&5
9337 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9338 cat >conftest.$ac_ext <<_ACEOF
9339 #line $LINENO "configure"
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 #include <png.h>
9346 _ACEOF
9347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9349 ac_status=$?
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev/null; then
9355 if test -s conftest.err; then
9356 ac_cpp_err=$ac_c_preproc_warn_flag
9357 else
9358 ac_cpp_err=
9359 fi
9360 else
9361 ac_cpp_err=yes
9362 fi
9363 if test -z "$ac_cpp_err"; then
9364 ac_header_preproc=yes
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 ac_header_preproc=no
9370 fi
9371 rm -f conftest.err conftest.$ac_ext
9372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9373 echo "${ECHO_T}$ac_header_preproc" >&6
9374
9375 # So? What about this header?
9376 case $ac_header_compiler:$ac_header_preproc in
9377 yes:no )
9378 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9379 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9381 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9382 (
9383 cat <<\_ASBOX
9384 ## ------------------------------------ ##
9385 ## Report this to bug-autoconf@gnu.org. ##
9386 ## ------------------------------------ ##
9387 _ASBOX
9388 ) |
9389 sed "s/^/$as_me: WARNING: /" >&2
9390 ;;
9391 no:yes )
9392 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9397 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9398 (
9399 cat <<\_ASBOX
9400 ## ------------------------------------ ##
9401 ## Report this to bug-autoconf@gnu.org. ##
9402 ## ------------------------------------ ##
9403 _ASBOX
9404 ) |
9405 sed "s/^/$as_me: WARNING: /" >&2
9406 ;;
9407 esac
9408 echo "$as_me:$LINENO: checking for png.h" >&5
9409 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9410 if test "${ac_cv_header_png_h+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 ac_cv_header_png_h=$ac_header_preproc
9414 fi
9415 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9416 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9417
9418 fi
9419 if test $ac_cv_header_png_h = yes; then
9420 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9421 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9422 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 ac_check_lib_save_LIBS=$LIBS
9426 LIBS="-lpng -lz -lm $LIBS"
9427 cat >conftest.$ac_ext <<_ACEOF
9428 #line $LINENO "configure"
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434
9435 /* Override any gcc2 internal prototype to avoid an error. */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441 char png_get_channels ();
9442 int
9443 main ()
9444 {
9445 png_get_channels ();
9446 ;
9447 return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452 (eval $ac_link) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -s conftest$ac_exeext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_lib_png_png_get_channels=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9466
9467 ac_cv_lib_png_png_get_channels=no
9468 fi
9469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9470 LIBS=$ac_check_lib_save_LIBS
9471 fi
9472 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9473 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9474 if test $ac_cv_lib_png_png_get_channels = yes; then
9475 HAVE_PNG=yes
9476 fi
9477
9478 fi
9479
9480
9481 fi
9482
9483 if test "${HAVE_PNG}" = "yes"; then
9484
9485 cat >>confdefs.h <<\_ACEOF
9486 #define HAVE_PNG 1
9487 _ACEOF
9488
9489 fi
9490 fi
9491
9492 ### Use -ltiff if available, unless `--with-tiff=no'.
9493 HAVE_TIFF=no
9494 if test "${HAVE_X11}" = "yes"; then
9495 if test "${with_tiff}" != "no"; then
9496 if test "${ac_cv_header_tiffio_h+set}" = set; then
9497 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9498 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9499 if test "${ac_cv_header_tiffio_h+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 fi
9502 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9504 else
9505 # Is the header compilable?
9506 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9507 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9516 #include <tiffio.h>
9517 _ACEOF
9518 rm -f conftest.$ac_objext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520 (eval $ac_compile) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -s conftest.$ac_objext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_header_compiler=yes
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535 ac_header_compiler=no
9536 fi
9537 rm -f conftest.$ac_objext conftest.$ac_ext
9538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9539 echo "${ECHO_T}$ac_header_compiler" >&6
9540
9541 # Is the header present?
9542 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9543 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9544 cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 #include <tiffio.h>
9552 _ACEOF
9553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } >/dev/null; then
9561 if test -s conftest.err; then
9562 ac_cpp_err=$ac_c_preproc_warn_flag
9563 else
9564 ac_cpp_err=
9565 fi
9566 else
9567 ac_cpp_err=yes
9568 fi
9569 if test -z "$ac_cpp_err"; then
9570 ac_header_preproc=yes
9571 else
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9574
9575 ac_header_preproc=no
9576 fi
9577 rm -f conftest.err conftest.$ac_ext
9578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9579 echo "${ECHO_T}$ac_header_preproc" >&6
9580
9581 # So? What about this header?
9582 case $ac_header_compiler:$ac_header_preproc in
9583 yes:no )
9584 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9585 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9586 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9587 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9588 (
9589 cat <<\_ASBOX
9590 ## ------------------------------------ ##
9591 ## Report this to bug-autoconf@gnu.org. ##
9592 ## ------------------------------------ ##
9593 _ASBOX
9594 ) |
9595 sed "s/^/$as_me: WARNING: /" >&2
9596 ;;
9597 no:yes )
9598 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9599 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9601 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9603 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9604 (
9605 cat <<\_ASBOX
9606 ## ------------------------------------ ##
9607 ## Report this to bug-autoconf@gnu.org. ##
9608 ## ------------------------------------ ##
9609 _ASBOX
9610 ) |
9611 sed "s/^/$as_me: WARNING: /" >&2
9612 ;;
9613 esac
9614 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9615 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9616 if test "${ac_cv_header_tiffio_h+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 ac_cv_header_tiffio_h=$ac_header_preproc
9620 fi
9621 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9622 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9623
9624 fi
9625 if test $ac_cv_header_tiffio_h = yes; then
9626 tifflibs="-lz -lm"
9627 # At least one tiff package requires the jpeg library.
9628 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9629 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9630 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9631 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-ltiff $tifflibs $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 #line $LINENO "configure"
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643
9644 /* Override any gcc2 internal prototype to avoid an error. */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9650 char TIFFGetVersion ();
9651 int
9652 main ()
9653 {
9654 TIFFGetVersion ();
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -s conftest$ac_exeext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_lib_tiff_TIFFGetVersion=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ac_cv_lib_tiff_TIFFGetVersion=no
9677 fi
9678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9680 fi
9681 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9682 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9683 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9684 HAVE_TIFF=yes
9685 fi
9686
9687 fi
9688
9689
9690 fi
9691
9692 if test "${HAVE_TIFF}" = "yes"; then
9693
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_TIFF 1
9696 _ACEOF
9697
9698 fi
9699 fi
9700
9701 ### Use -lgif if available, unless `--with-gif=no'.
9702 HAVE_GIF=no
9703 if test "${HAVE_X11}" = "yes"; then
9704 if test "${with_gif}" != "no"; then
9705 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9706 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9707 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9708 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 fi
9711 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9712 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9713 else
9714 # Is the header compilable?
9715 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9716 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9717 cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9719 /* confdefs.h. */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 $ac_includes_default
9725 #include <gif_lib.h>
9726 _ACEOF
9727 rm -f conftest.$ac_objext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9729 (eval $ac_compile) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -s conftest.$ac_objext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 ac_header_compiler=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744 ac_header_compiler=no
9745 fi
9746 rm -f conftest.$ac_objext conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9748 echo "${ECHO_T}$ac_header_compiler" >&6
9749
9750 # Is the header present?
9751 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9752 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 #include <gif_lib.h>
9761 _ACEOF
9762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev/null; then
9770 if test -s conftest.err; then
9771 ac_cpp_err=$ac_c_preproc_warn_flag
9772 else
9773 ac_cpp_err=
9774 fi
9775 else
9776 ac_cpp_err=yes
9777 fi
9778 if test -z "$ac_cpp_err"; then
9779 ac_header_preproc=yes
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_header_preproc=no
9785 fi
9786 rm -f conftest.err conftest.$ac_ext
9787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9788 echo "${ECHO_T}$ac_header_preproc" >&6
9789
9790 # So? What about this header?
9791 case $ac_header_compiler:$ac_header_preproc in
9792 yes:no )
9793 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9794 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9796 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9797 (
9798 cat <<\_ASBOX
9799 ## ------------------------------------ ##
9800 ## Report this to bug-autoconf@gnu.org. ##
9801 ## ------------------------------------ ##
9802 _ASBOX
9803 ) |
9804 sed "s/^/$as_me: WARNING: /" >&2
9805 ;;
9806 no:yes )
9807 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9808 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9809 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9810 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9811 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9812 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9813 (
9814 cat <<\_ASBOX
9815 ## ------------------------------------ ##
9816 ## Report this to bug-autoconf@gnu.org. ##
9817 ## ------------------------------------ ##
9818 _ASBOX
9819 ) |
9820 sed "s/^/$as_me: WARNING: /" >&2
9821 ;;
9822 esac
9823 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9824 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9825 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828 ac_cv_header_gif_lib_h=$ac_header_preproc
9829 fi
9830 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9831 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9832
9833 fi
9834 if test $ac_cv_header_gif_lib_h = yes; then
9835 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9836 # Earlier versions can crash Emacs.
9837 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9838 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9839 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-lungif $LIBS"
9844 cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851
9852 /* Override any gcc2 internal prototype to avoid an error. */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9858 char EGifPutExtensionLast ();
9859 int
9860 main ()
9861 {
9862 EGifPutExtensionLast ();
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_cv_lib_ungif_EGifPutExtensionLast=no
9885 fi
9886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9887 LIBS=$ac_check_lib_save_LIBS
9888 fi
9889 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9890 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9891 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9892 HAVE_GIF=yes
9893 fi
9894
9895 fi
9896
9897
9898 fi
9899
9900 if test "${HAVE_GIF}" = "yes"; then
9901
9902 cat >>confdefs.h <<\_ACEOF
9903 #define HAVE_GIF 1
9904 _ACEOF
9905
9906 fi
9907 fi
9908
9909 ### Use Mac OS X Carbon API to implement GUI.
9910 HAVE_CARBON=no
9911 if test "${with_carbon}" != "no"; then
9912 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9913 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9914 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9915 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 fi
9918 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9919 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9920 else
9921 # Is the header compilable?
9922 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9923 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9924 cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 $ac_includes_default
9932 #include <Carbon/Carbon.h>
9933 _ACEOF
9934 rm -f conftest.$ac_objext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9936 (eval $ac_compile) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_header_compiler=yes
9947 else
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_header_compiler=no
9952 fi
9953 rm -f conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9955 echo "${ECHO_T}$ac_header_compiler" >&6
9956
9957 # Is the header present?
9958 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9959 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 #include <Carbon/Carbon.h>
9968 _ACEOF
9969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } >/dev/null; then
9977 if test -s conftest.err; then
9978 ac_cpp_err=$ac_c_preproc_warn_flag
9979 else
9980 ac_cpp_err=
9981 fi
9982 else
9983 ac_cpp_err=yes
9984 fi
9985 if test -z "$ac_cpp_err"; then
9986 ac_header_preproc=yes
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ac_header_preproc=no
9992 fi
9993 rm -f conftest.err conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9995 echo "${ECHO_T}$ac_header_preproc" >&6
9996
9997 # So? What about this header?
9998 case $ac_header_compiler:$ac_header_preproc in
9999 yes:no )
10000 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10001 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10003 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10004 (
10005 cat <<\_ASBOX
10006 ## ------------------------------------ ##
10007 ## Report this to bug-autoconf@gnu.org. ##
10008 ## ------------------------------------ ##
10009 _ASBOX
10010 ) |
10011 sed "s/^/$as_me: WARNING: /" >&2
10012 ;;
10013 no:yes )
10014 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10015 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10016 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10017 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10018 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10019 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10020 (
10021 cat <<\_ASBOX
10022 ## ------------------------------------ ##
10023 ## Report this to bug-autoconf@gnu.org. ##
10024 ## ------------------------------------ ##
10025 _ASBOX
10026 ) |
10027 sed "s/^/$as_me: WARNING: /" >&2
10028 ;;
10029 esac
10030 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10031 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10032 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10036 fi
10037 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10038 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10039
10040 fi
10041 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10042 HAVE_CARBON=yes
10043 fi
10044
10045
10046 fi
10047
10048 if test "${HAVE_CARBON}" = "yes"; then
10049
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_CARBON 1
10052 _ACEOF
10053
10054 window_system=mac
10055 ## Specify the install directory
10056 carbon_appdir=
10057 if test "${carbon_appdir_x}" != ""; then
10058 case ${carbon_appdir_x} in
10059 y | ye | yes) carbon_appdir=/Applications ;;
10060 * ) carbon_appdir=${carbon_appdir_x} ;;
10061 esac
10062 fi
10063 fi
10064
10065 ### Use session management (-lSM -lICE) if available
10066 HAVE_X_SM=no
10067 if test "${HAVE_X11}" = "yes"; then
10068 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10069 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10070 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10071 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 fi
10074 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10075 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10076 else
10077 # Is the header compilable?
10078 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10079 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10080 cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10088 #include <X11/SM/SMlib.h>
10089 _ACEOF
10090 rm -f conftest.$ac_objext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10092 (eval $ac_compile) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_header_compiler=yes
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_header_compiler=no
10108 fi
10109 rm -f conftest.$ac_objext conftest.$ac_ext
10110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10111 echo "${ECHO_T}$ac_header_compiler" >&6
10112
10113 # Is the header present?
10114 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10115 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10117 #line $LINENO "configure"
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <X11/SM/SMlib.h>
10124 _ACEOF
10125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } >/dev/null; then
10133 if test -s conftest.err; then
10134 ac_cpp_err=$ac_c_preproc_warn_flag
10135 else
10136 ac_cpp_err=
10137 fi
10138 else
10139 ac_cpp_err=yes
10140 fi
10141 if test -z "$ac_cpp_err"; then
10142 ac_header_preproc=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 ac_header_preproc=no
10148 fi
10149 rm -f conftest.err conftest.$ac_ext
10150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10151 echo "${ECHO_T}$ac_header_preproc" >&6
10152
10153 # So? What about this header?
10154 case $ac_header_compiler:$ac_header_preproc in
10155 yes:no )
10156 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10157 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10159 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10160 (
10161 cat <<\_ASBOX
10162 ## ------------------------------------ ##
10163 ## Report this to bug-autoconf@gnu.org. ##
10164 ## ------------------------------------ ##
10165 _ASBOX
10166 ) |
10167 sed "s/^/$as_me: WARNING: /" >&2
10168 ;;
10169 no:yes )
10170 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10171 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10173 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10175 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10176 (
10177 cat <<\_ASBOX
10178 ## ------------------------------------ ##
10179 ## Report this to bug-autoconf@gnu.org. ##
10180 ## ------------------------------------ ##
10181 _ASBOX
10182 ) |
10183 sed "s/^/$as_me: WARNING: /" >&2
10184 ;;
10185 esac
10186 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10187 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10188 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10192 fi
10193 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10194 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10195
10196 fi
10197 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10198 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10199 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10200 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lSM $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212
10213 /* Override any gcc2 internal prototype to avoid an error. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 /* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219 char SmcOpenConnection ();
10220 int
10221 main ()
10222 {
10223 SmcOpenConnection ();
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -s conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_lib_SM_SmcOpenConnection=yes
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_lib_SM_SmcOpenConnection=no
10246 fi
10247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10249 fi
10250 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10251 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10252 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10253 HAVE_X_SM=yes
10254 else
10255 -lICE
10256 fi
10257
10258 fi
10259
10260
10261
10262 if test "${HAVE_X_SM}" = "yes"; then
10263
10264 cat >>confdefs.h <<\_ACEOF
10265 #define HAVE_X_SM 1
10266 _ACEOF
10267
10268 case "$LIBS" in
10269 *-lSM*) ;;
10270 *) LIBS="-lSM -lICE $LIBS" ;;
10271 esac
10272 fi
10273 fi
10274
10275 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10276 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10277 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10278 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 #line $LINENO "configure"
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <netdb.h>
10289 int
10290 main ()
10291 {
10292 return h_errno;
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 emacs_cv_netdb_declares_h_errno=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 emacs_cv_netdb_declares_h_errno=no
10315 fi
10316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10317 fi
10318 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10319 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10320 if test $emacs_cv_netdb_declares_h_errno = yes; then
10321
10322 cat >>confdefs.h <<\_ACEOF
10323 #define HAVE_H_ERRNO 1
10324 _ACEOF
10325
10326 fi
10327
10328 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10329 # for constant arguments. Useless!
10330 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10331 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10332 if test "${ac_cv_working_alloca_h+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 cat >conftest.$ac_ext <<_ACEOF
10336 #line $LINENO "configure"
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 #include <alloca.h>
10343 int
10344 main ()
10345 {
10346 char *p = (char *) alloca (2 * sizeof (int));
10347 ;
10348 return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10353 (eval $ac_link) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -s conftest$ac_exeext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_cv_working_alloca_h=yes
10364 else
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 ac_cv_working_alloca_h=no
10369 fi
10370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10371 fi
10372 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10373 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10374 if test $ac_cv_working_alloca_h = yes; then
10375
10376 cat >>confdefs.h <<\_ACEOF
10377 #define HAVE_ALLOCA_H 1
10378 _ACEOF
10379
10380 fi
10381
10382 echo "$as_me:$LINENO: checking for alloca" >&5
10383 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10384 if test "${ac_cv_func_alloca_works+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387 cat >conftest.$ac_ext <<_ACEOF
10388 #line $LINENO "configure"
10389 /* confdefs.h. */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 #ifdef __GNUC__
10395 # define alloca __builtin_alloca
10396 #else
10397 # ifdef _MSC_VER
10398 # include <malloc.h>
10399 # define alloca _alloca
10400 # else
10401 # if HAVE_ALLOCA_H
10402 # include <alloca.h>
10403 # else
10404 # ifdef _AIX
10405 #pragma alloca
10406 # else
10407 # ifndef alloca /* predefined by HP cc +Olibcalls */
10408 char *alloca ();
10409 # endif
10410 # endif
10411 # endif
10412 # endif
10413 #endif
10414
10415 int
10416 main ()
10417 {
10418 char *p = (char *) alloca (1);
10419 ;
10420 return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_func_alloca_works=yes
10436 else
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 ac_cv_func_alloca_works=no
10441 fi
10442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10443 fi
10444 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10445 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10446
10447 if test $ac_cv_func_alloca_works = yes; then
10448
10449 cat >>confdefs.h <<\_ACEOF
10450 #define HAVE_ALLOCA 1
10451 _ACEOF
10452
10453 else
10454 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10455 # that cause trouble. Some versions do not even contain alloca or
10456 # contain a buggy version. If you still want to use their alloca,
10457 # use ar to extract alloca.o from them instead of compiling alloca.c.
10458
10459 ALLOCA=alloca.$ac_objext
10460
10461 cat >>confdefs.h <<\_ACEOF
10462 #define C_ALLOCA 1
10463 _ACEOF
10464
10465
10466 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10467 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10468 if test "${ac_cv_os_cray+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471 cat >conftest.$ac_ext <<_ACEOF
10472 #line $LINENO "configure"
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 #if defined(CRAY) && ! defined(CRAY2)
10479 webecray
10480 #else
10481 wenotbecray
10482 #endif
10483
10484 _ACEOF
10485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10486 $EGREP "webecray" >/dev/null 2>&1; then
10487 ac_cv_os_cray=yes
10488 else
10489 ac_cv_os_cray=no
10490 fi
10491 rm -f conftest*
10492
10493 fi
10494 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10495 echo "${ECHO_T}$ac_cv_os_cray" >&6
10496 if test $ac_cv_os_cray = yes; then
10497 for ac_func in _getb67 GETB67 getb67; do
10498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10499 echo "$as_me:$LINENO: checking for $ac_func" >&5
10500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10501 if eval "test \"\${$as_ac_var+set}\" = set"; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 cat >conftest.$ac_ext <<_ACEOF
10505 #line $LINENO "configure"
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511 /* System header to define __stub macros and hopefully few prototypes,
10512 which can conflict with char $ac_func (); below.
10513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10514 <limits.h> exists even on freestanding compilers. */
10515 #ifdef __STDC__
10516 # include <limits.h>
10517 #else
10518 # include <assert.h>
10519 #endif
10520 /* Override any gcc2 internal prototype to avoid an error. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 {
10524 #endif
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10527 char $ac_func ();
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10532 choke me
10533 #else
10534 char (*f) () = $ac_func;
10535 #endif
10536 #ifdef __cplusplus
10537 }
10538 #endif
10539
10540 int
10541 main ()
10542 {
10543 return f != $ac_func;
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 eval "$as_ac_var=yes"
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 eval "$as_ac_var=no"
10566 fi
10567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10568 fi
10569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10571 if test `eval echo '${'$as_ac_var'}'` = yes; then
10572
10573 cat >>confdefs.h <<_ACEOF
10574 #define CRAY_STACKSEG_END $ac_func
10575 _ACEOF
10576
10577 break
10578 fi
10579
10580 done
10581 fi
10582
10583 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10584 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10585 if test "${ac_cv_c_stack_direction+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 if test "$cross_compiling" = yes; then
10589 ac_cv_c_stack_direction=0
10590 else
10591 cat >conftest.$ac_ext <<_ACEOF
10592 #line $LINENO "configure"
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 int
10599 find_stack_direction ()
10600 {
10601 static char *addr = 0;
10602 auto char dummy;
10603 if (addr == 0)
10604 {
10605 addr = &dummy;
10606 return find_stack_direction ();
10607 }
10608 else
10609 return (&dummy > addr) ? 1 : -1;
10610 }
10611
10612 int
10613 main ()
10614 {
10615 exit (find_stack_direction () < 0);
10616 }
10617 _ACEOF
10618 rm -f conftest$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620 (eval $ac_link) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_cv_c_stack_direction=1
10630 else
10631 echo "$as_me: program exited with status $ac_status" >&5
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 ( exit $ac_status )
10636 ac_cv_c_stack_direction=-1
10637 fi
10638 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10639 fi
10640 fi
10641 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10642 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10643
10644 cat >>confdefs.h <<_ACEOF
10645 #define STACK_DIRECTION $ac_cv_c_stack_direction
10646 _ACEOF
10647
10648
10649 fi
10650
10651
10652 # fmod, logb, and frexp are found in -lm on most systems.
10653 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10654
10655 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10656 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10657 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660 ac_check_lib_save_LIBS=$LIBS
10661 LIBS="-lm $LIBS"
10662 cat >conftest.$ac_ext <<_ACEOF
10663 #line $LINENO "configure"
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669
10670 /* Override any gcc2 internal prototype to avoid an error. */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 /* We use char because int might match the return type of a gcc2
10675 builtin and then its argument prototype would still apply. */
10676 char sqrt ();
10677 int
10678 main ()
10679 {
10680 sqrt ();
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687 (eval $ac_link) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -s conftest$ac_exeext'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 ac_cv_lib_m_sqrt=yes
10698 else
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10701
10702 ac_cv_lib_m_sqrt=no
10703 fi
10704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10706 fi
10707 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10708 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10709 if test $ac_cv_lib_m_sqrt = yes; then
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_LIBM 1
10712 _ACEOF
10713
10714 LIBS="-lm $LIBS"
10715
10716 fi
10717
10718
10719 # Check for mail-locking functions in a "mail" library
10720
10721 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10722 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10723 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 ac_check_lib_save_LIBS=$LIBS
10727 LIBS="-lmail $LIBS"
10728 cat >conftest.$ac_ext <<_ACEOF
10729 #line $LINENO "configure"
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735
10736 /* Override any gcc2 internal prototype to avoid an error. */
10737 #ifdef __cplusplus
10738 extern "C"
10739 #endif
10740 /* We use char because int might match the return type of a gcc2
10741 builtin and then its argument prototype would still apply. */
10742 char maillock ();
10743 int
10744 main ()
10745 {
10746 maillock ();
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -s conftest$ac_exeext'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_cv_lib_mail_maillock=yes
10764 else
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 ac_cv_lib_mail_maillock=no
10769 fi
10770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10772 fi
10773 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10774 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10775 if test $ac_cv_lib_mail_maillock = yes; then
10776 cat >>confdefs.h <<_ACEOF
10777 #define HAVE_LIBMAIL 1
10778 _ACEOF
10779
10780 LIBS="-lmail $LIBS"
10781
10782 fi
10783
10784
10785 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10786 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10787 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-llockfile $LIBS"
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799
10800 /* Override any gcc2 internal prototype to avoid an error. */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 /* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10806 char maillock ();
10807 int
10808 main ()
10809 {
10810 maillock ();
10811 ;
10812 return 0;
10813 }
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ac_cv_lib_lockfile_maillock=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 ac_cv_lib_lockfile_maillock=no
10833 fi
10834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10835 LIBS=$ac_check_lib_save_LIBS
10836 fi
10837 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10838 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10839 if test $ac_cv_lib_lockfile_maillock = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841 #define HAVE_LIBLOCKFILE 1
10842 _ACEOF
10843
10844 LIBS="-llockfile $LIBS"
10845
10846 fi
10847
10848 # If we have the shared liblockfile, assume we must use it for mail
10849 # locking (e.g. Debian). If we couldn't link against liblockfile
10850 # (no liblockfile.a installed), ensure that we don't need to.
10851 if test "$ac_cv_lib_lockfile_maillock" = no; then
10852 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10853 set dummy liblockfile.so; ac_word=$2
10854 echo "$as_me:$LINENO: checking for $ac_word" >&5
10855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10856 if test "${ac_cv_prog_liblockfile+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859 if test -n "$liblockfile"; then
10860 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10861 else
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10864 for as_dir in $as_dummy
10865 do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_prog_liblockfile="yes"
10871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874 done
10875 done
10876
10877 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10878 fi
10879 fi
10880 liblockfile=$ac_cv_prog_liblockfile
10881 if test -n "$liblockfile"; then
10882 echo "$as_me:$LINENO: result: $liblockfile" >&5
10883 echo "${ECHO_T}$liblockfile" >&6
10884 else
10885 echo "$as_me:$LINENO: result: no" >&5
10886 echo "${ECHO_T}no" >&6
10887 fi
10888
10889 if test $ac_cv_prog_liblockfile = yes; then
10890 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10891 This probably means that movemail could lose mail.
10892 There may be a \`development' package to install containing liblockfile." >&5
10893 echo "$as_me: error: Shared liblockfile found but can't link against it.
10894 This probably means that movemail could lose mail.
10895 There may be a \`development' package to install containing liblockfile." >&2;}
10896 { (exit 1); exit 1; }; }
10897 else
10898 cat >>confdefs.h <<\_ACEOF
10899 #define LIBMAIL -llockfile
10900 _ACEOF
10901
10902 fi
10903 else :
10904 fi
10905
10906 for ac_func in touchlock
10907 do
10908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10909 echo "$as_me:$LINENO: checking for $ac_func" >&5
10910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_var+set}\" = set"; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 cat >conftest.$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 /* System header to define __stub macros and hopefully few prototypes,
10922 which can conflict with char $ac_func (); below.
10923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10924 <limits.h> exists even on freestanding compilers. */
10925 #ifdef __STDC__
10926 # include <limits.h>
10927 #else
10928 # include <assert.h>
10929 #endif
10930 /* Override any gcc2 internal prototype to avoid an error. */
10931 #ifdef __cplusplus
10932 extern "C"
10933 {
10934 #endif
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10937 char $ac_func ();
10938 /* The GNU C library defines this for functions which it implements
10939 to always fail with ENOSYS. Some functions are actually named
10940 something starting with __ and the normal name is an alias. */
10941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10942 choke me
10943 #else
10944 char (*f) () = $ac_func;
10945 #endif
10946 #ifdef __cplusplus
10947 }
10948 #endif
10949
10950 int
10951 main ()
10952 {
10953 return f != $ac_func;
10954 ;
10955 return 0;
10956 }
10957 _ACEOF
10958 rm -f conftest.$ac_objext conftest$ac_exeext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10960 (eval $ac_link) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try='test -s conftest$ac_exeext'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 eval "$as_ac_var=yes"
10971 else
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975 eval "$as_ac_var=no"
10976 fi
10977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10978 fi
10979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10981 if test `eval echo '${'$as_ac_var'}'` = yes; then
10982 cat >>confdefs.h <<_ACEOF
10983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10984 _ACEOF
10985
10986 fi
10987 done
10988
10989
10990 for ac_header in maillock.h
10991 do
10992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10994 echo "$as_me:$LINENO: checking for $ac_header" >&5
10995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 fi
10999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11001 else
11002 # Is the header compilable?
11003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11005 cat >conftest.$ac_ext <<_ACEOF
11006 #line $LINENO "configure"
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 $ac_includes_default
11013 #include <$ac_header>
11014 _ACEOF
11015 rm -f conftest.$ac_objext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11017 (eval $ac_compile) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_header_compiler=yes
11028 else
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ac_header_compiler=no
11033 fi
11034 rm -f conftest.$ac_objext conftest.$ac_ext
11035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11036 echo "${ECHO_T}$ac_header_compiler" >&6
11037
11038 # Is the header present?
11039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11041 cat >conftest.$ac_ext <<_ACEOF
11042 #line $LINENO "configure"
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <$ac_header>
11049 _ACEOF
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
11060 else
11061 ac_cpp_err=
11062 fi
11063 else
11064 ac_cpp_err=yes
11065 fi
11066 if test -z "$ac_cpp_err"; then
11067 ac_header_preproc=yes
11068 else
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 ac_header_preproc=no
11073 fi
11074 rm -f conftest.err conftest.$ac_ext
11075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11076 echo "${ECHO_T}$ac_header_preproc" >&6
11077
11078 # So? What about this header?
11079 case $ac_header_compiler:$ac_header_preproc in
11080 yes:no )
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11085 (
11086 cat <<\_ASBOX
11087 ## ------------------------------------ ##
11088 ## Report this to bug-autoconf@gnu.org. ##
11089 ## ------------------------------------ ##
11090 _ASBOX
11091 ) |
11092 sed "s/^/$as_me: WARNING: /" >&2
11093 ;;
11094 no:yes )
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11101 (
11102 cat <<\_ASBOX
11103 ## ------------------------------------ ##
11104 ## Report this to bug-autoconf@gnu.org. ##
11105 ## ------------------------------------ ##
11106 _ASBOX
11107 ) |
11108 sed "s/^/$as_me: WARNING: /" >&2
11109 ;;
11110 esac
11111 echo "$as_me:$LINENO: checking for $ac_header" >&5
11112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116 eval "$as_ac_Header=$ac_header_preproc"
11117 fi
11118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11120
11121 fi
11122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11125 _ACEOF
11126
11127 fi
11128
11129 done
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192 for ac_func in gethostname getdomainname dup2 \
11193 rename closedir mkdir rmdir sysinfo \
11194 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11195 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11196 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11197 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11198 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11199 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11200 do
11201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 echo "$as_me:$LINENO: checking for $ac_func" >&5
11203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11204 if eval "test \"\${$as_ac_var+set}\" = set"; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 #line $LINENO "configure"
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 /* System header to define __stub macros and hopefully few prototypes,
11215 which can conflict with char $ac_func (); below.
11216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11217 <limits.h> exists even on freestanding compilers. */
11218 #ifdef __STDC__
11219 # include <limits.h>
11220 #else
11221 # include <assert.h>
11222 #endif
11223 /* Override any gcc2 internal prototype to avoid an error. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 {
11227 #endif
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11230 char $ac_func ();
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11235 choke me
11236 #else
11237 char (*f) () = $ac_func;
11238 #endif
11239 #ifdef __cplusplus
11240 }
11241 #endif
11242
11243 int
11244 main ()
11245 {
11246 return f != $ac_func;
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 eval "$as_ac_var=yes"
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11267
11268 eval "$as_ac_var=no"
11269 fi
11270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11271 fi
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 _ACEOF
11278
11279 fi
11280 done
11281
11282
11283
11284 for ac_header in sys/un.h
11285 do
11286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11288 echo "$as_me:$LINENO: checking for $ac_header" >&5
11289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 fi
11293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11295 else
11296 # Is the header compilable?
11297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11300 #line $LINENO "configure"
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 $ac_includes_default
11307 #include <$ac_header>
11308 _ACEOF
11309 rm -f conftest.$ac_objext
11310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11311 (eval $ac_compile) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_header_compiler=yes
11322 else
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 ac_header_compiler=no
11327 fi
11328 rm -f conftest.$ac_objext conftest.$ac_ext
11329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330 echo "${ECHO_T}$ac_header_compiler" >&6
11331
11332 # Is the header present?
11333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11343 _ACEOF
11344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null; then
11352 if test -s conftest.err; then
11353 ac_cpp_err=$ac_c_preproc_warn_flag
11354 else
11355 ac_cpp_err=
11356 fi
11357 else
11358 ac_cpp_err=yes
11359 fi
11360 if test -z "$ac_cpp_err"; then
11361 ac_header_preproc=yes
11362 else
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366 ac_header_preproc=no
11367 fi
11368 rm -f conftest.err conftest.$ac_ext
11369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370 echo "${ECHO_T}$ac_header_preproc" >&6
11371
11372 # So? What about this header?
11373 case $ac_header_compiler:$ac_header_preproc in
11374 yes:no )
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11379 (
11380 cat <<\_ASBOX
11381 ## ------------------------------------ ##
11382 ## Report this to bug-autoconf@gnu.org. ##
11383 ## ------------------------------------ ##
11384 _ASBOX
11385 ) |
11386 sed "s/^/$as_me: WARNING: /" >&2
11387 ;;
11388 no:yes )
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11395 (
11396 cat <<\_ASBOX
11397 ## ------------------------------------ ##
11398 ## Report this to bug-autoconf@gnu.org. ##
11399 ## ------------------------------------ ##
11400 _ASBOX
11401 ) |
11402 sed "s/^/$as_me: WARNING: /" >&2
11403 ;;
11404 esac
11405 echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 eval "$as_ac_Header=$ac_header_preproc"
11411 fi
11412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11414
11415 fi
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417 cat >>confdefs.h <<_ACEOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11419 _ACEOF
11420
11421 fi
11422
11423 done
11424
11425
11426
11427
11428 for ac_header in sys/time.h unistd.h
11429 do
11430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 fi
11437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11439 else
11440 # Is the header compilable?
11441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11443 cat >conftest.$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 $ac_includes_default
11451 #include <$ac_header>
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 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 ac_header_compiler=no
11471 fi
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11474 echo "${ECHO_T}$ac_header_compiler" >&6
11475
11476 # Is the header present?
11477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11481 /* confdefs.h. */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 #include <$ac_header>
11487 _ACEOF
11488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } >/dev/null; then
11496 if test -s conftest.err; then
11497 ac_cpp_err=$ac_c_preproc_warn_flag
11498 else
11499 ac_cpp_err=
11500 fi
11501 else
11502 ac_cpp_err=yes
11503 fi
11504 if test -z "$ac_cpp_err"; then
11505 ac_header_preproc=yes
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510 ac_header_preproc=no
11511 fi
11512 rm -f conftest.err conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6
11515
11516 # So? What about this header?
11517 case $ac_header_compiler:$ac_header_preproc in
11518 yes:no )
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11523 (
11524 cat <<\_ASBOX
11525 ## ------------------------------------ ##
11526 ## Report this to bug-autoconf@gnu.org. ##
11527 ## ------------------------------------ ##
11528 _ASBOX
11529 ) |
11530 sed "s/^/$as_me: WARNING: /" >&2
11531 ;;
11532 no:yes )
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 (
11540 cat <<\_ASBOX
11541 ## ------------------------------------ ##
11542 ## Report this to bug-autoconf@gnu.org. ##
11543 ## ------------------------------------ ##
11544 _ASBOX
11545 ) |
11546 sed "s/^/$as_me: WARNING: /" >&2
11547 ;;
11548 esac
11549 echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554 eval "$as_ac_Header=$ac_header_preproc"
11555 fi
11556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11558
11559 fi
11560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11561 cat >>confdefs.h <<_ACEOF
11562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11563 _ACEOF
11564
11565 fi
11566
11567 done
11568
11569
11570 for ac_func in alarm
11571 do
11572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11573 echo "$as_me:$LINENO: checking for $ac_func" >&5
11574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11575 if eval "test \"\${$as_ac_var+set}\" = set"; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578 cat >conftest.$ac_ext <<_ACEOF
11579 #line $LINENO "configure"
11580 /* confdefs.h. */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 /* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11589 #ifdef __STDC__
11590 # include <limits.h>
11591 #else
11592 # include <assert.h>
11593 #endif
11594 /* Override any gcc2 internal prototype to avoid an error. */
11595 #ifdef __cplusplus
11596 extern "C"
11597 {
11598 #endif
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11601 char $ac_func ();
11602 /* The GNU C library defines this for functions which it implements
11603 to always fail with ENOSYS. Some functions are actually named
11604 something starting with __ and the normal name is an alias. */
11605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11606 choke me
11607 #else
11608 char (*f) () = $ac_func;
11609 #endif
11610 #ifdef __cplusplus
11611 }
11612 #endif
11613
11614 int
11615 main ()
11616 {
11617 return f != $ac_func;
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -s conftest$ac_exeext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 eval "$as_ac_var=yes"
11635 else
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11638
11639 eval "$as_ac_var=no"
11640 fi
11641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11642 fi
11643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11645 if test `eval echo '${'$as_ac_var'}'` = yes; then
11646 cat >>confdefs.h <<_ACEOF
11647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11648 _ACEOF
11649
11650 fi
11651 done
11652
11653 echo "$as_me:$LINENO: checking for working mktime" >&5
11654 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11655 if test "${ac_cv_func_working_mktime+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658 if test "$cross_compiling" = yes; then
11659 ac_cv_func_working_mktime=no
11660 else
11661 cat >conftest.$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 /* Test program from Paul Eggert and Tony Leneis. */
11669 #if TIME_WITH_SYS_TIME
11670 # include <sys/time.h>
11671 # include <time.h>
11672 #else
11673 # if HAVE_SYS_TIME_H
11674 # include <sys/time.h>
11675 # else
11676 # include <time.h>
11677 # endif
11678 #endif
11679
11680 #if HAVE_UNISTD_H
11681 # include <unistd.h>
11682 #endif
11683
11684 #if !HAVE_ALARM
11685 # define alarm(X) /* empty */
11686 #endif
11687
11688 /* Work around redefinition to rpl_putenv by other config tests. */
11689 #undef putenv
11690
11691 static time_t time_t_max;
11692
11693 /* Values we'll use to set the TZ environment variable. */
11694 static const char *const tz_strings[] = {
11695 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11696 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11697 };
11698 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11699
11700 /* Fail if mktime fails to convert a date in the spring-forward gap.
11701 Based on a problem report from Andreas Jaeger. */
11702 static void
11703 spring_forward_gap ()
11704 {
11705 /* glibc (up to about 1998-10-07) failed this test. */
11706 struct tm tm;
11707
11708 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11709 instead of "TZ=America/Vancouver" in order to detect the bug even
11710 on systems that don't support the Olson extension, or don't have the
11711 full zoneinfo tables installed. */
11712 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11713
11714 tm.tm_year = 98;
11715 tm.tm_mon = 3;
11716 tm.tm_mday = 5;
11717 tm.tm_hour = 2;
11718 tm.tm_min = 0;
11719 tm.tm_sec = 0;
11720 tm.tm_isdst = -1;
11721 if (mktime (&tm) == (time_t)-1)
11722 exit (1);
11723 }
11724
11725 static void
11726 mktime_test (now)
11727 time_t now;
11728 {
11729 struct tm *lt;
11730 if ((lt = localtime (&now)) && mktime (lt) != now)
11731 exit (1);
11732 now = time_t_max - now;
11733 if ((lt = localtime (&now)) && mktime (lt) != now)
11734 exit (1);
11735 }
11736
11737 static void
11738 irix_6_4_bug ()
11739 {
11740 /* Based on code from Ariel Faigon. */
11741 struct tm tm;
11742 tm.tm_year = 96;
11743 tm.tm_mon = 3;
11744 tm.tm_mday = 0;
11745 tm.tm_hour = 0;
11746 tm.tm_min = 0;
11747 tm.tm_sec = 0;
11748 tm.tm_isdst = -1;
11749 mktime (&tm);
11750 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11751 exit (1);
11752 }
11753
11754 static void
11755 bigtime_test (j)
11756 int j;
11757 {
11758 struct tm tm;
11759 time_t now;
11760 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11761 now = mktime (&tm);
11762 if (now != (time_t) -1)
11763 {
11764 struct tm *lt = localtime (&now);
11765 if (! (lt
11766 && lt->tm_year == tm.tm_year
11767 && lt->tm_mon == tm.tm_mon
11768 && lt->tm_mday == tm.tm_mday
11769 && lt->tm_hour == tm.tm_hour
11770 && lt->tm_min == tm.tm_min
11771 && lt->tm_sec == tm.tm_sec
11772 && lt->tm_yday == tm.tm_yday
11773 && lt->tm_wday == tm.tm_wday
11774 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11775 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11776 exit (1);
11777 }
11778 }
11779
11780 int
11781 main ()
11782 {
11783 time_t t, delta;
11784 int i, j;
11785
11786 /* This test makes some buggy mktime implementations loop.
11787 Give up after 60 seconds; a mktime slower than that
11788 isn't worth using anyway. */
11789 alarm (60);
11790
11791 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11792 continue;
11793 time_t_max--;
11794 delta = time_t_max / 997; /* a suitable prime number */
11795 for (i = 0; i < N_STRINGS; i++)
11796 {
11797 if (tz_strings[i])
11798 putenv (tz_strings[i]);
11799
11800 for (t = 0; t <= time_t_max - delta; t += delta)
11801 mktime_test (t);
11802 mktime_test ((time_t) 60 * 60);
11803 mktime_test ((time_t) 60 * 60 * 24);
11804
11805 for (j = 1; 0 < j; j *= 2)
11806 bigtime_test (j);
11807 bigtime_test (j - 1);
11808 }
11809 irix_6_4_bug ();
11810 spring_forward_gap ();
11811 exit (0);
11812 }
11813 _ACEOF
11814 rm -f conftest$ac_exeext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 ac_cv_func_working_mktime=yes
11826 else
11827 echo "$as_me: program exited with status $ac_status" >&5
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 ( exit $ac_status )
11832 ac_cv_func_working_mktime=no
11833 fi
11834 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11835 fi
11836 fi
11837 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11838 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11839 if test $ac_cv_func_working_mktime = no; then
11840 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11841 fi
11842
11843 if test "$ac_cv_func_working_mktime" = no; then
11844
11845 cat >>confdefs.h <<\_ACEOF
11846 #define BROKEN_MKTIME 1
11847 _ACEOF
11848
11849 fi
11850
11851 ac_have_func=no # yes means we've found a way to get the load average.
11852
11853 # Make sure getloadavg.c is where it belongs, at configure-time.
11854 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11855 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11856 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11857 { (exit 1); exit 1; }; }
11858
11859 ac_save_LIBS=$LIBS
11860
11861 # Check for getloadavg, but be sure not to touch the cache variable.
11862 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11863 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11864 if test "${ac_cv_func_getloadavg+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867 cat >conftest.$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11869 /* confdefs.h. */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 /* System header to define __stub macros and hopefully few prototypes,
11875 which can conflict with char getloadavg (); below.
11876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11877 <limits.h> exists even on freestanding compilers. */
11878 #ifdef __STDC__
11879 # include <limits.h>
11880 #else
11881 # include <assert.h>
11882 #endif
11883 /* Override any gcc2 internal prototype to avoid an error. */
11884 #ifdef __cplusplus
11885 extern "C"
11886 {
11887 #endif
11888 /* We use char because int might match the return type of a gcc2
11889 builtin and then its argument prototype would still apply. */
11890 char getloadavg ();
11891 /* The GNU C library defines this for functions which it implements
11892 to always fail with ENOSYS. Some functions are actually named
11893 something starting with __ and the normal name is an alias. */
11894 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11895 choke me
11896 #else
11897 char (*f) () = getloadavg;
11898 #endif
11899 #ifdef __cplusplus
11900 }
11901 #endif
11902
11903 int
11904 main ()
11905 {
11906 return f != getloadavg;
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -s conftest$ac_exeext'
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_func_getloadavg=yes
11924 else
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 ac_cv_func_getloadavg=no
11929 fi
11930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11931 fi
11932 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11933 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11934 if test $ac_cv_func_getloadavg = yes; then
11935 exit 0
11936 else
11937 exit 1
11938 fi
11939 ) && ac_have_func=yes
11940
11941 # On HPUX9, an unprivileged user can get load averages through this function.
11942
11943 for ac_func in pstat_getdynamic
11944 do
11945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11946 echo "$as_me:$LINENO: checking for $ac_func" >&5
11947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11948 if eval "test \"\${$as_ac_var+set}\" = set"; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951 cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11962 #ifdef __STDC__
11963 # include <limits.h>
11964 #else
11965 # include <assert.h>
11966 #endif
11967 /* Override any gcc2 internal prototype to avoid an error. */
11968 #ifdef __cplusplus
11969 extern "C"
11970 {
11971 #endif
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char $ac_func ();
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11979 choke me
11980 #else
11981 char (*f) () = $ac_func;
11982 #endif
11983 #ifdef __cplusplus
11984 }
11985 #endif
11986
11987 int
11988 main ()
11989 {
11990 return f != $ac_func;
11991 ;
11992 return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 eval "$as_ac_var=yes"
12008 else
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 eval "$as_ac_var=no"
12013 fi
12014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12015 fi
12016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12018 if test `eval echo '${'$as_ac_var'}'` = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12021 _ACEOF
12022
12023 fi
12024 done
12025
12026
12027 # Solaris has libkstat which does not require root.
12028
12029 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12030 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12031 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034 ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lkstat $LIBS"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043
12044 /* Override any gcc2 internal prototype to avoid an error. */
12045 #ifdef __cplusplus
12046 extern "C"
12047 #endif
12048 /* We use char because int might match the return type of a gcc2
12049 builtin and then its argument prototype would still apply. */
12050 char kstat_open ();
12051 int
12052 main ()
12053 {
12054 kstat_open ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -s conftest$ac_exeext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_lib_kstat_kstat_open=yes
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 ac_cv_lib_kstat_kstat_open=no
12077 fi
12078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12079 LIBS=$ac_check_lib_save_LIBS
12080 fi
12081 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12082 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12083 if test $ac_cv_lib_kstat_kstat_open = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_LIBKSTAT 1
12086 _ACEOF
12087
12088 LIBS="-lkstat $LIBS"
12089
12090 fi
12091
12092 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12093
12094 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12095 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12096 # to get the right answer into the cache.
12097 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12098 if test $ac_have_func = no; then
12099 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12100 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12101 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 ac_check_lib_save_LIBS=$LIBS
12105 LIBS="-lelf $LIBS"
12106 cat >conftest.$ac_ext <<_ACEOF
12107 #line $LINENO "configure"
12108 /* confdefs.h. */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113
12114 /* Override any gcc2 internal prototype to avoid an error. */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 /* We use char because int might match the return type of a gcc2
12119 builtin and then its argument prototype would still apply. */
12120 char elf_begin ();
12121 int
12122 main ()
12123 {
12124 elf_begin ();
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_cv_lib_elf_elf_begin=yes
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_elf_elf_begin=no
12147 fi
12148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12150 fi
12151 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12152 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12153 if test $ac_cv_lib_elf_elf_begin = yes; then
12154 LIBS="-lelf $LIBS"
12155 fi
12156
12157 fi
12158 if test $ac_have_func = no; then
12159 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12160 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12161 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164 ac_check_lib_save_LIBS=$LIBS
12165 LIBS="-lkvm $LIBS"
12166 cat >conftest.$ac_ext <<_ACEOF
12167 #line $LINENO "configure"
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173
12174 /* Override any gcc2 internal prototype to avoid an error. */
12175 #ifdef __cplusplus
12176 extern "C"
12177 #endif
12178 /* We use char because int might match the return type of a gcc2
12179 builtin and then its argument prototype would still apply. */
12180 char kvm_open ();
12181 int
12182 main ()
12183 {
12184 kvm_open ();
12185 ;
12186 return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -s conftest$ac_exeext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_lib_kvm_kvm_open=yes
12202 else
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 ac_cv_lib_kvm_kvm_open=no
12207 fi
12208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12210 fi
12211 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12212 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12213 if test $ac_cv_lib_kvm_kvm_open = yes; then
12214 LIBS="-lkvm $LIBS"
12215 fi
12216
12217 # Check for the 4.4BSD definition of getloadavg.
12218 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12219 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12220 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 ac_check_lib_save_LIBS=$LIBS
12224 LIBS="-lutil $LIBS"
12225 cat >conftest.$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232
12233 /* Override any gcc2 internal prototype to avoid an error. */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 /* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12239 char getloadavg ();
12240 int
12241 main ()
12242 {
12243 getloadavg ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_lib_util_getloadavg=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_cv_lib_util_getloadavg=no
12266 fi
12267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12269 fi
12270 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12271 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12272 if test $ac_cv_lib_util_getloadavg = yes; then
12273 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12274 fi
12275
12276 fi
12277
12278 if test $ac_have_func = no; then
12279 # There is a commonly available library for RS/6000 AIX.
12280 # Since it is not a standard part of AIX, it might be installed locally.
12281 ac_getloadavg_LIBS=$LIBS
12282 LIBS="-L/usr/local/lib $LIBS"
12283 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12284 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12285 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-lgetloadavg $LIBS"
12290 cat >conftest.$ac_ext <<_ACEOF
12291 #line $LINENO "configure"
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297
12298 /* Override any gcc2 internal prototype to avoid an error. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char getloadavg ();
12305 int
12306 main ()
12307 {
12308 getloadavg ();
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -s conftest$ac_exeext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_lib_getloadavg_getloadavg=yes
12326 else
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ac_cv_lib_getloadavg_getloadavg=no
12331 fi
12332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12336 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12337 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12338 LIBS="-lgetloadavg $LIBS"
12339 else
12340 LIBS=$ac_getloadavg_LIBS
12341 fi
12342
12343 fi
12344
12345 # Make sure it is really in the library, if we think we found it,
12346 # otherwise set up the replacement function.
12347
12348 for ac_func in getloadavg
12349 do
12350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12351 echo "$as_me:$LINENO: checking for $ac_func" >&5
12352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12353 if eval "test \"\${$as_ac_var+set}\" = set"; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 cat >conftest.$ac_ext <<_ACEOF
12357 #line $LINENO "configure"
12358 /* confdefs.h. */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 /* System header to define __stub macros and hopefully few prototypes,
12364 which can conflict with char $ac_func (); below.
12365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366 <limits.h> exists even on freestanding compilers. */
12367 #ifdef __STDC__
12368 # include <limits.h>
12369 #else
12370 # include <assert.h>
12371 #endif
12372 /* Override any gcc2 internal prototype to avoid an error. */
12373 #ifdef __cplusplus
12374 extern "C"
12375 {
12376 #endif
12377 /* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12379 char $ac_func ();
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12384 choke me
12385 #else
12386 char (*f) () = $ac_func;
12387 #endif
12388 #ifdef __cplusplus
12389 }
12390 #endif
12391
12392 int
12393 main ()
12394 {
12395 return f != $ac_func;
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 rm -f conftest.$ac_objext conftest$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -s conftest$ac_exeext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 eval "$as_ac_var=yes"
12413 else
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 eval "$as_ac_var=no"
12418 fi
12419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12420 fi
12421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12423 if test `eval echo '${'$as_ac_var'}'` = yes; then
12424 cat >>confdefs.h <<_ACEOF
12425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12426 _ACEOF
12427
12428 else
12429 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12430
12431 cat >>confdefs.h <<\_ACEOF
12432 #define C_GETLOADAVG 1
12433 _ACEOF
12434
12435 # Figure out what our getloadavg.c needs.
12436 ac_have_func=no
12437 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12438 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12439 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12440 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 fi
12443 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12444 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12445 else
12446 # Is the header compilable?
12447 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12448 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12449 cat >conftest.$ac_ext <<_ACEOF
12450 #line $LINENO "configure"
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 #include <sys/dg_sys_info.h>
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461 (eval $ac_compile) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_header_compiler=yes
12472 else
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476 ac_header_compiler=no
12477 fi
12478 rm -f conftest.$ac_objext conftest.$ac_ext
12479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12480 echo "${ECHO_T}$ac_header_compiler" >&6
12481
12482 # Is the header present?
12483 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12484 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12487 /* confdefs.h. */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 #include <sys/dg_sys_info.h>
12493 _ACEOF
12494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } >/dev/null; then
12502 if test -s conftest.err; then
12503 ac_cpp_err=$ac_c_preproc_warn_flag
12504 else
12505 ac_cpp_err=
12506 fi
12507 else
12508 ac_cpp_err=yes
12509 fi
12510 if test -z "$ac_cpp_err"; then
12511 ac_header_preproc=yes
12512 else
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516 ac_header_preproc=no
12517 fi
12518 rm -f conftest.err conftest.$ac_ext
12519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12520 echo "${ECHO_T}$ac_header_preproc" >&6
12521
12522 # So? What about this header?
12523 case $ac_header_compiler:$ac_header_preproc in
12524 yes:no )
12525 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12526 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12529 (
12530 cat <<\_ASBOX
12531 ## ------------------------------------ ##
12532 ## Report this to bug-autoconf@gnu.org. ##
12533 ## ------------------------------------ ##
12534 _ASBOX
12535 ) |
12536 sed "s/^/$as_me: WARNING: /" >&2
12537 ;;
12538 no:yes )
12539 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12540 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12542 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12544 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12545 (
12546 cat <<\_ASBOX
12547 ## ------------------------------------ ##
12548 ## Report this to bug-autoconf@gnu.org. ##
12549 ## ------------------------------------ ##
12550 _ASBOX
12551 ) |
12552 sed "s/^/$as_me: WARNING: /" >&2
12553 ;;
12554 esac
12555 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12556 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12557 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12561 fi
12562 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12563 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12564
12565 fi
12566 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12567 ac_have_func=yes
12568
12569 cat >>confdefs.h <<\_ACEOF
12570 #define DGUX 1
12571 _ACEOF
12572
12573
12574 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12575 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12576 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-ldgc $LIBS"
12581 cat >conftest.$ac_ext <<_ACEOF
12582 #line $LINENO "configure"
12583 /* confdefs.h. */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588
12589 /* Override any gcc2 internal prototype to avoid an error. */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 /* We use char because int might match the return type of a gcc2
12594 builtin and then its argument prototype would still apply. */
12595 char dg_sys_info ();
12596 int
12597 main ()
12598 {
12599 dg_sys_info ();
12600 ;
12601 return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606 (eval $ac_link) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -s conftest$ac_exeext'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_cv_lib_dgc_dg_sys_info=yes
12617 else
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 ac_cv_lib_dgc_dg_sys_info=no
12622 fi
12623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12625 fi
12626 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12627 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12628 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12629 cat >>confdefs.h <<_ACEOF
12630 #define HAVE_LIBDGC 1
12631 _ACEOF
12632
12633 LIBS="-ldgc $LIBS"
12634
12635 fi
12636
12637 fi
12638
12639
12640
12641 if test "${ac_cv_header_locale_h+set}" = set; then
12642 echo "$as_me:$LINENO: checking for locale.h" >&5
12643 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12644 if test "${ac_cv_header_locale_h+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 fi
12647 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12648 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12649 else
12650 # Is the header compilable?
12651 echo "$as_me:$LINENO: checking locale.h usability" >&5
12652 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12653 cat >conftest.$ac_ext <<_ACEOF
12654 #line $LINENO "configure"
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 $ac_includes_default
12661 #include <locale.h>
12662 _ACEOF
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_header_compiler=yes
12676 else
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ac_header_compiler=no
12681 fi
12682 rm -f conftest.$ac_objext conftest.$ac_ext
12683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 echo "${ECHO_T}$ac_header_compiler" >&6
12685
12686 # Is the header present?
12687 echo "$as_me:$LINENO: checking locale.h presence" >&5
12688 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12689 cat >conftest.$ac_ext <<_ACEOF
12690 #line $LINENO "configure"
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 #include <locale.h>
12697 _ACEOF
12698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } >/dev/null; then
12706 if test -s conftest.err; then
12707 ac_cpp_err=$ac_c_preproc_warn_flag
12708 else
12709 ac_cpp_err=
12710 fi
12711 else
12712 ac_cpp_err=yes
12713 fi
12714 if test -z "$ac_cpp_err"; then
12715 ac_header_preproc=yes
12716 else
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_header_preproc=no
12721 fi
12722 rm -f conftest.err conftest.$ac_ext
12723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 echo "${ECHO_T}$ac_header_preproc" >&6
12725
12726 # So? What about this header?
12727 case $ac_header_compiler:$ac_header_preproc in
12728 yes:no )
12729 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12730 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12732 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12733 (
12734 cat <<\_ASBOX
12735 ## ------------------------------------ ##
12736 ## Report this to bug-autoconf@gnu.org. ##
12737 ## ------------------------------------ ##
12738 _ASBOX
12739 ) |
12740 sed "s/^/$as_me: WARNING: /" >&2
12741 ;;
12742 no:yes )
12743 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12744 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12746 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12748 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12749 (
12750 cat <<\_ASBOX
12751 ## ------------------------------------ ##
12752 ## Report this to bug-autoconf@gnu.org. ##
12753 ## ------------------------------------ ##
12754 _ASBOX
12755 ) |
12756 sed "s/^/$as_me: WARNING: /" >&2
12757 ;;
12758 esac
12759 echo "$as_me:$LINENO: checking for locale.h" >&5
12760 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12761 if test "${ac_cv_header_locale_h+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764 ac_cv_header_locale_h=$ac_header_preproc
12765 fi
12766 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12767 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12768
12769 fi
12770
12771
12772
12773 for ac_func in setlocale
12774 do
12775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12776 echo "$as_me:$LINENO: checking for $ac_func" >&5
12777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12778 if eval "test \"\${$as_ac_var+set}\" = set"; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 cat >conftest.$ac_ext <<_ACEOF
12782 #line $LINENO "configure"
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 /* System header to define __stub macros and hopefully few prototypes,
12789 which can conflict with char $ac_func (); below.
12790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12791 <limits.h> exists even on freestanding compilers. */
12792 #ifdef __STDC__
12793 # include <limits.h>
12794 #else
12795 # include <assert.h>
12796 #endif
12797 /* Override any gcc2 internal prototype to avoid an error. */
12798 #ifdef __cplusplus
12799 extern "C"
12800 {
12801 #endif
12802 /* We use char because int might match the return type of a gcc2
12803 builtin and then its argument prototype would still apply. */
12804 char $ac_func ();
12805 /* The GNU C library defines this for functions which it implements
12806 to always fail with ENOSYS. Some functions are actually named
12807 something starting with __ and the normal name is an alias. */
12808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12809 choke me
12810 #else
12811 char (*f) () = $ac_func;
12812 #endif
12813 #ifdef __cplusplus
12814 }
12815 #endif
12816
12817 int
12818 main ()
12819 {
12820 return f != $ac_func;
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12827 (eval $ac_link) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -s conftest$ac_exeext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 eval "$as_ac_var=yes"
12838 else
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 eval "$as_ac_var=no"
12843 fi
12844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12845 fi
12846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12848 if test `eval echo '${'$as_ac_var'}'` = yes; then
12849 cat >>confdefs.h <<_ACEOF
12850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12851 _ACEOF
12852
12853 fi
12854 done
12855
12856
12857 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12858 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12859 # Irix 4.0.5F has the header but not the library.
12860 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12861 ac_have_func=yes
12862
12863 cat >>confdefs.h <<\_ACEOF
12864 #define SVR4 1
12865 _ACEOF
12866
12867 fi
12868
12869 if test $ac_have_func = no; then
12870 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12871 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12872 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12873 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 fi
12876 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12877 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12878 else
12879 # Is the header compilable?
12880 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12881 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12882 cat >conftest.$ac_ext <<_ACEOF
12883 #line $LINENO "configure"
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 $ac_includes_default
12890 #include <inq_stats/cpustats.h>
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_header_compiler=yes
12905 else
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_header_compiler=no
12910 fi
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12913 echo "${ECHO_T}$ac_header_compiler" >&6
12914
12915 # Is the header present?
12916 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12917 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12918 cat >conftest.$ac_ext <<_ACEOF
12919 #line $LINENO "configure"
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 #include <inq_stats/cpustats.h>
12926 _ACEOF
12927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } >/dev/null; then
12935 if test -s conftest.err; then
12936 ac_cpp_err=$ac_c_preproc_warn_flag
12937 else
12938 ac_cpp_err=
12939 fi
12940 else
12941 ac_cpp_err=yes
12942 fi
12943 if test -z "$ac_cpp_err"; then
12944 ac_header_preproc=yes
12945 else
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 ac_header_preproc=no
12950 fi
12951 rm -f conftest.err conftest.$ac_ext
12952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12953 echo "${ECHO_T}$ac_header_preproc" >&6
12954
12955 # So? What about this header?
12956 case $ac_header_compiler:$ac_header_preproc in
12957 yes:no )
12958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12959 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12961 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12962 (
12963 cat <<\_ASBOX
12964 ## ------------------------------------ ##
12965 ## Report this to bug-autoconf@gnu.org. ##
12966 ## ------------------------------------ ##
12967 _ASBOX
12968 ) |
12969 sed "s/^/$as_me: WARNING: /" >&2
12970 ;;
12971 no:yes )
12972 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12973 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12975 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12977 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12978 (
12979 cat <<\_ASBOX
12980 ## ------------------------------------ ##
12981 ## Report this to bug-autoconf@gnu.org. ##
12982 ## ------------------------------------ ##
12983 _ASBOX
12984 ) |
12985 sed "s/^/$as_me: WARNING: /" >&2
12986 ;;
12987 esac
12988 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12989 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12990 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
12993 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
12994 fi
12995 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12996 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12997
12998 fi
12999 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13000 ac_have_func=yes
13001
13002 cat >>confdefs.h <<\_ACEOF
13003 #define UMAX 1
13004 _ACEOF
13005
13006
13007 cat >>confdefs.h <<\_ACEOF
13008 #define UMAX4_3 1
13009 _ACEOF
13010
13011 fi
13012
13013
13014 fi
13015
13016 if test $ac_have_func = no; then
13017 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13018 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13019 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13020 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 fi
13023 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13024 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13025 else
13026 # Is the header compilable?
13027 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13028 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13029 cat >conftest.$ac_ext <<_ACEOF
13030 #line $LINENO "configure"
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 $ac_includes_default
13037 #include <sys/cpustats.h>
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -s conftest.$ac_objext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_header_compiler=yes
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 ac_header_compiler=no
13057 fi
13058 rm -f conftest.$ac_objext conftest.$ac_ext
13059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13060 echo "${ECHO_T}$ac_header_compiler" >&6
13061
13062 # Is the header present?
13063 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13064 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13066 #line $LINENO "configure"
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 #include <sys/cpustats.h>
13073 _ACEOF
13074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } >/dev/null; then
13082 if test -s conftest.err; then
13083 ac_cpp_err=$ac_c_preproc_warn_flag
13084 else
13085 ac_cpp_err=
13086 fi
13087 else
13088 ac_cpp_err=yes
13089 fi
13090 if test -z "$ac_cpp_err"; then
13091 ac_header_preproc=yes
13092 else
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13095
13096 ac_header_preproc=no
13097 fi
13098 rm -f conftest.err conftest.$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13100 echo "${ECHO_T}$ac_header_preproc" >&6
13101
13102 # So? What about this header?
13103 case $ac_header_compiler:$ac_header_preproc in
13104 yes:no )
13105 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13106 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13108 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13109 (
13110 cat <<\_ASBOX
13111 ## ------------------------------------ ##
13112 ## Report this to bug-autoconf@gnu.org. ##
13113 ## ------------------------------------ ##
13114 _ASBOX
13115 ) |
13116 sed "s/^/$as_me: WARNING: /" >&2
13117 ;;
13118 no:yes )
13119 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13120 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13122 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13125 (
13126 cat <<\_ASBOX
13127 ## ------------------------------------ ##
13128 ## Report this to bug-autoconf@gnu.org. ##
13129 ## ------------------------------------ ##
13130 _ASBOX
13131 ) |
13132 sed "s/^/$as_me: WARNING: /" >&2
13133 ;;
13134 esac
13135 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13136 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13137 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13141 fi
13142 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13143 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13144
13145 fi
13146 if test $ac_cv_header_sys_cpustats_h = yes; then
13147 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13148 #define UMAX 1
13149 _ACEOF
13150
13151 fi
13152
13153
13154 fi
13155
13156 if test $ac_have_func = no; then
13157
13158 for ac_header in mach/mach.h
13159 do
13160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13162 echo "$as_me:$LINENO: checking for $ac_header" >&5
13163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 fi
13167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13169 else
13170 # Is the header compilable?
13171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13173 cat >conftest.$ac_ext <<_ACEOF
13174 #line $LINENO "configure"
13175 /* confdefs.h. */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 $ac_includes_default
13181 #include <$ac_header>
13182 _ACEOF
13183 rm -f conftest.$ac_objext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -s conftest.$ac_objext'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_header_compiler=yes
13196 else
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200 ac_header_compiler=no
13201 fi
13202 rm -f conftest.$ac_objext conftest.$ac_ext
13203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13204 echo "${ECHO_T}$ac_header_compiler" >&6
13205
13206 # Is the header present?
13207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13209 cat >conftest.$ac_ext <<_ACEOF
13210 #line $LINENO "configure"
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 #include <$ac_header>
13217 _ACEOF
13218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } >/dev/null; then
13226 if test -s conftest.err; then
13227 ac_cpp_err=$ac_c_preproc_warn_flag
13228 else
13229 ac_cpp_err=
13230 fi
13231 else
13232 ac_cpp_err=yes
13233 fi
13234 if test -z "$ac_cpp_err"; then
13235 ac_header_preproc=yes
13236 else
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 ac_header_preproc=no
13241 fi
13242 rm -f conftest.err conftest.$ac_ext
13243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13244 echo "${ECHO_T}$ac_header_preproc" >&6
13245
13246 # So? What about this header?
13247 case $ac_header_compiler:$ac_header_preproc in
13248 yes:no )
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13253 (
13254 cat <<\_ASBOX
13255 ## ------------------------------------ ##
13256 ## Report this to bug-autoconf@gnu.org. ##
13257 ## ------------------------------------ ##
13258 _ASBOX
13259 ) |
13260 sed "s/^/$as_me: WARNING: /" >&2
13261 ;;
13262 no:yes )
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13269 (
13270 cat <<\_ASBOX
13271 ## ------------------------------------ ##
13272 ## Report this to bug-autoconf@gnu.org. ##
13273 ## ------------------------------------ ##
13274 _ASBOX
13275 ) |
13276 sed "s/^/$as_me: WARNING: /" >&2
13277 ;;
13278 esac
13279 echo "$as_me:$LINENO: checking for $ac_header" >&5
13280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 else
13284 eval "$as_ac_Header=$ac_header_preproc"
13285 fi
13286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13288
13289 fi
13290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13293 _ACEOF
13294
13295 fi
13296
13297 done
13298
13299 fi
13300
13301
13302 for ac_header in nlist.h
13303 do
13304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 fi
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13313 else
13314 # Is the header compilable?
13315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13318 #line $LINENO "configure"
13319 /* confdefs.h. */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 $ac_includes_default
13325 #include <$ac_header>
13326 _ACEOF
13327 rm -f conftest.$ac_objext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13329 (eval $ac_compile) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_header_compiler=yes
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 ac_header_compiler=no
13345 fi
13346 rm -f conftest.$ac_objext conftest.$ac_ext
13347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13348 echo "${ECHO_T}$ac_header_compiler" >&6
13349
13350 # Is the header present?
13351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13353 cat >conftest.$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13355 /* confdefs.h. */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 #include <$ac_header>
13361 _ACEOF
13362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } >/dev/null; then
13370 if test -s conftest.err; then
13371 ac_cpp_err=$ac_c_preproc_warn_flag
13372 else
13373 ac_cpp_err=
13374 fi
13375 else
13376 ac_cpp_err=yes
13377 fi
13378 if test -z "$ac_cpp_err"; then
13379 ac_header_preproc=yes
13380 else
13381 echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384 ac_header_preproc=no
13385 fi
13386 rm -f conftest.err conftest.$ac_ext
13387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13388 echo "${ECHO_T}$ac_header_preproc" >&6
13389
13390 # So? What about this header?
13391 case $ac_header_compiler:$ac_header_preproc in
13392 yes:no )
13393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13397 (
13398 cat <<\_ASBOX
13399 ## ------------------------------------ ##
13400 ## Report this to bug-autoconf@gnu.org. ##
13401 ## ------------------------------------ ##
13402 _ASBOX
13403 ) |
13404 sed "s/^/$as_me: WARNING: /" >&2
13405 ;;
13406 no:yes )
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13413 (
13414 cat <<\_ASBOX
13415 ## ------------------------------------ ##
13416 ## Report this to bug-autoconf@gnu.org. ##
13417 ## ------------------------------------ ##
13418 _ASBOX
13419 ) |
13420 sed "s/^/$as_me: WARNING: /" >&2
13421 ;;
13422 esac
13423 echo "$as_me:$LINENO: checking for $ac_header" >&5
13424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428 eval "$as_ac_Header=$ac_header_preproc"
13429 fi
13430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13432
13433 fi
13434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13435 cat >>confdefs.h <<_ACEOF
13436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13437 _ACEOF
13438 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13439 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13440 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 cat >conftest.$ac_ext <<_ACEOF
13444 #line $LINENO "configure"
13445 /* confdefs.h. */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13450 #include <nlist.h>
13451
13452 int
13453 main ()
13454 {
13455 static struct nlist ac_aggr;
13456 if (ac_aggr.n_un.n_name)
13457 return 0;
13458 ;
13459 return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest.$ac_objext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_member_struct_nlist_n_un_n_name=yes
13475 else
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 cat >conftest.$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 #include <nlist.h>
13487
13488 int
13489 main ()
13490 {
13491 static struct nlist ac_aggr;
13492 if (sizeof ac_aggr.n_un.n_name)
13493 return 0;
13494 ;
13495 return 0;
13496 }
13497 _ACEOF
13498 rm -f conftest.$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -s conftest.$ac_objext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_member_struct_nlist_n_un_n_name=yes
13511 else
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_member_struct_nlist_n_un_n_name=no
13516 fi
13517 rm -f conftest.$ac_objext conftest.$ac_ext
13518 fi
13519 rm -f conftest.$ac_objext conftest.$ac_ext
13520 fi
13521 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13522 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13523 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13524
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13527 _ACEOF
13528
13529
13530 cat >>confdefs.h <<\_ACEOF
13531 #define NLIST_NAME_UNION 1
13532 _ACEOF
13533
13534 fi
13535
13536
13537 fi
13538
13539 done
13540
13541 fi
13542 done
13543
13544
13545 # Some definitions of getloadavg require that the program be installed setgid.
13546 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13547 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13548 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13559 #ifdef LDAV_PRIVILEGED
13560 Yowza Am I SETGID yet
13561 #endif
13562 _ACEOF
13563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13564 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13565 ac_cv_func_getloadavg_setgid=yes
13566 else
13567 ac_cv_func_getloadavg_setgid=no
13568 fi
13569 rm -f conftest*
13570
13571 fi
13572 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13573 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13574 if test $ac_cv_func_getloadavg_setgid = yes; then
13575 NEED_SETGID=true
13576
13577 cat >>confdefs.h <<\_ACEOF
13578 #define GETLOADAVG_PRIVILEGED 1
13579 _ACEOF
13580
13581 else
13582 NEED_SETGID=false
13583 fi
13584
13585 if test $ac_cv_func_getloadavg_setgid = yes; then
13586 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13587 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13588 if test "${ac_cv_group_kmem+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13592 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13593 # If we got an error (system does not support symlinks), try without -L.
13594 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13595 ac_cv_group_kmem=`echo $ac_ls_output \
13596 | sed -ne 's/[ ][ ]*/ /g;
13597 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13598 / /s/.* //;p;'`
13599
13600 fi
13601 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13602 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13603 KMEM_GROUP=$ac_cv_group_kmem
13604 fi
13605 if test "x$ac_save_LIBS" = x; then
13606 GETLOADAVG_LIBS=$LIBS
13607 else
13608 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13609 fi
13610 LIBS=$ac_save_LIBS
13611
13612
13613
13614 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13615 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13616 if test "${ac_cv_sys_largefile_source+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 while :; do
13620 ac_cv_sys_largefile_source=no
13621 cat >conftest.$ac_ext <<_ACEOF
13622 #line $LINENO "configure"
13623 /* confdefs.h. */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 #include <stdio.h>
13629 int
13630 main ()
13631 {
13632 return !fseeko;
13633 ;
13634 return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639 (eval $ac_compile) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -s conftest.$ac_objext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 break
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 fi
13655 rm -f conftest.$ac_objext conftest.$ac_ext
13656 cat >conftest.$ac_ext <<_ACEOF
13657 #line $LINENO "configure"
13658 /* confdefs.h. */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 #define _LARGEFILE_SOURCE 1
13664 #include <stdio.h>
13665 int
13666 main ()
13667 {
13668 return !fseeko;
13669 ;
13670 return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try='test -s conftest.$ac_objext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_sys_largefile_source=1; break
13686 else
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690 fi
13691 rm -f conftest.$ac_objext conftest.$ac_ext
13692 break
13693 done
13694 fi
13695 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13696 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13697 if test "$ac_cv_sys_largefile_source" != no; then
13698
13699 cat >>confdefs.h <<_ACEOF
13700 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13701 _ACEOF
13702
13703 fi
13704 rm -f conftest*
13705
13706 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13707 # in glibc 2.1.3, but that breaks too many other things.
13708 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13709 echo "$as_me:$LINENO: checking for fseeko" >&5
13710 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13711 if test "${ac_cv_func_fseeko+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 cat >conftest.$ac_ext <<_ACEOF
13715 #line $LINENO "configure"
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 #include <stdio.h>
13722 int
13723 main ()
13724 {
13725 return fseeko && fseeko (stdin, 0, 0);
13726 ;
13727 return 0;
13728 }
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_func_fseeko=yes
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 ac_cv_func_fseeko=no
13748 fi
13749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13750 fi
13751 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13752 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13753 if test $ac_cv_func_fseeko = yes; then
13754
13755 cat >>confdefs.h <<\_ACEOF
13756 #define HAVE_FSEEKO 1
13757 _ACEOF
13758
13759 fi
13760
13761
13762 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13763 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13764 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767 # Use it with a single arg.
13768 cat >conftest.$ac_ext <<_ACEOF
13769 #line $LINENO "configure"
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13776 int
13777 main ()
13778 {
13779 getpgrp (0);
13780 ;
13781 return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786 (eval $ac_compile) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_func_getpgrp_void=no
13797 else
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_cv_func_getpgrp_void=yes
13802 fi
13803 rm -f conftest.$ac_objext conftest.$ac_ext
13804
13805 fi
13806 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13807 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13808 if test $ac_cv_func_getpgrp_void = yes; then
13809
13810 cat >>confdefs.h <<\_ACEOF
13811 #define GETPGRP_VOID 1
13812 _ACEOF
13813
13814 fi
13815
13816
13817 # UNIX98 PTYs.
13818
13819 for ac_func in grantpt
13820 do
13821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13822 echo "$as_me:$LINENO: checking for $ac_func" >&5
13823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13824 if eval "test \"\${$as_ac_var+set}\" = set"; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827 cat >conftest.$ac_ext <<_ACEOF
13828 #line $LINENO "configure"
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13838 #ifdef __STDC__
13839 # include <limits.h>
13840 #else
13841 # include <assert.h>
13842 #endif
13843 /* Override any gcc2 internal prototype to avoid an error. */
13844 #ifdef __cplusplus
13845 extern "C"
13846 {
13847 #endif
13848 /* We use char because int might match the return type of a gcc2
13849 builtin and then its argument prototype would still apply. */
13850 char $ac_func ();
13851 /* The GNU C library defines this for functions which it implements
13852 to always fail with ENOSYS. Some functions are actually named
13853 something starting with __ and the normal name is an alias. */
13854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13855 choke me
13856 #else
13857 char (*f) () = $ac_func;
13858 #endif
13859 #ifdef __cplusplus
13860 }
13861 #endif
13862
13863 int
13864 main ()
13865 {
13866 return f != $ac_func;
13867 ;
13868 return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873 (eval $ac_link) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } &&
13877 { ac_try='test -s conftest$ac_exeext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 eval "$as_ac_var=yes"
13884 else
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888 eval "$as_ac_var=no"
13889 fi
13890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13891 fi
13892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13894 if test `eval echo '${'$as_ac_var'}'` = yes; then
13895 cat >>confdefs.h <<_ACEOF
13896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13897 _ACEOF
13898
13899 fi
13900 done
13901
13902
13903 # PTY-related GNU extensions.
13904
13905 for ac_func in getpt
13906 do
13907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13908 echo "$as_me:$LINENO: checking for $ac_func" >&5
13909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13910 if eval "test \"\${$as_ac_var+set}\" = set"; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913 cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 /* confdefs.h. */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 /* System header to define __stub macros and hopefully few prototypes,
13921 which can conflict with char $ac_func (); below.
13922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13923 <limits.h> exists even on freestanding compilers. */
13924 #ifdef __STDC__
13925 # include <limits.h>
13926 #else
13927 # include <assert.h>
13928 #endif
13929 /* Override any gcc2 internal prototype to avoid an error. */
13930 #ifdef __cplusplus
13931 extern "C"
13932 {
13933 #endif
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13936 char $ac_func ();
13937 /* The GNU C library defines this for functions which it implements
13938 to always fail with ENOSYS. Some functions are actually named
13939 something starting with __ and the normal name is an alias. */
13940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13941 choke me
13942 #else
13943 char (*f) () = $ac_func;
13944 #endif
13945 #ifdef __cplusplus
13946 }
13947 #endif
13948
13949 int
13950 main ()
13951 {
13952 return f != $ac_func;
13953 ;
13954 return 0;
13955 }
13956 _ACEOF
13957 rm -f conftest.$ac_objext conftest$ac_exeext
13958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13959 (eval $ac_link) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try='test -s conftest$ac_exeext'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 eval "$as_ac_var=yes"
13970 else
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974 eval "$as_ac_var=no"
13975 fi
13976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13977 fi
13978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13980 if test `eval echo '${'$as_ac_var'}'` = yes; then
13981 cat >>confdefs.h <<_ACEOF
13982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13983 _ACEOF
13984
13985 fi
13986 done
13987
13988
13989 # Check this now, so that we will NOT find the above functions in ncurses.
13990 # That is because we have not set up to link ncurses in lib-src.
13991 # It's better to believe a function is not available
13992 # than to expect to find it in ncurses.
13993
13994 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13995 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13996 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999 ac_check_lib_save_LIBS=$LIBS
14000 LIBS="-lncurses $LIBS"
14001 cat >conftest.$ac_ext <<_ACEOF
14002 #line $LINENO "configure"
14003 /* confdefs.h. */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008
14009 /* Override any gcc2 internal prototype to avoid an error. */
14010 #ifdef __cplusplus
14011 extern "C"
14012 #endif
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14015 char tparm ();
14016 int
14017 main ()
14018 {
14019 tparm ();
14020 ;
14021 return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext conftest$ac_exeext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14026 (eval $ac_link) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -s conftest$ac_exeext'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_cv_lib_ncurses_tparm=yes
14037 else
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 ac_cv_lib_ncurses_tparm=no
14042 fi
14043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14044 LIBS=$ac_check_lib_save_LIBS
14045 fi
14046 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14047 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14048 if test $ac_cv_lib_ncurses_tparm = yes; then
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_LIBNCURSES 1
14051 _ACEOF
14052
14053 LIBS="-lncurses $LIBS"
14054
14055 fi
14056
14057
14058 # Do we need the Hesiod library to provide the support routines?
14059 if test "$with_hesiod" = yes ; then
14060 # Don't set $LIBS here -- see comments above.
14061 resolv=no
14062 echo "$as_me:$LINENO: checking for res_send" >&5
14063 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14064 if test "${ac_cv_func_res_send+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char res_send (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
14078 #ifdef __STDC__
14079 # include <limits.h>
14080 #else
14081 # include <assert.h>
14082 #endif
14083 /* Override any gcc2 internal prototype to avoid an error. */
14084 #ifdef __cplusplus
14085 extern "C"
14086 {
14087 #endif
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14090 char res_send ();
14091 /* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094 #if defined (__stub_res_send) || defined (__stub___res_send)
14095 choke me
14096 #else
14097 char (*f) () = res_send;
14098 #endif
14099 #ifdef __cplusplus
14100 }
14101 #endif
14102
14103 int
14104 main ()
14105 {
14106 return f != res_send;
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_func_res_send=yes
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ac_cv_func_res_send=no
14129 fi
14130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14131 fi
14132 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14133 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14134 if test $ac_cv_func_res_send = yes; then
14135 :
14136 else
14137 echo "$as_me:$LINENO: checking for __res_send" >&5
14138 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14139 if test "${ac_cv_func___res_send+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142 cat >conftest.$ac_ext <<_ACEOF
14143 #line $LINENO "configure"
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 /* System header to define __stub macros and hopefully few prototypes,
14150 which can conflict with char __res_send (); below.
14151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14152 <limits.h> exists even on freestanding compilers. */
14153 #ifdef __STDC__
14154 # include <limits.h>
14155 #else
14156 # include <assert.h>
14157 #endif
14158 /* Override any gcc2 internal prototype to avoid an error. */
14159 #ifdef __cplusplus
14160 extern "C"
14161 {
14162 #endif
14163 /* We use char because int might match the return type of a gcc2
14164 builtin and then its argument prototype would still apply. */
14165 char __res_send ();
14166 /* The GNU C library defines this for functions which it implements
14167 to always fail with ENOSYS. Some functions are actually named
14168 something starting with __ and the normal name is an alias. */
14169 #if defined (__stub___res_send) || defined (__stub_____res_send)
14170 choke me
14171 #else
14172 char (*f) () = __res_send;
14173 #endif
14174 #ifdef __cplusplus
14175 }
14176 #endif
14177
14178 int
14179 main ()
14180 {
14181 return f != __res_send;
14182 ;
14183 return 0;
14184 }
14185 _ACEOF
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -s conftest$ac_exeext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_func___res_send=yes
14199 else
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203 ac_cv_func___res_send=no
14204 fi
14205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14206 fi
14207 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14208 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14209 if test $ac_cv_func___res_send = yes; then
14210 :
14211 else
14212 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14213 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14214 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 ac_check_lib_save_LIBS=$LIBS
14218 LIBS="-lresolv $LIBS"
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 /* confdefs.h. */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226
14227 /* Override any gcc2 internal prototype to avoid an error. */
14228 #ifdef __cplusplus
14229 extern "C"
14230 #endif
14231 /* We use char because int might match the return type of a gcc2
14232 builtin and then its argument prototype would still apply. */
14233 char res_send ();
14234 int
14235 main ()
14236 {
14237 res_send ();
14238 ;
14239 return 0;
14240 }
14241 _ACEOF
14242 rm -f conftest.$ac_objext conftest$ac_exeext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14244 (eval $ac_link) 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -s conftest$ac_exeext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14251 ac_status=$?
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_lib_resolv_res_send=yes
14255 else
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 ac_cv_lib_resolv_res_send=no
14260 fi
14261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14262 LIBS=$ac_check_lib_save_LIBS
14263 fi
14264 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14265 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14266 if test $ac_cv_lib_resolv_res_send = yes; then
14267 resolv=yes
14268 else
14269 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14270 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14271 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274 ac_check_lib_save_LIBS=$LIBS
14275 LIBS="-lresolv $LIBS"
14276 cat >conftest.$ac_ext <<_ACEOF
14277 #line $LINENO "configure"
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283
14284 /* Override any gcc2 internal prototype to avoid an error. */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14290 char __res_send ();
14291 int
14292 main ()
14293 {
14294 __res_send ();
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 rm -f conftest.$ac_objext conftest$ac_exeext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301 (eval $ac_link) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -s conftest$ac_exeext'
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_lib_resolv___res_send=yes
14312 else
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_cv_lib_resolv___res_send=no
14317 fi
14318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14319 LIBS=$ac_check_lib_save_LIBS
14320 fi
14321 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14322 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14323 if test $ac_cv_lib_resolv___res_send = yes; then
14324 resolv=yes
14325 fi
14326
14327 fi
14328
14329 fi
14330
14331 fi
14332
14333 if test "$resolv" = yes ; then
14334 RESOLVLIB=-lresolv
14335
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_LIBRESOLV 1
14338 _ACEOF
14339
14340 else
14341 RESOLVLIB=
14342 fi
14343 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14344 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14345 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348 cat >conftest.$ac_ext <<_ACEOF
14349 #line $LINENO "configure"
14350 /* confdefs.h. */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 /* System header to define __stub macros and hopefully few prototypes,
14356 which can conflict with char hes_getmailhost (); below.
14357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14358 <limits.h> exists even on freestanding compilers. */
14359 #ifdef __STDC__
14360 # include <limits.h>
14361 #else
14362 # include <assert.h>
14363 #endif
14364 /* Override any gcc2 internal prototype to avoid an error. */
14365 #ifdef __cplusplus
14366 extern "C"
14367 {
14368 #endif
14369 /* We use char because int might match the return type of a gcc2
14370 builtin and then its argument prototype would still apply. */
14371 char hes_getmailhost ();
14372 /* The GNU C library defines this for functions which it implements
14373 to always fail with ENOSYS. Some functions are actually named
14374 something starting with __ and the normal name is an alias. */
14375 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14376 choke me
14377 #else
14378 char (*f) () = hes_getmailhost;
14379 #endif
14380 #ifdef __cplusplus
14381 }
14382 #endif
14383
14384 int
14385 main ()
14386 {
14387 return f != hes_getmailhost;
14388 ;
14389 return 0;
14390 }
14391 _ACEOF
14392 rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } &&
14398 { ac_try='test -s conftest$ac_exeext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_func_hes_getmailhost=yes
14405 else
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_cv_func_hes_getmailhost=no
14410 fi
14411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14412 fi
14413 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14414 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14415 if test $ac_cv_func_hes_getmailhost = yes; then
14416 :
14417 else
14418 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14419 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14420 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423 ac_check_lib_save_LIBS=$LIBS
14424 LIBS="-lhesiod $RESOLVLIB $LIBS"
14425 cat >conftest.$ac_ext <<_ACEOF
14426 #line $LINENO "configure"
14427 /* confdefs.h. */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432
14433 /* Override any gcc2 internal prototype to avoid an error. */
14434 #ifdef __cplusplus
14435 extern "C"
14436 #endif
14437 /* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14439 char hes_getmailhost ();
14440 int
14441 main ()
14442 {
14443 hes_getmailhost ();
14444 ;
14445 return 0;
14446 }
14447 _ACEOF
14448 rm -f conftest.$ac_objext conftest$ac_exeext
14449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14450 (eval $ac_link) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -s conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_lib_hesiod_hes_getmailhost=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 ac_cv_lib_hesiod_hes_getmailhost=no
14466 fi
14467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14469 fi
14470 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14471 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14472 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14473
14474 cat >>confdefs.h <<\_ACEOF
14475 #define HAVE_LIBHESIOD 1
14476 _ACEOF
14477
14478 else
14479 :
14480 fi
14481
14482 fi
14483
14484 fi
14485
14486 # These tell us which Kerberos-related libraries to use.
14487 if test "${with_kerberos+set}" = set; then
14488
14489 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14490 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14491 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494 ac_check_lib_save_LIBS=$LIBS
14495 LIBS="-lcom_err $LIBS"
14496 cat >conftest.$ac_ext <<_ACEOF
14497 #line $LINENO "configure"
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503
14504 /* Override any gcc2 internal prototype to avoid an error. */
14505 #ifdef __cplusplus
14506 extern "C"
14507 #endif
14508 /* We use char because int might match the return type of a gcc2
14509 builtin and then its argument prototype would still apply. */
14510 char com_err ();
14511 int
14512 main ()
14513 {
14514 com_err ();
14515 ;
14516 return 0;
14517 }
14518 _ACEOF
14519 rm -f conftest.$ac_objext conftest$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521 (eval $ac_link) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -s conftest$ac_exeext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_lib_com_err_com_err=yes
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 ac_cv_lib_com_err_com_err=no
14537 fi
14538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14539 LIBS=$ac_check_lib_save_LIBS
14540 fi
14541 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14542 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14543 if test $ac_cv_lib_com_err_com_err = yes; then
14544 cat >>confdefs.h <<_ACEOF
14545 #define HAVE_LIBCOM_ERR 1
14546 _ACEOF
14547
14548 LIBS="-lcom_err $LIBS"
14549
14550 fi
14551
14552
14553 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14554 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14555 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 ac_check_lib_save_LIBS=$LIBS
14559 LIBS="-lk5crypto $LIBS"
14560 cat >conftest.$ac_ext <<_ACEOF
14561 #line $LINENO "configure"
14562 /* confdefs.h. */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567
14568 /* Override any gcc2 internal prototype to avoid an error. */
14569 #ifdef __cplusplus
14570 extern "C"
14571 #endif
14572 /* We use char because int might match the return type of a gcc2
14573 builtin and then its argument prototype would still apply. */
14574 char mit_des_cbc_encrypt ();
14575 int
14576 main ()
14577 {
14578 mit_des_cbc_encrypt ();
14579 ;
14580 return 0;
14581 }
14582 _ACEOF
14583 rm -f conftest.$ac_objext conftest$ac_exeext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14585 (eval $ac_link) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -s conftest$ac_exeext'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
14595 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14596 else
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14601 fi
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14604 fi
14605 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14606 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14607 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_LIBK5CRYPTO 1
14610 _ACEOF
14611
14612 LIBS="-lk5crypto $LIBS"
14613
14614 fi
14615
14616
14617 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14618 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14619 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622 ac_check_lib_save_LIBS=$LIBS
14623 LIBS="-lcrypto $LIBS"
14624 cat >conftest.$ac_ext <<_ACEOF
14625 #line $LINENO "configure"
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631
14632 /* Override any gcc2 internal prototype to avoid an error. */
14633 #ifdef __cplusplus
14634 extern "C"
14635 #endif
14636 /* We use char because int might match the return type of a gcc2
14637 builtin and then its argument prototype would still apply. */
14638 char mit_des_cbc_encrypt ();
14639 int
14640 main ()
14641 {
14642 mit_des_cbc_encrypt ();
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14665 fi
14666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14667 LIBS=$ac_check_lib_save_LIBS
14668 fi
14669 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14670 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14671 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673 #define HAVE_LIBCRYPTO 1
14674 _ACEOF
14675
14676 LIBS="-lcrypto $LIBS"
14677
14678 fi
14679
14680
14681 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14682 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14683 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686 ac_check_lib_save_LIBS=$LIBS
14687 LIBS="-lkrb5 $LIBS"
14688 cat >conftest.$ac_ext <<_ACEOF
14689 #line $LINENO "configure"
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695
14696 /* Override any gcc2 internal prototype to avoid an error. */
14697 #ifdef __cplusplus
14698 extern "C"
14699 #endif
14700 /* We use char because int might match the return type of a gcc2
14701 builtin and then its argument prototype would still apply. */
14702 char krb5_init_context ();
14703 int
14704 main ()
14705 {
14706 krb5_init_context ();
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713 (eval $ac_link) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -s conftest$ac_exeext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_cv_lib_krb5_krb5_init_context=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_cv_lib_krb5_krb5_init_context=no
14729 fi
14730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_check_lib_save_LIBS
14732 fi
14733 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14734 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14735 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_LIBKRB5 1
14738 _ACEOF
14739
14740 LIBS="-lkrb5 $LIBS"
14741
14742 fi
14743
14744 if test "${with_kerberos5+set}" != set; then
14745
14746 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14747 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14748 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751 ac_check_lib_save_LIBS=$LIBS
14752 LIBS="-ldes425 $LIBS"
14753 cat >conftest.$ac_ext <<_ACEOF
14754 #line $LINENO "configure"
14755 /* confdefs.h. */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760
14761 /* Override any gcc2 internal prototype to avoid an error. */
14762 #ifdef __cplusplus
14763 extern "C"
14764 #endif
14765 /* We use char because int might match the return type of a gcc2
14766 builtin and then its argument prototype would still apply. */
14767 char des_cbc_encrypt ();
14768 int
14769 main ()
14770 {
14771 des_cbc_encrypt ();
14772 ;
14773 return 0;
14774 }
14775 _ACEOF
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -s conftest$ac_exeext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_lib_des425_des_cbc_encrypt=yes
14789 else
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_cv_lib_des425_des_cbc_encrypt=no
14794 fi
14795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14796 LIBS=$ac_check_lib_save_LIBS
14797 fi
14798 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14799 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14800 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_LIBDES425 1
14803 _ACEOF
14804
14805 LIBS="-ldes425 $LIBS"
14806
14807 else
14808
14809 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14810 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14811 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814 ac_check_lib_save_LIBS=$LIBS
14815 LIBS="-ldes $LIBS"
14816 cat >conftest.$ac_ext <<_ACEOF
14817 #line $LINENO "configure"
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823
14824 /* Override any gcc2 internal prototype to avoid an error. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 /* We use char because int might match the return type of a gcc2
14829 builtin and then its argument prototype would still apply. */
14830 char des_cbc_encrypt ();
14831 int
14832 main ()
14833 {
14834 des_cbc_encrypt ();
14835 ;
14836 return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841 (eval $ac_link) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try='test -s conftest$ac_exeext'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_cv_lib_des_des_cbc_encrypt=yes
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 ac_cv_lib_des_des_cbc_encrypt=no
14857 fi
14858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14859 LIBS=$ac_check_lib_save_LIBS
14860 fi
14861 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14862 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14863 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_LIBDES 1
14866 _ACEOF
14867
14868 LIBS="-ldes $LIBS"
14869
14870 fi
14871
14872 fi
14873
14874
14875 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14876 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14877 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880 ac_check_lib_save_LIBS=$LIBS
14881 LIBS="-lkrb4 $LIBS"
14882 cat >conftest.$ac_ext <<_ACEOF
14883 #line $LINENO "configure"
14884 /* confdefs.h. */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889
14890 /* Override any gcc2 internal prototype to avoid an error. */
14891 #ifdef __cplusplus
14892 extern "C"
14893 #endif
14894 /* We use char because int might match the return type of a gcc2
14895 builtin and then its argument prototype would still apply. */
14896 char krb_get_cred ();
14897 int
14898 main ()
14899 {
14900 krb_get_cred ();
14901 ;
14902 return 0;
14903 }
14904 _ACEOF
14905 rm -f conftest.$ac_objext conftest$ac_exeext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_lib_krb4_krb_get_cred=yes
14918 else
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ac_cv_lib_krb4_krb_get_cred=no
14923 fi
14924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14926 fi
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14928 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14929 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14930 cat >>confdefs.h <<_ACEOF
14931 #define HAVE_LIBKRB4 1
14932 _ACEOF
14933
14934 LIBS="-lkrb4 $LIBS"
14935
14936 else
14937
14938 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14939 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14940 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943 ac_check_lib_save_LIBS=$LIBS
14944 LIBS="-lkrb $LIBS"
14945 cat >conftest.$ac_ext <<_ACEOF
14946 #line $LINENO "configure"
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952
14953 /* Override any gcc2 internal prototype to avoid an error. */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959 char krb_get_cred ();
14960 int
14961 main ()
14962 {
14963 krb_get_cred ();
14964 ;
14965 return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -s conftest$ac_exeext'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_cv_lib_krb_krb_get_cred=yes
14981 else
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14984
14985 ac_cv_lib_krb_krb_get_cred=no
14986 fi
14987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14989 fi
14990 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14991 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14992 if test $ac_cv_lib_krb_krb_get_cred = yes; then
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_LIBKRB 1
14995 _ACEOF
14996
14997 LIBS="-lkrb $LIBS"
14998
14999 fi
15000
15001 fi
15002
15003 fi
15004
15005 if test "${with_kerberos5+set}" = set; then
15006
15007 for ac_header in krb5.h
15008 do
15009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15011 echo "$as_me:$LINENO: checking for $ac_header" >&5
15012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 fi
15016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15018 else
15019 # Is the header compilable?
15020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15022 cat >conftest.$ac_ext <<_ACEOF
15023 #line $LINENO "configure"
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15030 #include <$ac_header>
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034 (eval $ac_compile) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_header_compiler=yes
15045 else
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 ac_header_compiler=no
15050 fi
15051 rm -f conftest.$ac_objext conftest.$ac_ext
15052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15053 echo "${ECHO_T}$ac_header_compiler" >&6
15054
15055 # Is the header present?
15056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15059 #line $LINENO "configure"
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 #include <$ac_header>
15066 _ACEOF
15067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } >/dev/null; then
15075 if test -s conftest.err; then
15076 ac_cpp_err=$ac_c_preproc_warn_flag
15077 else
15078 ac_cpp_err=
15079 fi
15080 else
15081 ac_cpp_err=yes
15082 fi
15083 if test -z "$ac_cpp_err"; then
15084 ac_header_preproc=yes
15085 else
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089 ac_header_preproc=no
15090 fi
15091 rm -f conftest.err conftest.$ac_ext
15092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15093 echo "${ECHO_T}$ac_header_preproc" >&6
15094
15095 # So? What about this header?
15096 case $ac_header_compiler:$ac_header_preproc in
15097 yes:no )
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15102 (
15103 cat <<\_ASBOX
15104 ## ------------------------------------ ##
15105 ## Report this to bug-autoconf@gnu.org. ##
15106 ## ------------------------------------ ##
15107 _ASBOX
15108 ) |
15109 sed "s/^/$as_me: WARNING: /" >&2
15110 ;;
15111 no:yes )
15112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15118 (
15119 cat <<\_ASBOX
15120 ## ------------------------------------ ##
15121 ## Report this to bug-autoconf@gnu.org. ##
15122 ## ------------------------------------ ##
15123 _ASBOX
15124 ) |
15125 sed "s/^/$as_me: WARNING: /" >&2
15126 ;;
15127 esac
15128 echo "$as_me:$LINENO: checking for $ac_header" >&5
15129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133 eval "$as_ac_Header=$ac_header_preproc"
15134 fi
15135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15137
15138 fi
15139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15140 cat >>confdefs.h <<_ACEOF
15141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15142 _ACEOF
15143
15144 fi
15145
15146 done
15147
15148 else
15149
15150 for ac_header in des.h
15151 do
15152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15154 echo "$as_me:$LINENO: checking for $ac_header" >&5
15155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 fi
15159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15161 else
15162 # Is the header compilable?
15163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15165 cat >conftest.$ac_ext <<_ACEOF
15166 #line $LINENO "configure"
15167 /* confdefs.h. */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172 $ac_includes_default
15173 #include <$ac_header>
15174 _ACEOF
15175 rm -f conftest.$ac_objext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177 (eval $ac_compile) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_header_compiler=no
15193 fi
15194 rm -f conftest.$ac_objext conftest.$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196 echo "${ECHO_T}$ac_header_compiler" >&6
15197
15198 # Is the header present?
15199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15201 cat >conftest.$ac_ext <<_ACEOF
15202 #line $LINENO "configure"
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <$ac_header>
15209 _ACEOF
15210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15212 ac_status=$?
15213 grep -v '^ *+' conftest.er1 >conftest.err
15214 rm -f conftest.er1
15215 cat conftest.err >&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } >/dev/null; then
15218 if test -s conftest.err; then
15219 ac_cpp_err=$ac_c_preproc_warn_flag
15220 else
15221 ac_cpp_err=
15222 fi
15223 else
15224 ac_cpp_err=yes
15225 fi
15226 if test -z "$ac_cpp_err"; then
15227 ac_header_preproc=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_header_preproc=no
15233 fi
15234 rm -f conftest.err conftest.$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15237
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc in
15240 yes:no )
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15245 (
15246 cat <<\_ASBOX
15247 ## ------------------------------------ ##
15248 ## Report this to bug-autoconf@gnu.org. ##
15249 ## ------------------------------------ ##
15250 _ASBOX
15251 ) |
15252 sed "s/^/$as_me: WARNING: /" >&2
15253 ;;
15254 no:yes )
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261 (
15262 cat <<\_ASBOX
15263 ## ------------------------------------ ##
15264 ## Report this to bug-autoconf@gnu.org. ##
15265 ## ------------------------------------ ##
15266 _ASBOX
15267 ) |
15268 sed "s/^/$as_me: WARNING: /" >&2
15269 ;;
15270 esac
15271 echo "$as_me:$LINENO: checking for $ac_header" >&5
15272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276 eval "$as_ac_Header=$ac_header_preproc"
15277 fi
15278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15280
15281 fi
15282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15283 cat >>confdefs.h <<_ACEOF
15284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15285 _ACEOF
15286
15287 else
15288
15289 for ac_header in kerberosIV/des.h
15290 do
15291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15293 echo "$as_me:$LINENO: checking for $ac_header" >&5
15294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 fi
15298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15300 else
15301 # Is the header compilable?
15302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15304 cat >conftest.$ac_ext <<_ACEOF
15305 #line $LINENO "configure"
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15312 #include <$ac_header>
15313 _ACEOF
15314 rm -f conftest.$ac_objext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15316 (eval $ac_compile) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_header_compiler=yes
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331 ac_header_compiler=no
15332 fi
15333 rm -f conftest.$ac_objext conftest.$ac_ext
15334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15335 echo "${ECHO_T}$ac_header_compiler" >&6
15336
15337 # Is the header present?
15338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15340 cat >conftest.$ac_ext <<_ACEOF
15341 #line $LINENO "configure"
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 #include <$ac_header>
15348 _ACEOF
15349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } >/dev/null; then
15357 if test -s conftest.err; then
15358 ac_cpp_err=$ac_c_preproc_warn_flag
15359 else
15360 ac_cpp_err=
15361 fi
15362 else
15363 ac_cpp_err=yes
15364 fi
15365 if test -z "$ac_cpp_err"; then
15366 ac_header_preproc=yes
15367 else
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371 ac_header_preproc=no
15372 fi
15373 rm -f conftest.err conftest.$ac_ext
15374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15375 echo "${ECHO_T}$ac_header_preproc" >&6
15376
15377 # So? What about this header?
15378 case $ac_header_compiler:$ac_header_preproc in
15379 yes:no )
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15384 (
15385 cat <<\_ASBOX
15386 ## ------------------------------------ ##
15387 ## Report this to bug-autoconf@gnu.org. ##
15388 ## ------------------------------------ ##
15389 _ASBOX
15390 ) |
15391 sed "s/^/$as_me: WARNING: /" >&2
15392 ;;
15393 no:yes )
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15400 (
15401 cat <<\_ASBOX
15402 ## ------------------------------------ ##
15403 ## Report this to bug-autoconf@gnu.org. ##
15404 ## ------------------------------------ ##
15405 _ASBOX
15406 ) |
15407 sed "s/^/$as_me: WARNING: /" >&2
15408 ;;
15409 esac
15410 echo "$as_me:$LINENO: checking for $ac_header" >&5
15411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 eval "$as_ac_Header=$ac_header_preproc"
15416 fi
15417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15419
15420 fi
15421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15424 _ACEOF
15425
15426 else
15427
15428 for ac_header in kerberos/des.h
15429 do
15430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15432 echo "$as_me:$LINENO: checking for $ac_header" >&5
15433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 fi
15437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15439 else
15440 # Is the header compilable?
15441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15443 cat >conftest.$ac_ext <<_ACEOF
15444 #line $LINENO "configure"
15445 /* confdefs.h. */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15450 $ac_includes_default
15451 #include <$ac_header>
15452 _ACEOF
15453 rm -f conftest.$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -s conftest.$ac_objext'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_header_compiler=yes
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 ac_header_compiler=no
15471 fi
15472 rm -f conftest.$ac_objext conftest.$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15474 echo "${ECHO_T}$ac_header_compiler" >&6
15475
15476 # Is the header present?
15477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15479 cat >conftest.$ac_ext <<_ACEOF
15480 #line $LINENO "configure"
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <$ac_header>
15487 _ACEOF
15488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev/null; then
15496 if test -s conftest.err; then
15497 ac_cpp_err=$ac_c_preproc_warn_flag
15498 else
15499 ac_cpp_err=
15500 fi
15501 else
15502 ac_cpp_err=yes
15503 fi
15504 if test -z "$ac_cpp_err"; then
15505 ac_header_preproc=yes
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_header_preproc=no
15511 fi
15512 rm -f conftest.err conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15514 echo "${ECHO_T}$ac_header_preproc" >&6
15515
15516 # So? What about this header?
15517 case $ac_header_compiler:$ac_header_preproc in
15518 yes:no )
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523 (
15524 cat <<\_ASBOX
15525 ## ------------------------------------ ##
15526 ## Report this to bug-autoconf@gnu.org. ##
15527 ## ------------------------------------ ##
15528 _ASBOX
15529 ) |
15530 sed "s/^/$as_me: WARNING: /" >&2
15531 ;;
15532 no:yes )
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15539 (
15540 cat <<\_ASBOX
15541 ## ------------------------------------ ##
15542 ## Report this to bug-autoconf@gnu.org. ##
15543 ## ------------------------------------ ##
15544 _ASBOX
15545 ) |
15546 sed "s/^/$as_me: WARNING: /" >&2
15547 ;;
15548 esac
15549 echo "$as_me:$LINENO: checking for $ac_header" >&5
15550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554 eval "$as_ac_Header=$ac_header_preproc"
15555 fi
15556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15558
15559 fi
15560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15561 cat >>confdefs.h <<_ACEOF
15562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15563 _ACEOF
15564
15565 fi
15566
15567 done
15568
15569 fi
15570
15571 done
15572
15573 fi
15574
15575 done
15576
15577
15578 for ac_header in krb.h
15579 do
15580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582 echo "$as_me:$LINENO: checking for $ac_header" >&5
15583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 fi
15587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15589 else
15590 # Is the header compilable?
15591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15593 cat >conftest.$ac_ext <<_ACEOF
15594 #line $LINENO "configure"
15595 /* confdefs.h. */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15601 #include <$ac_header>
15602 _ACEOF
15603 rm -f conftest.$ac_objext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15605 (eval $ac_compile) 2>&5
15606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_header_compiler=yes
15616 else
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15619
15620 ac_header_compiler=no
15621 fi
15622 rm -f conftest.$ac_objext conftest.$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6
15625
15626 # Is the header present?
15627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15629 cat >conftest.$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 #include <$ac_header>
15637 _ACEOF
15638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } >/dev/null; then
15646 if test -s conftest.err; then
15647 ac_cpp_err=$ac_c_preproc_warn_flag
15648 else
15649 ac_cpp_err=
15650 fi
15651 else
15652 ac_cpp_err=yes
15653 fi
15654 if test -z "$ac_cpp_err"; then
15655 ac_header_preproc=yes
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660 ac_header_preproc=no
15661 fi
15662 rm -f conftest.err conftest.$ac_ext
15663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6
15665
15666 # So? What about this header?
15667 case $ac_header_compiler:$ac_header_preproc in
15668 yes:no )
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673 (
15674 cat <<\_ASBOX
15675 ## ------------------------------------ ##
15676 ## Report this to bug-autoconf@gnu.org. ##
15677 ## ------------------------------------ ##
15678 _ASBOX
15679 ) |
15680 sed "s/^/$as_me: WARNING: /" >&2
15681 ;;
15682 no:yes )
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15689 (
15690 cat <<\_ASBOX
15691 ## ------------------------------------ ##
15692 ## Report this to bug-autoconf@gnu.org. ##
15693 ## ------------------------------------ ##
15694 _ASBOX
15695 ) |
15696 sed "s/^/$as_me: WARNING: /" >&2
15697 ;;
15698 esac
15699 echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 else
15704 eval "$as_ac_Header=$ac_header_preproc"
15705 fi
15706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15708
15709 fi
15710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15711 cat >>confdefs.h <<_ACEOF
15712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15713 _ACEOF
15714
15715 else
15716
15717 for ac_header in kerberosIV/krb.h
15718 do
15719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15721 echo "$as_me:$LINENO: checking for $ac_header" >&5
15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 fi
15726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15728 else
15729 # Is the header compilable?
15730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15732 cat >conftest.$ac_ext <<_ACEOF
15733 #line $LINENO "configure"
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15741 _ACEOF
15742 rm -f conftest.$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try='test -s conftest.$ac_objext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15755 else
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 ac_header_compiler=no
15760 fi
15761 rm -f conftest.$ac_objext conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15763 echo "${ECHO_T}$ac_header_compiler" >&6
15764
15765 # Is the header present?
15766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15768 cat >conftest.$ac_ext <<_ACEOF
15769 #line $LINENO "configure"
15770 /* confdefs.h. */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 #include <$ac_header>
15776 _ACEOF
15777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } >/dev/null; then
15785 if test -s conftest.err; then
15786 ac_cpp_err=$ac_c_preproc_warn_flag
15787 else
15788 ac_cpp_err=
15789 fi
15790 else
15791 ac_cpp_err=yes
15792 fi
15793 if test -z "$ac_cpp_err"; then
15794 ac_header_preproc=yes
15795 else
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15798
15799 ac_header_preproc=no
15800 fi
15801 rm -f conftest.err conftest.$ac_ext
15802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15803 echo "${ECHO_T}$ac_header_preproc" >&6
15804
15805 # So? What about this header?
15806 case $ac_header_compiler:$ac_header_preproc in
15807 yes:no )
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15812 (
15813 cat <<\_ASBOX
15814 ## ------------------------------------ ##
15815 ## Report this to bug-autoconf@gnu.org. ##
15816 ## ------------------------------------ ##
15817 _ASBOX
15818 ) |
15819 sed "s/^/$as_me: WARNING: /" >&2
15820 ;;
15821 no:yes )
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15828 (
15829 cat <<\_ASBOX
15830 ## ------------------------------------ ##
15831 ## Report this to bug-autoconf@gnu.org. ##
15832 ## ------------------------------------ ##
15833 _ASBOX
15834 ) |
15835 sed "s/^/$as_me: WARNING: /" >&2
15836 ;;
15837 esac
15838 echo "$as_me:$LINENO: checking for $ac_header" >&5
15839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 else
15843 eval "$as_ac_Header=$ac_header_preproc"
15844 fi
15845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15847
15848 fi
15849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15850 cat >>confdefs.h <<_ACEOF
15851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15852 _ACEOF
15853
15854 else
15855
15856 for ac_header in kerberos/krb.h
15857 do
15858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15860 echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 fi
15865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15867 else
15868 # Is the header compilable?
15869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15871 cat >conftest.$ac_ext <<_ACEOF
15872 #line $LINENO "configure"
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <$ac_header>
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_header_compiler=yes
15894 else
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898 ac_header_compiler=no
15899 fi
15900 rm -f conftest.$ac_objext conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15902 echo "${ECHO_T}$ac_header_compiler" >&6
15903
15904 # Is the header present?
15905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15907 cat >conftest.$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <$ac_header>
15915 _ACEOF
15916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } >/dev/null; then
15924 if test -s conftest.err; then
15925 ac_cpp_err=$ac_c_preproc_warn_flag
15926 else
15927 ac_cpp_err=
15928 fi
15929 else
15930 ac_cpp_err=yes
15931 fi
15932 if test -z "$ac_cpp_err"; then
15933 ac_header_preproc=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15937
15938 ac_header_preproc=no
15939 fi
15940 rm -f conftest.err conftest.$ac_ext
15941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15942 echo "${ECHO_T}$ac_header_preproc" >&6
15943
15944 # So? What about this header?
15945 case $ac_header_compiler:$ac_header_preproc in
15946 yes:no )
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15951 (
15952 cat <<\_ASBOX
15953 ## ------------------------------------ ##
15954 ## Report this to bug-autoconf@gnu.org. ##
15955 ## ------------------------------------ ##
15956 _ASBOX
15957 ) |
15958 sed "s/^/$as_me: WARNING: /" >&2
15959 ;;
15960 no:yes )
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15967 (
15968 cat <<\_ASBOX
15969 ## ------------------------------------ ##
15970 ## Report this to bug-autoconf@gnu.org. ##
15971 ## ------------------------------------ ##
15972 _ASBOX
15973 ) |
15974 sed "s/^/$as_me: WARNING: /" >&2
15975 ;;
15976 esac
15977 echo "$as_me:$LINENO: checking for $ac_header" >&5
15978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982 eval "$as_ac_Header=$ac_header_preproc"
15983 fi
15984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15986
15987 fi
15988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15989 cat >>confdefs.h <<_ACEOF
15990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15991 _ACEOF
15992
15993 fi
15994
15995 done
15996
15997 fi
15998
15999 done
16000
16001 fi
16002
16003 done
16004
16005 fi
16006
16007 for ac_header in com_err.h
16008 do
16009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16011 echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 fi
16016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16018 else
16019 # Is the header compilable?
16020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16022 cat >conftest.$ac_ext <<_ACEOF
16023 #line $LINENO "configure"
16024 /* confdefs.h. */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 $ac_includes_default
16030 #include <$ac_header>
16031 _ACEOF
16032 rm -f conftest.$ac_objext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16034 (eval $ac_compile) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_header_compiler=yes
16045 else
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 ac_header_compiler=no
16050 fi
16051 rm -f conftest.$ac_objext conftest.$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16053 echo "${ECHO_T}$ac_header_compiler" >&6
16054
16055 # Is the header present?
16056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16058 cat >conftest.$ac_ext <<_ACEOF
16059 #line $LINENO "configure"
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <$ac_header>
16066 _ACEOF
16067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 else
16078 ac_cpp_err=
16079 fi
16080 else
16081 ac_cpp_err=yes
16082 fi
16083 if test -z "$ac_cpp_err"; then
16084 ac_header_preproc=yes
16085 else
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 ac_header_preproc=no
16090 fi
16091 rm -f conftest.err conftest.$ac_ext
16092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16093 echo "${ECHO_T}$ac_header_preproc" >&6
16094
16095 # So? What about this header?
16096 case $ac_header_compiler:$ac_header_preproc in
16097 yes:no )
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16102 (
16103 cat <<\_ASBOX
16104 ## ------------------------------------ ##
16105 ## Report this to bug-autoconf@gnu.org. ##
16106 ## ------------------------------------ ##
16107 _ASBOX
16108 ) |
16109 sed "s/^/$as_me: WARNING: /" >&2
16110 ;;
16111 no:yes )
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 (
16119 cat <<\_ASBOX
16120 ## ------------------------------------ ##
16121 ## Report this to bug-autoconf@gnu.org. ##
16122 ## ------------------------------------ ##
16123 _ASBOX
16124 ) |
16125 sed "s/^/$as_me: WARNING: /" >&2
16126 ;;
16127 esac
16128 echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133 eval "$as_ac_Header=$ac_header_preproc"
16134 fi
16135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16137
16138 fi
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16142 _ACEOF
16143
16144 fi
16145
16146 done
16147
16148 fi
16149
16150 # Solaris requires -lintl if you want strerror (which calls dgettext)
16151 # to return localized messages.
16152
16153 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16154 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16155 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158 ac_check_lib_save_LIBS=$LIBS
16159 LIBS="-lintl $LIBS"
16160 cat >conftest.$ac_ext <<_ACEOF
16161 #line $LINENO "configure"
16162 /* confdefs.h. */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167
16168 /* Override any gcc2 internal prototype to avoid an error. */
16169 #ifdef __cplusplus
16170 extern "C"
16171 #endif
16172 /* We use char because int might match the return type of a gcc2
16173 builtin and then its argument prototype would still apply. */
16174 char dgettext ();
16175 int
16176 main ()
16177 {
16178 dgettext ();
16179 ;
16180 return 0;
16181 }
16182 _ACEOF
16183 rm -f conftest.$ac_objext conftest$ac_exeext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16185 (eval $ac_link) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try='test -s conftest$ac_exeext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_cv_lib_intl_dgettext=yes
16196 else
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16199
16200 ac_cv_lib_intl_dgettext=no
16201 fi
16202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16204 fi
16205 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16206 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16207 if test $ac_cv_lib_intl_dgettext = yes; then
16208 cat >>confdefs.h <<_ACEOF
16209 #define HAVE_LIBINTL 1
16210 _ACEOF
16211
16212 LIBS="-lintl $LIBS"
16213
16214 fi
16215
16216
16217 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16218 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16219 if test "${emacs_cv_localtime_cache+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 if test x$ac_cv_func_tzset = xyes; then
16223 if test "$cross_compiling" = yes; then
16224 # If we have tzset, assume the worst when cross-compiling.
16225 emacs_cv_localtime_cache=yes
16226 else
16227 cat >conftest.$ac_ext <<_ACEOF
16228 #line $LINENO "configure"
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <time.h>
16235 extern char **environ;
16236 unset_TZ ()
16237 {
16238 char **from, **to;
16239 for (to = from = environ; (*to = *from); from++)
16240 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16241 to++;
16242 }
16243 char TZ_GMT0[] = "TZ=GMT0";
16244 char TZ_PST8[] = "TZ=PST8";
16245 main()
16246 {
16247 time_t now = time ((time_t *) 0);
16248 int hour_GMT0, hour_unset;
16249 if (putenv (TZ_GMT0) != 0)
16250 exit (1);
16251 hour_GMT0 = localtime (&now)->tm_hour;
16252 unset_TZ ();
16253 hour_unset = localtime (&now)->tm_hour;
16254 if (putenv (TZ_PST8) != 0)
16255 exit (1);
16256 if (localtime (&now)->tm_hour == hour_GMT0)
16257 exit (1);
16258 unset_TZ ();
16259 if (localtime (&now)->tm_hour != hour_unset)
16260 exit (1);
16261 exit (0);
16262 }
16263 _ACEOF
16264 rm -f conftest$ac_exeext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16266 (eval $ac_link) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 emacs_cv_localtime_cache=no
16276 else
16277 echo "$as_me: program exited with status $ac_status" >&5
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 ( exit $ac_status )
16282 emacs_cv_localtime_cache=yes
16283 fi
16284 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16285 fi
16286 else
16287 # If we lack tzset, report that localtime does not cache TZ,
16288 # since we can't invalidate the cache if we don't have tzset.
16289 emacs_cv_localtime_cache=no
16290 fi
16291 fi
16292 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16293 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16294 if test $emacs_cv_localtime_cache = yes; then
16295
16296 cat >>confdefs.h <<\_ACEOF
16297 #define LOCALTIME_CACHE 1
16298 _ACEOF
16299
16300 fi
16301
16302 if test "x$HAVE_TIMEVAL" = xyes; then
16303
16304 for ac_func in gettimeofday
16305 do
16306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16307 echo "$as_me:$LINENO: checking for $ac_func" >&5
16308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16309 if eval "test \"\${$as_ac_var+set}\" = set"; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312 cat >conftest.$ac_ext <<_ACEOF
16313 #line $LINENO "configure"
16314 /* confdefs.h. */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319 /* System header to define __stub macros and hopefully few prototypes,
16320 which can conflict with char $ac_func (); below.
16321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16322 <limits.h> exists even on freestanding compilers. */
16323 #ifdef __STDC__
16324 # include <limits.h>
16325 #else
16326 # include <assert.h>
16327 #endif
16328 /* Override any gcc2 internal prototype to avoid an error. */
16329 #ifdef __cplusplus
16330 extern "C"
16331 {
16332 #endif
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16335 char $ac_func ();
16336 /* The GNU C library defines this for functions which it implements
16337 to always fail with ENOSYS. Some functions are actually named
16338 something starting with __ and the normal name is an alias. */
16339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16340 choke me
16341 #else
16342 char (*f) () = $ac_func;
16343 #endif
16344 #ifdef __cplusplus
16345 }
16346 #endif
16347
16348 int
16349 main ()
16350 {
16351 return f != $ac_func;
16352 ;
16353 return 0;
16354 }
16355 _ACEOF
16356 rm -f conftest.$ac_objext conftest$ac_exeext
16357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16358 (eval $ac_link) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -s conftest$ac_exeext'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 eval "$as_ac_var=yes"
16369 else
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373 eval "$as_ac_var=no"
16374 fi
16375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16376 fi
16377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16379 if test `eval echo '${'$as_ac_var'}'` = yes; then
16380 cat >>confdefs.h <<_ACEOF
16381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16382 _ACEOF
16383
16384 fi
16385 done
16386
16387 if test $ac_cv_func_gettimeofday = yes; then
16388 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16389 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16390 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393 cat >conftest.$ac_ext <<_ACEOF
16394 #line $LINENO "configure"
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400
16401 #ifdef TIME_WITH_SYS_TIME
16402 #include <sys/time.h>
16403 #include <time.h>
16404 #else
16405 #ifdef HAVE_SYS_TIME_H
16406 #include <sys/time.h>
16407 #else
16408 #include <time.h>
16409 #endif
16410 #endif
16411 int
16412 main ()
16413 {
16414 struct timeval time;
16415 gettimeofday (&time, 0);
16416 ;
16417 return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422 (eval $ac_compile) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 emacs_cv_gettimeofday_two_arguments=yes
16433 else
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437 emacs_cv_gettimeofday_two_arguments=no
16438 fi
16439 rm -f conftest.$ac_objext conftest.$ac_ext
16440 fi
16441 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16442 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16443 if test $emacs_cv_gettimeofday_two_arguments = no; then
16444
16445 cat >>confdefs.h <<\_ACEOF
16446 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16447 _ACEOF
16448
16449 fi
16450 fi
16451 fi
16452
16453 if test "$ac_cv_func_gettimeofday" = yes; then
16454 echo "$as_me:$LINENO: checking for struct timezone" >&5
16455 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16456 if test "${emacs_cv_struct_timezone+set}" = set; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 else
16459 cat >conftest.$ac_ext <<_ACEOF
16460 #line $LINENO "configure"
16461 /* confdefs.h. */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <sys/time.h>
16467 int
16468 main ()
16469 {
16470 struct timezone tz;
16471 ;
16472 return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 if test "$cross_compiling" = yes; then
16488 emacs_cv_struct_timezone=yes
16489 else
16490 cat >conftest.$ac_ext <<_ACEOF
16491 #line $LINENO "configure"
16492 /* confdefs.h. */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497
16498 #ifdef TIME_WITH_SYS_TIME
16499 #include <sys/time.h>
16500 #include <time.h>
16501 #else
16502 #ifdef HAVE_SYS_TIME_H
16503 #include <sys/time.h>
16504 #else
16505 #include <time.h>
16506 #endif
16507 #endif
16508 main () {
16509 struct timeval time;
16510 struct timezone dummy;
16511 exit (gettimeofday (&time, &dummy));
16512 }
16513 _ACEOF
16514 rm -f conftest$ac_exeext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16516 (eval $ac_link) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 emacs_cv_struct_timezone=yes
16526 else
16527 echo "$as_me: program exited with status $ac_status" >&5
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 ( exit $ac_status )
16532 emacs_cv_struct_timezone=no
16533 fi
16534 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16535 fi
16536 else
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540 emacs_cv_struct_timezone=no
16541 fi
16542 rm -f conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16545 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16546 fi
16547
16548 ok_so_far=yes
16549 echo "$as_me:$LINENO: checking for socket" >&5
16550 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16551 if test "${ac_cv_func_socket+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554 cat >conftest.$ac_ext <<_ACEOF
16555 #line $LINENO "configure"
16556 /* confdefs.h. */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 /* System header to define __stub macros and hopefully few prototypes,
16562 which can conflict with char socket (); below.
16563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564 <limits.h> exists even on freestanding compilers. */
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570 /* Override any gcc2 internal prototype to avoid an error. */
16571 #ifdef __cplusplus
16572 extern "C"
16573 {
16574 #endif
16575 /* We use char because int might match the return type of a gcc2
16576 builtin and then its argument prototype would still apply. */
16577 char socket ();
16578 /* The GNU C library defines this for functions which it implements
16579 to always fail with ENOSYS. Some functions are actually named
16580 something starting with __ and the normal name is an alias. */
16581 #if defined (__stub_socket) || defined (__stub___socket)
16582 choke me
16583 #else
16584 char (*f) () = socket;
16585 #endif
16586 #ifdef __cplusplus
16587 }
16588 #endif
16589
16590 int
16591 main ()
16592 {
16593 return f != socket;
16594 ;
16595 return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_func_socket=yes
16611 else
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ac_cv_func_socket=no
16616 fi
16617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16618 fi
16619 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16620 echo "${ECHO_T}$ac_cv_func_socket" >&6
16621 if test $ac_cv_func_socket = yes; then
16622 :
16623 else
16624 ok_so_far=no
16625 fi
16626
16627 if test $ok_so_far = yes; then
16628 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16629 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16630 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16631 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 fi
16634 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16635 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16636 else
16637 # Is the header compilable?
16638 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16639 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16641 #line $LINENO "configure"
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $ac_includes_default
16648 #include <netinet/in.h>
16649 _ACEOF
16650 rm -f conftest.$ac_objext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652 (eval $ac_compile) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_header_compiler=yes
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ac_header_compiler=no
16668 fi
16669 rm -f conftest.$ac_objext conftest.$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16671 echo "${ECHO_T}$ac_header_compiler" >&6
16672
16673 # Is the header present?
16674 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16675 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16676 cat >conftest.$ac_ext <<_ACEOF
16677 #line $LINENO "configure"
16678 /* confdefs.h. */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 #include <netinet/in.h>
16684 _ACEOF
16685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } >/dev/null; then
16693 if test -s conftest.err; then
16694 ac_cpp_err=$ac_c_preproc_warn_flag
16695 else
16696 ac_cpp_err=
16697 fi
16698 else
16699 ac_cpp_err=yes
16700 fi
16701 if test -z "$ac_cpp_err"; then
16702 ac_header_preproc=yes
16703 else
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16706
16707 ac_header_preproc=no
16708 fi
16709 rm -f conftest.err conftest.$ac_ext
16710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16711 echo "${ECHO_T}$ac_header_preproc" >&6
16712
16713 # So? What about this header?
16714 case $ac_header_compiler:$ac_header_preproc in
16715 yes:no )
16716 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16717 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16719 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16720 (
16721 cat <<\_ASBOX
16722 ## ------------------------------------ ##
16723 ## Report this to bug-autoconf@gnu.org. ##
16724 ## ------------------------------------ ##
16725 _ASBOX
16726 ) |
16727 sed "s/^/$as_me: WARNING: /" >&2
16728 ;;
16729 no:yes )
16730 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16731 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16733 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16736 (
16737 cat <<\_ASBOX
16738 ## ------------------------------------ ##
16739 ## Report this to bug-autoconf@gnu.org. ##
16740 ## ------------------------------------ ##
16741 _ASBOX
16742 ) |
16743 sed "s/^/$as_me: WARNING: /" >&2
16744 ;;
16745 esac
16746 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16747 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16748 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751 ac_cv_header_netinet_in_h=$ac_header_preproc
16752 fi
16753 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16754 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16755
16756 fi
16757 if test $ac_cv_header_netinet_in_h = yes; then
16758 :
16759 else
16760 ok_so_far=no
16761 fi
16762
16763
16764 fi
16765 if test $ok_so_far = yes; then
16766 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16767 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16768 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16769 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 fi
16772 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16773 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16774 else
16775 # Is the header compilable?
16776 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16777 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16778 cat >conftest.$ac_ext <<_ACEOF
16779 #line $LINENO "configure"
16780 /* confdefs.h. */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 $ac_includes_default
16786 #include <arpa/inet.h>
16787 _ACEOF
16788 rm -f conftest.$ac_objext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16790 (eval $ac_compile) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_header_compiler=yes
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ac_header_compiler=no
16806 fi
16807 rm -f conftest.$ac_objext conftest.$ac_ext
16808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16809 echo "${ECHO_T}$ac_header_compiler" >&6
16810
16811 # Is the header present?
16812 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16813 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16814 cat >conftest.$ac_ext <<_ACEOF
16815 #line $LINENO "configure"
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 #include <arpa/inet.h>
16822 _ACEOF
16823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } >/dev/null; then
16831 if test -s conftest.err; then
16832 ac_cpp_err=$ac_c_preproc_warn_flag
16833 else
16834 ac_cpp_err=
16835 fi
16836 else
16837 ac_cpp_err=yes
16838 fi
16839 if test -z "$ac_cpp_err"; then
16840 ac_header_preproc=yes
16841 else
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16844
16845 ac_header_preproc=no
16846 fi
16847 rm -f conftest.err conftest.$ac_ext
16848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16849 echo "${ECHO_T}$ac_header_preproc" >&6
16850
16851 # So? What about this header?
16852 case $ac_header_compiler:$ac_header_preproc in
16853 yes:no )
16854 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16855 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16857 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16858 (
16859 cat <<\_ASBOX
16860 ## ------------------------------------ ##
16861 ## Report this to bug-autoconf@gnu.org. ##
16862 ## ------------------------------------ ##
16863 _ASBOX
16864 ) |
16865 sed "s/^/$as_me: WARNING: /" >&2
16866 ;;
16867 no:yes )
16868 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16869 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16871 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16873 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16874 (
16875 cat <<\_ASBOX
16876 ## ------------------------------------ ##
16877 ## Report this to bug-autoconf@gnu.org. ##
16878 ## ------------------------------------ ##
16879 _ASBOX
16880 ) |
16881 sed "s/^/$as_me: WARNING: /" >&2
16882 ;;
16883 esac
16884 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16885 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16886 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 else
16889 ac_cv_header_arpa_inet_h=$ac_header_preproc
16890 fi
16891 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16892 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16893
16894 fi
16895 if test $ac_cv_header_arpa_inet_h = yes; then
16896 :
16897 else
16898 ok_so_far=no
16899 fi
16900
16901
16902 fi
16903 if test $ok_so_far = yes; then
16904
16905 cat >>confdefs.h <<\_ACEOF
16906 #define HAVE_INET_SOCKETS 1
16907 _ACEOF
16908
16909 fi
16910
16911 if test -f /usr/lpp/X11/bin/smt.exp; then
16912
16913 cat >>confdefs.h <<\_ACEOF
16914 #define HAVE_AIX_SMT_EXP 1
16915 _ACEOF
16916
16917 fi
16918
16919 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16920 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16921 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16922 echo "$as_me:$LINENO: result: yes" >&5
16923 echo "${ECHO_T}yes" >&6
16924
16925 cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_DEV_PTMX 1
16927 _ACEOF
16928
16929 else
16930 echo "$as_me:$LINENO: result: no" >&5
16931 echo "${ECHO_T}no" >&6
16932 fi
16933
16934 echo "$as_me:$LINENO: checking for pid_t" >&5
16935 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16936 if test "${ac_cv_type_pid_t+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939 cat >conftest.$ac_ext <<_ACEOF
16940 #line $LINENO "configure"
16941 /* confdefs.h. */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 $ac_includes_default
16947 int
16948 main ()
16949 {
16950 if ((pid_t *) 0)
16951 return 0;
16952 if (sizeof (pid_t))
16953 return 0;
16954 ;
16955 return 0;
16956 }
16957 _ACEOF
16958 rm -f conftest.$ac_objext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16960 (eval $ac_compile) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
16970 ac_cv_type_pid_t=yes
16971 else
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975 ac_cv_type_pid_t=no
16976 fi
16977 rm -f conftest.$ac_objext conftest.$ac_ext
16978 fi
16979 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16980 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16981 if test $ac_cv_type_pid_t = yes; then
16982 :
16983 else
16984
16985 cat >>confdefs.h <<_ACEOF
16986 #define pid_t int
16987 _ACEOF
16988
16989 fi
16990
16991
16992
16993 for ac_header in unistd.h vfork.h
16994 do
16995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16997 echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 fi
17002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17004 else
17005 # Is the header compilable?
17006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17008 cat >conftest.$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 $ac_includes_default
17016 #include <$ac_header>
17017 _ACEOF
17018 rm -f conftest.$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020 (eval $ac_compile) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_header_compiler=yes
17031 else
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 ac_header_compiler=no
17036 fi
17037 rm -f conftest.$ac_objext conftest.$ac_ext
17038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17039 echo "${ECHO_T}$ac_header_compiler" >&6
17040
17041 # Is the header present?
17042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17044 cat >conftest.$ac_ext <<_ACEOF
17045 #line $LINENO "configure"
17046 /* confdefs.h. */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17051 #include <$ac_header>
17052 _ACEOF
17053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17055 ac_status=$?
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } >/dev/null; then
17061 if test -s conftest.err; then
17062 ac_cpp_err=$ac_c_preproc_warn_flag
17063 else
17064 ac_cpp_err=
17065 fi
17066 else
17067 ac_cpp_err=yes
17068 fi
17069 if test -z "$ac_cpp_err"; then
17070 ac_header_preproc=yes
17071 else
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 ac_header_preproc=no
17076 fi
17077 rm -f conftest.err conftest.$ac_ext
17078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17079 echo "${ECHO_T}$ac_header_preproc" >&6
17080
17081 # So? What about this header?
17082 case $ac_header_compiler:$ac_header_preproc in
17083 yes:no )
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17088 (
17089 cat <<\_ASBOX
17090 ## ------------------------------------ ##
17091 ## Report this to bug-autoconf@gnu.org. ##
17092 ## ------------------------------------ ##
17093 _ASBOX
17094 ) |
17095 sed "s/^/$as_me: WARNING: /" >&2
17096 ;;
17097 no:yes )
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17104 (
17105 cat <<\_ASBOX
17106 ## ------------------------------------ ##
17107 ## Report this to bug-autoconf@gnu.org. ##
17108 ## ------------------------------------ ##
17109 _ASBOX
17110 ) |
17111 sed "s/^/$as_me: WARNING: /" >&2
17112 ;;
17113 esac
17114 echo "$as_me:$LINENO: checking for $ac_header" >&5
17115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17117 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 else
17119 eval "$as_ac_Header=$ac_header_preproc"
17120 fi
17121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17123
17124 fi
17125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17126 cat >>confdefs.h <<_ACEOF
17127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17128 _ACEOF
17129
17130 fi
17131
17132 done
17133
17134
17135
17136 for ac_func in fork vfork
17137 do
17138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17139 echo "$as_me:$LINENO: checking for $ac_func" >&5
17140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17141 if eval "test \"\${$as_ac_var+set}\" = set"; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144 cat >conftest.$ac_ext <<_ACEOF
17145 #line $LINENO "configure"
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 /* System header to define __stub macros and hopefully few prototypes,
17152 which can conflict with char $ac_func (); below.
17153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17154 <limits.h> exists even on freestanding compilers. */
17155 #ifdef __STDC__
17156 # include <limits.h>
17157 #else
17158 # include <assert.h>
17159 #endif
17160 /* Override any gcc2 internal prototype to avoid an error. */
17161 #ifdef __cplusplus
17162 extern "C"
17163 {
17164 #endif
17165 /* We use char because int might match the return type of a gcc2
17166 builtin and then its argument prototype would still apply. */
17167 char $ac_func ();
17168 /* The GNU C library defines this for functions which it implements
17169 to always fail with ENOSYS. Some functions are actually named
17170 something starting with __ and the normal name is an alias. */
17171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17172 choke me
17173 #else
17174 char (*f) () = $ac_func;
17175 #endif
17176 #ifdef __cplusplus
17177 }
17178 #endif
17179
17180 int
17181 main ()
17182 {
17183 return f != $ac_func;
17184 ;
17185 return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190 (eval $ac_link) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -s conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 eval "$as_ac_var=yes"
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 eval "$as_ac_var=no"
17206 fi
17207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17208 fi
17209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17211 if test `eval echo '${'$as_ac_var'}'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17214 _ACEOF
17215
17216 fi
17217 done
17218
17219 if test "x$ac_cv_func_fork" = xyes; then
17220 echo "$as_me:$LINENO: checking for working fork" >&5
17221 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17222 if test "${ac_cv_func_fork_works+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225 if test "$cross_compiling" = yes; then
17226 ac_cv_func_fork_works=cross
17227 else
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* By Ruediger Kuhlmann. */
17230 #include <sys/types.h>
17231 #if HAVE_UNISTD_H
17232 # include <unistd.h>
17233 #endif
17234 /* Some systems only have a dummy stub for fork() */
17235 int main ()
17236 {
17237 if (fork() < 0)
17238 exit (1);
17239 exit (0);
17240 }
17241 _ACEOF
17242 rm -f conftest$ac_exeext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17244 (eval $ac_link) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_func_fork_works=yes
17254 else
17255 echo "$as_me: program exited with status $ac_status" >&5
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258
17259 ( exit $ac_status )
17260 ac_cv_func_fork_works=no
17261 fi
17262 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17263 fi
17264 fi
17265 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17266 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17267
17268 else
17269 ac_cv_func_fork_works=$ac_cv_func_fork
17270 fi
17271 if test "x$ac_cv_func_fork_works" = xcross; then
17272 case $host in
17273 *-*-amigaos* | *-*-msdosdjgpp*)
17274 # Override, as these systems have only a dummy fork() stub
17275 ac_cv_func_fork_works=no
17276 ;;
17277 *)
17278 ac_cv_func_fork_works=yes
17279 ;;
17280 esac
17281 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17282 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17283 fi
17284 ac_cv_func_vfork_works=$ac_cv_func_vfork
17285 if test "x$ac_cv_func_vfork" = xyes; then
17286 echo "$as_me:$LINENO: checking for working vfork" >&5
17287 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17288 if test "${ac_cv_func_vfork_works+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291 if test "$cross_compiling" = yes; then
17292 ac_cv_func_vfork_works=cross
17293 else
17294 cat >conftest.$ac_ext <<_ACEOF
17295 #line $LINENO "configure"
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 /* Thanks to Paul Eggert for this test. */
17302 #include <stdio.h>
17303 #include <stdlib.h>
17304 #include <sys/types.h>
17305 #include <sys/stat.h>
17306 #include <sys/wait.h>
17307 #if HAVE_UNISTD_H
17308 # include <unistd.h>
17309 #endif
17310 #if HAVE_VFORK_H
17311 # include <vfork.h>
17312 #endif
17313 /* On some sparc systems, changes by the child to local and incoming
17314 argument registers are propagated back to the parent. The compiler
17315 is told about this with #include <vfork.h>, but some compilers
17316 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17317 static variable whose address is put into a register that is
17318 clobbered by the vfork. */
17319 static void
17320 #ifdef __cplusplus
17321 sparc_address_test (int arg)
17322 # else
17323 sparc_address_test (arg) int arg;
17324 #endif
17325 {
17326 static pid_t child;
17327 if (!child) {
17328 child = vfork ();
17329 if (child < 0) {
17330 perror ("vfork");
17331 _exit(2);
17332 }
17333 if (!child) {
17334 arg = getpid();
17335 write(-1, "", 0);
17336 _exit (arg);
17337 }
17338 }
17339 }
17340
17341 int
17342 main ()
17343 {
17344 pid_t parent = getpid ();
17345 pid_t child;
17346
17347 sparc_address_test (0);
17348
17349 child = vfork ();
17350
17351 if (child == 0) {
17352 /* Here is another test for sparc vfork register problems. This
17353 test uses lots of local variables, at least as many local
17354 variables as main has allocated so far including compiler
17355 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17356 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17357 reuse the register of parent for one of the local variables,
17358 since it will think that parent can't possibly be used any more
17359 in this routine. Assigning to the local variable will thus
17360 munge parent in the parent process. */
17361 pid_t
17362 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17363 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17364 /* Convince the compiler that p..p7 are live; otherwise, it might
17365 use the same hardware register for all 8 local variables. */
17366 if (p != p1 || p != p2 || p != p3 || p != p4
17367 || p != p5 || p != p6 || p != p7)
17368 _exit(1);
17369
17370 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17371 from child file descriptors. If the child closes a descriptor
17372 before it execs or exits, this munges the parent's descriptor
17373 as well. Test for this by closing stdout in the child. */
17374 _exit(close(fileno(stdout)) != 0);
17375 } else {
17376 int status;
17377 struct stat st;
17378
17379 while (wait(&status) != child)
17380 ;
17381 exit(
17382 /* Was there some problem with vforking? */
17383 child < 0
17384
17385 /* Did the child fail? (This shouldn't happen.) */
17386 || status
17387
17388 /* Did the vfork/compiler bug occur? */
17389 || parent != getpid()
17390
17391 /* Did the file descriptor bug occur? */
17392 || fstat(fileno(stdout), &st) != 0
17393 );
17394 }
17395 }
17396 _ACEOF
17397 rm -f conftest$ac_exeext
17398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17399 (eval $ac_link) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_cv_func_vfork_works=yes
17409 else
17410 echo "$as_me: program exited with status $ac_status" >&5
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 ( exit $ac_status )
17415 ac_cv_func_vfork_works=no
17416 fi
17417 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17418 fi
17419 fi
17420 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17421 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17422
17423 fi;
17424 if test "x$ac_cv_func_fork_works" = xcross; then
17425 ac_cv_func_vfork_works=ac_cv_func_vfork
17426 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17427 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17428 fi
17429
17430 if test "x$ac_cv_func_vfork_works" = xyes; then
17431
17432 cat >>confdefs.h <<\_ACEOF
17433 #define HAVE_WORKING_VFORK 1
17434 _ACEOF
17435
17436 else
17437
17438 cat >>confdefs.h <<\_ACEOF
17439 #define vfork fork
17440 _ACEOF
17441
17442 fi
17443 if test "x$ac_cv_func_fork_works" = xyes; then
17444
17445 cat >>confdefs.h <<\_ACEOF
17446 #define HAVE_WORKING_FORK 1
17447 _ACEOF
17448
17449 fi
17450
17451
17452 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17453 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17454 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457 cat >conftest.$ac_ext <<_ACEOF
17458 #line $LINENO "configure"
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 #include <langinfo.h>
17465 int
17466 main ()
17467 {
17468 char* cs = nl_langinfo(CODESET);
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -s conftest$ac_exeext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 emacs_cv_langinfo_codeset=yes
17486 else
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17489
17490 emacs_cv_langinfo_codeset=no
17491 fi
17492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17493
17494 fi
17495 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17496 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17497 if test $emacs_cv_langinfo_codeset = yes; then
17498
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_LANGINFO_CODESET 1
17501 _ACEOF
17502
17503 fi
17504
17505 echo "$as_me:$LINENO: checking for size_t" >&5
17506 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17507 if test "${ac_cv_type_size_t+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510 cat >conftest.$ac_ext <<_ACEOF
17511 #line $LINENO "configure"
17512 /* confdefs.h. */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 $ac_includes_default
17518 int
17519 main ()
17520 {
17521 if ((size_t *) 0)
17522 return 0;
17523 if (sizeof (size_t))
17524 return 0;
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 rm -f conftest.$ac_objext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531 (eval $ac_compile) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -s conftest.$ac_objext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_type_size_t=yes
17542 else
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546 ac_cv_type_size_t=no
17547 fi
17548 rm -f conftest.$ac_objext conftest.$ac_ext
17549 fi
17550 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17551 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17552 if test $ac_cv_type_size_t = yes; then
17553
17554 cat >>confdefs.h <<_ACEOF
17555 #define HAVE_SIZE_T 1
17556 _ACEOF
17557
17558
17559 fi
17560
17561
17562 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17563 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17564 if test "${emacs_cv_c_restrict+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line $LINENO "configure"
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 void fred (int *restrict x);
17575 int
17576 main ()
17577 {
17578
17579 ;
17580 return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 emacs_cv_c_restrict=yes
17596 else
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 cat >conftest.$ac_ext <<_ACEOF
17601 #line $LINENO "configure"
17602 /* confdefs.h. */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 void fred (int *__restrict x);
17608 int
17609 main ()
17610 {
17611
17612 ;
17613 return 0;
17614 }
17615 _ACEOF
17616 rm -f conftest.$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -s conftest.$ac_objext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 emacs_cv_c_restrict=__restrict
17629 else
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 emacs_cv_c_restrict=no
17634 fi
17635 rm -f conftest.$ac_objext conftest.$ac_ext
17636 fi
17637 rm -f conftest.$ac_objext conftest.$ac_ext
17638 fi
17639 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17640 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17641 case "$emacs_cv_c_restrict" in
17642 yes) emacs_restrict=restrict;;
17643 no) emacs_restrict="";;
17644 *) emacs_restrict="$emacs_cv_c_restrict";;
17645 esac
17646 if test "$emacs_restrict" != __restrict; then
17647
17648 cat >>confdefs.h <<_ACEOF
17649 #define __restrict $emacs_restrict
17650 _ACEOF
17651
17652 fi
17653
17654 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17655 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17656 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659 cat >conftest.$ac_ext <<_ACEOF
17660 #line $LINENO "configure"
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 void fred (int x[__restrict]);
17667 int
17668 main ()
17669 {
17670
17671 ;
17672 return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; }; then
17687 emacs_cv_c_restrict_arr=yes
17688 else
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692 emacs_cv_c_restrict_arr=no
17693 fi
17694 rm -f conftest.$ac_objext conftest.$ac_ext
17695 fi
17696 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17697 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17698 if test "$emacs_cv_c_restrict_arr" = yes; then
17699
17700 cat >>confdefs.h <<\_ACEOF
17701 #define __restrict_arr __restrict
17702 _ACEOF
17703
17704 fi
17705
17706
17707 for ac_header in nlist.h
17708 do
17709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17711 echo "$as_me:$LINENO: checking for $ac_header" >&5
17712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 fi
17716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17718 else
17719 # Is the header compilable?
17720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17722 cat >conftest.$ac_ext <<_ACEOF
17723 #line $LINENO "configure"
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 $ac_includes_default
17730 #include <$ac_header>
17731 _ACEOF
17732 rm -f conftest.$ac_objext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734 (eval $ac_compile) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -s conftest.$ac_objext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_header_compiler=yes
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17748
17749 ac_header_compiler=no
17750 fi
17751 rm -f conftest.$ac_objext conftest.$ac_ext
17752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17753 echo "${ECHO_T}$ac_header_compiler" >&6
17754
17755 # Is the header present?
17756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17758 cat >conftest.$ac_ext <<_ACEOF
17759 #line $LINENO "configure"
17760 /* confdefs.h. */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 #include <$ac_header>
17766 _ACEOF
17767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } >/dev/null; then
17775 if test -s conftest.err; then
17776 ac_cpp_err=$ac_c_preproc_warn_flag
17777 else
17778 ac_cpp_err=
17779 fi
17780 else
17781 ac_cpp_err=yes
17782 fi
17783 if test -z "$ac_cpp_err"; then
17784 ac_header_preproc=yes
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 ac_header_preproc=no
17790 fi
17791 rm -f conftest.err conftest.$ac_ext
17792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17793 echo "${ECHO_T}$ac_header_preproc" >&6
17794
17795 # So? What about this header?
17796 case $ac_header_compiler:$ac_header_preproc in
17797 yes:no )
17798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17802 (
17803 cat <<\_ASBOX
17804 ## ------------------------------------ ##
17805 ## Report this to bug-autoconf@gnu.org. ##
17806 ## ------------------------------------ ##
17807 _ASBOX
17808 ) |
17809 sed "s/^/$as_me: WARNING: /" >&2
17810 ;;
17811 no:yes )
17812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17818 (
17819 cat <<\_ASBOX
17820 ## ------------------------------------ ##
17821 ## Report this to bug-autoconf@gnu.org. ##
17822 ## ------------------------------------ ##
17823 _ASBOX
17824 ) |
17825 sed "s/^/$as_me: WARNING: /" >&2
17826 ;;
17827 esac
17828 echo "$as_me:$LINENO: checking for $ac_header" >&5
17829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833 eval "$as_ac_Header=$ac_header_preproc"
17834 fi
17835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17837
17838 fi
17839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17840 cat >>confdefs.h <<_ACEOF
17841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17842 _ACEOF
17843
17844 cat >>confdefs.h <<\_ACEOF
17845 #define NLIST_STRUCT 1
17846 _ACEOF
17847
17848 fi
17849
17850 done
17851
17852
17853
17854
17855 # Set up the CFLAGS for real compilation, so we can substitute it.
17856 CFLAGS="$REAL_CFLAGS"
17857 CPPFLAGS="$REAL_CPPFLAGS"
17858
17859 #### Find out which version of Emacs this is.
17860 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17861 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17862 if test x"${version}" = x; then
17863 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17864 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17865 { (exit 1); exit 1; }; }
17866 fi
17867
17868 ### Specify what sort of things we'll be editing into Makefile and config.h.
17869 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905 cat >>confdefs.h <<_ACEOF
17906 #define EMACS_CONFIGURATION "${canonical}"
17907 _ACEOF
17908
17909
17910 cat >>confdefs.h <<_ACEOF
17911 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17912 _ACEOF
17913
17914
17915 cat >>confdefs.h <<_ACEOF
17916 #define config_machfile "${machfile}"
17917 _ACEOF
17918
17919
17920 cat >>confdefs.h <<_ACEOF
17921 #define config_opsysfile "${opsysfile}"
17922 _ACEOF
17923
17924
17925 cat >>confdefs.h <<_ACEOF
17926 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17927 _ACEOF
17928
17929
17930 cat >>confdefs.h <<_ACEOF
17931 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17932 _ACEOF
17933
17934
17935 cat >>confdefs.h <<_ACEOF
17936 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17937 _ACEOF
17938
17939
17940 cat >>confdefs.h <<_ACEOF
17941 #define UNEXEC_SRC ${UNEXEC_SRC}
17942 _ACEOF
17943
17944
17945 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17946
17947 cat >>confdefs.h <<\_ACEOF
17948 #define HAVE_X_WINDOWS 1
17949 _ACEOF
17950
17951 fi
17952 if test "${USE_X_TOOLKIT}" != "none" ; then
17953
17954 cat >>confdefs.h <<\_ACEOF
17955 #define USE_X_TOOLKIT 1
17956 _ACEOF
17957
17958 fi
17959 if test "${HAVE_X11}" = "yes" ; then
17960
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE_X11 1
17963 _ACEOF
17964
17965 fi
17966 if test "${HAVE_XFREE386}" = "yes" ; then
17967
17968 cat >>confdefs.h <<\_ACEOF
17969 #define HAVE_XFREE386 1
17970 _ACEOF
17971
17972 fi
17973 if test "${HAVE_MENUS}" = "yes" ; then
17974
17975 cat >>confdefs.h <<\_ACEOF
17976 #define HAVE_MENUS 1
17977 _ACEOF
17978
17979 fi
17980 if test "${GNU_MALLOC}" = "yes" ; then
17981
17982 cat >>confdefs.h <<\_ACEOF
17983 #define GNU_MALLOC 1
17984 _ACEOF
17985
17986 fi
17987 if test "${REL_ALLOC}" = "yes" ; then
17988
17989 cat >>confdefs.h <<\_ACEOF
17990 #define REL_ALLOC 1
17991 _ACEOF
17992
17993 fi
17994
17995
17996
17997
17998
17999 #### Report on what we decided to do.
18000 #### Report GTK as a toolkit, even if it doesn't use Xt.
18001 #### It makes printing result more understandable as using GTK sets
18002 #### toolkit_scroll_bars to yes by default.
18003 if test "${HAVE_GTK}" = "yes"; then
18004 USE_X_TOOLKIT=GTK
18005 fi
18006
18007 echo "
18008 Configured for \`${canonical}'.
18009
18010 Where should the build process find the source code? ${srcdir}
18011 What operating system and machine description files should Emacs use?
18012 \`${opsysfile}' and \`${machfile}'
18013 What compiler should emacs be built with? ${CC} ${CFLAGS}
18014 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18015 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18016 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18017 What window system should Emacs use? ${window_system}
18018 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18019
18020 if test -n "${x_includes}"; then
18021 echo " Where do we find X Windows header files? ${x_includes}"
18022 else
18023 echo " Where do we find X Windows header files? Standard dirs"
18024 fi
18025 if test -n "${x_libraries}"; then
18026 echo " Where do we find X Windows libraries? ${x_libraries}"
18027 else
18028 echo " Where do we find X Windows libraries? Standard dirs"
18029 fi
18030
18031 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18032 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18033 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18034 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18035 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18036 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18037 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18038 echo
18039
18040 # Remove any trailing slashes in these variables.
18041 test "${prefix}" != NONE &&
18042 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18043 test "${exec_prefix}" != NONE &&
18044 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18045
18046 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18047 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18048 ## from Makefile.c can correctly provide the arg `-traditional' to the
18049 ## C preprocessor.
18050
18051 cat >conftest.$ac_ext <<_ACEOF
18052 #line $LINENO "configure"
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 yes..yes
18059 _ACEOF
18060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18061 $EGREP "yes..yes" >/dev/null 2>&1; then
18062 CPP_NEED_TRADITIONAL=no
18063 else
18064 CPP_NEED_TRADITIONAL=yes
18065 fi
18066 rm -f conftest*
18067
18068
18069 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"
18070 ac_config_commands="$ac_config_commands default"
18071 cat >confcache <<\_ACEOF
18072 # This file is a shell script that caches the results of configure
18073 # tests run on this system so they can be shared between configure
18074 # scripts and configure runs, see configure's option --config-cache.
18075 # It is not useful on other systems. If it contains results you don't
18076 # want to keep, you may remove or edit it.
18077 #
18078 # config.status only pays attention to the cache file if you give it
18079 # the --recheck option to rerun configure.
18080 #
18081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18083 # following values.
18084
18085 _ACEOF
18086
18087 # The following way of writing the cache mishandles newlines in values,
18088 # but we know of no workaround that is simple, portable, and efficient.
18089 # So, don't put newlines in cache variables' values.
18090 # Ultrix sh set writes to stderr and can't be redirected directly,
18091 # and sets the high bit in the cache file unless we assign to the vars.
18092 {
18093 (set) 2>&1 |
18094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18095 *ac_space=\ *)
18096 # `set' does not quote correctly, so add quotes (double-quote
18097 # substitution turns \\\\ into \\, and sed turns \\ into \).
18098 sed -n \
18099 "s/'/'\\\\''/g;
18100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18101 ;;
18102 *)
18103 # `set' quotes correctly as required by POSIX, so do not add quotes.
18104 sed -n \
18105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18106 ;;
18107 esac;
18108 } |
18109 sed '
18110 t clear
18111 : clear
18112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18113 t end
18114 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18115 : end' >>confcache
18116 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18117 if test -w $cache_file; then
18118 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18119 cat confcache >$cache_file
18120 else
18121 echo "not updating unwritable cache $cache_file"
18122 fi
18123 fi
18124 rm -f confcache
18125
18126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18127 # Let make expand exec_prefix.
18128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18129
18130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18132 # trailing colons and then remove the whole line if VPATH becomes empty
18133 # (actually we leave an empty line to preserve line numbers).
18134 if test "x$srcdir" = x.; then
18135 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18136 s/:*\$(srcdir):*/:/;
18137 s/:*\${srcdir}:*/:/;
18138 s/:*@srcdir@:*/:/;
18139 s/^\([^=]*=[ ]*\):*/\1/;
18140 s/:*$//;
18141 s/^[^=]*=[ ]*$//;
18142 }'
18143 fi
18144
18145 DEFS=-DHAVE_CONFIG_H
18146
18147 ac_libobjs=
18148 ac_ltlibobjs=
18149 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18150 # 1. Remove the extension, and $U if already installed.
18151 ac_i=`echo "$ac_i" |
18152 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18153 # 2. Add them.
18154 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18155 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18156 done
18157 LIBOBJS=$ac_libobjs
18158
18159 LTLIBOBJS=$ac_ltlibobjs
18160
18161
18162
18163 : ${CONFIG_STATUS=./config.status}
18164 ac_clean_files_save=$ac_clean_files
18165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18166 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18167 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18168 cat >$CONFIG_STATUS <<_ACEOF
18169 #! $SHELL
18170 # Generated by $as_me.
18171 # Run this file to recreate the current configuration.
18172 # Compiler output produced by configure, useful for debugging
18173 # configure, is in config.log if it exists.
18174
18175 debug=false
18176 ac_cs_recheck=false
18177 ac_cs_silent=false
18178 SHELL=\${CONFIG_SHELL-$SHELL}
18179 _ACEOF
18180
18181 cat >>$CONFIG_STATUS <<\_ACEOF
18182 ## --------------------- ##
18183 ## M4sh Initialization. ##
18184 ## --------------------- ##
18185
18186 # Be Bourne compatible
18187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18188 emulate sh
18189 NULLCMD=:
18190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18191 # is contrary to our usage. Disable this feature.
18192 alias -g '${1+"$@"}'='"$@"'
18193 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18194 set -o posix
18195 fi
18196
18197 # Support unset when possible.
18198 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18199 as_unset=unset
18200 else
18201 as_unset=false
18202 fi
18203
18204
18205 # Work around bugs in pre-3.0 UWIN ksh.
18206 $as_unset ENV MAIL MAILPATH
18207 PS1='$ '
18208 PS2='> '
18209 PS4='+ '
18210
18211 # NLS nuisances.
18212 for as_var in \
18213 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18214 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18215 LC_TELEPHONE LC_TIME
18216 do
18217 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18218 eval $as_var=C; export $as_var
18219 else
18220 $as_unset $as_var
18221 fi
18222 done
18223
18224 # Required to use basename.
18225 if expr a : '\(a\)' >/dev/null 2>&1; then
18226 as_expr=expr
18227 else
18228 as_expr=false
18229 fi
18230
18231 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18232 as_basename=basename
18233 else
18234 as_basename=false
18235 fi
18236
18237
18238 # Name of the executable.
18239 as_me=`$as_basename "$0" ||
18240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18241 X"$0" : 'X\(//\)$' \| \
18242 X"$0" : 'X\(/\)$' \| \
18243 . : '\(.\)' 2>/dev/null ||
18244 echo X/"$0" |
18245 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18246 /^X\/\(\/\/\)$/{ s//\1/; q; }
18247 /^X\/\(\/\).*/{ s//\1/; q; }
18248 s/.*/./; q'`
18249
18250
18251 # PATH needs CR, and LINENO needs CR and PATH.
18252 # Avoid depending upon Character Ranges.
18253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18256 as_cr_digits='0123456789'
18257 as_cr_alnum=$as_cr_Letters$as_cr_digits
18258
18259 # The user is always right.
18260 if test "${PATH_SEPARATOR+set}" != set; then
18261 echo "#! /bin/sh" >conf$$.sh
18262 echo "exit 0" >>conf$$.sh
18263 chmod +x conf$$.sh
18264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18265 PATH_SEPARATOR=';'
18266 else
18267 PATH_SEPARATOR=:
18268 fi
18269 rm -f conf$$.sh
18270 fi
18271
18272
18273 as_lineno_1=$LINENO
18274 as_lineno_2=$LINENO
18275 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18276 test "x$as_lineno_1" != "x$as_lineno_2" &&
18277 test "x$as_lineno_3" = "x$as_lineno_2" || {
18278 # Find who we are. Look in the path if we contain no path at all
18279 # relative or not.
18280 case $0 in
18281 *[\\/]* ) as_myself=$0 ;;
18282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18283 for as_dir in $PATH
18284 do
18285 IFS=$as_save_IFS
18286 test -z "$as_dir" && as_dir=.
18287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18288 done
18289
18290 ;;
18291 esac
18292 # We did not find ourselves, most probably we were run as `sh COMMAND'
18293 # in which case we are not to be found in the path.
18294 if test "x$as_myself" = x; then
18295 as_myself=$0
18296 fi
18297 if test ! -f "$as_myself"; then
18298 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18299 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18300 { (exit 1); exit 1; }; }
18301 fi
18302 case $CONFIG_SHELL in
18303 '')
18304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18305 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18306 do
18307 IFS=$as_save_IFS
18308 test -z "$as_dir" && as_dir=.
18309 for as_base in sh bash ksh sh5; do
18310 case $as_dir in
18311 /*)
18312 if ("$as_dir/$as_base" -c '
18313 as_lineno_1=$LINENO
18314 as_lineno_2=$LINENO
18315 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18316 test "x$as_lineno_1" != "x$as_lineno_2" &&
18317 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18318 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18319 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18320 CONFIG_SHELL=$as_dir/$as_base
18321 export CONFIG_SHELL
18322 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18323 fi;;
18324 esac
18325 done
18326 done
18327 ;;
18328 esac
18329
18330 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18331 # uniformly replaced by the line number. The first 'sed' inserts a
18332 # line-number line before each line; the second 'sed' does the real
18333 # work. The second script uses 'N' to pair each line-number line
18334 # with the numbered line, and appends trailing '-' during
18335 # substitution so that $LINENO is not a special case at line end.
18336 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18337 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18338 sed '=' <$as_myself |
18339 sed '
18340 N
18341 s,$,-,
18342 : loop
18343 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18344 t loop
18345 s,-$,,
18346 s,^['$as_cr_digits']*\n,,
18347 ' >$as_me.lineno &&
18348 chmod +x $as_me.lineno ||
18349 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18350 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18351 { (exit 1); exit 1; }; }
18352
18353 # Don't try to exec as it changes $[0], causing all sort of problems
18354 # (the dirname of $[0] is not the place where we might find the
18355 # original and so on. Autoconf is especially sensible to this).
18356 . ./$as_me.lineno
18357 # Exit status is that of the last command.
18358 exit
18359 }
18360
18361
18362 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18363 *c*,-n*) ECHO_N= ECHO_C='
18364 ' ECHO_T=' ' ;;
18365 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18366 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18367 esac
18368
18369 if expr a : '\(a\)' >/dev/null 2>&1; then
18370 as_expr=expr
18371 else
18372 as_expr=false
18373 fi
18374
18375 rm -f conf$$ conf$$.exe conf$$.file
18376 echo >conf$$.file
18377 if ln -s conf$$.file conf$$ 2>/dev/null; then
18378 # We could just check for DJGPP; but this test a) works b) is more generic
18379 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18380 if test -f conf$$.exe; then
18381 # Don't use ln at all; we don't have any links
18382 as_ln_s='cp -p'
18383 else
18384 as_ln_s='ln -s'
18385 fi
18386 elif ln conf$$.file conf$$ 2>/dev/null; then
18387 as_ln_s=ln
18388 else
18389 as_ln_s='cp -p'
18390 fi
18391 rm -f conf$$ conf$$.exe conf$$.file
18392
18393 if mkdir -p . 2>/dev/null; then
18394 as_mkdir_p=:
18395 else
18396 as_mkdir_p=false
18397 fi
18398
18399 as_executable_p="test -f"
18400
18401 # Sed expression to map a string onto a valid CPP name.
18402 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18403
18404 # Sed expression to map a string onto a valid variable name.
18405 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18406
18407
18408 # IFS
18409 # We need space, tab and new line, in precisely that order.
18410 as_nl='
18411 '
18412 IFS=" $as_nl"
18413
18414 # CDPATH.
18415 $as_unset CDPATH
18416
18417 exec 6>&1
18418
18419 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18420 # report actual input values of CONFIG_FILES etc. instead of their
18421 # values after options handling. Logging --version etc. is OK.
18422 exec 5>>config.log
18423 {
18424 echo
18425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18426 ## Running $as_me. ##
18427 _ASBOX
18428 } >&5
18429 cat >&5 <<_CSEOF
18430
18431 This file was extended by $as_me, which was
18432 generated by GNU Autoconf 2.57. Invocation command line was
18433
18434 CONFIG_FILES = $CONFIG_FILES
18435 CONFIG_HEADERS = $CONFIG_HEADERS
18436 CONFIG_LINKS = $CONFIG_LINKS
18437 CONFIG_COMMANDS = $CONFIG_COMMANDS
18438 $ $0 $@
18439
18440 _CSEOF
18441 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18442 echo >&5
18443 _ACEOF
18444
18445 # Files that config.status was made for.
18446 if test -n "$ac_config_files"; then
18447 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18448 fi
18449
18450 if test -n "$ac_config_headers"; then
18451 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18452 fi
18453
18454 if test -n "$ac_config_links"; then
18455 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18456 fi
18457
18458 if test -n "$ac_config_commands"; then
18459 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18460 fi
18461
18462 cat >>$CONFIG_STATUS <<\_ACEOF
18463
18464 ac_cs_usage="\
18465 \`$as_me' instantiates files from templates according to the
18466 current configuration.
18467
18468 Usage: $0 [OPTIONS] [FILE]...
18469
18470 -h, --help print this help, then exit
18471 -V, --version print version number, then exit
18472 -q, --quiet do not print progress messages
18473 -d, --debug don't remove temporary files
18474 --recheck update $as_me by reconfiguring in the same conditions
18475 --file=FILE[:TEMPLATE]
18476 instantiate the configuration file FILE
18477 --header=FILE[:TEMPLATE]
18478 instantiate the configuration header FILE
18479
18480 Configuration files:
18481 $config_files
18482
18483 Configuration headers:
18484 $config_headers
18485
18486 Configuration commands:
18487 $config_commands
18488
18489 Report bugs to <bug-autoconf@gnu.org>."
18490 _ACEOF
18491
18492 cat >>$CONFIG_STATUS <<_ACEOF
18493 ac_cs_version="\\
18494 config.status
18495 configured by $0, generated by GNU Autoconf 2.57,
18496 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18497
18498 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18499 Free Software Foundation, Inc.
18500 This config.status script is free software; the Free Software Foundation
18501 gives unlimited permission to copy, distribute and modify it."
18502 srcdir=$srcdir
18503 INSTALL="$INSTALL"
18504 _ACEOF
18505
18506 cat >>$CONFIG_STATUS <<\_ACEOF
18507 # If no file are specified by the user, then we need to provide default
18508 # value. By we need to know if files were specified by the user.
18509 ac_need_defaults=:
18510 while test $# != 0
18511 do
18512 case $1 in
18513 --*=*)
18514 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18515 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18516 ac_shift=:
18517 ;;
18518 -*)
18519 ac_option=$1
18520 ac_optarg=$2
18521 ac_shift=shift
18522 ;;
18523 *) # This is not an option, so the user has probably given explicit
18524 # arguments.
18525 ac_option=$1
18526 ac_need_defaults=false;;
18527 esac
18528
18529 case $ac_option in
18530 # Handling of the options.
18531 _ACEOF
18532 cat >>$CONFIG_STATUS <<\_ACEOF
18533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18534 ac_cs_recheck=: ;;
18535 --version | --vers* | -V )
18536 echo "$ac_cs_version"; exit 0 ;;
18537 --he | --h)
18538 # Conflict between --help and --header
18539 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18540 Try \`$0 --help' for more information." >&5
18541 echo "$as_me: error: ambiguous option: $1
18542 Try \`$0 --help' for more information." >&2;}
18543 { (exit 1); exit 1; }; };;
18544 --help | --hel | -h )
18545 echo "$ac_cs_usage"; exit 0 ;;
18546 --debug | --d* | -d )
18547 debug=: ;;
18548 --file | --fil | --fi | --f )
18549 $ac_shift
18550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18551 ac_need_defaults=false;;
18552 --header | --heade | --head | --hea )
18553 $ac_shift
18554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18555 ac_need_defaults=false;;
18556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18558 ac_cs_silent=: ;;
18559
18560 # This is an error.
18561 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18562 Try \`$0 --help' for more information." >&5
18563 echo "$as_me: error: unrecognized option: $1
18564 Try \`$0 --help' for more information." >&2;}
18565 { (exit 1); exit 1; }; } ;;
18566
18567 *) ac_config_targets="$ac_config_targets $1" ;;
18568
18569 esac
18570 shift
18571 done
18572
18573 ac_configure_extra_args=
18574
18575 if $ac_cs_silent; then
18576 exec 6>/dev/null
18577 ac_configure_extra_args="$ac_configure_extra_args --silent"
18578 fi
18579
18580 _ACEOF
18581 cat >>$CONFIG_STATUS <<_ACEOF
18582 if \$ac_cs_recheck; then
18583 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18584 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18585 fi
18586
18587 _ACEOF
18588
18589 cat >>$CONFIG_STATUS <<_ACEOF
18590 #
18591 # INIT-COMMANDS section.
18592 #
18593
18594 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18595
18596 _ACEOF
18597
18598
18599
18600 cat >>$CONFIG_STATUS <<\_ACEOF
18601 for ac_config_target in $ac_config_targets
18602 do
18603 case "$ac_config_target" in
18604 # Handling of arguments.
18605 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18606 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18607 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18608 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18609 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18610 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18611 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18612 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18613 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18614 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18615 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18616 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18617 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18618 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18619 { (exit 1); exit 1; }; };;
18620 esac
18621 done
18622
18623 # If the user did not use the arguments to specify the items to instantiate,
18624 # then the envvar interface is used. Set only those that are not.
18625 # We use the long form for the default assignment because of an extremely
18626 # bizarre bug on SunOS 4.1.3.
18627 if $ac_need_defaults; then
18628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18629 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18631 fi
18632
18633 # Have a temporary directory for convenience. Make it in the build tree
18634 # simply because there is no reason to put it here, and in addition,
18635 # creating and moving files from /tmp can sometimes cause problems.
18636 # Create a temporary directory, and hook for its removal unless debugging.
18637 $debug ||
18638 {
18639 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18640 trap '{ (exit 1); exit 1; }' 1 2 13 15
18641 }
18642
18643 # Create a (secure) tmp directory for tmp files.
18644
18645 {
18646 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18647 test -n "$tmp" && test -d "$tmp"
18648 } ||
18649 {
18650 tmp=./confstat$$-$RANDOM
18651 (umask 077 && mkdir $tmp)
18652 } ||
18653 {
18654 echo "$me: cannot create a temporary directory in ." >&2
18655 { (exit 1); exit 1; }
18656 }
18657
18658 _ACEOF
18659
18660 cat >>$CONFIG_STATUS <<_ACEOF
18661
18662 #
18663 # CONFIG_FILES section.
18664 #
18665
18666 # No need to generate the scripts if there are no CONFIG_FILES.
18667 # This happens for instance when ./config.status config.h
18668 if test -n "\$CONFIG_FILES"; then
18669 # Protect against being on the right side of a sed subst in config.status.
18670 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18671 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18672 s,@SHELL@,$SHELL,;t t
18673 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18674 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18675 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18676 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18677 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18678 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18679 s,@exec_prefix@,$exec_prefix,;t t
18680 s,@prefix@,$prefix,;t t
18681 s,@program_transform_name@,$program_transform_name,;t t
18682 s,@bindir@,$bindir,;t t
18683 s,@sbindir@,$sbindir,;t t
18684 s,@libexecdir@,$libexecdir,;t t
18685 s,@datadir@,$datadir,;t t
18686 s,@sysconfdir@,$sysconfdir,;t t
18687 s,@sharedstatedir@,$sharedstatedir,;t t
18688 s,@localstatedir@,$localstatedir,;t t
18689 s,@libdir@,$libdir,;t t
18690 s,@includedir@,$includedir,;t t
18691 s,@oldincludedir@,$oldincludedir,;t t
18692 s,@infodir@,$infodir,;t t
18693 s,@mandir@,$mandir,;t t
18694 s,@build_alias@,$build_alias,;t t
18695 s,@host_alias@,$host_alias,;t t
18696 s,@target_alias@,$target_alias,;t t
18697 s,@DEFS@,$DEFS,;t t
18698 s,@ECHO_C@,$ECHO_C,;t t
18699 s,@ECHO_N@,$ECHO_N,;t t
18700 s,@ECHO_T@,$ECHO_T,;t t
18701 s,@LIBS@,$LIBS,;t t
18702 s,@build@,$build,;t t
18703 s,@build_cpu@,$build_cpu,;t t
18704 s,@build_vendor@,$build_vendor,;t t
18705 s,@build_os@,$build_os,;t t
18706 s,@host@,$host,;t t
18707 s,@host_cpu@,$host_cpu,;t t
18708 s,@host_vendor@,$host_vendor,;t t
18709 s,@host_os@,$host_os,;t t
18710 s,@CC@,$CC,;t t
18711 s,@CFLAGS@,$CFLAGS,;t t
18712 s,@LDFLAGS@,$LDFLAGS,;t t
18713 s,@CPPFLAGS@,$CPPFLAGS,;t t
18714 s,@ac_ct_CC@,$ac_ct_CC,;t t
18715 s,@EXEEXT@,$EXEEXT,;t t
18716 s,@OBJEXT@,$OBJEXT,;t t
18717 s,@LN_S@,$LN_S,;t t
18718 s,@CPP@,$CPP,;t t
18719 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18720 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18721 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18722 s,@RANLIB@,$RANLIB,;t t
18723 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18724 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18725 s,@EGREP@,$EGREP,;t t
18726 s,@LIBSOUND@,$LIBSOUND,;t t
18727 s,@SET_MAKE@,$SET_MAKE,;t t
18728 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18729 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18730 s,@GTK_LIBS@,$GTK_LIBS,;t t
18731 s,@ALLOCA@,$ALLOCA,;t t
18732 s,@liblockfile@,$liblockfile,;t t
18733 s,@LIBOBJS@,$LIBOBJS,;t t
18734 s,@NEED_SETGID@,$NEED_SETGID,;t t
18735 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18736 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18737 s,@version@,$version,;t t
18738 s,@configuration@,$configuration,;t t
18739 s,@canonical@,$canonical,;t t
18740 s,@srcdir@,$srcdir,;t t
18741 s,@lispdir@,$lispdir,;t t
18742 s,@locallisppath@,$locallisppath,;t t
18743 s,@lisppath@,$lisppath,;t t
18744 s,@x_default_search_path@,$x_default_search_path,;t t
18745 s,@etcdir@,$etcdir,;t t
18746 s,@archlibdir@,$archlibdir,;t t
18747 s,@docdir@,$docdir,;t t
18748 s,@bitmapdir@,$bitmapdir,;t t
18749 s,@gamedir@,$gamedir,;t t
18750 s,@gameuser@,$gameuser,;t t
18751 s,@c_switch_system@,$c_switch_system,;t t
18752 s,@c_switch_machine@,$c_switch_machine,;t t
18753 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18754 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18755 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18756 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18757 s,@machfile@,$machfile,;t t
18758 s,@opsysfile@,$opsysfile,;t t
18759 s,@carbon_appdir@,$carbon_appdir,;t t
18760 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18761 CEOF
18762
18763 _ACEOF
18764
18765 cat >>$CONFIG_STATUS <<\_ACEOF
18766 # Split the substitutions into bite-sized pieces for seds with
18767 # small command number limits, like on Digital OSF/1 and HP-UX.
18768 ac_max_sed_lines=48
18769 ac_sed_frag=1 # Number of current file.
18770 ac_beg=1 # First line for current file.
18771 ac_end=$ac_max_sed_lines # Line after last line for current file.
18772 ac_more_lines=:
18773 ac_sed_cmds=
18774 while $ac_more_lines; do
18775 if test $ac_beg -gt 1; then
18776 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18777 else
18778 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18779 fi
18780 if test ! -s $tmp/subs.frag; then
18781 ac_more_lines=false
18782 else
18783 # The purpose of the label and of the branching condition is to
18784 # speed up the sed processing (if there are no `@' at all, there
18785 # is no need to browse any of the substitutions).
18786 # These are the two extra sed commands mentioned above.
18787 (echo ':t
18788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18789 if test -z "$ac_sed_cmds"; then
18790 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18791 else
18792 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18793 fi
18794 ac_sed_frag=`expr $ac_sed_frag + 1`
18795 ac_beg=$ac_end
18796 ac_end=`expr $ac_end + $ac_max_sed_lines`
18797 fi
18798 done
18799 if test -z "$ac_sed_cmds"; then
18800 ac_sed_cmds=cat
18801 fi
18802 fi # test -n "$CONFIG_FILES"
18803
18804 _ACEOF
18805 cat >>$CONFIG_STATUS <<\_ACEOF
18806 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18808 case $ac_file in
18809 - | *:- | *:-:* ) # input from stdin
18810 cat >$tmp/stdin
18811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18815 * ) ac_file_in=$ac_file.in ;;
18816 esac
18817
18818 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18819 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18821 X"$ac_file" : 'X\(//\)[^/]' \| \
18822 X"$ac_file" : 'X\(//\)$' \| \
18823 X"$ac_file" : 'X\(/\)' \| \
18824 . : '\(.\)' 2>/dev/null ||
18825 echo X"$ac_file" |
18826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18828 /^X\(\/\/\)$/{ s//\1/; q; }
18829 /^X\(\/\).*/{ s//\1/; q; }
18830 s/.*/./; q'`
18831 { if $as_mkdir_p; then
18832 mkdir -p "$ac_dir"
18833 else
18834 as_dir="$ac_dir"
18835 as_dirs=
18836 while test ! -d "$as_dir"; do
18837 as_dirs="$as_dir $as_dirs"
18838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18840 X"$as_dir" : 'X\(//\)[^/]' \| \
18841 X"$as_dir" : 'X\(//\)$' \| \
18842 X"$as_dir" : 'X\(/\)' \| \
18843 . : '\(.\)' 2>/dev/null ||
18844 echo X"$as_dir" |
18845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18847 /^X\(\/\/\)$/{ s//\1/; q; }
18848 /^X\(\/\).*/{ s//\1/; q; }
18849 s/.*/./; q'`
18850 done
18851 test ! -n "$as_dirs" || mkdir $as_dirs
18852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18854 { (exit 1); exit 1; }; }; }
18855
18856 ac_builddir=.
18857
18858 if test "$ac_dir" != .; then
18859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18860 # A "../" for each directory in $ac_dir_suffix.
18861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18862 else
18863 ac_dir_suffix= ac_top_builddir=
18864 fi
18865
18866 case $srcdir in
18867 .) # No --srcdir option. We are building in place.
18868 ac_srcdir=.
18869 if test -z "$ac_top_builddir"; then
18870 ac_top_srcdir=.
18871 else
18872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18873 fi ;;
18874 [\\/]* | ?:[\\/]* ) # Absolute path.
18875 ac_srcdir=$srcdir$ac_dir_suffix;
18876 ac_top_srcdir=$srcdir ;;
18877 *) # Relative path.
18878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18880 esac
18881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18882 # absolute.
18883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18884 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18887
18888
18889 case $INSTALL in
18890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18891 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18892 esac
18893
18894 if test x"$ac_file" != x-; then
18895 { echo "$as_me:$LINENO: creating $ac_file" >&5
18896 echo "$as_me: creating $ac_file" >&6;}
18897 rm -f "$ac_file"
18898 fi
18899 # Let's still pretend it is `configure' which instantiates (i.e., don't
18900 # use $as_me), people would be surprised to read:
18901 # /* config.h. Generated by config.status. */
18902 if test x"$ac_file" = x-; then
18903 configure_input=
18904 else
18905 configure_input="$ac_file. "
18906 fi
18907 configure_input=$configure_input"Generated from `echo $ac_file_in |
18908 sed 's,.*/,,'` by configure."
18909
18910 # First look for the input files in the build tree, otherwise in the
18911 # src tree.
18912 ac_file_inputs=`IFS=:
18913 for f in $ac_file_in; do
18914 case $f in
18915 -) echo $tmp/stdin ;;
18916 [\\/$]*)
18917 # Absolute (can't be DOS-style, as IFS=:)
18918 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18919 echo "$as_me: error: cannot find input file: $f" >&2;}
18920 { (exit 1); exit 1; }; }
18921 echo $f;;
18922 *) # Relative
18923 if test -f "$f"; then
18924 # Build tree
18925 echo $f
18926 elif test -f "$srcdir/$f"; then
18927 # Source tree
18928 echo $srcdir/$f
18929 else
18930 # /dev/null tree
18931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18932 echo "$as_me: error: cannot find input file: $f" >&2;}
18933 { (exit 1); exit 1; }; }
18934 fi;;
18935 esac
18936 done` || { (exit 1); exit 1; }
18937 _ACEOF
18938 cat >>$CONFIG_STATUS <<_ACEOF
18939 sed "$ac_vpsub
18940 $extrasub
18941 _ACEOF
18942 cat >>$CONFIG_STATUS <<\_ACEOF
18943 :t
18944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18945 s,@configure_input@,$configure_input,;t t
18946 s,@srcdir@,$ac_srcdir,;t t
18947 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18948 s,@top_srcdir@,$ac_top_srcdir,;t t
18949 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18950 s,@builddir@,$ac_builddir,;t t
18951 s,@abs_builddir@,$ac_abs_builddir,;t t
18952 s,@top_builddir@,$ac_top_builddir,;t t
18953 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18954 s,@INSTALL@,$ac_INSTALL,;t t
18955 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18956 rm -f $tmp/stdin
18957 if test x"$ac_file" != x-; then
18958 mv $tmp/out $ac_file
18959 else
18960 cat $tmp/out
18961 rm -f $tmp/out
18962 fi
18963
18964 done
18965 _ACEOF
18966 cat >>$CONFIG_STATUS <<\_ACEOF
18967
18968 #
18969 # CONFIG_HEADER section.
18970 #
18971
18972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18974 #
18975 # ac_d sets the value in "#define NAME VALUE" lines.
18976 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18977 ac_dB='[ ].*$,\1#\2'
18978 ac_dC=' '
18979 ac_dD=',;t'
18980 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18981 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18982 ac_uB='$,\1#\2define\3'
18983 ac_uC=' '
18984 ac_uD=',;t'
18985
18986 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18988 case $ac_file in
18989 - | *:- | *:-:* ) # input from stdin
18990 cat >$tmp/stdin
18991 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18993 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18995 * ) ac_file_in=$ac_file.in ;;
18996 esac
18997
18998 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18999 echo "$as_me: creating $ac_file" >&6;}
19000
19001 # First look for the input files in the build tree, otherwise in the
19002 # src tree.
19003 ac_file_inputs=`IFS=:
19004 for f in $ac_file_in; do
19005 case $f in
19006 -) echo $tmp/stdin ;;
19007 [\\/$]*)
19008 # Absolute (can't be DOS-style, as IFS=:)
19009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19010 echo "$as_me: error: cannot find input file: $f" >&2;}
19011 { (exit 1); exit 1; }; }
19012 echo $f;;
19013 *) # Relative
19014 if test -f "$f"; then
19015 # Build tree
19016 echo $f
19017 elif test -f "$srcdir/$f"; then
19018 # Source tree
19019 echo $srcdir/$f
19020 else
19021 # /dev/null tree
19022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19023 echo "$as_me: error: cannot find input file: $f" >&2;}
19024 { (exit 1); exit 1; }; }
19025 fi;;
19026 esac
19027 done` || { (exit 1); exit 1; }
19028 # Remove the trailing spaces.
19029 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19030
19031 _ACEOF
19032
19033 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19034 # `conftest.undefs', that substitutes the proper values into
19035 # config.h.in to produce config.h. The first handles `#define'
19036 # templates, and the second `#undef' templates.
19037 # And first: Protect against being on the right side of a sed subst in
19038 # config.status. Protect against being in an unquoted here document
19039 # in config.status.
19040 rm -f conftest.defines conftest.undefs
19041 # Using a here document instead of a string reduces the quoting nightmare.
19042 # Putting comments in sed scripts is not portable.
19043 #
19044 # `end' is used to avoid that the second main sed command (meant for
19045 # 0-ary CPP macros) applies to n-ary macro definitions.
19046 # See the Autoconf documentation for `clear'.
19047 cat >confdef2sed.sed <<\_ACEOF
19048 s/[\\&,]/\\&/g
19049 s,[\\$`],\\&,g
19050 t clear
19051 : clear
19052 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19053 t end
19054 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19055 : end
19056 _ACEOF
19057 # If some macros were called several times there might be several times
19058 # the same #defines, which is useless. Nevertheless, we may not want to
19059 # sort them, since we want the *last* AC-DEFINE to be honored.
19060 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19061 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19062 rm -f confdef2sed.sed
19063
19064 # This sed command replaces #undef with comments. This is necessary, for
19065 # example, in the case of _POSIX_SOURCE, which is predefined and required
19066 # on some systems where configure will not decide to define it.
19067 cat >>conftest.undefs <<\_ACEOF
19068 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19069 _ACEOF
19070
19071 # Break up conftest.defines because some shells have a limit on the size
19072 # of here documents, and old seds have small limits too (100 cmds).
19073 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19074 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19075 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19076 echo ' :' >>$CONFIG_STATUS
19077 rm -f conftest.tail
19078 while grep . conftest.defines >/dev/null
19079 do
19080 # Write a limited-size here document to $tmp/defines.sed.
19081 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19082 # Speed up: don't consider the non `#define' lines.
19083 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19084 # Work around the forget-to-reset-the-flag bug.
19085 echo 't clr' >>$CONFIG_STATUS
19086 echo ': clr' >>$CONFIG_STATUS
19087 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19088 echo 'CEOF
19089 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19090 rm -f $tmp/in
19091 mv $tmp/out $tmp/in
19092 ' >>$CONFIG_STATUS
19093 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19094 rm -f conftest.defines
19095 mv conftest.tail conftest.defines
19096 done
19097 rm -f conftest.defines
19098 echo ' fi # grep' >>$CONFIG_STATUS
19099 echo >>$CONFIG_STATUS
19100
19101 # Break up conftest.undefs because some shells have a limit on the size
19102 # of here documents, and old seds have small limits too (100 cmds).
19103 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19104 rm -f conftest.tail
19105 while grep . conftest.undefs >/dev/null
19106 do
19107 # Write a limited-size here document to $tmp/undefs.sed.
19108 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19109 # Speed up: don't consider the non `#undef'
19110 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19111 # Work around the forget-to-reset-the-flag bug.
19112 echo 't clr' >>$CONFIG_STATUS
19113 echo ': clr' >>$CONFIG_STATUS
19114 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19115 echo 'CEOF
19116 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19117 rm -f $tmp/in
19118 mv $tmp/out $tmp/in
19119 ' >>$CONFIG_STATUS
19120 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19121 rm -f conftest.undefs
19122 mv conftest.tail conftest.undefs
19123 done
19124 rm -f conftest.undefs
19125
19126 cat >>$CONFIG_STATUS <<\_ACEOF
19127 # Let's still pretend it is `configure' which instantiates (i.e., don't
19128 # use $as_me), people would be surprised to read:
19129 # /* config.h. Generated by config.status. */
19130 if test x"$ac_file" = x-; then
19131 echo "/* Generated by configure. */" >$tmp/config.h
19132 else
19133 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19134 fi
19135 cat $tmp/in >>$tmp/config.h
19136 rm -f $tmp/in
19137 if test x"$ac_file" != x-; then
19138 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19139 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19140 echo "$as_me: $ac_file is unchanged" >&6;}
19141 else
19142 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19144 X"$ac_file" : 'X\(//\)[^/]' \| \
19145 X"$ac_file" : 'X\(//\)$' \| \
19146 X"$ac_file" : 'X\(/\)' \| \
19147 . : '\(.\)' 2>/dev/null ||
19148 echo X"$ac_file" |
19149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19151 /^X\(\/\/\)$/{ s//\1/; q; }
19152 /^X\(\/\).*/{ s//\1/; q; }
19153 s/.*/./; q'`
19154 { if $as_mkdir_p; then
19155 mkdir -p "$ac_dir"
19156 else
19157 as_dir="$ac_dir"
19158 as_dirs=
19159 while test ! -d "$as_dir"; do
19160 as_dirs="$as_dir $as_dirs"
19161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19163 X"$as_dir" : 'X\(//\)[^/]' \| \
19164 X"$as_dir" : 'X\(//\)$' \| \
19165 X"$as_dir" : 'X\(/\)' \| \
19166 . : '\(.\)' 2>/dev/null ||
19167 echo X"$as_dir" |
19168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19170 /^X\(\/\/\)$/{ s//\1/; q; }
19171 /^X\(\/\).*/{ s//\1/; q; }
19172 s/.*/./; q'`
19173 done
19174 test ! -n "$as_dirs" || mkdir $as_dirs
19175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19177 { (exit 1); exit 1; }; }; }
19178
19179 rm -f $ac_file
19180 mv $tmp/config.h $ac_file
19181 fi
19182 else
19183 cat $tmp/config.h
19184 rm -f $tmp/config.h
19185 fi
19186 done
19187 _ACEOF
19188 cat >>$CONFIG_STATUS <<\_ACEOF
19189
19190 #
19191 # CONFIG_COMMANDS section.
19192 #
19193 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19194 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19195 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19196 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19197 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19198 X"$ac_dest" : 'X\(//\)[^/]' \| \
19199 X"$ac_dest" : 'X\(//\)$' \| \
19200 X"$ac_dest" : 'X\(/\)' \| \
19201 . : '\(.\)' 2>/dev/null ||
19202 echo X"$ac_dest" |
19203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19205 /^X\(\/\/\)$/{ s//\1/; q; }
19206 /^X\(\/\).*/{ s//\1/; q; }
19207 s/.*/./; q'`
19208 ac_builddir=.
19209
19210 if test "$ac_dir" != .; then
19211 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19212 # A "../" for each directory in $ac_dir_suffix.
19213 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19214 else
19215 ac_dir_suffix= ac_top_builddir=
19216 fi
19217
19218 case $srcdir in
19219 .) # No --srcdir option. We are building in place.
19220 ac_srcdir=.
19221 if test -z "$ac_top_builddir"; then
19222 ac_top_srcdir=.
19223 else
19224 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19225 fi ;;
19226 [\\/]* | ?:[\\/]* ) # Absolute path.
19227 ac_srcdir=$srcdir$ac_dir_suffix;
19228 ac_top_srcdir=$srcdir ;;
19229 *) # Relative path.
19230 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19231 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19232 esac
19233 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19234 # absolute.
19235 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19236 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19237 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19238 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19239
19240
19241 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19242 echo "$as_me: executing $ac_dest commands" >&6;}
19243 case $ac_dest in
19244 default )
19245
19246 ### Make the necessary directories, if they don't exist.
19247 for dir in etc lisp ; do
19248 test -d ${dir} || mkdir ${dir}
19249 done
19250
19251 # Build src/Makefile from ${srcdir}/src/Makefile.c
19252 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19253 # This must be done after src/config.h is built, since we rely on that file.
19254
19255 # Now get this: Some word that is part of the ${srcdir} directory name
19256 # or the ${configuration} value might, just might, happen to be an
19257 # identifier like `sun4' or `i386' or something, and be predefined by
19258 # the C preprocessor to some helpful value like 1, or maybe the empty
19259 # string. Needless to say consequent macro substitutions are less
19260 # than conducive to the makefile finding the correct directory.
19261 undefs="`echo $top_srcdir $configuration $canonical |
19262 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19263 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19264 `"
19265
19266 echo creating src/epaths.h
19267 ${MAKE-make} epaths-force
19268
19269 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19270 # `..' to `. .' unless invoked with -traditional
19271
19272 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19273 CPPFLAGS="$CPPFLAGS -traditional"
19274 fi
19275
19276 echo creating lib-src/Makefile
19277 ( cd lib-src
19278 rm -f junk.c junk1.c junk2.c
19279 sed -e '/start of cpp stuff/q' \
19280 < Makefile.c > junk1.c
19281 sed -e '1,/start of cpp stuff/d'\
19282 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19283 < Makefile.c > junk.c
19284 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19285 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19286 cat junk1.c junk2.c > Makefile.new
19287 rm -f junk.c junk1.c junk2.c
19288 chmod 444 Makefile.new
19289 mv -f Makefile.new Makefile
19290 )
19291
19292 echo creating src/Makefile
19293 ( cd src
19294 rm -f junk.c junk1.c junk2.c
19295 sed -e '/start of cpp stuff/q' \
19296 < Makefile.c > junk1.c
19297 sed -e '1,/start of cpp stuff/d'\
19298 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19299 < Makefile.c > junk.c
19300 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19301 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19302 cat junk1.c junk2.c > Makefile.new
19303 rm -f junk.c junk1.c junk2.c
19304 chmod 444 Makefile.new
19305 mv -f Makefile.new Makefile
19306 )
19307
19308 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19309 echo creating src/.gdbinit
19310 echo source $srcdir/src/.gdbinit > src/.gdbinit
19311 fi
19312
19313 # This is how we know whether to re-run configure in certain cases.
19314 touch src/config.stamp
19315
19316 ;;
19317 esac
19318 done
19319 _ACEOF
19320
19321 cat >>$CONFIG_STATUS <<\_ACEOF
19322
19323 { (exit 0); exit 0; }
19324 _ACEOF
19325 chmod +x $CONFIG_STATUS
19326 ac_clean_files=$ac_clean_files_save
19327
19328
19329 # configure is writing to config.log, and then calls config.status.
19330 # config.status does its own redirection, appending to config.log.
19331 # Unfortunately, on DOS this fails, as config.log is still kept open
19332 # by configure, so config.status won't be able to write to it; its
19333 # output is simply discarded. So we exec the FD to /dev/null,
19334 # effectively closing config.log, so it can be properly (re)opened and
19335 # appended to by config.status. When coming back to configure, we
19336 # need to make the FD available again.
19337 if test "$no_create" != yes; then
19338 ac_cs_success=:
19339 ac_config_status_args=
19340 test "$silent" = yes &&
19341 ac_config_status_args="$ac_config_status_args --quiet"
19342 exec 5>/dev/null
19343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19344 exec 5>>config.log
19345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19346 # would make configure fail if this is the last instruction.
19347 $ac_cs_success || { (exit 1); exit 1; }
19348 fi
19349
19350