]> code.delx.au - gnu-emacs/blob - configure
Fixed --with-gtk
[gnu-emacs] / 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 machines
1894 m68k-motorola-sysv* | m68000-motorola-sysv* )
1895 machine=delta opsys=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1897 then
1898 if test -s /etc/167config
1899 then CC="gnucc -m68040"
1900 else CC="gnucc -m68881"
1901 fi
1902 else
1903 if test -z "`type gcc | grep 'not found'`"
1904 then CC=gcc
1905 else CC=cc
1906 fi
1907 fi
1908 ;;
1909 m88k-motorola-sysv4* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine=delta88k opsys=usg5-4-2
1915 ;;
1916 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1917 machine=delta88k opsys=usg5-3
1918 ;;
1919
1920 ## Dual machines
1921 m68*-dual-sysv* )
1922 machine=dual opsys=usg5-2
1923 ;;
1924 m68*-dual-uniplus* )
1925 machine=dual opsys=unipl5-2
1926 ;;
1927
1928 ## Elxsi 6400
1929 elxsi-elxsi-sysv* )
1930 machine=elxsi opsys=usg5-2
1931 ;;
1932
1933 ## Encore machines
1934 ns16k-encore-bsd* )
1935 machine=ns16000 opsys=umax
1936 ;;
1937
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1940
1941 ## Gould Power Node and NP1
1942 pn-gould-bsd4.2* )
1943 machine=gould opsys=bsd4-2
1944 ;;
1945 pn-gould-bsd4.3* )
1946 machine=gould opsys=bsd4-3
1947 ;;
1948 np1-gould-bsd* )
1949 machine=gould-np1 opsys=bsd4-3
1950 ;;
1951
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1954 m88k-harris-cxux* )
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1958 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1959 esac
1960 NON_GNU_CPP="/lib/cpp"
1961 ;;
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1963 m68k-harris-cxux* )
1964 machine=nh3000 opsys=cxux
1965 ;;
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix )
1968 machine=nh6000 opsys=powerunix
1969 NON_GNU_CPP="cc -Xo -E -P"
1970 ;;
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1-hitachi-hiuxmpp* )
1973 machine=sr2k opsys=hiuxmpp
1974 ;;
1975 hppa1.1-hitachi-hiuxwe2* )
1976 machine=sr2k opsys=hiuxwe2
1977 ;;
1978 ## Honeywell XPS100
1979 xps*-honeywell-sysv* )
1980 machine=xps100 opsys=usg5-2
1981 ;;
1982
1983 ## HP 9000 series 200 or 300
1984 m68*-hp-bsd* )
1985 machine=hp9000s300 opsys=bsd4-3
1986 ;;
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1988 m68*-hp-hpux* )
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1993 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1994 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1995 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1996 *) machine=hp9000s300 opsys=hpux ;;
1997 esac
1998 ;;
1999
2000 ## HP 9000 series 700 and 800, running HP/UX
2001 hppa*-hp-hpux7* )
2002 machine=hp800 opsys=hpux
2003 ;;
2004 hppa*-hp-hpux8* )
2005 machine=hp800 opsys=hpux8
2006 ;;
2007 hppa*-hp-hpux9shr* )
2008 machine=hp800 opsys=hpux9shr
2009 ;;
2010 hppa*-hp-hpux9* )
2011 machine=hp800 opsys=hpux9
2012 ;;
2013 hppa*-hp-hpux10* )
2014 machine=hp800 opsys=hpux10
2015 ;;
2016 hppa*-hp-hpux1[1-9]* )
2017 machine=hp800 opsys=hpux11
2018 ;;
2019
2020 hppa*-*-linux-gnu* )
2021 machine=hp800 opsys=gnu-linux
2022 ;;
2023
2024 ## HP 9000 series 700 and 800, running HP/UX
2025 hppa*-hp-hpux* )
2026 ## Cross-compilation? Nah!
2027 case "`uname -r`" in
2028 ## Someone's system reports A.B8.05 for this.
2029 ## I wonder what other possibilities there are.
2030 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2031 *.08.* ) machine=hp800 opsys=hpux8 ;;
2032 *.09.* ) machine=hp800 opsys=hpux9 ;;
2033 *) machine=hp800 opsys=hpux10 ;;
2034 esac
2035 ;;
2036 hppa*-*-nextstep* )
2037 machine=hp800 opsys=nextstep
2038 ;;
2039
2040 ## Orion machines
2041 orion-orion-bsd* )
2042 machine=orion opsys=bsd4-2
2043 ;;
2044 clipper-orion-bsd* )
2045 machine=orion105 opsys=bsd4-2
2046 ;;
2047
2048 ## IBM machines
2049 i[3456]86-ibm-aix1.1* )
2050 machine=ibmps2-aix opsys=usg5-2-2
2051 ;;
2052 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2053 machine=ibmps2-aix opsys=usg5-3
2054 ;;
2055 i370-ibm-aix*)
2056 machine=ibm370aix opsys=usg5-3
2057 ;;
2058 s390-*-linux-gnu)
2059 machine=ibms390 opsys=gnu-linux
2060 ;;
2061 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2062 machine=ibmrs6000 opsys=aix3-1
2063 ;;
2064 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2065 machine=ibmrs6000 opsys=aix3-2-5
2066 ;;
2067 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2068 machine=ibmrs6000 opsys=aix4-1
2069 ;;
2070 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2071 machine=ibmrs6000 opsys=aix4-2
2072 ;;
2073 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2074 machine=ibmrs6000 opsys=aix4-2
2075 ;;
2076 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2077 machine=ibmrs6000 opsys=aix4
2078 ;;
2079 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2080 machine=ibmrs6000 opsys=aix4-1
2081 ;;
2082 rs6000-ibm-aix* | powerpc-ibm-aix* )
2083 machine=ibmrs6000 opsys=aix3-2
2084 ;;
2085 romp-ibm-bsd4.3* )
2086 machine=ibmrt opsys=bsd4-3
2087 ;;
2088 romp-ibm-bsd4.2* )
2089 machine=ibmrt opsys=bsd4-2
2090 ;;
2091 romp-ibm-aos4.3* )
2092 machine=ibmrt opsys=bsd4-3
2093 ;;
2094 romp-ibm-aos4.2* )
2095 machine=ibmrt opsys=bsd4-2
2096 ;;
2097 romp-ibm-aos* )
2098 machine=ibmrt opsys=bsd4-3
2099 ;;
2100 romp-ibm-bsd* )
2101 machine=ibmrt opsys=bsd4-3
2102 ;;
2103 romp-ibm-aix* )
2104 machine=ibmrt-aix opsys=usg5-2-2
2105 ;;
2106
2107 ## Integrated Solutions `Optimum V'
2108 m68*-isi-bsd4.2* )
2109 machine=isi-ov opsys=bsd4-2
2110 ;;
2111 m68*-isi-bsd4.3* )
2112 machine=isi-ov opsys=bsd4-3
2113 ;;
2114
2115 ## Intel 386 machines where we do care about the manufacturer
2116 i[3456]86-intsys-sysv* )
2117 machine=is386 opsys=usg5-2-2
2118 ;;
2119
2120 ## Prime EXL
2121 i[3456]86-prime-sysv* )
2122 machine=i386 opsys=usg5-3
2123 ;;
2124
2125 ## Sequent Symmetry running Dynix
2126 i[3456]86-sequent-bsd* )
2127 machine=symmetry opsys=bsd4-3
2128 ;;
2129
2130 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2131 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2132 machine=sequent-ptx opsys=ptx4
2133 NON_GNU_CPP=/lib/cpp
2134 ;;
2135
2136 ## Sequent Symmetry running DYNIX/ptx
2137 ## Use the old cpp rather than the newer ANSI one.
2138 i[3456]86-sequent-ptx* )
2139 machine=sequent-ptx opsys=ptx
2140 NON_GNU_CPP="/lib/cpp"
2141 ;;
2142
2143 ## ncr machine running svr4.3.
2144 i[3456]86-ncr-sysv4.3 )
2145 machine=ncr386 opsys=usg5-4-3
2146 ;;
2147
2148 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2149 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2150 i[3456]86-ncr-sysv* )
2151 machine=ncr386 opsys=usg5-4-2
2152 ;;
2153
2154 ## Intel Paragon OSF/1
2155 i860-intel-osf1* )
2156 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2157 ;;
2158
2159 ## Intel 860
2160 i860-*-sysv4* )
2161 machine=i860 opsys=usg5-4
2162 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2163 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2164 ;;
2165
2166 ## Macintosh PowerPC
2167 powerpc*-*-linux-gnu* )
2168 machine=macppc opsys=gnu-linux
2169 ;;
2170
2171 ## Masscomp machines
2172 m68*-masscomp-rtu* )
2173 machine=masscomp opsys=rtu
2174 ;;
2175
2176 ## Megatest machines
2177 m68*-megatest-bsd* )
2178 machine=mega68 opsys=bsd4-2
2179 ;;
2180
2181 ## Workstations sold by MIPS
2182 ## This is not necessarily all workstations using the MIPS processor -
2183 ## Irises are produced by SGI, and DECstations by DEC.
2184
2185 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2186 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2187 ## it gives for choosing between the alternatives seems to be "Use
2188 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2189 ## the BSD world." I'll assume that these are instructions for
2190 ## handling two odd situations, and that every other situation
2191 ## should use mips.h and usg5-2-2, they being listed first.
2192 mips-mips-usg* )
2193 machine=mips4
2194 ## Fall through to the general code at the bottom to decide on the OS.
2195 ;;
2196 mips-mips-riscos4* )
2197 machine=mips4 opsys=bsd4-3
2198 NON_GNU_CC="cc -systype bsd43"
2199 NON_GNU_CPP="cc -systype bsd43 -E"
2200 ;;
2201 mips-mips-riscos5* )
2202 machine=mips4 opsys=riscos5
2203 NON_GNU_CC="cc -systype bsd43"
2204 NON_GNU_CPP="cc -systype bsd43 -E"
2205 ;;
2206 mips-mips-bsd* )
2207 machine=mips opsys=bsd4-3
2208 ;;
2209 mips-mips-* )
2210 machine=mips opsys=usg5-2-2
2211 ;;
2212
2213 ## NeXT
2214 m68*-next-* | m68k-*-nextstep* )
2215 machine=m68k opsys=nextstep
2216 ;;
2217
2218 ## The complete machine from National Semiconductor
2219 ns32k-ns-genix* )
2220 machine=ns32000 opsys=usg5-2
2221 ;;
2222
2223 ## NCR machines
2224 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2225 machine=tower32 opsys=usg5-2-2
2226 ;;
2227 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2228 machine=tower32v3 opsys=usg5-3
2229 ;;
2230
2231 ## NEC EWS4800
2232 mips-nec-sysv4*)
2233 machine=ews4800 opsys=ux4800
2234 ;;
2235
2236 ## Nixdorf Targon 31
2237 m68*-nixdorf-sysv* )
2238 machine=targon31 opsys=usg5-2-2
2239 ;;
2240
2241 ## Nu (TI or LMI)
2242 m68*-nu-sysv* )
2243 machine=nu opsys=usg5-2
2244 ;;
2245
2246 ## Plexus
2247 m68*-plexus-sysv* )
2248 machine=plexus opsys=usg5-2
2249 ;;
2250
2251 ## Pyramid machines
2252 ## I don't really have any idea what sort of processor the Pyramid has,
2253 ## so I'm assuming it is its own architecture.
2254 pyramid-pyramid-bsd* )
2255 machine=pyramid opsys=bsd4-2
2256 ;;
2257
2258 ## Sequent Balance
2259 ns32k-sequent-bsd4.2* )
2260 machine=sequent opsys=bsd4-2
2261 ;;
2262 ns32k-sequent-bsd4.3* )
2263 machine=sequent opsys=bsd4-3
2264 ;;
2265
2266 ## Siemens Nixdorf
2267 mips-siemens-sysv* | mips-sni-sysv*)
2268 machine=mips-siemens opsys=usg5-4
2269 NON_GNU_CC=/usr/ccs/bin/cc
2270 NON_GNU_CPP=/usr/ccs/lib/cpp
2271 ;;
2272
2273 ## Silicon Graphics machines
2274 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2275 m68*-sgi-iris3.5* )
2276 machine=irist opsys=iris3-5
2277 ;;
2278 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2279 machine=irist opsys=iris3-6
2280 ;;
2281 ## Iris 4D
2282 mips-sgi-irix3* )
2283 machine=iris4d opsys=irix3-3
2284 ;;
2285 mips-sgi-irix4* )
2286 machine=iris4d opsys=irix4-0
2287 ;;
2288 mips-sgi-irix6.5 )
2289 machine=iris4d opsys=irix6-5
2290 # Without defining _LANGUAGE_C, things get masked out in the headers
2291 # so that, for instance, grepping for `free' in stdlib.h fails and
2292 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2293 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2294 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2295 ;;
2296 mips-sgi-irix6* )
2297 machine=iris4d opsys=irix6-0
2298 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2299 # but presumably it does no harm.
2300 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2301 # -32 probably isn't necessary in later v.6s -- anyone know which?
2302 NON_GCC_TEST_OPTIONS=-32
2303 ;;
2304 mips-sgi-irix5.[01]* )
2305 machine=iris4d opsys=irix5-0
2306 ;;
2307 mips-sgi-irix5* | mips-sgi-irix* )
2308 machine=iris4d opsys=irix5-2
2309 ;;
2310
2311 ## SONY machines
2312 m68*-sony-bsd4.2* )
2313 machine=news opsys=bsd4-2
2314 ;;
2315 m68*-sony-bsd4.3* )
2316 machine=news opsys=bsd4-3
2317 ;;
2318 m68*-sony-newsos3* | m68*-sony-news3*)
2319 machine=news opsys=bsd4-3
2320 ;;
2321 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2322 machine=news-risc opsys=bsd4-3
2323 ;;
2324 mips-sony-newsos6* )
2325 machine=news-r6 opsys=newsos6
2326 ;;
2327 mips-sony-news* )
2328 machine=news-risc opsys=newsos5
2329 ;;
2330
2331 ## Stride
2332 m68*-stride-sysv* )
2333 machine=stride opsys=usg5-2
2334 ;;
2335
2336 ## Suns
2337 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2338 machine=sparc opsys=gnu-linux
2339 ;;
2340
2341 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2342 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2343 | rs6000-*-solaris2*)
2344 case "${canonical}" in
2345 m68*-sunos1* ) machine=sun1 ;;
2346 m68*-sunos2* ) machine=sun2 ;;
2347 m68* ) machine=sun3 ;;
2348 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2349 i[3456]86-*-* ) machine=intel386 ;;
2350 powerpcle* ) machine=powerpcle ;;
2351 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2352 sparc* ) machine=sparc ;;
2353 * ) unported=yes ;;
2354 esac
2355 case "${canonical}" in
2356 ## The Sun386 didn't get past 4.0.
2357 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2358 *-sunos4.0* ) opsys=sunos4-0 ;;
2359 *-sunos4.1.[3-9]*noshare )
2360 ## This name is sunos413 instead of sunos4-1-3
2361 ## to avoid a file name conflict on MSDOS.
2362 opsys=sunos413
2363 NON_GNU_CPP=/usr/lib/cpp
2364 NON_GCC_TEST_OPTIONS=-Bstatic
2365 GCC_TEST_OPTIONS=-static
2366 ;;
2367 *-sunos4.1.[3-9]* | *-sunos4shr*)
2368 opsys=sunos4shr
2369 NON_GNU_CPP=/usr/lib/cpp
2370 ;;
2371 *-sunos4* | *-sunos )
2372 opsys=sunos4-1
2373 NON_GCC_TEST_OPTIONS=-Bstatic
2374 GCC_TEST_OPTIONS=-static
2375 ;;
2376 *-sunos5.3* | *-solaris2.3* )
2377 opsys=sol2-3
2378 NON_GNU_CPP=/usr/ccs/lib/cpp
2379 ;;
2380 *-sunos5.4* | *-solaris2.4* )
2381 opsys=sol2-4
2382 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 RANLIB="ar -ts"
2384 ;;
2385 *-sunos5.5* | *-solaris2.5* )
2386 opsys=sol2-5
2387 NON_GNU_CPP=/usr/ccs/lib/cpp
2388 RANLIB="ar -ts"
2389 ;;
2390 *-sunos5.6* | *-solaris2.6* )
2391 opsys=sol2-6
2392 NON_GNU_CPP=/usr/ccs/lib/cpp
2393 RANLIB="ar -ts"
2394 ;;
2395 *-sunos5* | *-solaris* )
2396 opsys=sol2-6
2397 NON_GNU_CPP=/usr/ccs/lib/cpp
2398 ;;
2399 * ) opsys=bsd4-2 ;;
2400 esac
2401 ## Watch out for a compiler that we know will not work.
2402 case "${canonical}" in
2403 *-solaris* | *-sunos5* )
2404 if [ "x$CC" = x/usr/ucb/cc ]; then
2405 ## /usr/ucb/cc doesn't work;
2406 ## we should find some other compiler that does work.
2407 unset CC
2408 fi
2409 ;;
2410 *) ;;
2411 esac
2412 ;;
2413 sparc-*-nextstep* )
2414 machine=sparc opsys=nextstep
2415 ;;
2416
2417 ## Tadpole 68k
2418 m68*-tadpole-sysv* )
2419 machine=tad68k opsys=usg5-3
2420 ;;
2421
2422 ## Tahoe machines
2423 tahoe-tahoe-bsd4.2* )
2424 machine=tahoe opsys=bsd4-2
2425 ;;
2426 tahoe-tahoe-bsd4.3* )
2427 machine=tahoe opsys=bsd4-3
2428 ;;
2429
2430 ## Tandem Integrity S2
2431 mips-tandem-sysv* )
2432 machine=tandem-s2 opsys=usg5-3
2433 ;;
2434
2435 ## Tektronix XD88
2436 m88k-tektronix-sysv3* )
2437 machine=tekxd88 opsys=usg5-3
2438 ;;
2439
2440 ## Tektronix 16000 box (6130?)
2441 ns16k-tektronix-bsd* )
2442 machine=ns16000 opsys=bsd4-2
2443 ;;
2444 ## Tektronix 4300
2445 ## src/m/tek4300.h hints that this is a m68k machine.
2446 m68*-tektronix-bsd* )
2447 machine=tek4300 opsys=bsd4-3
2448 ;;
2449
2450 ## Titan P2 or P3
2451 ## We seem to have lost the machine-description file titan.h!
2452 titan-titan-sysv* )
2453 machine=titan opsys=usg5-3
2454 ;;
2455
2456 ## Ustation E30 (SS5E)
2457 m68*-unisys-uniplus* )
2458 machine=ustation opsystem=unipl5-2
2459 ;;
2460
2461 ## Vaxen.
2462 vax-dec-* )
2463 machine=vax
2464 case "${canonical}" in
2465 *-bsd4.1* ) opsys=bsd4-1 ;;
2466 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2467 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2468 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2469 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2470 *-vms* ) opsys=vms ;;
2471 * ) unported=yes
2472 esac
2473 ;;
2474
2475 ## Whitechapel MG1
2476 ns16k-whitechapel-* )
2477 machine=mg1
2478 ## We don't know what sort of OS runs on these; we'll let the
2479 ## operating system guessing code below try.
2480 ;;
2481
2482 ## Wicat
2483 m68*-wicat-sysv* )
2484 machine=wicat opsys=usg5-2
2485 ;;
2486
2487 ## IA-64
2488 ia64*-*-linux* )
2489 machine=ia64 opsys=gnu-linux
2490 ;;
2491
2492 ## Intel 386 machines where we don't care about the manufacturer
2493 i[3456]86-*-* )
2494 machine=intel386
2495 case "${canonical}" in
2496 *-lynxos* ) opsys=lynxos ;;
2497 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2498 *-isc2.2* ) opsys=isc2-2 ;;
2499 *-isc4.0* ) opsys=isc4-0 ;;
2500 *-isc4.* ) opsys=isc4-1
2501 GCC_TEST_OPTIONS=-posix
2502 NON_GCC_TEST_OPTIONS=-Xp
2503 ;;
2504 *-isc* ) opsys=isc3-0 ;;
2505 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2506 *-esix* ) opsys=esix ;;
2507 *-xenix* ) opsys=xenix ;;
2508 *-linux-gnu* ) opsys=gnu-linux ;;
2509 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2510 *-sco3.2v5* ) opsys=sco5
2511 NON_GNU_CPP=/lib/cpp
2512 # Prevent -belf from being passed to $CPP.
2513 # /lib/cpp does not accept it.
2514 OVERRIDE_CPPFLAGS=" "
2515 ;;
2516 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2517 *-386bsd* ) opsys=386bsd ;;
2518 *-nextstep* ) opsys=nextstep ;;
2519 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2520 esac
2521 ;;
2522
2523 ## m68k Linux-based GNU system
2524 m68k-*-linux-gnu* )
2525 machine=m68k opsys=gnu-linux
2526 ;;
2527
2528 ## Mips Linux-based GNU system
2529 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2530 machine=mips opsys=gnu-linux
2531 ;;
2532
2533 ## UXP/DS
2534 sparc-fujitsu-sysv4* )
2535 machine=sparc opsys=uxpds
2536 NON_GNU_CPP=/usr/ccs/lib/cpp
2537 RANLIB="ar -ts"
2538 ;;
2539
2540 ## UXP/V
2541 f301-fujitsu-uxpv4.1)
2542 machine=f301 opsys=uxpv
2543 ;;
2544
2545 ## Darwin / Mac OS X
2546 powerpc-apple-darwin* )
2547 machine=powermac opsys=darwin
2548 # Define CPP as follows to make autoconf work correctly.
2549 CPP="cc -E -traditional-cpp"
2550 ;;
2551
2552 ## AMD x86-64 Linux-based GNU system
2553 x86_64-*-linux-gnu* )
2554 machine=amdx86-64 opsys=gnu-linux
2555 ;;
2556
2557 * )
2558 unported=yes
2559 ;;
2560 esac
2561
2562 ### If the code above didn't choose an operating system, just choose
2563 ### an operating system based on the configuration name. You really
2564 ### only want to use this when you have no idea what the right
2565 ### operating system is; if you know what operating systems a machine
2566 ### runs, it's cleaner to make it explicit in the case statement
2567 ### above.
2568 if test x"${opsys}" = x; then
2569 case "${canonical}" in
2570 *-gnu* ) opsys=gnu ;;
2571 *-bsd4.[01] ) opsys=bsd4-1 ;;
2572 *-bsd4.2 ) opsys=bsd4-2 ;;
2573 *-bsd4.3 ) opsys=bsd4-3 ;;
2574 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2575 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2576 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2577 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2578 *-sysv4.2uw* ) opsys=unixware ;;
2579 *-sysv4.1* | *-sysvr4.1* )
2580 NON_GNU_CPP=/usr/lib/cpp
2581 opsys=usg5-4 ;;
2582 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2583 if [ x$NON_GNU_CPP = x ]; then
2584 if [ -f /usr/ccs/lib/cpp ]; then
2585 NON_GNU_CPP=/usr/ccs/lib/cpp
2586 else
2587 NON_GNU_CPP=/lib/cpp
2588 fi
2589 fi
2590 opsys=usg5-4-2 ;;
2591 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2592 * )
2593 unported=yes
2594 ;;
2595 esac
2596 fi
2597
2598
2599
2600 if test $unported = yes; then
2601 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2602 Check \`etc/MACHINES' for recognized configuration names." >&5
2603 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2604 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2605 { (exit 1); exit 1; }; }
2606 fi
2607
2608 machfile="m/${machine}.h"
2609 opsysfile="s/${opsys}.h"
2610
2611
2612 #### Choose a compiler.
2613 test -n "$CC" && cc_specified=yes
2614
2615 # Save the value of CFLAGS that the user specified.
2616 SPECIFIED_CFLAGS="$CFLAGS"
2617
2618 case ${with_gcc} in
2619 "yes" ) CC="gcc" GCC=yes ;;
2620 "no" ) : ${CC=cc} ;;
2621 * )
2622 esac
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650 done
2651 done
2652
2653 fi
2654 fi
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657 echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6
2659 else
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2662 fi
2663
2664 fi
2665 if test -z "$ac_cv_prog_CC"; then
2666 ac_ct_CC=$CC
2667 # Extract the first word of "gcc", so it can be a program name with args.
2668 set dummy gcc; ac_word=$2
2669 echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_CC="gcc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690
2691 fi
2692 fi
2693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 echo "${ECHO_T}$ac_ct_CC" >&6
2697 else
2698 echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2700 fi
2701
2702 CC=$ac_ct_CC
2703 else
2704 CC="$ac_cv_prog_CC"
2705 fi
2706
2707 if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}cc; ac_word=$2
2711 echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_CC="${ac_tool_prefix}cc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 echo "$as_me:$LINENO: result: $CC" >&5
2738 echo "${ECHO_T}$CC" >&6
2739 else
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742 fi
2743
2744 fi
2745 if test -z "$ac_cv_prog_CC"; then
2746 ac_ct_CC=$CC
2747 # Extract the first word of "cc", so it can be a program name with args.
2748 set dummy cc; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_ac_ct_CC="cc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770
2771 fi
2772 fi
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776 echo "${ECHO_T}$ac_ct_CC" >&6
2777 else
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2780 fi
2781
2782 CC=$ac_ct_CC
2783 else
2784 CC="$ac_cv_prog_CC"
2785 fi
2786
2787 fi
2788 if test -z "$CC"; then
2789 # Extract the first word of "cc", so it can be a program name with args.
2790 set dummy cc; ac_word=$2
2791 echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 ac_prog_rejected=no
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2808 ac_prog_rejected=yes
2809 continue
2810 fi
2811 ac_cv_prog_CC="cc"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817
2818 if test $ac_prog_rejected = yes; then
2819 # We found a bogon in the path, so make sure we never use it.
2820 set dummy $ac_cv_prog_CC
2821 shift
2822 if test $# != 0; then
2823 # We chose a different compiler from the bogus one.
2824 # However, it has the same basename, so the bogon will be chosen
2825 # first if we set CC to just the basename; use the full file name.
2826 shift
2827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2828 fi
2829 fi
2830 fi
2831 fi
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834 echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6
2836 else
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841 fi
2842 if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 for ac_prog in cl
2845 do
2846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 echo "$as_me:$LINENO: result: $CC" >&5
2875 echo "${ECHO_T}$CC" >&6
2876 else
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2879 fi
2880
2881 test -n "$CC" && break
2882 done
2883 fi
2884 if test -z "$CC"; then
2885 ac_ct_CC=$CC
2886 for ac_prog in cl
2887 do
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_CC="$ac_prog"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911
2912 fi
2913 fi
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917 echo "${ECHO_T}$ac_ct_CC" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2921 fi
2922
2923 test -n "$ac_ct_CC" && break
2924 done
2925
2926 CC=$ac_ct_CC
2927 fi
2928
2929 fi
2930
2931
2932 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." >&5
2934 echo "$as_me: error: no acceptable C compiler found in \$PATH
2935 See \`config.log' for more details." >&2;}
2936 { (exit 1); exit 1; }; }
2937
2938 # Provide some information about the compiler.
2939 echo "$as_me:$LINENO:" \
2940 "checking for C compiler version" >&5
2941 ac_compiler=`set X $ac_compile; echo $2`
2942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2943 (eval $ac_compiler --version </dev/null >&5) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2948 (eval $ac_compiler -v </dev/null >&5) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2953 (eval $ac_compiler -V </dev/null >&5) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965
2966 int
2967 main ()
2968 {
2969
2970 ;
2971 return 0;
2972 }
2973 _ACEOF
2974 ac_clean_files_save=$ac_clean_files
2975 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2976 # Try to create an executable without -o first, disregard a.out.
2977 # It will help us diagnose broken compilers, and finding out an intuition
2978 # of exeext.
2979 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2980 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2981 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2983 (eval $ac_link_default) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # Find the output, starting from the most likely. This scheme is
2988 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2989 # resort.
2990
2991 # Be careful to initialize this variable, since it used to be cached.
2992 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2993 ac_cv_exeext=
2994 # b.out is created by i960 compilers.
2995 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2996 do
2997 test -f "$ac_file" || continue
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3000 ;;
3001 conftest.$ac_ext )
3002 # This is the source file.
3003 ;;
3004 [ab].out )
3005 # We found the default executable, but exeext='' is most
3006 # certainly right.
3007 break;;
3008 *.* )
3009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010 # FIXME: I believe we export ac_cv_exeext for Libtool,
3011 # but it would be cool to find out if it's true. Does anybody
3012 # maintain Libtool? --akim.
3013 export ac_cv_exeext
3014 break;;
3015 * )
3016 break;;
3017 esac
3018 done
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: C compiler cannot create executables
3026 See \`config.log' for more details." >&2;}
3027 { (exit 77); exit 77; }; }
3028 fi
3029
3030 ac_exeext=$ac_cv_exeext
3031 echo "$as_me:$LINENO: result: $ac_file" >&5
3032 echo "${ECHO_T}$ac_file" >&6
3033
3034 # Check the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3037 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3038 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3039 # If not cross compiling, check that we can run a simple program.
3040 if test "$cross_compiling" != yes; then
3041 if { ac_try='./$ac_file'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 cross_compiling=no
3048 else
3049 if test "$cross_compiling" = maybe; then
3050 cross_compiling=yes
3051 else
3052 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: cannot run C compiled programs.
3056 If you meant to cross compile, use \`--host'.
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3059 fi
3060 fi
3061 fi
3062 echo "$as_me:$LINENO: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6
3064
3065 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 # Check the compiler produces executables we can run. If not, either
3068 # the compiler is broken, or we cross compile.
3069 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3071 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3072 echo "${ECHO_T}$cross_compiling" >&6
3073
3074 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3077 (eval $ac_link) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3084 # `rm'.
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 export ac_cv_exeext
3091 break;;
3092 * ) break;;
3093 esac
3094 done
3095 else
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3101 fi
3102
3103 rm -f conftest$ac_cv_exeext
3104 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6
3106
3107 rm -f conftest.$ac_ext
3108 EXEEXT=$ac_cv_exeext
3109 ac_exeext=$EXEEXT
3110 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3112 if test "${ac_cv_objext+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122
3123 int
3124 main ()
3125 {
3126
3127 ;
3128 return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.o conftest.obj
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; then
3137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3141 break;;
3142 esac
3143 done
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3153 fi
3154
3155 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3156 fi
3157 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3158 echo "${ECHO_T}$ac_cv_objext" >&6
3159 OBJEXT=$ac_cv_objext
3160 ac_objext=$OBJEXT
3161 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 cat >conftest.$ac_ext <<_ACEOF
3167 #line $LINENO "configure"
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3173
3174 int
3175 main ()
3176 {
3177 #ifndef __GNUC__
3178 choke me
3179 #endif
3180
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_compiler_gnu=yes
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 ac_compiler_gnu=no
3203 fi
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3206
3207 fi
3208 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3209 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3210 GCC=`test $ac_compiler_gnu = yes && echo yes`
3211 ac_test_CFLAGS=${CFLAGS+set}
3212 ac_save_CFLAGS=$CFLAGS
3213 CFLAGS="-g"
3214 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3216 if test "${ac_cv_prog_cc_g+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 cat >conftest.$ac_ext <<_ACEOF
3220 #line $LINENO "configure"
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226
3227 int
3228 main ()
3229 {
3230
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_prog_cc_g=yes
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 ac_cv_prog_cc_g=no
3253 fi
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3255 fi
3256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3258 if test "$ac_test_CFLAGS" = set; then
3259 CFLAGS=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
3263 else
3264 CFLAGS="-g"
3265 fi
3266 else
3267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
3269 else
3270 CFLAGS=
3271 fi
3272 fi
3273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 ac_cv_prog_cc_stdc=no
3279 ac_save_CC=$CC
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdarg.h>
3288 #include <stdio.h>
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3295 char **p;
3296 int i;
3297 {
3298 return p[i];
3299 }
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3301 {
3302 char *s;
3303 va_list v;
3304 va_start (v,p);
3305 s = g (p, va_arg (v,int));
3306 va_end (v);
3307 return s;
3308 }
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 int argc;
3314 char **argv;
3315 int
3316 main ()
3317 {
3318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_prog_cc_stdc=$ac_arg
3346 break
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351 fi
3352 rm -f conftest.$ac_objext
3353 done
3354 rm -f conftest.$ac_ext conftest.$ac_objext
3355 CC=$ac_save_CC
3356
3357 fi
3358
3359 case "x$ac_cv_prog_cc_stdc" in
3360 x|xno)
3361 echo "$as_me:$LINENO: result: none needed" >&5
3362 echo "${ECHO_T}none needed" >&6 ;;
3363 *)
3364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3366 CC="$CC $ac_cv_prog_cc_stdc" ;;
3367 esac
3368
3369 # Some people use a C++ compiler to compile C. Since we use `exit',
3370 # in C++ we need to declare it. In case someone uses the same compiler
3371 # for both compiling C and C++ we need to have the C++ compiler decide
3372 # the declaration of exit, since it's the most demanding environment.
3373 cat >conftest.$ac_ext <<_ACEOF
3374 #ifndef __cplusplus
3375 choke me
3376 #endif
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 for ac_declaration in \
3391 ''\
3392 '#include <stdlib.h>' \
3393 'extern "C" void std::exit (int) throw (); using std::exit;' \
3394 'extern "C" void std::exit (int); using std::exit;' \
3395 'extern "C" void exit (int) throw ();' \
3396 'extern "C" void exit (int);' \
3397 'void exit (int);'
3398 do
3399 cat >conftest.$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <stdlib.h>
3407 $ac_declaration
3408 int
3409 main ()
3410 {
3411 exit (42);
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 :
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 continue
3434 fi
3435 rm -f conftest.$ac_objext conftest.$ac_ext
3436 cat >conftest.$ac_ext <<_ACEOF
3437 #line $LINENO "configure"
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 $ac_declaration
3444 int
3445 main ()
3446 {
3447 exit (42);
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 break
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 fi
3470 rm -f conftest.$ac_objext conftest.$ac_ext
3471 done
3472 rm -f conftest*
3473 if test -n "$ac_declaration"; then
3474 echo '#ifdef __cplusplus' >>confdefs.h
3475 echo $ac_declaration >>confdefs.h
3476 echo '#endif' >>confdefs.h
3477 fi
3478
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 fi
3484 rm -f conftest.$ac_objext conftest.$ac_ext
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492 # On Suns, sometimes $CPP names a directory.
3493 if test -n "$CPP" && test -d "$CPP"; then
3494 CPP=
3495 fi
3496
3497 #### Some systems specify a CPP to use unless we are using GCC.
3498 #### Now that we know whether we are using GCC, we can decide whether
3499 #### to use that one.
3500 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3501 then
3502 CPP="$NON_GNU_CPP"
3503 fi
3504
3505 #### Some systems specify a CC to use unless we are using GCC.
3506 #### Now that we know whether we are using GCC, we can decide whether
3507 #### to use that one.
3508 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3509 test x$cc_specified != xyes
3510 then
3511 CC="$NON_GNU_CC"
3512 fi
3513
3514 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3515 then
3516 CC="$CC $GCC_TEST_OPTIONS"
3517 fi
3518
3519 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3520 then
3521 CC="$CC $NON_GCC_TEST_OPTIONS"
3522 fi
3523
3524 #### Some other nice autoconf tests.
3525
3526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3528 LN_S=$as_ln_s
3529 if test "$LN_S" = "ln -s"; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531 echo "${ECHO_T}yes" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3534 echo "${ECHO_T}no, using $LN_S" >&6
3535 fi
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3543 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3544 # On Suns, sometimes $CPP names a directory.
3545 if test -n "$CPP" && test -d "$CPP"; then
3546 CPP=
3547 fi
3548 if test -z "$CPP"; then
3549 if test "${ac_cv_prog_CPP+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 # Double quotes because CPP needs to be expanded
3553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3554 do
3555 ac_preproc_ok=false
3556 for ac_c_preproc_warn_flag in '' yes
3557 do
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #ifdef __STDC__
3572 # include <limits.h>
3573 #else
3574 # include <assert.h>
3575 #endif
3576 Syntax error
3577 _ACEOF
3578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 else
3589 ac_cpp_err=
3590 fi
3591 else
3592 ac_cpp_err=yes
3593 fi
3594 if test -z "$ac_cpp_err"; then
3595 :
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 # Broken: fails on valid input.
3601 continue
3602 fi
3603 rm -f conftest.err conftest.$ac_ext
3604
3605 # OK, works on sane cases. Now check whether non-existent headers
3606 # can be detected and how.
3607 cat >conftest.$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <ac_nonexistent.h>
3615 _ACEOF
3616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 else
3627 ac_cpp_err=
3628 fi
3629 else
3630 ac_cpp_err=yes
3631 fi
3632 if test -z "$ac_cpp_err"; then
3633 # Broken: success on invalid input.
3634 continue
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 # Passes both tests.
3640 ac_preproc_ok=:
3641 break
3642 fi
3643 rm -f conftest.err conftest.$ac_ext
3644
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3649 break
3650 fi
3651
3652 done
3653 ac_cv_prog_CPP=$CPP
3654
3655 fi
3656 CPP=$ac_cv_prog_CPP
3657 else
3658 ac_cv_prog_CPP=$CPP
3659 fi
3660 echo "$as_me:$LINENO: result: $CPP" >&5
3661 echo "${ECHO_T}$CPP" >&6
3662 ac_preproc_ok=false
3663 for ac_c_preproc_warn_flag in '' yes
3664 do
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat >conftest.$ac_ext <<_ACEOF
3672 #line $LINENO "configure"
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678 #ifdef __STDC__
3679 # include <limits.h>
3680 #else
3681 # include <assert.h>
3682 #endif
3683 Syntax error
3684 _ACEOF
3685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev/null; then
3693 if test -s conftest.err; then
3694 ac_cpp_err=$ac_c_preproc_warn_flag
3695 else
3696 ac_cpp_err=
3697 fi
3698 else
3699 ac_cpp_err=yes
3700 fi
3701 if test -z "$ac_cpp_err"; then
3702 :
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 # Broken: fails on valid input.
3708 continue
3709 fi
3710 rm -f conftest.err conftest.$ac_ext
3711
3712 # OK, works on sane cases. Now check whether non-existent headers
3713 # can be detected and how.
3714 cat >conftest.$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <ac_nonexistent.h>
3722 _ACEOF
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null; then
3731 if test -s conftest.err; then
3732 ac_cpp_err=$ac_c_preproc_warn_flag
3733 else
3734 ac_cpp_err=
3735 fi
3736 else
3737 ac_cpp_err=yes
3738 fi
3739 if test -z "$ac_cpp_err"; then
3740 # Broken: success on invalid input.
3741 continue
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3749 fi
3750 rm -f conftest.err conftest.$ac_ext
3751
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3756 :
3757 else
3758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details." >&5
3760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3761 See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
3763 fi
3764
3765 ac_ext=c
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770
3771 # Find a good install program. We prefer a C program (faster),
3772 # so one script is as good as another. But avoid the broken or
3773 # incompatible versions:
3774 # SysV /etc/install, /usr/sbin/install
3775 # SunOS /usr/etc/install
3776 # IRIX /sbin/install
3777 # AIX /bin/install
3778 # AmigaOS /C/install, which installs bootblocks on floppy discs
3779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3782 # ./install, which can be erroneously created by make from ./install.sh.
3783 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3784 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3785 if test -z "$INSTALL"; then
3786 if test "${ac_cv_path_install+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 # Account for people who put trailing slashes in PATH elements.
3795 case $as_dir/ in
3796 ./ | .// | /cC/* | \
3797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3798 /usr/ucb/* ) ;;
3799 *)
3800 # OSF1 and SCO ODT 3.0 have their own names for install.
3801 # Don't use installbsd from OSF since it installs stuff as root
3802 # by default.
3803 for ac_prog in ginstall scoinst install; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3806 if test $ac_prog = install &&
3807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3808 # AIX install. It has an incompatible calling convention.
3809 :
3810 elif test $ac_prog = install &&
3811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # program-specific install script used by HP pwplus--don't use.
3813 :
3814 else
3815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3816 break 3
3817 fi
3818 fi
3819 done
3820 done
3821 ;;
3822 esac
3823 done
3824
3825
3826 fi
3827 if test "${ac_cv_path_install+set}" = set; then
3828 INSTALL=$ac_cv_path_install
3829 else
3830 # As a last resort, use the slow shell script. We don't cache a
3831 # path for INSTALL within a source directory, because that will
3832 # break other packages using the cache if that directory is
3833 # removed, or if the path is relative.
3834 INSTALL=$ac_install_sh
3835 fi
3836 fi
3837 echo "$as_me:$LINENO: result: $INSTALL" >&5
3838 echo "${ECHO_T}$INSTALL" >&6
3839
3840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3841 # It thinks the first close brace ends the variable substitution.
3842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3843
3844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3845
3846 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3847
3848 if test "x$RANLIB" = x; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_RANLIB+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 if test -n "$RANLIB"; then
3858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871 done
3872 done
3873
3874 fi
3875 fi
3876 RANLIB=$ac_cv_prog_RANLIB
3877 if test -n "$RANLIB"; then
3878 echo "$as_me:$LINENO: result: $RANLIB" >&5
3879 echo "${ECHO_T}$RANLIB" >&6
3880 else
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883 fi
3884
3885 fi
3886 if test -z "$ac_cv_prog_RANLIB"; then
3887 ac_ct_RANLIB=$RANLIB
3888 # Extract the first word of "ranlib", so it can be a program name with args.
3889 set dummy ranlib; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$ac_ct_RANLIB"; then
3896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_RANLIB="ranlib"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909 done
3910 done
3911
3912 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3913 fi
3914 fi
3915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3916 if test -n "$ac_ct_RANLIB"; then
3917 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3918 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3919 else
3920 echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6
3922 fi
3923
3924 RANLIB=$ac_ct_RANLIB
3925 else
3926 RANLIB="$ac_cv_prog_RANLIB"
3927 fi
3928
3929 fi
3930 # Extract the first word of "install-info", so it can be a program name with args.
3931 set dummy install-info; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 case $INSTALL_INFO in
3938 [\\/]* | ?:[\\/]*)
3939 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3940 ;;
3941 *)
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953 done
3954 done
3955
3956 ;;
3957 esac
3958 fi
3959 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3960
3961 if test -n "$INSTALL_INFO"; then
3962 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3963 echo "${ECHO_T}$INSTALL_INFO" >&6
3964 else
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3967 fi
3968
3969 # Extract the first word of "install-info", so it can be a program name with args.
3970 set dummy install-info; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 case $INSTALL_INFO in
3977 [\\/]* | ?:[\\/]*)
3978 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3979 ;;
3980 *)
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in /usr/sbin
3983 do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992 done
3993 done
3994
3995 ;;
3996 esac
3997 fi
3998 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3999
4000 if test -n "$INSTALL_INFO"; then
4001 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4002 echo "${ECHO_T}$INSTALL_INFO" >&6
4003 else
4004 echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4006 fi
4007
4008 # Extract the first word of "install-info", so it can be a program name with args.
4009 set dummy install-info; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 case $INSTALL_INFO in
4016 [\\/]* | ?:[\\/]*)
4017 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4018 ;;
4019 *)
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in /sbin
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031 done
4032 done
4033
4034 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4035 ;;
4036 esac
4037 fi
4038 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4039
4040 if test -n "$INSTALL_INFO"; then
4041 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4042 echo "${ECHO_T}$INSTALL_INFO" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4046 fi
4047
4048
4049
4050 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4051 then
4052 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4053 fi
4054
4055 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4056 then
4057 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4058 fi
4059
4060
4061
4062 echo "$as_me:$LINENO: checking for egrep" >&5
4063 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4064 if test "${ac_cv_prog_egrep+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4068 then ac_cv_prog_egrep='grep -E'
4069 else ac_cv_prog_egrep='egrep'
4070 fi
4071 fi
4072 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4073 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4074 EGREP=$ac_cv_prog_egrep
4075
4076
4077
4078 echo "$as_me:$LINENO: checking for AIX" >&5
4079 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4080 cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4082 /* confdefs.h. */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 #ifdef _AIX
4088 yes
4089 #endif
4090
4091 _ACEOF
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 $EGREP "yes" >/dev/null 2>&1; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096 cat >>confdefs.h <<\_ACEOF
4097 #define _ALL_SOURCE 1
4098 _ACEOF
4099
4100 else
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4103 fi
4104 rm -f conftest*
4105
4106
4107
4108 #### Extract some information from the operating system and machine files.
4109
4110 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4111 - which libraries the lib-src programs will want, and
4112 - whether the GNU malloc routines are usable..." >&5
4113 echo "$as_me: checking the machine- and system-dependent files to find out
4114 - which libraries the lib-src programs will want, and
4115 - whether the GNU malloc routines are usable..." >&6;}
4116
4117 ### First figure out CFLAGS (which we use for running the compiler here)
4118 ### and REAL_CFLAGS (which we use for real compilation).
4119 ### The two are the same except on a few systems, where they are made
4120 ### different to work around various lossages. For example,
4121 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4122 ### as implying static linking.
4123
4124 ### If the CFLAGS env var is specified, we use that value
4125 ### instead of the default.
4126
4127 ### It's not important that this name contain the PID; you can't run
4128 ### two configures in the same directory and have anything work
4129 ### anyway.
4130 tempcname="conftest.c"
4131
4132 echo '
4133 #include "'${srcdir}'/src/'${opsysfile}'"
4134 #include "'${srcdir}'/src/'${machfile}'"
4135 #ifndef LIBS_MACHINE
4136 #define LIBS_MACHINE
4137 #endif
4138 #ifndef LIBS_SYSTEM
4139 #define LIBS_SYSTEM
4140 #endif
4141 #ifndef C_SWITCH_SYSTEM
4142 #define C_SWITCH_SYSTEM
4143 #endif
4144 #ifndef C_SWITCH_MACHINE
4145 #define C_SWITCH_MACHINE
4146 #endif
4147 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4148 configure___ c_switch_system=C_SWITCH_SYSTEM
4149 configure___ c_switch_machine=C_SWITCH_MACHINE
4150
4151 #ifndef LIB_X11_LIB
4152 #define LIB_X11_LIB -lX11
4153 #endif
4154
4155 #ifndef LIBX11_MACHINE
4156 #define LIBX11_MACHINE
4157 #endif
4158
4159 #ifndef LIBX11_SYSTEM
4160 #define LIBX11_SYSTEM
4161 #endif
4162 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4163
4164 #ifdef UNEXEC
4165 configure___ unexec=UNEXEC
4166 #else
4167 configure___ unexec=unexec.o
4168 #endif
4169
4170 #ifdef SYSTEM_MALLOC
4171 configure___ system_malloc=yes
4172 #else
4173 configure___ system_malloc=no
4174 #endif
4175
4176 #ifdef USE_MMAP_FOR_BUFFERS
4177 configure___ use_mmap_for_buffers=yes
4178 #else
4179 configure___ use_mmap_for_buffers=no
4180 #endif
4181
4182 #ifndef C_DEBUG_SWITCH
4183 #define C_DEBUG_SWITCH -g
4184 #endif
4185
4186 #ifndef C_OPTIMIZE_SWITCH
4187 #ifdef __GNUC__
4188 #define C_OPTIMIZE_SWITCH -O2
4189 #else
4190 #define C_OPTIMIZE_SWITCH -O
4191 #endif
4192 #endif
4193
4194 #ifndef LD_SWITCH_MACHINE
4195 #define LD_SWITCH_MACHINE
4196 #endif
4197
4198 #ifndef LD_SWITCH_SYSTEM
4199 #define LD_SWITCH_SYSTEM
4200 #endif
4201
4202 #ifndef LD_SWITCH_X_SITE_AUX
4203 #define LD_SWITCH_X_SITE_AUX
4204 #endif
4205
4206 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4207 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4208
4209 #ifdef THIS_IS_CONFIGURE
4210
4211 /* Get the CFLAGS for tests in configure. */
4212 #ifdef __GNUC__
4213 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4214 #else
4215 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4216 #endif
4217
4218 #else /* not THIS_IS_CONFIGURE */
4219
4220 /* Get the CFLAGS for real compilation. */
4221 #ifdef __GNUC__
4222 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4223 #else
4224 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4225 #endif
4226
4227 #endif /* not THIS_IS_CONFIGURE */
4228 ' > ${tempcname}
4229
4230 # The value of CPP is a quoted variable reference, so we need to do this
4231 # to get its actual value...
4232 CPP=`eval "echo $CPP"`
4233 eval `${CPP} -Isrc ${tempcname} \
4234 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4235 if test "x$SPECIFIED_CFLAGS" = x; then
4236 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4237 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4238 else
4239 REAL_CFLAGS="$CFLAGS"
4240 fi
4241 rm ${tempcname}
4242
4243 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4244
4245 ### Make sure subsequent tests use flags consistent with the build flags.
4246
4247 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4248 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4249 else
4250 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4251 fi
4252
4253
4254
4255
4256 cat >>confdefs.h <<\_ACEOF
4257 #define _GNU_SOURCE 1
4258 _ACEOF
4259
4260
4261
4262 # Check whether --enable-largefile or --disable-largefile was given.
4263 if test "${enable_largefile+set}" = set; then
4264 enableval="$enable_largefile"
4265
4266 fi;
4267 if test "$enable_largefile" != no; then
4268
4269 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4270 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4271 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 ac_cv_sys_largefile_CC=no
4275 if test "$GCC" != yes; then
4276 ac_save_CC=$CC
4277 while :; do
4278 # IRIX 6.2 and later do not support large files by default,
4279 # so use the C compiler's -n32 option if that helps.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 #line $LINENO "configure"
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <sys/types.h>
4288 /* Check that off_t can represent 2**63 - 1 correctly.
4289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290 since some C++ compilers masquerading as C compilers
4291 incorrectly reject 9223372036854775807. */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294 && LARGE_OFF_T % 2147483647 == 1)
4295 ? 1 : -1];
4296 int
4297 main ()
4298 {
4299
4300 ;
4301 return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 (eval $ac_try) 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 break
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321 fi
4322 rm -f conftest.$ac_objext
4323 CC="$CC -n32"
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_sys_largefile_CC=' -n32'; break
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 fi
4342 rm -f conftest.$ac_objext
4343 break
4344 done
4345 CC=$ac_save_CC
4346 rm -f conftest.$ac_ext
4347 fi
4348 fi
4349 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4350 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4351 if test "$ac_cv_sys_largefile_CC" != no; then
4352 CC=$CC$ac_cv_sys_largefile_CC
4353 fi
4354
4355 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4356 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4357 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 while :; do
4361 ac_cv_sys_file_offset_bits=no
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4377 ? 1 : -1];
4378 int
4379 main ()
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 break
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 fi
4404 rm -f conftest.$ac_objext conftest.$ac_ext
4405 cat >conftest.$ac_ext <<_ACEOF
4406 #line $LINENO "configure"
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #define _FILE_OFFSET_BITS 64
4413 #include <sys/types.h>
4414 /* Check that off_t can represent 2**63 - 1 correctly.
4415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4416 since some C++ compilers masquerading as C compilers
4417 incorrectly reject 9223372036854775807. */
4418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4420 && LARGE_OFF_T % 2147483647 == 1)
4421 ? 1 : -1];
4422 int
4423 main ()
4424 {
4425
4426 ;
4427 return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_sys_file_offset_bits=64; break
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447 fi
4448 rm -f conftest.$ac_objext conftest.$ac_ext
4449 break
4450 done
4451 fi
4452 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4453 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4454 if test "$ac_cv_sys_file_offset_bits" != no; then
4455
4456 cat >>confdefs.h <<_ACEOF
4457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4458 _ACEOF
4459
4460 fi
4461 rm -f conftest*
4462 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4463 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4464 if test "${ac_cv_sys_large_files+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 while :; do
4468 ac_cv_sys_large_files=no
4469 cat >conftest.$ac_ext <<_ACEOF
4470 #line $LINENO "configure"
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <sys/types.h>
4477 /* Check that off_t can represent 2**63 - 1 correctly.
4478 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4479 since some C++ compilers masquerading as C compilers
4480 incorrectly reject 9223372036854775807. */
4481 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4482 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4483 && LARGE_OFF_T % 2147483647 == 1)
4484 ? 1 : -1];
4485 int
4486 main ()
4487 {
4488
4489 ;
4490 return 0;
4491 }
4492 _ACEOF
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 break
4506 else
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 fi
4511 rm -f conftest.$ac_objext conftest.$ac_ext
4512 cat >conftest.$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #define _LARGE_FILES 1
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4528 ? 1 : -1];
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 ac_cv_sys_large_files=1; break
4550 else
4551 echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4553
4554 fi
4555 rm -f conftest.$ac_objext conftest.$ac_ext
4556 break
4557 done
4558 fi
4559 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4560 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4561 if test "$ac_cv_sys_large_files" != no; then
4562
4563 cat >>confdefs.h <<_ACEOF
4564 #define _LARGE_FILES $ac_cv_sys_large_files
4565 _ACEOF
4566
4567 fi
4568 rm -f conftest*
4569 fi
4570
4571
4572 if test "${with_sound}" != "no"; then
4573 # Sound support for GNU/Linux and the free BSDs.
4574 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4576 if test "${ac_cv_header_stdc+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <stdlib.h>
4587 #include <stdarg.h>
4588 #include <string.h>
4589 #include <float.h>
4590
4591 int
4592 main ()
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_header_stdc=yes
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4619
4620 if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line $LINENO "configure"
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 #include <string.h>
4630
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "memchr" >/dev/null 2>&1; then
4634 :
4635 else
4636 ac_cv_header_stdc=no
4637 fi
4638 rm -f conftest*
4639
4640 fi
4641
4642 if test $ac_cv_header_stdc = yes; then
4643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644 cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <stdlib.h>
4652
4653 _ACEOF
4654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4655 $EGREP "free" >/dev/null 2>&1; then
4656 :
4657 else
4658 ac_cv_header_stdc=no
4659 fi
4660 rm -f conftest*
4661
4662 fi
4663
4664 if test $ac_cv_header_stdc = yes; then
4665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4666 if test "$cross_compiling" = yes; then
4667 :
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <ctype.h>
4677 #if ((' ' & 0x0FF) == 0x020)
4678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4680 #else
4681 # define ISLOWER(c) \
4682 (('a' <= (c) && (c) <= 'i') \
4683 || ('j' <= (c) && (c) <= 'r') \
4684 || ('s' <= (c) && (c) <= 'z'))
4685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4686 #endif
4687
4688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4689 int
4690 main ()
4691 {
4692 int i;
4693 for (i = 0; i < 256; i++)
4694 if (XOR (islower (i), ISLOWER (i))
4695 || toupper (i) != TOUPPER (i))
4696 exit(2);
4697 exit (0);
4698 }
4699 _ACEOF
4700 rm -f conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 :
4712 else
4713 echo "$as_me: program exited with status $ac_status" >&5
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 ( exit $ac_status )
4718 ac_cv_header_stdc=no
4719 fi
4720 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4721 fi
4722 fi
4723 fi
4724 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4725 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4726 if test $ac_cv_header_stdc = yes; then
4727
4728 cat >>confdefs.h <<\_ACEOF
4729 #define STDC_HEADERS 1
4730 _ACEOF
4731
4732 fi
4733
4734 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745 inttypes.h stdint.h unistd.h
4746 do
4747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748 echo "$as_me:$LINENO: checking for $ac_header" >&5
4749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 $ac_includes_default
4761
4762 #include <$ac_header>
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 eval "$as_ac_Header=yes"
4777 else
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 eval "$as_ac_Header=no"
4782 fi
4783 rm -f conftest.$ac_objext conftest.$ac_ext
4784 fi
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4788 cat >>confdefs.h <<_ACEOF
4789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790 _ACEOF
4791
4792 fi
4793
4794 done
4795
4796
4797
4798
4799
4800 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4801 do
4802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804 echo "$as_me:$LINENO: checking for $ac_header" >&5
4805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 fi
4809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4811 else
4812 # Is the header compilable?
4813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4815 cat >conftest.$ac_ext <<_ACEOF
4816 #line $LINENO "configure"
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4823 #include <$ac_header>
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_header_compiler=yes
4838 else
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_header_compiler=no
4843 fi
4844 rm -f conftest.$ac_objext conftest.$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846 echo "${ECHO_T}$ac_header_compiler" >&6
4847
4848 # Is the header present?
4849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851 cat >conftest.$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <$ac_header>
4859 _ACEOF
4860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null; then
4868 if test -s conftest.err; then
4869 ac_cpp_err=$ac_c_preproc_warn_flag
4870 else
4871 ac_cpp_err=
4872 fi
4873 else
4874 ac_cpp_err=yes
4875 fi
4876 if test -z "$ac_cpp_err"; then
4877 ac_header_preproc=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_header_preproc=no
4883 fi
4884 rm -f conftest.err conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886 echo "${ECHO_T}$ac_header_preproc" >&6
4887
4888 # So? What about this header?
4889 case $ac_header_compiler:$ac_header_preproc in
4890 yes:no )
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895 (
4896 cat <<\_ASBOX
4897 ## ------------------------------------ ##
4898 ## Report this to bug-autoconf@gnu.org. ##
4899 ## ------------------------------------ ##
4900 _ASBOX
4901 ) |
4902 sed "s/^/$as_me: WARNING: /" >&2
4903 ;;
4904 no:yes )
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911 (
4912 cat <<\_ASBOX
4913 ## ------------------------------------ ##
4914 ## Report this to bug-autoconf@gnu.org. ##
4915 ## ------------------------------------ ##
4916 _ASBOX
4917 ) |
4918 sed "s/^/$as_me: WARNING: /" >&2
4919 ;;
4920 esac
4921 echo "$as_me:$LINENO: checking for $ac_header" >&5
4922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 eval "$as_ac_Header=$ac_header_preproc"
4927 fi
4928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4930
4931 fi
4932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933 cat >>confdefs.h <<_ACEOF
4934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935 _ACEOF
4936
4937 fi
4938
4939 done
4940
4941 # Emulation library used on NetBSD.
4942 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4943 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4944 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-lossaudio $LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 #ifdef __cplusplus
4959 extern "C"
4960 #endif
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4963 char _oss_ioctl ();
4964 int
4965 main ()
4966 {
4967 _oss_ioctl ();
4968 ;
4969 return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -s conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_cv_lib_ossaudio__oss_ioctl=yes
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989 ac_cv_lib_ossaudio__oss_ioctl=no
4990 fi
4991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4993 fi
4994 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4996 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4997 LIBSOUND=-lossaudio
4998 else
4999 LIBSOUND=
5000 fi
5001
5002
5003 fi
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5028 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5029 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
5030 sys/param.h sys/vlimit.h sys/resource.h
5031 do
5032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5034 echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 fi
5039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5041 else
5042 # Is the header compilable?
5043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5045 cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_includes_default
5053 #include <$ac_header>
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_header_compiler=yes
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_header_compiler=no
5073 fi
5074 rm -f conftest.$ac_objext conftest.$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5076 echo "${ECHO_T}$ac_header_compiler" >&6
5077
5078 # Is the header present?
5079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5081 cat >conftest.$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <$ac_header>
5089 _ACEOF
5090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 else
5101 ac_cpp_err=
5102 fi
5103 else
5104 ac_cpp_err=yes
5105 fi
5106 if test -z "$ac_cpp_err"; then
5107 ac_header_preproc=yes
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_header_preproc=no
5113 fi
5114 rm -f conftest.err conftest.$ac_ext
5115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5116 echo "${ECHO_T}$ac_header_preproc" >&6
5117
5118 # So? What about this header?
5119 case $ac_header_compiler:$ac_header_preproc in
5120 yes:no )
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125 (
5126 cat <<\_ASBOX
5127 ## ------------------------------------ ##
5128 ## Report this to bug-autoconf@gnu.org. ##
5129 ## ------------------------------------ ##
5130 _ASBOX
5131 ) |
5132 sed "s/^/$as_me: WARNING: /" >&2
5133 ;;
5134 no:yes )
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5141 (
5142 cat <<\_ASBOX
5143 ## ------------------------------------ ##
5144 ## Report this to bug-autoconf@gnu.org. ##
5145 ## ------------------------------------ ##
5146 _ASBOX
5147 ) |
5148 sed "s/^/$as_me: WARNING: /" >&2
5149 ;;
5150 esac
5151 echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 eval "$as_ac_Header=$ac_header_preproc"
5157 fi
5158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5160
5161 fi
5162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165 _ACEOF
5166
5167 fi
5168
5169 done
5170
5171
5172 for ac_header in term.h
5173 do
5174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5175 echo "$as_me:$LINENO: checking for $ac_header" >&5
5176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <$ac_header>
5188 _ACEOF
5189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_c_preproc_warn_flag
5199 else
5200 ac_cpp_err=
5201 fi
5202 else
5203 ac_cpp_err=yes
5204 fi
5205 if test -z "$ac_cpp_err"; then
5206 eval "$as_ac_Header=yes"
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 eval "$as_ac_Header=no"
5212 fi
5213 rm -f conftest.err conftest.$ac_ext
5214 fi
5215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5218 cat >>confdefs.h <<_ACEOF
5219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5220 _ACEOF
5221
5222 fi
5223
5224 done
5225
5226 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5227 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5228 if test "${ac_cv_header_stdc+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <stdlib.h>
5239 #include <stdarg.h>
5240 #include <string.h>
5241 #include <float.h>
5242
5243 int
5244 main ()
5245 {
5246
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 (eval $ac_try) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_cv_header_stdc=yes
5264 else
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 ac_cv_header_stdc=no
5269 fi
5270 rm -f conftest.$ac_objext conftest.$ac_ext
5271
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <string.h>
5282
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev/null 2>&1; then
5286 :
5287 else
5288 ac_cv_header_stdc=no
5289 fi
5290 rm -f conftest*
5291
5292 fi
5293
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <stdlib.h>
5304
5305 _ACEOF
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev/null 2>&1; then
5308 :
5309 else
5310 ac_cv_header_stdc=no
5311 fi
5312 rm -f conftest*
5313
5314 fi
5315
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then
5319 :
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <ctype.h>
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332 #else
5333 # define ISLOWER(c) \
5334 (('a' <= (c) && (c) <= 'i') \
5335 || ('j' <= (c) && (c) <= 'r') \
5336 || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338 #endif
5339
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5341 int
5342 main ()
5343 {
5344 int i;
5345 for (i = 0; i < 256; i++)
5346 if (XOR (islower (i), ISLOWER (i))
5347 || toupper (i) != TOUPPER (i))
5348 exit(2);
5349 exit (0);
5350 }
5351 _ACEOF
5352 rm -f conftest$ac_exeext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354 (eval $ac_link) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5363 :
5364 else
5365 echo "$as_me: program exited with status $ac_status" >&5
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369 ( exit $ac_status )
5370 ac_cv_header_stdc=no
5371 fi
5372 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5373 fi
5374 fi
5375 fi
5376 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5377 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5378 if test $ac_cv_header_stdc = yes; then
5379
5380 cat >>confdefs.h <<\_ACEOF
5381 #define STDC_HEADERS 1
5382 _ACEOF
5383
5384 fi
5385
5386 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5387 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5388 if test "${ac_cv_header_time+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5399 #include <sys/time.h>
5400 #include <time.h>
5401
5402 int
5403 main ()
5404 {
5405 if ((struct tm *) 0)
5406 return 0;
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_header_time=yes
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_cv_header_time=no
5429 fi
5430 rm -f conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5433 echo "${ECHO_T}$ac_cv_header_time" >&6
5434 if test $ac_cv_header_time = yes; then
5435
5436 cat >>confdefs.h <<\_ACEOF
5437 #define TIME_WITH_SYS_TIME 1
5438 _ACEOF
5439
5440 fi
5441
5442 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5443 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5444 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 cat >conftest.$ac_ext <<_ACEOF
5448 #line $LINENO "configure"
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 int
5456 main ()
5457 {
5458 #ifndef sys_siglist
5459 char *p = (char *) sys_siglist;
5460 #endif
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_have_decl_sys_siglist=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_cv_have_decl_sys_siglist=no
5484 fi
5485 rm -f conftest.$ac_objext conftest.$ac_ext
5486 fi
5487 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5488 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5489 if test $ac_cv_have_decl_sys_siglist = yes; then
5490
5491 cat >>confdefs.h <<_ACEOF
5492 #define HAVE_DECL_SYS_SIGLIST 1
5493 _ACEOF
5494
5495
5496 else
5497 cat >>confdefs.h <<_ACEOF
5498 #define HAVE_DECL_SYS_SIGLIST 0
5499 _ACEOF
5500
5501
5502 fi
5503
5504
5505 if test $ac_cv_have_decl_sys_siglist != yes; then
5506 # For Tru64, at least:
5507 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5508 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5509 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5520 int
5521 main ()
5522 {
5523 #ifndef __sys_siglist
5524 char *p = (char *) __sys_siglist;
5525 #endif
5526
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_have_decl___sys_siglist=yes
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_cv_have_decl___sys_siglist=no
5549 fi
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5553 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5554 if test $ac_cv_have_decl___sys_siglist = yes; then
5555
5556 cat >>confdefs.h <<_ACEOF
5557 #define HAVE_DECL___SYS_SIGLIST 1
5558 _ACEOF
5559
5560
5561 else
5562 cat >>confdefs.h <<_ACEOF
5563 #define HAVE_DECL___SYS_SIGLIST 0
5564 _ACEOF
5565
5566
5567 fi
5568
5569
5570 if test $ac_cv_have_decl___sys_siglist = yes; then
5571
5572 cat >>confdefs.h <<\_ACEOF
5573 #define sys_siglist __sys_siglist
5574 _ACEOF
5575
5576 fi
5577 fi
5578 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5579 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5580 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 #include <sys/wait.h>
5592 #ifndef WEXITSTATUS
5593 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5594 #endif
5595 #ifndef WIFEXITED
5596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5597 #endif
5598
5599 int
5600 main ()
5601 {
5602 int s;
5603 wait (&s);
5604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_header_sys_wait_h=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 ac_cv_header_sys_wait_h=no
5627 fi
5628 rm -f conftest.$ac_objext conftest.$ac_ext
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5631 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5632 if test $ac_cv_header_sys_wait_h = yes; then
5633
5634 cat >>confdefs.h <<\_ACEOF
5635 #define HAVE_SYS_WAIT_H 1
5636 _ACEOF
5637
5638 fi
5639
5640
5641 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5642 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5643 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #ifdef TIME_WITH_SYS_TIME
5654 #include <sys/time.h>
5655 #include <time.h>
5656 #else
5657 #ifdef HAVE_SYS_TIME_H
5658 #include <sys/time.h>
5659 #else
5660 #include <time.h>
5661 #endif
5662 #endif
5663 #ifdef HAVE_UTIME_H
5664 #include <utime.h>
5665 #endif
5666 int
5667 main ()
5668 {
5669 static struct utimbuf x; x.actime = x.modtime;
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 emacs_cv_struct_utimbuf=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 emacs_cv_struct_utimbuf=no
5692 fi
5693 rm -f conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5696 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5697 if test $emacs_cv_struct_utimbuf = yes; then
5698
5699 cat >>confdefs.h <<\_ACEOF
5700 #define HAVE_STRUCT_UTIMBUF 1
5701 _ACEOF
5702
5703 fi
5704
5705 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5706 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5707 if test "${ac_cv_type_signal+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 cat >conftest.$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 #include <signal.h>
5719 #ifdef signal
5720 # undef signal
5721 #endif
5722 #ifdef __cplusplus
5723 extern "C" void (*signal (int, void (*)(int)))(int);
5724 #else
5725 void (*signal ()) ();
5726 #endif
5727
5728 int
5729 main ()
5730 {
5731 int i;
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_type_signal=void
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 ac_cv_type_signal=int
5754 fi
5755 rm -f conftest.$ac_objext conftest.$ac_ext
5756 fi
5757 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5758 echo "${ECHO_T}$ac_cv_type_signal" >&6
5759
5760 cat >>confdefs.h <<_ACEOF
5761 #define RETSIGTYPE $ac_cv_type_signal
5762 _ACEOF
5763
5764
5765
5766 echo "$as_me:$LINENO: checking for speed_t" >&5
5767 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5768 if test "${emacs_cv_speed_t+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <termios.h>
5779 int
5780 main ()
5781 {
5782 speed_t x = 1;
5783 ;
5784 return 0;
5785 }
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 emacs_cv_speed_t=yes
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 emacs_cv_speed_t=no
5805 fi
5806 rm -f conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5809 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5810 if test $emacs_cv_speed_t = yes; then
5811
5812 cat >>confdefs.h <<\_ACEOF
5813 #define HAVE_SPEED_T 1
5814 _ACEOF
5815
5816 fi
5817
5818 echo "$as_me:$LINENO: checking for struct timeval" >&5
5819 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5820 if test "${emacs_cv_struct_timeval+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 #ifdef TIME_WITH_SYS_TIME
5831 #include <sys/time.h>
5832 #include <time.h>
5833 #else
5834 #ifdef HAVE_SYS_TIME_H
5835 #include <sys/time.h>
5836 #else
5837 #include <time.h>
5838 #endif
5839 #endif
5840 int
5841 main ()
5842 {
5843 static struct timeval x; x.tv_sec = x.tv_usec;
5844 ;
5845 return 0;
5846 }
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 emacs_cv_struct_timeval=yes
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 emacs_cv_struct_timeval=no
5866 fi
5867 rm -f conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5870 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5871 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5872 if test $emacs_cv_struct_timeval = yes; then
5873
5874 cat >>confdefs.h <<\_ACEOF
5875 #define HAVE_TIMEVAL 1
5876 _ACEOF
5877
5878 fi
5879
5880 echo "$as_me:$LINENO: checking for struct exception" >&5
5881 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5882 if test "${emacs_cv_struct_exception+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885 cat >conftest.$ac_ext <<_ACEOF
5886 #line $LINENO "configure"
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <math.h>
5893 int
5894 main ()
5895 {
5896 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 emacs_cv_struct_exception=yes
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 emacs_cv_struct_exception=no
5919 fi
5920 rm -f conftest.$ac_objext conftest.$ac_ext
5921 fi
5922 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5923 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5924 HAVE_EXCEPTION=$emacs_cv_struct_exception
5925 if test $emacs_cv_struct_exception != yes; then
5926
5927 cat >>confdefs.h <<\_ACEOF
5928 #define NO_MATHERR 1
5929 _ACEOF
5930
5931 fi
5932
5933 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5934 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5935 if test "${ac_cv_struct_tm+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #include <sys/types.h>
5946 #include <time.h>
5947
5948 int
5949 main ()
5950 {
5951 struct tm *tp; tp->tm_sec;
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_struct_tm=time.h
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_cv_struct_tm=sys/time.h
5974 fi
5975 rm -f conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5978 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5979 if test $ac_cv_struct_tm = sys/time.h; then
5980
5981 cat >>confdefs.h <<\_ACEOF
5982 #define TM_IN_SYS_TIME 1
5983 _ACEOF
5984
5985 fi
5986
5987 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5988 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5989 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 cat >conftest.$ac_ext <<_ACEOF
5993 #line $LINENO "configure"
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 #include <$ac_cv_struct_tm>
6001
6002
6003 int
6004 main ()
6005 {
6006 static struct tm ac_aggr;
6007 if (ac_aggr.tm_zone)
6008 return 0;
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_member_struct_tm_tm_zone=yes
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 cat >conftest.$ac_ext <<_ACEOF
6031 #line $LINENO "configure"
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <sys/types.h>
6038 #include <$ac_cv_struct_tm>
6039
6040
6041 int
6042 main ()
6043 {
6044 static struct tm ac_aggr;
6045 if (sizeof ac_aggr.tm_zone)
6046 return 0;
6047 ;
6048 return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_member_struct_tm_tm_zone=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 ac_cv_member_struct_tm_tm_zone=no
6069 fi
6070 rm -f conftest.$ac_objext conftest.$ac_ext
6071 fi
6072 rm -f conftest.$ac_objext conftest.$ac_ext
6073 fi
6074 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6075 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6076 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define HAVE_STRUCT_TM_TM_ZONE 1
6080 _ACEOF
6081
6082
6083 fi
6084
6085 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_TM_ZONE 1
6089 _ACEOF
6090
6091 else
6092 echo "$as_me:$LINENO: checking for tzname" >&5
6093 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6094 if test "${ac_cv_var_tzname+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 cat >conftest.$ac_ext <<_ACEOF
6098 #line $LINENO "configure"
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <time.h>
6105 #ifndef tzname /* For SGI. */
6106 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6107 #endif
6108
6109 int
6110 main ()
6111 {
6112 atoi(*tzname);
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext conftest$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_var_tzname=yes
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 ac_cv_var_tzname=no
6135 fi
6136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6137 fi
6138 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6139 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6140 if test $ac_cv_var_tzname = yes; then
6141
6142 cat >>confdefs.h <<\_ACEOF
6143 #define HAVE_TZNAME 1
6144 _ACEOF
6145
6146 fi
6147 fi
6148
6149 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6150 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6151 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <time.h>
6162
6163 int
6164 main ()
6165 {
6166 static struct tm ac_aggr;
6167 if (ac_aggr.tm_gmtoff)
6168 return 0;
6169 ;
6170 return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_member_struct_tm_tm_gmtoff=yes
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190 cat >conftest.$ac_ext <<_ACEOF
6191 #line $LINENO "configure"
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <time.h>
6198
6199 int
6200 main ()
6201 {
6202 static struct tm ac_aggr;
6203 if (sizeof ac_aggr.tm_gmtoff)
6204 return 0;
6205 ;
6206 return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_member_struct_tm_tm_gmtoff=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226 ac_cv_member_struct_tm_tm_gmtoff=no
6227 fi
6228 rm -f conftest.$ac_objext conftest.$ac_ext
6229 fi
6230 rm -f conftest.$ac_objext conftest.$ac_ext
6231 fi
6232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6233 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6234 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6235
6236 cat >>confdefs.h <<\_ACEOF
6237 #define HAVE_TM_GMTOFF 1
6238 _ACEOF
6239
6240 fi
6241
6242
6243
6244 echo "$as_me:$LINENO: checking for function prototypes" >&5
6245 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6246 if test "$ac_cv_prog_cc_stdc" != no; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248 echo "${ECHO_T}yes" >&6
6249
6250 cat >>confdefs.h <<\_ACEOF
6251 #define PROTOTYPES 1
6252 _ACEOF
6253
6254
6255 cat >>confdefs.h <<\_ACEOF
6256 #define __PROTOTYPES 1
6257 _ACEOF
6258
6259 else
6260 echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6
6262 fi
6263
6264 echo "$as_me:$LINENO: checking for working volatile" >&5
6265 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6266 if test "${ac_cv_c_volatile+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276
6277 int
6278 main ()
6279 {
6280
6281 volatile int x;
6282 int * volatile y;
6283 ;
6284 return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289 (eval $ac_compile) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_c_volatile=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_cv_c_volatile=no
6305 fi
6306 rm -f conftest.$ac_objext conftest.$ac_ext
6307 fi
6308 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6309 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6310 if test $ac_cv_c_volatile = no; then
6311
6312 cat >>confdefs.h <<\_ACEOF
6313 #define volatile
6314 _ACEOF
6315
6316 fi
6317
6318 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6319 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6320 if test "${ac_cv_c_const+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 cat >conftest.$ac_ext <<_ACEOF
6324 #line $LINENO "configure"
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330
6331 int
6332 main ()
6333 {
6334 /* FIXME: Include the comments suggested by Paul. */
6335 #ifndef __cplusplus
6336 /* Ultrix mips cc rejects this. */
6337 typedef int charset[2];
6338 const charset x;
6339 /* SunOS 4.1.1 cc rejects this. */
6340 char const *const *ccp;
6341 char **p;
6342 /* NEC SVR4.0.2 mips cc rejects this. */
6343 struct point {int x, y;};
6344 static struct point const zero = {0,0};
6345 /* AIX XL C 1.02.0.0 rejects this.
6346 It does not let you subtract one const X* pointer from another in
6347 an arm of an if-expression whose if-part is not a constant
6348 expression */
6349 const char *g = "string";
6350 ccp = &g + (g ? g-g : 0);
6351 /* HPUX 7.0 cc rejects these. */
6352 ++ccp;
6353 p = (char**) ccp;
6354 ccp = (char const *const *) p;
6355 { /* SCO 3.2v4 cc rejects this. */
6356 char *t;
6357 char const *s = 0 ? (char *) 0 : (char const *) 0;
6358
6359 *t++ = 0;
6360 }
6361 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6362 int x[] = {25, 17};
6363 const int *foo = &x[0];
6364 ++foo;
6365 }
6366 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6367 typedef const int *iptr;
6368 iptr p = 0;
6369 ++p;
6370 }
6371 { /* AIX XL C 1.02.0.0 rejects this saying
6372 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6373 struct s { int j; const int *ap[3]; };
6374 struct s *b; b->j = 5;
6375 }
6376 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6377 const int foo = 10;
6378 }
6379 #endif
6380
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387 (eval $ac_compile) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_cv_c_const=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 ac_cv_c_const=no
6403 fi
6404 rm -f conftest.$ac_objext conftest.$ac_ext
6405 fi
6406 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6407 echo "${ECHO_T}$ac_cv_c_const" >&6
6408 if test $ac_cv_c_const = no; then
6409
6410 cat >>confdefs.h <<\_ACEOF
6411 #define const
6412 _ACEOF
6413
6414 fi
6415
6416 echo "$as_me:$LINENO: checking for void * support" >&5
6417 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6418 if test "${emacs_cv_void_star+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428
6429 int
6430 main ()
6431 {
6432 void * foo;
6433 ;
6434 return 0;
6435 }
6436 _ACEOF
6437 rm -f conftest.$ac_objext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439 (eval $ac_compile) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 emacs_cv_void_star=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454 emacs_cv_void_star=no
6455 fi
6456 rm -f conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6459 echo "${ECHO_T}$emacs_cv_void_star" >&6
6460 if test $emacs_cv_void_star = yes; then
6461 cat >>confdefs.h <<\_ACEOF
6462 #define POINTER_TYPE void
6463 _ACEOF
6464
6465 else
6466 cat >>confdefs.h <<\_ACEOF
6467 #define POINTER_TYPE char
6468 _ACEOF
6469
6470 fi
6471
6472
6473
6474 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6475 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6476 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6477 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 cat >conftest.make <<\_ACEOF
6481 all:
6482 @echo 'ac_maketemp="$(MAKE)"'
6483 _ACEOF
6484 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6485 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6486 if test -n "$ac_maketemp"; then
6487 eval ac_cv_prog_make_${ac_make}_set=yes
6488 else
6489 eval ac_cv_prog_make_${ac_make}_set=no
6490 fi
6491 rm -f conftest.make
6492 fi
6493 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6494 echo "$as_me:$LINENO: result: yes" >&5
6495 echo "${ECHO_T}yes" >&6
6496 SET_MAKE=
6497 else
6498 echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6
6500 SET_MAKE="MAKE=${MAKE-make}"
6501 fi
6502
6503
6504 echo "$as_me:$LINENO: checking for long file names" >&5
6505 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6506 if test "${ac_cv_sys_long_file_names+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 ac_cv_sys_long_file_names=yes
6510 # Test for long file names in all the places we know might matter:
6511 # . the current directory, where building will happen
6512 # $prefix/lib where we will be installing things
6513 # $exec_prefix/lib likewise
6514 # eval it to expand exec_prefix.
6515 # $TMPDIR if set, where it might want to write temporary files
6516 # if $TMPDIR is not set:
6517 # /tmp where it might want to write temporary files
6518 # /var/tmp likewise
6519 # /usr/tmp likewise
6520 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6521 ac_tmpdirs=$TMPDIR
6522 else
6523 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6524 fi
6525 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6526 test -d $ac_dir || continue
6527 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6528 ac_xdir=$ac_dir/cf$$
6529 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6530 ac_tf1=$ac_xdir/conftest9012345
6531 ac_tf2=$ac_xdir/conftest9012346
6532 (echo 1 >$ac_tf1) 2>/dev/null
6533 (echo 2 >$ac_tf2) 2>/dev/null
6534 ac_val=`cat $ac_tf1 2>/dev/null`
6535 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6536 ac_cv_sys_long_file_names=no
6537 rm -rf $ac_xdir 2>/dev/null
6538 break
6539 fi
6540 rm -rf $ac_xdir 2>/dev/null
6541 done
6542 fi
6543 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6544 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6545 if test $ac_cv_sys_long_file_names = yes; then
6546
6547 cat >>confdefs.h <<\_ACEOF
6548 #define HAVE_LONG_FILE_NAMES 1
6549 _ACEOF
6550
6551 fi
6552
6553
6554 #### Choose a window system.
6555
6556 echo "$as_me:$LINENO: checking for X" >&5
6557 echo $ECHO_N "checking for X... $ECHO_C" >&6
6558
6559
6560 # Check whether --with-x or --without-x was given.
6561 if test "${with_x+set}" = set; then
6562 withval="$with_x"
6563
6564 fi;
6565 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6566 if test "x$with_x" = xno; then
6567 # The user explicitly disabled X.
6568 have_x=disabled
6569 else
6570 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6571 # Both variables are already set.
6572 have_x=yes
6573 else
6574 if test "${ac_cv_have_x+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 # One or both of the vars are not set, and there is no cached value.
6578 ac_x_includes=no ac_x_libraries=no
6579 rm -fr conftest.dir
6580 if mkdir conftest.dir; then
6581 cd conftest.dir
6582 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6583 cat >Imakefile <<'_ACEOF'
6584 acfindx:
6585 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6586 _ACEOF
6587 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6589 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6590 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6591 for ac_extension in a so sl; do
6592 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6593 test -f $ac_im_libdir/libX11.$ac_extension; then
6594 ac_im_usrlibdir=$ac_im_libdir; break
6595 fi
6596 done
6597 # Screen out bogus values from the imake configuration. They are
6598 # bogus both because they are the default anyway, and because
6599 # using them would break gcc on systems where it needs fixed includes.
6600 case $ac_im_incroot in
6601 /usr/include) ;;
6602 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6603 esac
6604 case $ac_im_usrlibdir in
6605 /usr/lib | /lib) ;;
6606 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6607 esac
6608 fi
6609 cd ..
6610 rm -fr conftest.dir
6611 fi
6612
6613 # Standard set of common directories for X headers.
6614 # Check X11 before X11Rn because it is often a symlink to the current release.
6615 ac_x_header_dirs='
6616 /usr/X11/include
6617 /usr/X11R6/include
6618 /usr/X11R5/include
6619 /usr/X11R4/include
6620
6621 /usr/include/X11
6622 /usr/include/X11R6
6623 /usr/include/X11R5
6624 /usr/include/X11R4
6625
6626 /usr/local/X11/include
6627 /usr/local/X11R6/include
6628 /usr/local/X11R5/include
6629 /usr/local/X11R4/include
6630
6631 /usr/local/include/X11
6632 /usr/local/include/X11R6
6633 /usr/local/include/X11R5
6634 /usr/local/include/X11R4
6635
6636 /usr/X386/include
6637 /usr/x386/include
6638 /usr/XFree86/include/X11
6639
6640 /usr/include
6641 /usr/local/include
6642 /usr/unsupported/include
6643 /usr/athena/include
6644 /usr/local/x11r5/include
6645 /usr/lpp/Xamples/include
6646
6647 /usr/openwin/include
6648 /usr/openwin/share/include'
6649
6650 if test "$ac_x_includes" = no; then
6651 # Guess where to find include files, by looking for Intrinsic.h.
6652 # First, try using that file with no special directory specified.
6653 cat >conftest.$ac_ext <<_ACEOF
6654 #line $LINENO "configure"
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 #include <X11/Intrinsic.h>
6661 _ACEOF
6662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } >/dev/null; then
6670 if test -s conftest.err; then
6671 ac_cpp_err=$ac_c_preproc_warn_flag
6672 else
6673 ac_cpp_err=
6674 fi
6675 else
6676 ac_cpp_err=yes
6677 fi
6678 if test -z "$ac_cpp_err"; then
6679 # We can compile using X headers with no special include directory.
6680 ac_x_includes=
6681 else
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 for ac_dir in $ac_x_header_dirs; do
6686 if test -r "$ac_dir/X11/Intrinsic.h"; then
6687 ac_x_includes=$ac_dir
6688 break
6689 fi
6690 done
6691 fi
6692 rm -f conftest.err conftest.$ac_ext
6693 fi # $ac_x_includes = no
6694
6695 if test "$ac_x_libraries" = no; then
6696 # Check for the libraries.
6697 # See if we find them without any special options.
6698 # Don't add to $LIBS permanently.
6699 ac_save_LIBS=$LIBS
6700 LIBS="-lXt $LIBS"
6701 cat >conftest.$ac_ext <<_ACEOF
6702 #line $LINENO "configure"
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <X11/Intrinsic.h>
6709 int
6710 main ()
6711 {
6712 XtMalloc (0)
6713 ;
6714 return 0;
6715 }
6716 _ACEOF
6717 rm -f conftest.$ac_objext conftest$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 LIBS=$ac_save_LIBS
6730 # We can link X programs with no special library path.
6731 ac_x_libraries=
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 LIBS=$ac_save_LIBS
6737 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6738 do
6739 # Don't even attempt the hair of trying to link an X program!
6740 for ac_extension in a so sl; do
6741 if test -r $ac_dir/libXt.$ac_extension; then
6742 ac_x_libraries=$ac_dir
6743 break 2
6744 fi
6745 done
6746 done
6747 fi
6748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 fi # $ac_x_libraries = no
6750
6751 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6752 # Didn't find X anywhere. Cache the known absence of X.
6753 ac_cv_have_x="have_x=no"
6754 else
6755 # Record where we found X for the cache.
6756 ac_cv_have_x="have_x=yes \
6757 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6758 fi
6759 fi
6760
6761 fi
6762 eval "$ac_cv_have_x"
6763 fi # $with_x != no
6764
6765 if test "$have_x" != yes; then
6766 echo "$as_me:$LINENO: result: $have_x" >&5
6767 echo "${ECHO_T}$have_x" >&6
6768 no_x=yes
6769 else
6770 # If each of the values was on the command line, it overrides each guess.
6771 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6772 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6773 # Update the cache value to reflect the command line values.
6774 ac_cv_have_x="have_x=yes \
6775 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6776 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6777 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6778 fi
6779
6780 if test "$no_x" = yes; then
6781 window_system=none
6782 else
6783 window_system=x11
6784 fi
6785
6786 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6787 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6788 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6789 x_default_search_path=""
6790 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6791 x_search_path="\
6792 ${x_library}/X11/%L/%T/%N%C%S:\
6793 ${x_library}/X11/%l/%T/%N%C%S:\
6794 ${x_library}/X11/%T/%N%C%S:\
6795 ${x_library}/X11/%L/%T/%N%S:\
6796 ${x_library}/X11/%l/%T/%N%S:\
6797 ${x_library}/X11/%T/%N%S"
6798 if test x"${x_default_search_path}" = x; then
6799 x_default_search_path=${x_search_path}
6800 else
6801 x_default_search_path="${x_search_path}:${x_default_search_path}"
6802 fi
6803 done
6804 fi
6805 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6806 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6807 fi
6808
6809 if test x"${x_includes}" = x; then
6810 bitmapdir=/usr/include/X11/bitmaps
6811 else
6812 # accumulate include directories that have X11 bitmap subdirectories
6813 bmd_acc="dummyval"
6814 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6815 if test -d "${bmd}/X11/bitmaps"; then
6816 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6817 fi
6818 if test -d "${bmd}/bitmaps"; then
6819 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6820 fi
6821 done
6822 if test ${bmd_acc} != "dummyval"; then
6823 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6824 fi
6825 fi
6826
6827 case "${window_system}" in
6828 x11 )
6829 HAVE_X_WINDOWS=yes
6830 HAVE_X11=yes
6831 case "${with_x_toolkit}" in
6832 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6833 motif ) USE_X_TOOLKIT=MOTIF ;;
6834 gtk ) with_gtk=yes
6835 USE_X_TOOLKIT=none ;;
6836 no ) USE_X_TOOLKIT=none ;;
6837 * ) USE_X_TOOLKIT=maybe ;;
6838 esac
6839 ;;
6840 none )
6841 HAVE_X_WINDOWS=no
6842 HAVE_X11=no
6843 USE_X_TOOLKIT=none
6844 ;;
6845 esac
6846
6847 ### If we're using X11, we should use the X menu package.
6848 HAVE_MENUS=no
6849 case ${HAVE_X11} in
6850 yes ) HAVE_MENUS=yes ;;
6851 esac
6852
6853 if test "${opsys}" = "hpux9"; then
6854 case "${x_libraries}" in
6855 *X11R4* )
6856 opsysfile="s/hpux9-x11r4.h"
6857 ;;
6858 esac
6859 fi
6860
6861 if test "${opsys}" = "hpux9shr"; then
6862 case "${x_libraries}" in
6863 *X11R4* )
6864 opsysfile="s/hpux9shxr4.h"
6865 ;;
6866 esac
6867 fi
6868
6869 ### Compute the unexec source name from the object name.
6870 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6871
6872 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6873 # Assume not, until told otherwise.
6874 GNU_MALLOC=yes
6875 doug_lea_malloc=yes
6876 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6877 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6878 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 /* System header to define __stub macros and hopefully few prototypes,
6889 which can conflict with char malloc_get_state (); below.
6890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891 <limits.h> exists even on freestanding compilers. */
6892 #ifdef __STDC__
6893 # include <limits.h>
6894 #else
6895 # include <assert.h>
6896 #endif
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 #ifdef __cplusplus
6899 extern "C"
6900 {
6901 #endif
6902 /* We use char because int might match the return type of a gcc2
6903 builtin and then its argument prototype would still apply. */
6904 char malloc_get_state ();
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6909 choke me
6910 #else
6911 char (*f) () = malloc_get_state;
6912 #endif
6913 #ifdef __cplusplus
6914 }
6915 #endif
6916
6917 int
6918 main ()
6919 {
6920 return f != malloc_get_state;
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -s conftest$ac_exeext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_func_malloc_get_state=yes
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 ac_cv_func_malloc_get_state=no
6943 fi
6944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6945 fi
6946 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6947 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6948 if test $ac_cv_func_malloc_get_state = yes; then
6949 :
6950 else
6951 doug_lea_malloc=no
6952 fi
6953
6954 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6955 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6956 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 #line $LINENO "configure"
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 /* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char malloc_set_state (); below.
6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 <limits.h> exists even on freestanding compilers. */
6970 #ifdef __STDC__
6971 # include <limits.h>
6972 #else
6973 # include <assert.h>
6974 #endif
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 #ifdef __cplusplus
6977 extern "C"
6978 {
6979 #endif
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982 char malloc_set_state ();
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6987 choke me
6988 #else
6989 char (*f) () = malloc_set_state;
6990 #endif
6991 #ifdef __cplusplus
6992 }
6993 #endif
6994
6995 int
6996 main ()
6997 {
6998 return f != malloc_set_state;
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_func_malloc_set_state=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ac_cv_func_malloc_set_state=no
7021 fi
7022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7023 fi
7024 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7025 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7026 if test $ac_cv_func_malloc_set_state = yes; then
7027 :
7028 else
7029 doug_lea_malloc=no
7030 fi
7031
7032 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7033 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7034 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 extern void (* __after_morecore_hook)();
7045 int
7046 main ()
7047 {
7048 __after_morecore_hook = 0
7049 ;
7050 return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext conftest$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055 (eval $ac_link) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 emacs_cv_var___after_morecore_hook=yes
7066 else
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070 emacs_cv_var___after_morecore_hook=no
7071 fi
7072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7073 fi
7074 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7075 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7076 if test $emacs_cv_var___after_morecore_hook = no; then
7077 doug_lea_malloc=no
7078 fi
7079 if test "${system_malloc}" = "yes"; then
7080 GNU_MALLOC=no
7081 GNU_MALLOC_reason="
7082 (The GNU allocators don't work with this system configuration.)"
7083 fi
7084 if test "$doug_lea_malloc" = "yes" ; then
7085 if test "$GNU_MALLOC" = yes ; then
7086 GNU_MALLOC_reason="
7087 (Using Doug Lea's new malloc from the GNU C Library.)"
7088 fi
7089
7090 cat >>confdefs.h <<\_ACEOF
7091 #define DOUG_LEA_MALLOC 1
7092 _ACEOF
7093
7094 fi
7095
7096 if test x"${REL_ALLOC}" = x; then
7097 REL_ALLOC=${GNU_MALLOC}
7098 fi
7099
7100
7101
7102
7103 for ac_header in stdlib.h unistd.h
7104 do
7105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107 echo "$as_me:$LINENO: checking for $ac_header" >&5
7108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 fi
7112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114 else
7115 # Is the header compilable?
7116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 #include <$ac_header>
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_header_compiler=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ac_header_compiler=no
7146 fi
7147 rm -f conftest.$ac_objext conftest.$ac_ext
7148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7149 echo "${ECHO_T}$ac_header_compiler" >&6
7150
7151 # Is the header present?
7152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7154 cat >conftest.$ac_ext <<_ACEOF
7155 #line $LINENO "configure"
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #include <$ac_header>
7162 _ACEOF
7163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } >/dev/null; then
7171 if test -s conftest.err; then
7172 ac_cpp_err=$ac_c_preproc_warn_flag
7173 else
7174 ac_cpp_err=
7175 fi
7176 else
7177 ac_cpp_err=yes
7178 fi
7179 if test -z "$ac_cpp_err"; then
7180 ac_header_preproc=yes
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_header_preproc=no
7186 fi
7187 rm -f conftest.err conftest.$ac_ext
7188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7189 echo "${ECHO_T}$ac_header_preproc" >&6
7190
7191 # So? What about this header?
7192 case $ac_header_compiler:$ac_header_preproc in
7193 yes:no )
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7198 (
7199 cat <<\_ASBOX
7200 ## ------------------------------------ ##
7201 ## Report this to bug-autoconf@gnu.org. ##
7202 ## ------------------------------------ ##
7203 _ASBOX
7204 ) |
7205 sed "s/^/$as_me: WARNING: /" >&2
7206 ;;
7207 no:yes )
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7214 (
7215 cat <<\_ASBOX
7216 ## ------------------------------------ ##
7217 ## Report this to bug-autoconf@gnu.org. ##
7218 ## ------------------------------------ ##
7219 _ASBOX
7220 ) |
7221 sed "s/^/$as_me: WARNING: /" >&2
7222 ;;
7223 esac
7224 echo "$as_me:$LINENO: checking for $ac_header" >&5
7225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 eval "$as_ac_Header=$ac_header_preproc"
7230 fi
7231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7233
7234 fi
7235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7236 cat >>confdefs.h <<_ACEOF
7237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 _ACEOF
7239
7240 fi
7241
7242 done
7243
7244
7245 for ac_func in getpagesize
7246 do
7247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7248 echo "$as_me:$LINENO: checking for $ac_func" >&5
7249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_var+set}\" = set"; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func (); below.
7262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263 <limits.h> exists even on freestanding compilers. */
7264 #ifdef __STDC__
7265 # include <limits.h>
7266 #else
7267 # include <assert.h>
7268 #endif
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 #ifdef __cplusplus
7271 extern "C"
7272 {
7273 #endif
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7276 char $ac_func ();
7277 /* The GNU C library defines this for functions which it implements
7278 to always fail with ENOSYS. Some functions are actually named
7279 something starting with __ and the normal name is an alias. */
7280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7281 choke me
7282 #else
7283 char (*f) () = $ac_func;
7284 #endif
7285 #ifdef __cplusplus
7286 }
7287 #endif
7288
7289 int
7290 main ()
7291 {
7292 return f != $ac_func;
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7299 (eval $ac_link) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try='test -s conftest$ac_exeext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 eval "$as_ac_var=yes"
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 eval "$as_ac_var=no"
7315 fi
7316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7317 fi
7318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7320 if test `eval echo '${'$as_ac_var'}'` = yes; then
7321 cat >>confdefs.h <<_ACEOF
7322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7323 _ACEOF
7324
7325 fi
7326 done
7327
7328 echo "$as_me:$LINENO: checking for working mmap" >&5
7329 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7330 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 if test "$cross_compiling" = yes; then
7334 ac_cv_func_mmap_fixed_mapped=no
7335 else
7336 cat >conftest.$ac_ext <<_ACEOF
7337 #line $LINENO "configure"
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 /* malloc might have been renamed as rpl_malloc. */
7345 #undef malloc
7346
7347 /* Thanks to Mike Haertel and Jim Avera for this test.
7348 Here is a matrix of mmap possibilities:
7349 mmap private not fixed
7350 mmap private fixed at somewhere currently unmapped
7351 mmap private fixed at somewhere already mapped
7352 mmap shared not fixed
7353 mmap shared fixed at somewhere currently unmapped
7354 mmap shared fixed at somewhere already mapped
7355 For private mappings, we should verify that changes cannot be read()
7356 back from the file, nor mmap's back from the file at a different
7357 address. (There have been systems where private was not correctly
7358 implemented like the infamous i386 svr4.0, and systems where the
7359 VM page cache was not coherent with the file system buffer cache
7360 like early versions of FreeBSD and possibly contemporary NetBSD.)
7361 For shared mappings, we should conversely verify that changes get
7362 propagated back to all the places they're supposed to be.
7363
7364 Grep wants private fixed already mapped.
7365 The main things grep needs to know about mmap are:
7366 * does it exist and is it safe to write into the mmap'd area
7367 * how to use it (BSD variants) */
7368
7369 #include <fcntl.h>
7370 #include <sys/mman.h>
7371
7372 #if !STDC_HEADERS && !HAVE_STDLIB_H
7373 char *malloc ();
7374 #endif
7375
7376 /* This mess was copied from the GNU getpagesize.h. */
7377 #if !HAVE_GETPAGESIZE
7378 /* Assume that all systems that can run configure have sys/param.h. */
7379 # if !HAVE_SYS_PARAM_H
7380 # define HAVE_SYS_PARAM_H 1
7381 # endif
7382
7383 # ifdef _SC_PAGESIZE
7384 # define getpagesize() sysconf(_SC_PAGESIZE)
7385 # else /* no _SC_PAGESIZE */
7386 # if HAVE_SYS_PARAM_H
7387 # include <sys/param.h>
7388 # ifdef EXEC_PAGESIZE
7389 # define getpagesize() EXEC_PAGESIZE
7390 # else /* no EXEC_PAGESIZE */
7391 # ifdef NBPG
7392 # define getpagesize() NBPG * CLSIZE
7393 # ifndef CLSIZE
7394 # define CLSIZE 1
7395 # endif /* no CLSIZE */
7396 # else /* no NBPG */
7397 # ifdef NBPC
7398 # define getpagesize() NBPC
7399 # else /* no NBPC */
7400 # ifdef PAGESIZE
7401 # define getpagesize() PAGESIZE
7402 # endif /* PAGESIZE */
7403 # endif /* no NBPC */
7404 # endif /* no NBPG */
7405 # endif /* no EXEC_PAGESIZE */
7406 # else /* no HAVE_SYS_PARAM_H */
7407 # define getpagesize() 8192 /* punt totally */
7408 # endif /* no HAVE_SYS_PARAM_H */
7409 # endif /* no _SC_PAGESIZE */
7410
7411 #endif /* no HAVE_GETPAGESIZE */
7412
7413 int
7414 main ()
7415 {
7416 char *data, *data2, *data3;
7417 int i, pagesize;
7418 int fd;
7419
7420 pagesize = getpagesize ();
7421
7422 /* First, make a file with some known garbage in it. */
7423 data = (char *) malloc (pagesize);
7424 if (!data)
7425 exit (1);
7426 for (i = 0; i < pagesize; ++i)
7427 *(data + i) = rand ();
7428 umask (0);
7429 fd = creat ("conftest.mmap", 0600);
7430 if (fd < 0)
7431 exit (1);
7432 if (write (fd, data, pagesize) != pagesize)
7433 exit (1);
7434 close (fd);
7435
7436 /* Next, try to mmap the file at a fixed address which already has
7437 something else allocated at it. If we can, also make sure that
7438 we see the same garbage. */
7439 fd = open ("conftest.mmap", O_RDWR);
7440 if (fd < 0)
7441 exit (1);
7442 data2 = (char *) malloc (2 * pagesize);
7443 if (!data2)
7444 exit (1);
7445 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7448 exit (1);
7449 for (i = 0; i < pagesize; ++i)
7450 if (*(data + i) != *(data2 + i))
7451 exit (1);
7452
7453 /* Finally, make sure that changes to the mapped area do not
7454 percolate back to the file as seen by read(). (This is a bug on
7455 some variants of i386 svr4.0.) */
7456 for (i = 0; i < pagesize; ++i)
7457 *(data2 + i) = *(data2 + i) + 1;
7458 data3 = (char *) malloc (pagesize);
7459 if (!data3)
7460 exit (1);
7461 if (read (fd, data3, pagesize) != pagesize)
7462 exit (1);
7463 for (i = 0; i < pagesize; ++i)
7464 if (*(data + i) != *(data3 + i))
7465 exit (1);
7466 close (fd);
7467 exit (0);
7468 }
7469 _ACEOF
7470 rm -f conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_func_mmap_fixed_mapped=yes
7482 else
7483 echo "$as_me: program exited with status $ac_status" >&5
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ( exit $ac_status )
7488 ac_cv_func_mmap_fixed_mapped=no
7489 fi
7490 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7491 fi
7492 fi
7493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7494 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7496
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MMAP 1
7499 _ACEOF
7500
7501 fi
7502 rm -f conftest.mmap
7503
7504 if test $use_mmap_for_buffers = yes; then
7505 REL_ALLOC=no
7506 fi
7507
7508 LIBS="$libsrc_libs $LIBS"
7509
7510
7511 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7512 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7513 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-ldnet $LIBS"
7518 cat >conftest.$ac_ext <<_ACEOF
7519 #line $LINENO "configure"
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 #ifdef __cplusplus
7528 extern "C"
7529 #endif
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7532 char dnet_ntoa ();
7533 int
7534 main ()
7535 {
7536 dnet_ntoa ();
7537 ;
7538 return 0;
7539 }
7540 _ACEOF
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543 (eval $ac_link) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_cv_lib_dnet_dnet_ntoa=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ac_cv_lib_dnet_dnet_ntoa=no
7559 fi
7560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7561 LIBS=$ac_check_lib_save_LIBS
7562 fi
7563 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7564 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7565 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7566 cat >>confdefs.h <<_ACEOF
7567 #define HAVE_LIBDNET 1
7568 _ACEOF
7569
7570 LIBS="-ldnet $LIBS"
7571
7572 fi
7573
7574
7575 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7576 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7577 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580 ac_check_lib_save_LIBS=$LIBS
7581 LIBS="-lXbsd $LIBS"
7582 cat >conftest.$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589
7590
7591 int
7592 main ()
7593 {
7594 main ();
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 rm -f conftest.$ac_objext conftest$ac_exeext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7601 (eval $ac_link) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -s conftest$ac_exeext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_lib_Xbsd_main=yes
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 ac_cv_lib_Xbsd_main=no
7617 fi
7618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7619 LIBS=$ac_check_lib_save_LIBS
7620 fi
7621 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7622 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7623 if test $ac_cv_lib_Xbsd_main = yes; then
7624 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7625 fi
7626
7627
7628
7629 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7630 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7631 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 ac_check_lib_save_LIBS=$LIBS
7635 LIBS="-lpthreads $LIBS"
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line $LINENO "configure"
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643
7644 /* Override any gcc2 internal prototype to avoid an error. */
7645 #ifdef __cplusplus
7646 extern "C"
7647 #endif
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7650 char cma_open ();
7651 int
7652 main ()
7653 {
7654 cma_open ();
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -s conftest$ac_exeext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_lib_pthreads_cma_open=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_cv_lib_pthreads_cma_open=no
7677 fi
7678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 LIBS=$ac_check_lib_save_LIBS
7680 fi
7681 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7682 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7683 if test $ac_cv_lib_pthreads_cma_open = yes; then
7684 cat >>confdefs.h <<_ACEOF
7685 #define HAVE_LIBPTHREADS 1
7686 _ACEOF
7687
7688 LIBS="-lpthreads $LIBS"
7689
7690 fi
7691
7692
7693 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7694 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7695 if test -d /usr/X386/include; then
7696 HAVE_XFREE386=yes
7697 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7698 else
7699 HAVE_XFREE386=no
7700 fi
7701 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7702 echo "${ECHO_T}$HAVE_XFREE386" >&6
7703
7704 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7705 # used for the tests that follow. We set them back to REAL_CFLAGS and
7706 # REAL_CPPFLAGS later on.
7707
7708 REAL_CPPFLAGS="$CPPFLAGS"
7709
7710 if test "${HAVE_X11}" = "yes"; then
7711 DEFS="$C_SWITCH_X_SITE $DEFS"
7712 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7713 LIBS="$LIBX $LIBS"
7714 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7715 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7716
7717 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7718 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7719 # but it's more convenient here to set LD_RUN_PATH
7720 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7721 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7722 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7723 export LD_RUN_PATH
7724 fi
7725
7726 if test "${opsys}" = "gnu-linux"; then
7727 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7728 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7729 cat >conftest.$ac_ext <<_ACEOF
7730 #line $LINENO "configure"
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736
7737 int
7738 main ()
7739 {
7740 XOpenDisplay ("foo");
7741 ;
7742 return 0;
7743 }
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 xlinux_first_failure=no
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762 xlinux_first_failure=yes
7763 fi
7764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7765 if test "${xlinux_first_failure}" = "yes"; then
7766 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7767 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7768 OLD_CPPFLAGS="$CPPFLAGS"
7769 OLD_LIBS="$LIBS"
7770 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7771 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7772 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7773 LIBS="$LIBS -b i486-linuxaout"
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 /* confdefs.h. */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781
7782 int
7783 main ()
7784 {
7785 XOpenDisplay ("foo");
7786 ;
7787 return 0;
7788 }
7789 _ACEOF
7790 rm -f conftest.$ac_objext conftest$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 xlinux_second_failure=no
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807 xlinux_second_failure=yes
7808 fi
7809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7810 if test "${xlinux_second_failure}" = "yes"; then
7811 # If we get the same failure with -b, there is no use adding -b.
7812 # So take it out. This plays safe.
7813 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7814 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7815 CPPFLAGS="$OLD_CPPFLAGS"
7816 LIBS="$OLD_LIBS"
7817 echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7819 else
7820 echo "$as_me:$LINENO: result: yes" >&5
7821 echo "${ECHO_T}yes" >&6
7822 fi
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7826 fi
7827 fi
7828
7829 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7830 # header files included from there.
7831 echo "$as_me:$LINENO: checking for Xkb" >&5
7832 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 #include <X11/Xlib.h>
7841 #include <X11/XKBlib.h>
7842 int
7843 main ()
7844 {
7845 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -s conftest$ac_exeext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 emacs_xkb=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 emacs_xkb=no
7868 fi
7869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7870 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7871 echo "${ECHO_T}$emacs_xkb" >&6
7872 if test $emacs_xkb = yes; then
7873
7874 cat >>confdefs.h <<\_ACEOF
7875 #define HAVE_XKBGETKEYBOARD 1
7876 _ACEOF
7877
7878 fi
7879
7880
7881
7882
7883
7884 for ac_func in XrmSetDatabase XScreenResourceString \
7885 XScreenNumberOfScreen XSetWMProtocols
7886 do
7887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7888 echo "$as_me:$LINENO: checking for $ac_func" >&5
7889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7890 if eval "test \"\${$as_ac_var+set}\" = set"; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char $ac_func (); below.
7902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7903 <limits.h> exists even on freestanding compilers. */
7904 #ifdef __STDC__
7905 # include <limits.h>
7906 #else
7907 # include <assert.h>
7908 #endif
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 #ifdef __cplusplus
7911 extern "C"
7912 {
7913 #endif
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7916 char $ac_func ();
7917 /* The GNU C library defines this for functions which it implements
7918 to always fail with ENOSYS. Some functions are actually named
7919 something starting with __ and the normal name is an alias. */
7920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7921 choke me
7922 #else
7923 char (*f) () = $ac_func;
7924 #endif
7925 #ifdef __cplusplus
7926 }
7927 #endif
7928
7929 int
7930 main ()
7931 {
7932 return f != $ac_func;
7933 ;
7934 return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 eval "$as_ac_var=yes"
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 eval "$as_ac_var=no"
7955 fi
7956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7957 fi
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7963 _ACEOF
7964
7965 fi
7966 done
7967
7968 fi
7969
7970 if test "${window_system}" = "x11"; then
7971 echo "$as_me:$LINENO: checking X11 version 6" >&5
7972 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7973 if test "${emacs_cv_x11_version_6+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976 cat >conftest.$ac_ext <<_ACEOF
7977 #line $LINENO "configure"
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <X11/Xlib.h>
7984 int
7985 main ()
7986 {
7987 #if XlibSpecificationRelease < 6
7988 fail;
7989 #endif
7990
7991 ;
7992 return 0;
7993 }
7994 _ACEOF
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try='test -s conftest$ac_exeext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 emacs_cv_x11_version_6=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012 emacs_cv_x11_version_6=no
8013 fi
8014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8015 fi
8016
8017 if test $emacs_cv_x11_version_6 = yes; then
8018 echo "$as_me:$LINENO: result: 6 or newer" >&5
8019 echo "${ECHO_T}6 or newer" >&6
8020
8021 cat >>confdefs.h <<\_ACEOF
8022 #define HAVE_X11R6 1
8023 _ACEOF
8024
8025 else
8026 echo "$as_me:$LINENO: result: before 6" >&5
8027 echo "${ECHO_T}before 6" >&6
8028 fi
8029 fi
8030
8031 if test "${window_system}" = "x11"; then
8032 echo "$as_me:$LINENO: checking X11 version 5" >&5
8033 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8034 if test "${emacs_cv_x11_version_5+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 cat >conftest.$ac_ext <<_ACEOF
8038 #line $LINENO "configure"
8039 /* confdefs.h. */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 #include <X11/Xlib.h>
8045 int
8046 main ()
8047 {
8048 #if XlibSpecificationRelease < 5
8049 fail;
8050 #endif
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 emacs_cv_x11_version_5=yes
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073 emacs_cv_x11_version_5=no
8074 fi
8075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8076 fi
8077
8078 if test $emacs_cv_x11_version_5 = yes; then
8079 echo "$as_me:$LINENO: result: 5 or newer" >&5
8080 echo "${ECHO_T}5 or newer" >&6
8081 HAVE_X11R5=yes
8082
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_X11R5 1
8085 _ACEOF
8086
8087 else
8088 HAVE_X11R5=no
8089 echo "$as_me:$LINENO: result: before 5" >&5
8090 echo "${ECHO_T}before 5" >&6
8091 fi
8092 fi
8093
8094
8095
8096 HAVE_GTK=no
8097 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8098 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8099 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8100 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8101 { (exit 1); exit 1; }; };
8102 fi
8103 GLIB_REQUIRED=2.0.1
8104 GTK_REQUIRED=2.0.1
8105 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8106
8107 if test "X${with_pkg_config_prog}" != X; then
8108 PKG_CONFIG="${with_pkg_config_prog}"
8109 fi
8110
8111 succeeded=no
8112
8113 if test -z "$PKG_CONFIG"; then
8114 # Extract the first word of "pkg-config", so it can be a program name with args.
8115 set dummy pkg-config; ac_word=$2
8116 echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 case $PKG_CONFIG in
8122 [\\/]* | ?:[\\/]*)
8123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8124 ;;
8125 *)
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139
8140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8141 ;;
8142 esac
8143 fi
8144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8145
8146 if test -n "$PKG_CONFIG"; then
8147 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8148 echo "${ECHO_T}$PKG_CONFIG" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8152 fi
8153
8154 fi
8155
8156 if test "$PKG_CONFIG" = "no" ; then
8157 echo "*** The pkg-config script could not be found. Make sure it is"
8158 echo "*** in your path, or give the full path to pkg-config with"
8159 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8160 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8161 else
8162 PKG_CONFIG_MIN_VERSION=0.9.0
8163 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8164 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8165 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8166
8167 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8168 echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8170 succeeded=yes
8171
8172 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8173 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8174 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8175 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8176 echo "${ECHO_T}$GTK_CFLAGS" >&6
8177
8178 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8179 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8180 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8181 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8182 echo "${ECHO_T}$GTK_LIBS" >&6
8183 else
8184 GTK_CFLAGS=""
8185 GTK_LIBS=""
8186 ## If we have a custom action on failure, don't print errors, but
8187 ## do set a variable so people can do so.
8188 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8189 echo $GTK_PKG_ERRORS
8190 fi
8191
8192
8193
8194 else
8195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8197 fi
8198 fi
8199
8200 if test $succeeded = yes; then
8201 :
8202 else
8203 { { 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
8204 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;}
8205 { (exit 1); exit 1; }; }
8206 fi
8207
8208
8209
8210 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8211 HAVE_GTK=yes
8212
8213 cat >>confdefs.h <<\_ACEOF
8214 #define HAVE_GTK 1
8215 _ACEOF
8216
8217 USE_X_TOOLKIT=none
8218
8219 with_toolkit_scroll_bars=yes
8220 fi
8221
8222 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8223 if test x"${HAVE_X11R5}" = xyes; then
8224 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8225 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8226 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236
8237 #include <X11/Intrinsic.h>
8238 #include <X11/Xaw/Simple.h>
8239 int
8240 main ()
8241 {
8242
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -s conftest$ac_exeext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 emacs_cv_x11_version_5_with_xaw=yes
8260 else
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264 emacs_cv_x11_version_5_with_xaw=no
8265 fi
8266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8267 fi
8268
8269 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8270 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8271 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8272 USE_X_TOOLKIT=LUCID
8273 else
8274 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8275 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8276 USE_X_TOOLKIT=none
8277 fi
8278 else
8279 USE_X_TOOLKIT=none
8280 fi
8281 fi
8282
8283 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8284
8285 if test "${USE_X_TOOLKIT}" != "none"; then
8286 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8287 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8288 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 #include <X11/Intrinsic.h>
8299 int
8300 main ()
8301 {
8302 #if XtSpecificationRelease < 6
8303 fail;
8304 #endif
8305
8306 ;
8307 return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 emacs_cv_x11_toolkit_version_6=yes
8323 else
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 emacs_cv_x11_toolkit_version_6=no
8328 fi
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8330 fi
8331
8332 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8333 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8334 echo "$as_me:$LINENO: result: 6 or newer" >&5
8335 echo "${ECHO_T}6 or newer" >&6
8336
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_X11XTR6 1
8339 _ACEOF
8340
8341 else
8342 echo "$as_me:$LINENO: result: before 6" >&5
8343 echo "${ECHO_T}before 6" >&6
8344 fi
8345
8346 OLDLIBS="$LIBS"
8347 if test x$HAVE_X11XTR6 = xyes; then
8348 LIBS="-lXt -lSM -lICE $LIBS"
8349 else
8350 LIBS="-lXt $LIBS"
8351 fi
8352
8353 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8354 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8355 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 ac_check_lib_save_LIBS=$LIBS
8359 LIBS="-lXmu $LIBS"
8360 cat >conftest.$ac_ext <<_ACEOF
8361 #line $LINENO "configure"
8362 /* confdefs.h. */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 #ifdef __cplusplus
8370 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char XmuConvertStandardSelection ();
8375 int
8376 main ()
8377 {
8378 XmuConvertStandardSelection ();
8379 ;
8380 return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8401 fi
8402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8403 LIBS=$ac_check_lib_save_LIBS
8404 fi
8405 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8406 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8407 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409 #define HAVE_LIBXMU 1
8410 _ACEOF
8411
8412 LIBS="-lXmu $LIBS"
8413
8414 fi
8415
8416 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8417 fi
8418
8419 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8420 if test "${HAVE_X11}" = "yes"; then
8421 if test "${USE_X_TOOLKIT}" != "none"; then
8422
8423 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8424 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8425 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 ac_check_lib_save_LIBS=$LIBS
8429 LIBS="-lXext $LIBS"
8430 cat >conftest.$ac_ext <<_ACEOF
8431 #line $LINENO "configure"
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char XShapeQueryExtension ();
8445 int
8446 main ()
8447 {
8448 XShapeQueryExtension ();
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 ac_cv_lib_Xext_XShapeQueryExtension=yes
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 ac_cv_lib_Xext_XShapeQueryExtension=no
8471 fi
8472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8474 fi
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8476 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8477 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479 #define HAVE_LIBXEXT 1
8480 _ACEOF
8481
8482 LIBS="-lXext $LIBS"
8483
8484 fi
8485
8486 fi
8487 fi
8488
8489 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8490 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8491 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8492 if test "${emacs_cv_lesstif+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 # We put this in CFLAGS temporarily to precede other -I options
8496 # that might be in CFLAGS temporarily.
8497 # We put this in CPPFLAGS where it precedes the other -I options.
8498 OLD_CPPFLAGS=$CPPFLAGS
8499 OLD_CFLAGS=$CFLAGS
8500 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8501 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8510 int
8511 main ()
8512 {
8513 int x = 5;
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -s conftest.$ac_objext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 emacs_cv_lesstif=yes
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535 emacs_cv_lesstif=no
8536 fi
8537 rm -f conftest.$ac_objext conftest.$ac_ext
8538 fi
8539 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8540 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8541 if test $emacs_cv_lesstif = yes; then
8542 # Make sure this -I option remains in CPPFLAGS after it is set
8543 # back to REAL_CPPFLAGS.
8544 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8545 # have those other -I options anyway. Ultimately, having this
8546 # directory ultimately in CPPFLAGS will be enough.
8547 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8548 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8549 else
8550 CFLAGS=$OLD_CFLAGS
8551 CPPFLAGS=$OLD_CPPFLAGS
8552 fi
8553 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8554 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8555 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 cat >conftest.$ac_ext <<_ACEOF
8559 #line $LINENO "configure"
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 #include <Xm/Xm.h>
8566 int
8567 main ()
8568 {
8569 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8570 int x = 5;
8571 #else
8572 Motif version prior to 2.1.
8573 #endif
8574 ;
8575 return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 emacs_cv_motif_version_2_1=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 emacs_cv_motif_version_2_1=no
8596 fi
8597 rm -f conftest.$ac_objext conftest.$ac_ext
8598 fi
8599 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8600 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8601 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8602 if test $emacs_cv_motif_version_2_1 = yes; then
8603 HAVE_LIBXP=no
8604
8605 cat >>confdefs.h <<\_ACEOF
8606 #define HAVE_MOTIF_2_1 1
8607 _ACEOF
8608
8609 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8610 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8611 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 ac_check_lib_save_LIBS=$LIBS
8615 LIBS="-lXp $LIBS"
8616 cat >conftest.$ac_ext <<_ACEOF
8617 #line $LINENO "configure"
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623
8624 /* Override any gcc2 internal prototype to avoid an error. */
8625 #ifdef __cplusplus
8626 extern "C"
8627 #endif
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8630 char XpCreateContext ();
8631 int
8632 main ()
8633 {
8634 XpCreateContext ();
8635 ;
8636 return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_lib_Xp_XpCreateContext=yes
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 ac_cv_lib_Xp_XpCreateContext=no
8657 fi
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8660 fi
8661 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8662 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8663 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8664 HAVE_LIBXP=yes
8665 fi
8666
8667 if test ${HAVE_LIBXP} = yes; then
8668
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_LIBXP 1
8671 _ACEOF
8672
8673 fi
8674 fi
8675 fi
8676
8677 ### Is -lXaw3d available?
8678 HAVE_XAW3D=no
8679 if test "${HAVE_X11}" = "yes"; then
8680 if test "${USE_X_TOOLKIT}" != "none"; then
8681 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8682 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8683 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 cat >conftest.$ac_ext <<_ACEOF
8687 #line $LINENO "configure"
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 #include <X11/Xaw3d/Scrollbar.h>
8694 _ACEOF
8695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } >/dev/null; then
8703 if test -s conftest.err; then
8704 ac_cpp_err=$ac_c_preproc_warn_flag
8705 else
8706 ac_cpp_err=
8707 fi
8708 else
8709 ac_cpp_err=yes
8710 fi
8711 if test -z "$ac_cpp_err"; then
8712 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8718 fi
8719 rm -f conftest.err conftest.$ac_ext
8720 fi
8721 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8722 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8723 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8724 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8725 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8726 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 ac_check_lib_save_LIBS=$LIBS
8730 LIBS="-lXaw3d $LIBS"
8731 cat >conftest.$ac_ext <<_ACEOF
8732 #line $LINENO "configure"
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8738
8739 /* Override any gcc2 internal prototype to avoid an error. */
8740 #ifdef __cplusplus
8741 extern "C"
8742 #endif
8743 /* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8745 char XawScrollbarSetThumb ();
8746 int
8747 main ()
8748 {
8749 XawScrollbarSetThumb ();
8750 ;
8751 return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8772 fi
8773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8774 LIBS=$ac_check_lib_save_LIBS
8775 fi
8776 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8777 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8778 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8779 HAVE_XAW3D=yes
8780 fi
8781
8782 fi
8783
8784
8785 if test "${HAVE_XAW3D}" = "yes"; then
8786
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_XAW3D 1
8789 _ACEOF
8790
8791 fi
8792 fi
8793 fi
8794
8795
8796
8797 USE_TOOLKIT_SCROLL_BARS=no
8798 if test "${with_toolkit_scroll_bars}" != "no"; then
8799 if test "${USE_X_TOOLKIT}" != "none"; then
8800 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8801 cat >>confdefs.h <<\_ACEOF
8802 #define USE_TOOLKIT_SCROLL_BARS 1
8803 _ACEOF
8804
8805 HAVE_XAW3D=no
8806 USE_TOOLKIT_SCROLL_BARS=yes
8807 elif test "${HAVE_XAW3D}" = "yes"; then
8808 cat >>confdefs.h <<\_ACEOF
8809 #define USE_TOOLKIT_SCROLL_BARS 1
8810 _ACEOF
8811
8812 USE_TOOLKIT_SCROLL_BARS=yes
8813 fi
8814 elif test "${HAVE_GTK}" = "yes"; then
8815 cat >>confdefs.h <<\_ACEOF
8816 #define USE_TOOLKIT_SCROLL_BARS 1
8817 _ACEOF
8818
8819 USE_TOOLKIT_SCROLL_BARS=yes
8820 fi
8821 fi
8822
8823
8824 if test "${with_xim}" != "no"; then
8825
8826 cat >>confdefs.h <<\_ACEOF
8827 #define USE_XIM 1
8828 _ACEOF
8829
8830 fi
8831
8832 ### Use -lXpm if available, unless `--with-xpm=no'.
8833 HAVE_XPM=no
8834 if test "${HAVE_X11}" = "yes"; then
8835 if test "${with_xpm}" != "no"; then
8836 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8837 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8838 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8839 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 fi
8842 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8843 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8844 else
8845 # Is the header compilable?
8846 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8847 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8849 #line $LINENO "configure"
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8856 #include <X11/xpm.h>
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860 (eval $ac_compile) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try='test -s conftest.$ac_objext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_header_compiler=yes
8871 else
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875 ac_header_compiler=no
8876 fi
8877 rm -f conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8879 echo "${ECHO_T}$ac_header_compiler" >&6
8880
8881 # Is the header present?
8882 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8883 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <X11/xpm.h>
8892 _ACEOF
8893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } >/dev/null; then
8901 if test -s conftest.err; then
8902 ac_cpp_err=$ac_c_preproc_warn_flag
8903 else
8904 ac_cpp_err=
8905 fi
8906 else
8907 ac_cpp_err=yes
8908 fi
8909 if test -z "$ac_cpp_err"; then
8910 ac_header_preproc=yes
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ac_header_preproc=no
8916 fi
8917 rm -f conftest.err conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8919 echo "${ECHO_T}$ac_header_preproc" >&6
8920
8921 # So? What about this header?
8922 case $ac_header_compiler:$ac_header_preproc in
8923 yes:no )
8924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8925 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8927 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8928 (
8929 cat <<\_ASBOX
8930 ## ------------------------------------ ##
8931 ## Report this to bug-autoconf@gnu.org. ##
8932 ## ------------------------------------ ##
8933 _ASBOX
8934 ) |
8935 sed "s/^/$as_me: WARNING: /" >&2
8936 ;;
8937 no:yes )
8938 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8939 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8941 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8943 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8944 (
8945 cat <<\_ASBOX
8946 ## ------------------------------------ ##
8947 ## Report this to bug-autoconf@gnu.org. ##
8948 ## ------------------------------------ ##
8949 _ASBOX
8950 ) |
8951 sed "s/^/$as_me: WARNING: /" >&2
8952 ;;
8953 esac
8954 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8955 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8956 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 ac_cv_header_X11_xpm_h=$ac_header_preproc
8960 fi
8961 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8962 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8963
8964 fi
8965 if test $ac_cv_header_X11_xpm_h = yes; then
8966 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8967 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8968 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971 ac_check_lib_save_LIBS=$LIBS
8972 LIBS="-lXpm -lX11 $LIBS"
8973 cat >conftest.$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980
8981 /* Override any gcc2 internal prototype to avoid an error. */
8982 #ifdef __cplusplus
8983 extern "C"
8984 #endif
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987 char XpmReadFileToPixmap ();
8988 int
8989 main ()
8990 {
8991 XpmReadFileToPixmap ();
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9014 fi
9015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016 LIBS=$ac_check_lib_save_LIBS
9017 fi
9018 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9019 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9020 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9021 HAVE_XPM=yes
9022 fi
9023
9024 fi
9025
9026
9027 if test "${HAVE_XPM}" = "yes"; then
9028 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9029 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9031 #line $LINENO "configure"
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 #include "X11/xpm.h"
9038 #ifndef XpmReturnAllocPixels
9039 no_return_alloc_pixels
9040 #endif
9041
9042 _ACEOF
9043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9045 HAVE_XPM=no
9046 else
9047 HAVE_XPM=yes
9048 fi
9049 rm -f conftest*
9050
9051
9052 if test "${HAVE_XPM}" = "yes"; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054 echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057 echo "${ECHO_T}no" >&6
9058 fi
9059 fi
9060 fi
9061
9062 if test "${HAVE_XPM}" = "yes"; then
9063
9064 cat >>confdefs.h <<\_ACEOF
9065 #define HAVE_XPM 1
9066 _ACEOF
9067
9068 fi
9069 fi
9070
9071 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9072 HAVE_JPEG=no
9073 if test "${HAVE_X11}" = "yes"; then
9074 if test "${with_jpeg}" != "no"; then
9075 if test "${ac_cv_header_jerror_h+set}" = set; then
9076 echo "$as_me:$LINENO: checking for jerror.h" >&5
9077 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9078 if test "${ac_cv_header_jerror_h+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 fi
9081 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9082 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9083 else
9084 # Is the header compilable?
9085 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9086 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9095 #include <jerror.h>
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest.$ac_objext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_header_compiler=yes
9110 else
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_header_compiler=no
9115 fi
9116 rm -f conftest.$ac_objext conftest.$ac_ext
9117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9118 echo "${ECHO_T}$ac_header_compiler" >&6
9119
9120 # Is the header present?
9121 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9122 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9123 cat >conftest.$ac_ext <<_ACEOF
9124 #line $LINENO "configure"
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #include <jerror.h>
9131 _ACEOF
9132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } >/dev/null; then
9140 if test -s conftest.err; then
9141 ac_cpp_err=$ac_c_preproc_warn_flag
9142 else
9143 ac_cpp_err=
9144 fi
9145 else
9146 ac_cpp_err=yes
9147 fi
9148 if test -z "$ac_cpp_err"; then
9149 ac_header_preproc=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_header_preproc=no
9155 fi
9156 rm -f conftest.err conftest.$ac_ext
9157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9158 echo "${ECHO_T}$ac_header_preproc" >&6
9159
9160 # So? What about this header?
9161 case $ac_header_compiler:$ac_header_preproc in
9162 yes:no )
9163 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9164 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9166 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9167 (
9168 cat <<\_ASBOX
9169 ## ------------------------------------ ##
9170 ## Report this to bug-autoconf@gnu.org. ##
9171 ## ------------------------------------ ##
9172 _ASBOX
9173 ) |
9174 sed "s/^/$as_me: WARNING: /" >&2
9175 ;;
9176 no:yes )
9177 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9178 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9180 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9182 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9183 (
9184 cat <<\_ASBOX
9185 ## ------------------------------------ ##
9186 ## Report this to bug-autoconf@gnu.org. ##
9187 ## ------------------------------------ ##
9188 _ASBOX
9189 ) |
9190 sed "s/^/$as_me: WARNING: /" >&2
9191 ;;
9192 esac
9193 echo "$as_me:$LINENO: checking for jerror.h" >&5
9194 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9195 if test "${ac_cv_header_jerror_h+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198 ac_cv_header_jerror_h=$ac_header_preproc
9199 fi
9200 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9201 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9202
9203 fi
9204 if test $ac_cv_header_jerror_h = yes; then
9205 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9206 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9207 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 ac_check_lib_save_LIBS=$LIBS
9211 LIBS="-ljpeg $LIBS"
9212 cat >conftest.$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9214 /* confdefs.h. */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226 char jpeg_destroy_compress ();
9227 int
9228 main ()
9229 {
9230 jpeg_destroy_compress ();
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9253 fi
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9256 fi
9257 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9258 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9259 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9260 HAVE_JPEG=yes
9261 fi
9262
9263 fi
9264
9265
9266 fi
9267
9268
9269 if test "${HAVE_JPEG}" = "yes"; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_JPEG 1
9272 _ACEOF
9273
9274 cat >conftest.$ac_ext <<_ACEOF
9275 #line $LINENO "configure"
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #include <jpeglib.h>
9282 version=JPEG_LIB_VERSION
9283
9284 _ACEOF
9285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9286 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9287 cat >>confdefs.h <<\_ACEOF
9288 #define HAVE_JPEG 1
9289 _ACEOF
9290
9291 else
9292 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9293 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9294 HAVE_JPEG=no
9295 fi
9296 rm -f conftest*
9297
9298 fi
9299 fi
9300
9301 ### Use -lpng if available, unless `--with-png=no'.
9302 HAVE_PNG=no
9303 if test "${HAVE_X11}" = "yes"; then
9304 if test "${with_png}" != "no"; then
9305 if test "${ac_cv_header_png_h+set}" = set; then
9306 echo "$as_me:$LINENO: checking for png.h" >&5
9307 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9308 if test "${ac_cv_header_png_h+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 fi
9311 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9312 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9313 else
9314 # Is the header compilable?
9315 echo "$as_me:$LINENO: checking png.h usability" >&5
9316 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9318 #line $LINENO "configure"
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 $ac_includes_default
9325 #include <png.h>
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -s conftest.$ac_objext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_header_compiler=yes
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344 ac_header_compiler=no
9345 fi
9346 rm -f conftest.$ac_objext conftest.$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6
9349
9350 # Is the header present?
9351 echo "$as_me:$LINENO: checking png.h presence" >&5
9352 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 #include <png.h>
9361 _ACEOF
9362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } >/dev/null; then
9370 if test -s conftest.err; then
9371 ac_cpp_err=$ac_c_preproc_warn_flag
9372 else
9373 ac_cpp_err=
9374 fi
9375 else
9376 ac_cpp_err=yes
9377 fi
9378 if test -z "$ac_cpp_err"; then
9379 ac_header_preproc=yes
9380 else
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9383
9384 ac_header_preproc=no
9385 fi
9386 rm -f conftest.err conftest.$ac_ext
9387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9388 echo "${ECHO_T}$ac_header_preproc" >&6
9389
9390 # So? What about this header?
9391 case $ac_header_compiler:$ac_header_preproc in
9392 yes:no )
9393 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9394 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9396 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9397 (
9398 cat <<\_ASBOX
9399 ## ------------------------------------ ##
9400 ## Report this to bug-autoconf@gnu.org. ##
9401 ## ------------------------------------ ##
9402 _ASBOX
9403 ) |
9404 sed "s/^/$as_me: WARNING: /" >&2
9405 ;;
9406 no:yes )
9407 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9408 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9410 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9413 (
9414 cat <<\_ASBOX
9415 ## ------------------------------------ ##
9416 ## Report this to bug-autoconf@gnu.org. ##
9417 ## ------------------------------------ ##
9418 _ASBOX
9419 ) |
9420 sed "s/^/$as_me: WARNING: /" >&2
9421 ;;
9422 esac
9423 echo "$as_me:$LINENO: checking for png.h" >&5
9424 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9425 if test "${ac_cv_header_png_h+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 ac_cv_header_png_h=$ac_header_preproc
9429 fi
9430 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9431 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9432
9433 fi
9434 if test $ac_cv_header_png_h = yes; then
9435 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9436 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9437 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 ac_check_lib_save_LIBS=$LIBS
9441 LIBS="-lpng -lz -lm $LIBS"
9442 cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449
9450 /* Override any gcc2 internal prototype to avoid an error. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456 char png_get_channels ();
9457 int
9458 main ()
9459 {
9460 png_get_channels ();
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_lib_png_png_get_channels=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 ac_cv_lib_png_png_get_channels=no
9483 fi
9484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9485 LIBS=$ac_check_lib_save_LIBS
9486 fi
9487 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9488 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9489 if test $ac_cv_lib_png_png_get_channels = yes; then
9490 HAVE_PNG=yes
9491 fi
9492
9493 fi
9494
9495
9496 fi
9497
9498 if test "${HAVE_PNG}" = "yes"; then
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define HAVE_PNG 1
9502 _ACEOF
9503
9504 fi
9505 fi
9506
9507 ### Use -ltiff if available, unless `--with-tiff=no'.
9508 HAVE_TIFF=no
9509 if test "${HAVE_X11}" = "yes"; then
9510 if test "${with_tiff}" != "no"; then
9511 if test "${ac_cv_header_tiffio_h+set}" = set; then
9512 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9513 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9514 if test "${ac_cv_header_tiffio_h+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 fi
9517 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9518 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9519 else
9520 # Is the header compilable?
9521 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9522 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9523 cat >conftest.$ac_ext <<_ACEOF
9524 #line $LINENO "configure"
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 $ac_includes_default
9531 #include <tiffio.h>
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_header_compiler=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_header_compiler=no
9551 fi
9552 rm -f conftest.$ac_objext conftest.$ac_ext
9553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9554 echo "${ECHO_T}$ac_header_compiler" >&6
9555
9556 # Is the header present?
9557 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9558 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9560 #line $LINENO "configure"
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 #include <tiffio.h>
9567 _ACEOF
9568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } >/dev/null; then
9576 if test -s conftest.err; then
9577 ac_cpp_err=$ac_c_preproc_warn_flag
9578 else
9579 ac_cpp_err=
9580 fi
9581 else
9582 ac_cpp_err=yes
9583 fi
9584 if test -z "$ac_cpp_err"; then
9585 ac_header_preproc=yes
9586 else
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_header_preproc=no
9591 fi
9592 rm -f conftest.err conftest.$ac_ext
9593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9594 echo "${ECHO_T}$ac_header_preproc" >&6
9595
9596 # So? What about this header?
9597 case $ac_header_compiler:$ac_header_preproc in
9598 yes:no )
9599 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9600 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9602 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9603 (
9604 cat <<\_ASBOX
9605 ## ------------------------------------ ##
9606 ## Report this to bug-autoconf@gnu.org. ##
9607 ## ------------------------------------ ##
9608 _ASBOX
9609 ) |
9610 sed "s/^/$as_me: WARNING: /" >&2
9611 ;;
9612 no:yes )
9613 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9614 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9616 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9618 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9619 (
9620 cat <<\_ASBOX
9621 ## ------------------------------------ ##
9622 ## Report this to bug-autoconf@gnu.org. ##
9623 ## ------------------------------------ ##
9624 _ASBOX
9625 ) |
9626 sed "s/^/$as_me: WARNING: /" >&2
9627 ;;
9628 esac
9629 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9630 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_tiffio_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 ac_cv_header_tiffio_h=$ac_header_preproc
9635 fi
9636 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9637 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9638
9639 fi
9640 if test $ac_cv_header_tiffio_h = yes; then
9641 tifflibs="-lz -lm"
9642 # At least one tiff package requires the jpeg library.
9643 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9644 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9645 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9646 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-ltiff $tifflibs $LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658
9659 /* Override any gcc2 internal prototype to avoid an error. */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char TIFFGetVersion ();
9666 int
9667 main ()
9668 {
9669 TIFFGetVersion ();
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_lib_tiff_TIFFGetVersion=yes
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_cv_lib_tiff_TIFFGetVersion=no
9692 fi
9693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9695 fi
9696 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9697 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9698 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9699 HAVE_TIFF=yes
9700 fi
9701
9702 fi
9703
9704
9705 fi
9706
9707 if test "${HAVE_TIFF}" = "yes"; then
9708
9709 cat >>confdefs.h <<\_ACEOF
9710 #define HAVE_TIFF 1
9711 _ACEOF
9712
9713 fi
9714 fi
9715
9716 ### Use -lgif if available, unless `--with-gif=no'.
9717 HAVE_GIF=no
9718 if test "${HAVE_X11}" = "yes"; then
9719 if test "${with_gif}" != "no"; then
9720 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9721 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9722 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9723 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 fi
9726 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9727 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9728 else
9729 # Is the header compilable?
9730 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9731 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 $ac_includes_default
9740 #include <gif_lib.h>
9741 _ACEOF
9742 rm -f conftest.$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744 (eval $ac_compile) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -s conftest.$ac_objext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_header_compiler=yes
9755 else
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_header_compiler=no
9760 fi
9761 rm -f conftest.$ac_objext conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9763 echo "${ECHO_T}$ac_header_compiler" >&6
9764
9765 # Is the header present?
9766 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9767 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9769 #line $LINENO "configure"
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <gif_lib.h>
9776 _ACEOF
9777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } >/dev/null; then
9785 if test -s conftest.err; then
9786 ac_cpp_err=$ac_c_preproc_warn_flag
9787 else
9788 ac_cpp_err=
9789 fi
9790 else
9791 ac_cpp_err=yes
9792 fi
9793 if test -z "$ac_cpp_err"; then
9794 ac_header_preproc=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_header_preproc=no
9800 fi
9801 rm -f conftest.err conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9803 echo "${ECHO_T}$ac_header_preproc" >&6
9804
9805 # So? What about this header?
9806 case $ac_header_compiler:$ac_header_preproc in
9807 yes:no )
9808 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9809 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9810 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9811 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9812 (
9813 cat <<\_ASBOX
9814 ## ------------------------------------ ##
9815 ## Report this to bug-autoconf@gnu.org. ##
9816 ## ------------------------------------ ##
9817 _ASBOX
9818 ) |
9819 sed "s/^/$as_me: WARNING: /" >&2
9820 ;;
9821 no:yes )
9822 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9823 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9825 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9827 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9828 (
9829 cat <<\_ASBOX
9830 ## ------------------------------------ ##
9831 ## Report this to bug-autoconf@gnu.org. ##
9832 ## ------------------------------------ ##
9833 _ASBOX
9834 ) |
9835 sed "s/^/$as_me: WARNING: /" >&2
9836 ;;
9837 esac
9838 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9839 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9840 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 ac_cv_header_gif_lib_h=$ac_header_preproc
9844 fi
9845 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9846 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9847
9848 fi
9849 if test $ac_cv_header_gif_lib_h = yes; then
9850 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9851 # Earlier versions can crash Emacs.
9852 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9853 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9854 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 ac_check_lib_save_LIBS=$LIBS
9858 LIBS="-lungif $LIBS"
9859 cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866
9867 /* Override any gcc2 internal prototype to avoid an error. */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */
9873 char EGifPutExtensionLast ();
9874 int
9875 main ()
9876 {
9877 EGifPutExtensionLast ();
9878 ;
9879 return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884 (eval $ac_link) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9895 else
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899 ac_cv_lib_ungif_EGifPutExtensionLast=no
9900 fi
9901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9903 fi
9904 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9905 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9906 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9907 HAVE_GIF=yes
9908 fi
9909
9910 fi
9911
9912
9913 fi
9914
9915 if test "${HAVE_GIF}" = "yes"; then
9916
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_GIF 1
9919 _ACEOF
9920
9921 fi
9922 fi
9923
9924 ### Use Mac OS X Carbon API to implement GUI.
9925 HAVE_CARBON=no
9926 if test "${with_carbon}" != "no"; then
9927 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9928 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9929 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9930 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 fi
9933 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9934 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9935 else
9936 # Is the header compilable?
9937 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9938 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9939 cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 $ac_includes_default
9947 #include <Carbon/Carbon.h>
9948 _ACEOF
9949 rm -f conftest.$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -s conftest.$ac_objext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9961 ac_header_compiler=yes
9962 else
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9965
9966 ac_header_compiler=no
9967 fi
9968 rm -f conftest.$ac_objext conftest.$ac_ext
9969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9970 echo "${ECHO_T}$ac_header_compiler" >&6
9971
9972 # Is the header present?
9973 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9974 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9975 cat >conftest.$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 #include <Carbon/Carbon.h>
9983 _ACEOF
9984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } >/dev/null; then
9992 if test -s conftest.err; then
9993 ac_cpp_err=$ac_c_preproc_warn_flag
9994 else
9995 ac_cpp_err=
9996 fi
9997 else
9998 ac_cpp_err=yes
9999 fi
10000 if test -z "$ac_cpp_err"; then
10001 ac_header_preproc=yes
10002 else
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 ac_header_preproc=no
10007 fi
10008 rm -f conftest.err conftest.$ac_ext
10009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10010 echo "${ECHO_T}$ac_header_preproc" >&6
10011
10012 # So? What about this header?
10013 case $ac_header_compiler:$ac_header_preproc in
10014 yes:no )
10015 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10016 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10018 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10019 (
10020 cat <<\_ASBOX
10021 ## ------------------------------------ ##
10022 ## Report this to bug-autoconf@gnu.org. ##
10023 ## ------------------------------------ ##
10024 _ASBOX
10025 ) |
10026 sed "s/^/$as_me: WARNING: /" >&2
10027 ;;
10028 no:yes )
10029 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10030 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10032 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10034 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10035 (
10036 cat <<\_ASBOX
10037 ## ------------------------------------ ##
10038 ## Report this to bug-autoconf@gnu.org. ##
10039 ## ------------------------------------ ##
10040 _ASBOX
10041 ) |
10042 sed "s/^/$as_me: WARNING: /" >&2
10043 ;;
10044 esac
10045 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10046 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10047 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10051 fi
10052 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10053 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10054
10055 fi
10056 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10057 HAVE_CARBON=yes
10058 fi
10059
10060
10061 fi
10062
10063 if test "${HAVE_CARBON}" = "yes"; then
10064
10065 cat >>confdefs.h <<\_ACEOF
10066 #define HAVE_CARBON 1
10067 _ACEOF
10068
10069 window_system=mac
10070 ## Specify the install directory
10071 carbon_appdir=
10072 if test "${carbon_appdir_x}" != ""; then
10073 case ${carbon_appdir_x} in
10074 y | ye | yes) carbon_appdir=/Applications ;;
10075 * ) carbon_appdir=${carbon_appdir_x} ;;
10076 esac
10077 fi
10078 fi
10079
10080 ### Use session management (-lSM -lICE) if available
10081 HAVE_X_SM=no
10082 if test "${HAVE_X11}" = "yes"; then
10083 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10084 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10085 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10086 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 fi
10089 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10090 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10091 else
10092 # Is the header compilable?
10093 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10094 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10095 cat >conftest.$ac_ext <<_ACEOF
10096 #line $LINENO "configure"
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $ac_includes_default
10103 #include <X11/SM/SMlib.h>
10104 _ACEOF
10105 rm -f conftest.$ac_objext
10106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10107 (eval $ac_compile) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -s conftest.$ac_objext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_header_compiler=yes
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122 ac_header_compiler=no
10123 fi
10124 rm -f conftest.$ac_objext conftest.$ac_ext
10125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10126 echo "${ECHO_T}$ac_header_compiler" >&6
10127
10128 # Is the header present?
10129 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10130 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line $LINENO "configure"
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <X11/SM/SMlib.h>
10139 _ACEOF
10140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } >/dev/null; then
10148 if test -s conftest.err; then
10149 ac_cpp_err=$ac_c_preproc_warn_flag
10150 else
10151 ac_cpp_err=
10152 fi
10153 else
10154 ac_cpp_err=yes
10155 fi
10156 if test -z "$ac_cpp_err"; then
10157 ac_header_preproc=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_header_preproc=no
10163 fi
10164 rm -f conftest.err conftest.$ac_ext
10165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166 echo "${ECHO_T}$ac_header_preproc" >&6
10167
10168 # So? What about this header?
10169 case $ac_header_compiler:$ac_header_preproc in
10170 yes:no )
10171 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10172 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10174 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10175 (
10176 cat <<\_ASBOX
10177 ## ------------------------------------ ##
10178 ## Report this to bug-autoconf@gnu.org. ##
10179 ## ------------------------------------ ##
10180 _ASBOX
10181 ) |
10182 sed "s/^/$as_me: WARNING: /" >&2
10183 ;;
10184 no:yes )
10185 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10186 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10188 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10190 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10191 (
10192 cat <<\_ASBOX
10193 ## ------------------------------------ ##
10194 ## Report this to bug-autoconf@gnu.org. ##
10195 ## ------------------------------------ ##
10196 _ASBOX
10197 ) |
10198 sed "s/^/$as_me: WARNING: /" >&2
10199 ;;
10200 esac
10201 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10202 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10203 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10207 fi
10208 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10209 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10210
10211 fi
10212 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10213 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10214 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10215 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218 ac_check_lib_save_LIBS=$LIBS
10219 LIBS="-lSM $LIBS"
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227
10228 /* Override any gcc2 internal prototype to avoid an error. */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10234 char SmcOpenConnection ();
10235 int
10236 main ()
10237 {
10238 SmcOpenConnection ();
10239 ;
10240 return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_cv_lib_SM_SmcOpenConnection=yes
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_cv_lib_SM_SmcOpenConnection=no
10261 fi
10262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10263 LIBS=$ac_check_lib_save_LIBS
10264 fi
10265 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10266 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10267 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10268 HAVE_X_SM=yes
10269 else
10270 -lICE
10271 fi
10272
10273 fi
10274
10275
10276
10277 if test "${HAVE_X_SM}" = "yes"; then
10278
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_X_SM 1
10281 _ACEOF
10282
10283 case "$LIBS" in
10284 *-lSM*) ;;
10285 *) LIBS="-lSM -lICE $LIBS" ;;
10286 esac
10287 fi
10288 fi
10289
10290 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10291 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10292 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10293 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 cat >conftest.$ac_ext <<_ACEOF
10297 #line $LINENO "configure"
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 #include <netdb.h>
10304 int
10305 main ()
10306 {
10307 return h_errno;
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 emacs_cv_netdb_declares_h_errno=yes
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 emacs_cv_netdb_declares_h_errno=no
10330 fi
10331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10332 fi
10333 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10334 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10335 if test $emacs_cv_netdb_declares_h_errno = yes; then
10336
10337 cat >>confdefs.h <<\_ACEOF
10338 #define HAVE_H_ERRNO 1
10339 _ACEOF
10340
10341 fi
10342
10343 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10344 # for constant arguments. Useless!
10345 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10346 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10347 if test "${ac_cv_working_alloca_h+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350 cat >conftest.$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 #include <alloca.h>
10358 int
10359 main ()
10360 {
10361 char *p = (char *) alloca (2 * sizeof (int));
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 rm -f conftest.$ac_objext conftest$ac_exeext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_working_alloca_h=yes
10379 else
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ac_cv_working_alloca_h=no
10384 fi
10385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10386 fi
10387 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10388 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10389 if test $ac_cv_working_alloca_h = yes; then
10390
10391 cat >>confdefs.h <<\_ACEOF
10392 #define HAVE_ALLOCA_H 1
10393 _ACEOF
10394
10395 fi
10396
10397 echo "$as_me:$LINENO: checking for alloca" >&5
10398 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10399 if test "${ac_cv_func_alloca_works+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 /* confdefs.h. */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 #ifdef __GNUC__
10410 # define alloca __builtin_alloca
10411 #else
10412 # ifdef _MSC_VER
10413 # include <malloc.h>
10414 # define alloca _alloca
10415 # else
10416 # if HAVE_ALLOCA_H
10417 # include <alloca.h>
10418 # else
10419 # ifdef _AIX
10420 #pragma alloca
10421 # else
10422 # ifndef alloca /* predefined by HP cc +Olibcalls */
10423 char *alloca ();
10424 # endif
10425 # endif
10426 # endif
10427 # endif
10428 #endif
10429
10430 int
10431 main ()
10432 {
10433 char *p = (char *) alloca (1);
10434 ;
10435 return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -s conftest$ac_exeext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_func_alloca_works=yes
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455 ac_cv_func_alloca_works=no
10456 fi
10457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10458 fi
10459 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10460 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10461
10462 if test $ac_cv_func_alloca_works = yes; then
10463
10464 cat >>confdefs.h <<\_ACEOF
10465 #define HAVE_ALLOCA 1
10466 _ACEOF
10467
10468 else
10469 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10470 # that cause trouble. Some versions do not even contain alloca or
10471 # contain a buggy version. If you still want to use their alloca,
10472 # use ar to extract alloca.o from them instead of compiling alloca.c.
10473
10474 ALLOCA=alloca.$ac_objext
10475
10476 cat >>confdefs.h <<\_ACEOF
10477 #define C_ALLOCA 1
10478 _ACEOF
10479
10480
10481 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10483 if test "${ac_cv_os_cray+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 cat >conftest.$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10488 /* confdefs.h. */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 #if defined(CRAY) && ! defined(CRAY2)
10494 webecray
10495 #else
10496 wenotbecray
10497 #endif
10498
10499 _ACEOF
10500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10501 $EGREP "webecray" >/dev/null 2>&1; then
10502 ac_cv_os_cray=yes
10503 else
10504 ac_cv_os_cray=no
10505 fi
10506 rm -f conftest*
10507
10508 fi
10509 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10510 echo "${ECHO_T}$ac_cv_os_cray" >&6
10511 if test $ac_cv_os_cray = yes; then
10512 for ac_func in _getb67 GETB67 getb67; do
10513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10514 echo "$as_me:$LINENO: checking for $ac_func" >&5
10515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10516 if eval "test \"\${$as_ac_var+set}\" = set"; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 cat >conftest.$ac_ext <<_ACEOF
10520 #line $LINENO "configure"
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 /* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char $ac_func (); below.
10528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529 <limits.h> exists even on freestanding compilers. */
10530 #ifdef __STDC__
10531 # include <limits.h>
10532 #else
10533 # include <assert.h>
10534 #endif
10535 /* Override any gcc2 internal prototype to avoid an error. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 {
10539 #endif
10540 /* We use char because int might match the return type of a gcc2
10541 builtin and then its argument prototype would still apply. */
10542 char $ac_func ();
10543 /* The GNU C library defines this for functions which it implements
10544 to always fail with ENOSYS. Some functions are actually named
10545 something starting with __ and the normal name is an alias. */
10546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10547 choke me
10548 #else
10549 char (*f) () = $ac_func;
10550 #endif
10551 #ifdef __cplusplus
10552 }
10553 #endif
10554
10555 int
10556 main ()
10557 {
10558 return f != $ac_func;
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 eval "$as_ac_var=yes"
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 eval "$as_ac_var=no"
10581 fi
10582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10583 fi
10584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10586 if test `eval echo '${'$as_ac_var'}'` = yes; then
10587
10588 cat >>confdefs.h <<_ACEOF
10589 #define CRAY_STACKSEG_END $ac_func
10590 _ACEOF
10591
10592 break
10593 fi
10594
10595 done
10596 fi
10597
10598 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10599 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10600 if test "${ac_cv_c_stack_direction+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603 if test "$cross_compiling" = yes; then
10604 ac_cv_c_stack_direction=0
10605 else
10606 cat >conftest.$ac_ext <<_ACEOF
10607 #line $LINENO "configure"
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 int
10614 find_stack_direction ()
10615 {
10616 static char *addr = 0;
10617 auto char dummy;
10618 if (addr == 0)
10619 {
10620 addr = &dummy;
10621 return find_stack_direction ();
10622 }
10623 else
10624 return (&dummy > addr) ? 1 : -1;
10625 }
10626
10627 int
10628 main ()
10629 {
10630 exit (find_stack_direction () < 0);
10631 }
10632 _ACEOF
10633 rm -f conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_cv_c_stack_direction=1
10645 else
10646 echo "$as_me: program exited with status $ac_status" >&5
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 ( exit $ac_status )
10651 ac_cv_c_stack_direction=-1
10652 fi
10653 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10654 fi
10655 fi
10656 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10657 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10658
10659 cat >>confdefs.h <<_ACEOF
10660 #define STACK_DIRECTION $ac_cv_c_stack_direction
10661 _ACEOF
10662
10663
10664 fi
10665
10666
10667 # fmod, logb, and frexp are found in -lm on most systems.
10668 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10669
10670 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10671 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10672 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 ac_check_lib_save_LIBS=$LIBS
10676 LIBS="-lm $LIBS"
10677 cat >conftest.$ac_ext <<_ACEOF
10678 #line $LINENO "configure"
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 /* We use char because int might match the return type of a gcc2
10690 builtin and then its argument prototype would still apply. */
10691 char sqrt ();
10692 int
10693 main ()
10694 {
10695 sqrt ();
10696 ;
10697 return 0;
10698 }
10699 _ACEOF
10700 rm -f conftest.$ac_objext conftest$ac_exeext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -s conftest$ac_exeext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_lib_m_sqrt=yes
10713 else
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717 ac_cv_lib_m_sqrt=no
10718 fi
10719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10721 fi
10722 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10723 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10724 if test $ac_cv_lib_m_sqrt = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define HAVE_LIBM 1
10727 _ACEOF
10728
10729 LIBS="-lm $LIBS"
10730
10731 fi
10732
10733
10734 # Check for mail-locking functions in a "mail" library
10735
10736 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10737 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10738 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 ac_check_lib_save_LIBS=$LIBS
10742 LIBS="-lmail $LIBS"
10743 cat >conftest.$ac_ext <<_ACEOF
10744 #line $LINENO "configure"
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750
10751 /* Override any gcc2 internal prototype to avoid an error. */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 /* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10757 char maillock ();
10758 int
10759 main ()
10760 {
10761 maillock ();
10762 ;
10763 return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768 (eval $ac_link) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_lib_mail_maillock=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_cv_lib_mail_maillock=no
10784 fi
10785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10787 fi
10788 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10789 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10790 if test $ac_cv_lib_mail_maillock = yes; then
10791 cat >>confdefs.h <<_ACEOF
10792 #define HAVE_LIBMAIL 1
10793 _ACEOF
10794
10795 LIBS="-lmail $LIBS"
10796
10797 fi
10798
10799
10800 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10801 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10802 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805 ac_check_lib_save_LIBS=$LIBS
10806 LIBS="-llockfile $LIBS"
10807 cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814
10815 /* Override any gcc2 internal prototype to avoid an error. */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 /* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10821 char maillock ();
10822 int
10823 main ()
10824 {
10825 maillock ();
10826 ;
10827 return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_lib_lockfile_maillock=yes
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_lib_lockfile_maillock=no
10848 fi
10849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10853 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10854 if test $ac_cv_lib_lockfile_maillock = yes; then
10855 cat >>confdefs.h <<_ACEOF
10856 #define HAVE_LIBLOCKFILE 1
10857 _ACEOF
10858
10859 LIBS="-llockfile $LIBS"
10860
10861 fi
10862
10863 # If we have the shared liblockfile, assume we must use it for mail
10864 # locking (e.g. Debian). If we couldn't link against liblockfile
10865 # (no liblockfile.a installed), ensure that we don't need to.
10866 if test "$ac_cv_lib_lockfile_maillock" = no; then
10867 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10868 set dummy liblockfile.so; ac_word=$2
10869 echo "$as_me:$LINENO: checking for $ac_word" >&5
10870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871 if test "${ac_cv_prog_liblockfile+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 if test -n "$liblockfile"; then
10875 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10876 else
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10879 for as_dir in $as_dummy
10880 do
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_prog_liblockfile="yes"
10886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10888 fi
10889 done
10890 done
10891
10892 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10893 fi
10894 fi
10895 liblockfile=$ac_cv_prog_liblockfile
10896 if test -n "$liblockfile"; then
10897 echo "$as_me:$LINENO: result: $liblockfile" >&5
10898 echo "${ECHO_T}$liblockfile" >&6
10899 else
10900 echo "$as_me:$LINENO: result: no" >&5
10901 echo "${ECHO_T}no" >&6
10902 fi
10903
10904 if test $ac_cv_prog_liblockfile = yes; then
10905 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10906 This probably means that movemail could lose mail.
10907 There may be a \`development' package to install containing liblockfile." >&5
10908 echo "$as_me: error: Shared liblockfile found but can't link against it.
10909 This probably means that movemail could lose mail.
10910 There may be a \`development' package to install containing liblockfile." >&2;}
10911 { (exit 1); exit 1; }; }
10912 else
10913 cat >>confdefs.h <<\_ACEOF
10914 #define LIBMAIL -llockfile
10915 _ACEOF
10916
10917 fi
10918 else :
10919 fi
10920
10921 for ac_func in touchlock
10922 do
10923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_var+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 cat >conftest.$ac_ext <<_ACEOF
10930 #line $LINENO "configure"
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 /* System header to define __stub macros and hopefully few prototypes,
10937 which can conflict with char $ac_func (); below.
10938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10939 <limits.h> exists even on freestanding compilers. */
10940 #ifdef __STDC__
10941 # include <limits.h>
10942 #else
10943 # include <assert.h>
10944 #endif
10945 /* Override any gcc2 internal prototype to avoid an error. */
10946 #ifdef __cplusplus
10947 extern "C"
10948 {
10949 #endif
10950 /* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */
10952 char $ac_func ();
10953 /* The GNU C library defines this for functions which it implements
10954 to always fail with ENOSYS. Some functions are actually named
10955 something starting with __ and the normal name is an alias. */
10956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10957 choke me
10958 #else
10959 char (*f) () = $ac_func;
10960 #endif
10961 #ifdef __cplusplus
10962 }
10963 #endif
10964
10965 int
10966 main ()
10967 {
10968 return f != $ac_func;
10969 ;
10970 return 0;
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 eval "$as_ac_var=yes"
10986 else
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10989
10990 eval "$as_ac_var=no"
10991 fi
10992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10993 fi
10994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10996 if test `eval echo '${'$as_ac_var'}'` = yes; then
10997 cat >>confdefs.h <<_ACEOF
10998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10999 _ACEOF
11000
11001 fi
11002 done
11003
11004
11005 for ac_header in maillock.h
11006 do
11007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11009 echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 fi
11014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11016 else
11017 # Is the header compilable?
11018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11028 #include <$ac_header>
11029 _ACEOF
11030 rm -f conftest.$ac_objext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -s conftest.$ac_objext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 ac_header_compiler=yes
11043 else
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 ac_header_compiler=no
11048 fi
11049 rm -f conftest.$ac_objext conftest.$ac_ext
11050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11051 echo "${ECHO_T}$ac_header_compiler" >&6
11052
11053 # Is the header present?
11054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11056 cat >conftest.$ac_ext <<_ACEOF
11057 #line $LINENO "configure"
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <$ac_header>
11064 _ACEOF
11065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } >/dev/null; then
11073 if test -s conftest.err; then
11074 ac_cpp_err=$ac_c_preproc_warn_flag
11075 else
11076 ac_cpp_err=
11077 fi
11078 else
11079 ac_cpp_err=yes
11080 fi
11081 if test -z "$ac_cpp_err"; then
11082 ac_header_preproc=yes
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 ac_header_preproc=no
11088 fi
11089 rm -f conftest.err conftest.$ac_ext
11090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6
11092
11093 # So? What about this header?
11094 case $ac_header_compiler:$ac_header_preproc in
11095 yes:no )
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11100 (
11101 cat <<\_ASBOX
11102 ## ------------------------------------ ##
11103 ## Report this to bug-autoconf@gnu.org. ##
11104 ## ------------------------------------ ##
11105 _ASBOX
11106 ) |
11107 sed "s/^/$as_me: WARNING: /" >&2
11108 ;;
11109 no:yes )
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11116 (
11117 cat <<\_ASBOX
11118 ## ------------------------------------ ##
11119 ## Report this to bug-autoconf@gnu.org. ##
11120 ## ------------------------------------ ##
11121 _ASBOX
11122 ) |
11123 sed "s/^/$as_me: WARNING: /" >&2
11124 ;;
11125 esac
11126 echo "$as_me:$LINENO: checking for $ac_header" >&5
11127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131 eval "$as_ac_Header=$ac_header_preproc"
11132 fi
11133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11135
11136 fi
11137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11138 cat >>confdefs.h <<_ACEOF
11139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140 _ACEOF
11141
11142 fi
11143
11144 done
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
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207 for ac_func in gethostname getdomainname dup2 \
11208 rename closedir mkdir rmdir sysinfo \
11209 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11210 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11211 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11212 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11213 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11214 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11215 do
11216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11217 echo "$as_me:$LINENO: checking for $ac_func" >&5
11218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11219 if eval "test \"\${$as_ac_var+set}\" = set"; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222 cat >conftest.$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* System header to define __stub macros and hopefully few prototypes,
11230 which can conflict with char $ac_func (); below.
11231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11232 <limits.h> exists even on freestanding compilers. */
11233 #ifdef __STDC__
11234 # include <limits.h>
11235 #else
11236 # include <assert.h>
11237 #endif
11238 /* Override any gcc2 internal prototype to avoid an error. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 {
11242 #endif
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11245 char $ac_func ();
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11250 choke me
11251 #else
11252 char (*f) () = $ac_func;
11253 #endif
11254 #ifdef __cplusplus
11255 }
11256 #endif
11257
11258 int
11259 main ()
11260 {
11261 return f != $ac_func;
11262 ;
11263 return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268 (eval $ac_link) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -s conftest$ac_exeext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 eval "$as_ac_var=yes"
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 eval "$as_ac_var=no"
11284 fi
11285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11286 fi
11287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11289 if test `eval echo '${'$as_ac_var'}'` = yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11292 _ACEOF
11293
11294 fi
11295 done
11296
11297
11298
11299 for ac_header in sys/un.h
11300 do
11301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11303 echo "$as_me:$LINENO: checking for $ac_header" >&5
11304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 fi
11308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11310 else
11311 # Is the header compilable?
11312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11322 #include <$ac_header>
11323 _ACEOF
11324 rm -f conftest.$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -s conftest.$ac_objext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_header_compiler=yes
11337 else
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 ac_header_compiler=no
11342 fi
11343 rm -f conftest.$ac_objext conftest.$ac_ext
11344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345 echo "${ECHO_T}$ac_header_compiler" >&6
11346
11347 # Is the header present?
11348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11350 cat >conftest.$ac_ext <<_ACEOF
11351 #line $LINENO "configure"
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 #include <$ac_header>
11358 _ACEOF
11359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } >/dev/null; then
11367 if test -s conftest.err; then
11368 ac_cpp_err=$ac_c_preproc_warn_flag
11369 else
11370 ac_cpp_err=
11371 fi
11372 else
11373 ac_cpp_err=yes
11374 fi
11375 if test -z "$ac_cpp_err"; then
11376 ac_header_preproc=yes
11377 else
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11380
11381 ac_header_preproc=no
11382 fi
11383 rm -f conftest.err conftest.$ac_ext
11384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11385 echo "${ECHO_T}$ac_header_preproc" >&6
11386
11387 # So? What about this header?
11388 case $ac_header_compiler:$ac_header_preproc in
11389 yes:no )
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11394 (
11395 cat <<\_ASBOX
11396 ## ------------------------------------ ##
11397 ## Report this to bug-autoconf@gnu.org. ##
11398 ## ------------------------------------ ##
11399 _ASBOX
11400 ) |
11401 sed "s/^/$as_me: WARNING: /" >&2
11402 ;;
11403 no:yes )
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11410 (
11411 cat <<\_ASBOX
11412 ## ------------------------------------ ##
11413 ## Report this to bug-autoconf@gnu.org. ##
11414 ## ------------------------------------ ##
11415 _ASBOX
11416 ) |
11417 sed "s/^/$as_me: WARNING: /" >&2
11418 ;;
11419 esac
11420 echo "$as_me:$LINENO: checking for $ac_header" >&5
11421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 eval "$as_ac_Header=$ac_header_preproc"
11426 fi
11427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11429
11430 fi
11431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11432 cat >>confdefs.h <<_ACEOF
11433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11434 _ACEOF
11435
11436 fi
11437
11438 done
11439
11440
11441
11442
11443 for ac_header in sys/time.h unistd.h
11444 do
11445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11447 echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 fi
11452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11454 else
11455 # Is the header compilable?
11456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11459 #line $LINENO "configure"
11460 /* confdefs.h. */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 $ac_includes_default
11466 #include <$ac_header>
11467 _ACEOF
11468 rm -f conftest.$ac_objext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler=yes
11481 else
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_header_compiler=no
11486 fi
11487 rm -f conftest.$ac_objext conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11489 echo "${ECHO_T}$ac_header_compiler" >&6
11490
11491 # Is the header present?
11492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11496 /* confdefs.h. */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <$ac_header>
11502 _ACEOF
11503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev/null; then
11511 if test -s conftest.err; then
11512 ac_cpp_err=$ac_c_preproc_warn_flag
11513 else
11514 ac_cpp_err=
11515 fi
11516 else
11517 ac_cpp_err=yes
11518 fi
11519 if test -z "$ac_cpp_err"; then
11520 ac_header_preproc=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 ac_header_preproc=no
11526 fi
11527 rm -f conftest.err conftest.$ac_ext
11528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11529 echo "${ECHO_T}$ac_header_preproc" >&6
11530
11531 # So? What about this header?
11532 case $ac_header_compiler:$ac_header_preproc in
11533 yes:no )
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11538 (
11539 cat <<\_ASBOX
11540 ## ------------------------------------ ##
11541 ## Report this to bug-autoconf@gnu.org. ##
11542 ## ------------------------------------ ##
11543 _ASBOX
11544 ) |
11545 sed "s/^/$as_me: WARNING: /" >&2
11546 ;;
11547 no:yes )
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11554 (
11555 cat <<\_ASBOX
11556 ## ------------------------------------ ##
11557 ## Report this to bug-autoconf@gnu.org. ##
11558 ## ------------------------------------ ##
11559 _ASBOX
11560 ) |
11561 sed "s/^/$as_me: WARNING: /" >&2
11562 ;;
11563 esac
11564 echo "$as_me:$LINENO: checking for $ac_header" >&5
11565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 eval "$as_ac_Header=$ac_header_preproc"
11570 fi
11571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11573
11574 fi
11575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11578 _ACEOF
11579
11580 fi
11581
11582 done
11583
11584
11585 for ac_func in alarm
11586 do
11587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11588 echo "$as_me:$LINENO: checking for $ac_func" >&5
11589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11590 if eval "test \"\${$as_ac_var+set}\" = set"; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593 cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11595 /* confdefs.h. */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 /* System header to define __stub macros and hopefully few prototypes,
11601 which can conflict with char $ac_func (); below.
11602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11603 <limits.h> exists even on freestanding compilers. */
11604 #ifdef __STDC__
11605 # include <limits.h>
11606 #else
11607 # include <assert.h>
11608 #endif
11609 /* Override any gcc2 internal prototype to avoid an error. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 {
11613 #endif
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11616 char $ac_func ();
11617 /* The GNU C library defines this for functions which it implements
11618 to always fail with ENOSYS. Some functions are actually named
11619 something starting with __ and the normal name is an alias. */
11620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11621 choke me
11622 #else
11623 char (*f) () = $ac_func;
11624 #endif
11625 #ifdef __cplusplus
11626 }
11627 #endif
11628
11629 int
11630 main ()
11631 {
11632 return f != $ac_func;
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 eval "$as_ac_var=yes"
11650 else
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 eval "$as_ac_var=no"
11655 fi
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657 fi
11658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11660 if test `eval echo '${'$as_ac_var'}'` = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11663 _ACEOF
11664
11665 fi
11666 done
11667
11668 echo "$as_me:$LINENO: checking for working mktime" >&5
11669 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11670 if test "${ac_cv_func_working_mktime+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673 if test "$cross_compiling" = yes; then
11674 ac_cv_func_working_mktime=no
11675 else
11676 cat >conftest.$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 /* Test program from Paul Eggert and Tony Leneis. */
11684 #if TIME_WITH_SYS_TIME
11685 # include <sys/time.h>
11686 # include <time.h>
11687 #else
11688 # if HAVE_SYS_TIME_H
11689 # include <sys/time.h>
11690 # else
11691 # include <time.h>
11692 # endif
11693 #endif
11694
11695 #if HAVE_UNISTD_H
11696 # include <unistd.h>
11697 #endif
11698
11699 #if !HAVE_ALARM
11700 # define alarm(X) /* empty */
11701 #endif
11702
11703 /* Work around redefinition to rpl_putenv by other config tests. */
11704 #undef putenv
11705
11706 static time_t time_t_max;
11707
11708 /* Values we'll use to set the TZ environment variable. */
11709 static const char *const tz_strings[] = {
11710 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11711 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11712 };
11713 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11714
11715 /* Fail if mktime fails to convert a date in the spring-forward gap.
11716 Based on a problem report from Andreas Jaeger. */
11717 static void
11718 spring_forward_gap ()
11719 {
11720 /* glibc (up to about 1998-10-07) failed this test. */
11721 struct tm tm;
11722
11723 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11724 instead of "TZ=America/Vancouver" in order to detect the bug even
11725 on systems that don't support the Olson extension, or don't have the
11726 full zoneinfo tables installed. */
11727 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11728
11729 tm.tm_year = 98;
11730 tm.tm_mon = 3;
11731 tm.tm_mday = 5;
11732 tm.tm_hour = 2;
11733 tm.tm_min = 0;
11734 tm.tm_sec = 0;
11735 tm.tm_isdst = -1;
11736 if (mktime (&tm) == (time_t)-1)
11737 exit (1);
11738 }
11739
11740 static void
11741 mktime_test (now)
11742 time_t now;
11743 {
11744 struct tm *lt;
11745 if ((lt = localtime (&now)) && mktime (lt) != now)
11746 exit (1);
11747 now = time_t_max - now;
11748 if ((lt = localtime (&now)) && mktime (lt) != now)
11749 exit (1);
11750 }
11751
11752 static void
11753 irix_6_4_bug ()
11754 {
11755 /* Based on code from Ariel Faigon. */
11756 struct tm tm;
11757 tm.tm_year = 96;
11758 tm.tm_mon = 3;
11759 tm.tm_mday = 0;
11760 tm.tm_hour = 0;
11761 tm.tm_min = 0;
11762 tm.tm_sec = 0;
11763 tm.tm_isdst = -1;
11764 mktime (&tm);
11765 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11766 exit (1);
11767 }
11768
11769 static void
11770 bigtime_test (j)
11771 int j;
11772 {
11773 struct tm tm;
11774 time_t now;
11775 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11776 now = mktime (&tm);
11777 if (now != (time_t) -1)
11778 {
11779 struct tm *lt = localtime (&now);
11780 if (! (lt
11781 && lt->tm_year == tm.tm_year
11782 && lt->tm_mon == tm.tm_mon
11783 && lt->tm_mday == tm.tm_mday
11784 && lt->tm_hour == tm.tm_hour
11785 && lt->tm_min == tm.tm_min
11786 && lt->tm_sec == tm.tm_sec
11787 && lt->tm_yday == tm.tm_yday
11788 && lt->tm_wday == tm.tm_wday
11789 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11790 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11791 exit (1);
11792 }
11793 }
11794
11795 int
11796 main ()
11797 {
11798 time_t t, delta;
11799 int i, j;
11800
11801 /* This test makes some buggy mktime implementations loop.
11802 Give up after 60 seconds; a mktime slower than that
11803 isn't worth using anyway. */
11804 alarm (60);
11805
11806 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11807 continue;
11808 time_t_max--;
11809 delta = time_t_max / 997; /* a suitable prime number */
11810 for (i = 0; i < N_STRINGS; i++)
11811 {
11812 if (tz_strings[i])
11813 putenv (tz_strings[i]);
11814
11815 for (t = 0; t <= time_t_max - delta; t += delta)
11816 mktime_test (t);
11817 mktime_test ((time_t) 60 * 60);
11818 mktime_test ((time_t) 60 * 60 * 24);
11819
11820 for (j = 1; 0 < j; j *= 2)
11821 bigtime_test (j);
11822 bigtime_test (j - 1);
11823 }
11824 irix_6_4_bug ();
11825 spring_forward_gap ();
11826 exit (0);
11827 }
11828 _ACEOF
11829 rm -f conftest$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831 (eval $ac_link) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_func_working_mktime=yes
11841 else
11842 echo "$as_me: program exited with status $ac_status" >&5
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 ( exit $ac_status )
11847 ac_cv_func_working_mktime=no
11848 fi
11849 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11850 fi
11851 fi
11852 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11853 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11854 if test $ac_cv_func_working_mktime = no; then
11855 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11856 fi
11857
11858 if test "$ac_cv_func_working_mktime" = no; then
11859
11860 cat >>confdefs.h <<\_ACEOF
11861 #define BROKEN_MKTIME 1
11862 _ACEOF
11863
11864 fi
11865
11866 ac_have_func=no # yes means we've found a way to get the load average.
11867
11868 # Make sure getloadavg.c is where it belongs, at configure-time.
11869 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11870 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11871 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11872 { (exit 1); exit 1; }; }
11873
11874 ac_save_LIBS=$LIBS
11875
11876 # Check for getloadavg, but be sure not to touch the cache variable.
11877 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11878 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11879 if test "${ac_cv_func_getloadavg+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 /* confdefs.h. */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char getloadavg (); below.
11891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11892 <limits.h> exists even on freestanding compilers. */
11893 #ifdef __STDC__
11894 # include <limits.h>
11895 #else
11896 # include <assert.h>
11897 #endif
11898 /* Override any gcc2 internal prototype to avoid an error. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 {
11902 #endif
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11905 char getloadavg ();
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11910 choke me
11911 #else
11912 char (*f) () = getloadavg;
11913 #endif
11914 #ifdef __cplusplus
11915 }
11916 #endif
11917
11918 int
11919 main ()
11920 {
11921 return f != getloadavg;
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 ac_cv_func_getloadavg=yes
11939 else
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 ac_cv_func_getloadavg=no
11944 fi
11945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11948 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11949 if test $ac_cv_func_getloadavg = yes; then
11950 exit 0
11951 else
11952 exit 1
11953 fi
11954 ) && ac_have_func=yes
11955
11956 # On HPUX9, an unprivileged user can get load averages through this function.
11957
11958 for ac_func in pstat_getdynamic
11959 do
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11963 if eval "test \"\${$as_ac_var+set}\" = set"; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 cat >conftest.$ac_ext <<_ACEOF
11967 #line $LINENO "configure"
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 /* System header to define __stub macros and hopefully few prototypes,
11974 which can conflict with char $ac_func (); below.
11975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11976 <limits.h> exists even on freestanding compilers. */
11977 #ifdef __STDC__
11978 # include <limits.h>
11979 #else
11980 # include <assert.h>
11981 #endif
11982 /* Override any gcc2 internal prototype to avoid an error. */
11983 #ifdef __cplusplus
11984 extern "C"
11985 {
11986 #endif
11987 /* We use char because int might match the return type of a gcc2
11988 builtin and then its argument prototype would still apply. */
11989 char $ac_func ();
11990 /* The GNU C library defines this for functions which it implements
11991 to always fail with ENOSYS. Some functions are actually named
11992 something starting with __ and the normal name is an alias. */
11993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11994 choke me
11995 #else
11996 char (*f) () = $ac_func;
11997 #endif
11998 #ifdef __cplusplus
11999 }
12000 #endif
12001
12002 int
12003 main ()
12004 {
12005 return f != $ac_func;
12006 ;
12007 return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 eval "$as_ac_var=yes"
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 eval "$as_ac_var=no"
12028 fi
12029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12030 fi
12031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12033 if test `eval echo '${'$as_ac_var'}'` = yes; then
12034 cat >>confdefs.h <<_ACEOF
12035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036 _ACEOF
12037
12038 fi
12039 done
12040
12041
12042 # Solaris has libkstat which does not require root.
12043
12044 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12045 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12046 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049 ac_check_lib_save_LIBS=$LIBS
12050 LIBS="-lkstat $LIBS"
12051 cat >conftest.$ac_ext <<_ACEOF
12052 #line $LINENO "configure"
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058
12059 /* Override any gcc2 internal prototype to avoid an error. */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 /* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12065 char kstat_open ();
12066 int
12067 main ()
12068 {
12069 kstat_open ();
12070 ;
12071 return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076 (eval $ac_link) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -s conftest$ac_exeext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_cv_lib_kstat_kstat_open=yes
12087 else
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 ac_cv_lib_kstat_kstat_open=no
12092 fi
12093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12094 LIBS=$ac_check_lib_save_LIBS
12095 fi
12096 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12097 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12098 if test $ac_cv_lib_kstat_kstat_open = yes; then
12099 cat >>confdefs.h <<_ACEOF
12100 #define HAVE_LIBKSTAT 1
12101 _ACEOF
12102
12103 LIBS="-lkstat $LIBS"
12104
12105 fi
12106
12107 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12108
12109 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12110 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12111 # to get the right answer into the cache.
12112 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12113 if test $ac_have_func = no; then
12114 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12115 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12116 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lelf $LIBS"
12121 cat >conftest.$ac_ext <<_ACEOF
12122 #line $LINENO "configure"
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128
12129 /* Override any gcc2 internal prototype to avoid an error. */
12130 #ifdef __cplusplus
12131 extern "C"
12132 #endif
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char elf_begin ();
12136 int
12137 main ()
12138 {
12139 elf_begin ();
12140 ;
12141 return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -s conftest$ac_exeext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_cv_lib_elf_elf_begin=yes
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161 ac_cv_lib_elf_elf_begin=no
12162 fi
12163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12165 fi
12166 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12167 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12168 if test $ac_cv_lib_elf_elf_begin = yes; then
12169 LIBS="-lelf $LIBS"
12170 fi
12171
12172 fi
12173 if test $ac_have_func = no; then
12174 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12175 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12176 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-lkvm $LIBS"
12181 cat >conftest.$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188
12189 /* Override any gcc2 internal prototype to avoid an error. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12195 char kvm_open ();
12196 int
12197 main ()
12198 {
12199 kvm_open ();
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -s conftest$ac_exeext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_cv_lib_kvm_kvm_open=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_cv_lib_kvm_kvm_open=no
12222 fi
12223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12225 fi
12226 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12227 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12228 if test $ac_cv_lib_kvm_kvm_open = yes; then
12229 LIBS="-lkvm $LIBS"
12230 fi
12231
12232 # Check for the 4.4BSD definition of getloadavg.
12233 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12234 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12235 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-lutil $LIBS"
12240 cat >conftest.$ac_ext <<_ACEOF
12241 #line $LINENO "configure"
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247
12248 /* Override any gcc2 internal prototype to avoid an error. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 /* We use char because int might match the return type of a gcc2
12253 builtin and then its argument prototype would still apply. */
12254 char getloadavg ();
12255 int
12256 main ()
12257 {
12258 getloadavg ();
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_cv_lib_util_getloadavg=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280 ac_cv_lib_util_getloadavg=no
12281 fi
12282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12286 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12287 if test $ac_cv_lib_util_getloadavg = yes; then
12288 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12289 fi
12290
12291 fi
12292
12293 if test $ac_have_func = no; then
12294 # There is a commonly available library for RS/6000 AIX.
12295 # Since it is not a standard part of AIX, it might be installed locally.
12296 ac_getloadavg_LIBS=$LIBS
12297 LIBS="-L/usr/local/lib $LIBS"
12298 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12299 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12300 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-lgetloadavg $LIBS"
12305 cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312
12313 /* Override any gcc2 internal prototype to avoid an error. */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 /* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12319 char getloadavg ();
12320 int
12321 main ()
12322 {
12323 getloadavg ();
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -s conftest$ac_exeext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_cv_lib_getloadavg_getloadavg=yes
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 ac_cv_lib_getloadavg_getloadavg=no
12346 fi
12347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12351 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12352 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12353 LIBS="-lgetloadavg $LIBS"
12354 else
12355 LIBS=$ac_getloadavg_LIBS
12356 fi
12357
12358 fi
12359
12360 # Make sure it is really in the library, if we think we found it,
12361 # otherwise set up the replacement function.
12362
12363 for ac_func in getloadavg
12364 do
12365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12366 echo "$as_me:$LINENO: checking for $ac_func" >&5
12367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12368 if eval "test \"\${$as_ac_var+set}\" = set"; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371 cat >conftest.$ac_ext <<_ACEOF
12372 #line $LINENO "configure"
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 /* System header to define __stub macros and hopefully few prototypes,
12379 which can conflict with char $ac_func (); below.
12380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12381 <limits.h> exists even on freestanding compilers. */
12382 #ifdef __STDC__
12383 # include <limits.h>
12384 #else
12385 # include <assert.h>
12386 #endif
12387 /* Override any gcc2 internal prototype to avoid an error. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 {
12391 #endif
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char $ac_func ();
12395 /* The GNU C library defines this for functions which it implements
12396 to always fail with ENOSYS. Some functions are actually named
12397 something starting with __ and the normal name is an alias. */
12398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12399 choke me
12400 #else
12401 char (*f) () = $ac_func;
12402 #endif
12403 #ifdef __cplusplus
12404 }
12405 #endif
12406
12407 int
12408 main ()
12409 {
12410 return f != $ac_func;
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 eval "$as_ac_var=yes"
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 eval "$as_ac_var=no"
12433 fi
12434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12435 fi
12436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12438 if test `eval echo '${'$as_ac_var'}'` = yes; then
12439 cat >>confdefs.h <<_ACEOF
12440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12441 _ACEOF
12442
12443 else
12444 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12445
12446 cat >>confdefs.h <<\_ACEOF
12447 #define C_GETLOADAVG 1
12448 _ACEOF
12449
12450 # Figure out what our getloadavg.c needs.
12451 ac_have_func=no
12452 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12453 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12454 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12455 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 fi
12458 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12459 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12460 else
12461 # Is the header compilable?
12462 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12463 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12464 cat >conftest.$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12472 #include <sys/dg_sys_info.h>
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_header_compiler=yes
12487 else
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12490
12491 ac_header_compiler=no
12492 fi
12493 rm -f conftest.$ac_objext conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12495 echo "${ECHO_T}$ac_header_compiler" >&6
12496
12497 # Is the header present?
12498 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12499 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12501 #line $LINENO "configure"
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 #include <sys/dg_sys_info.h>
12508 _ACEOF
12509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null; then
12517 if test -s conftest.err; then
12518 ac_cpp_err=$ac_c_preproc_warn_flag
12519 else
12520 ac_cpp_err=
12521 fi
12522 else
12523 ac_cpp_err=yes
12524 fi
12525 if test -z "$ac_cpp_err"; then
12526 ac_header_preproc=yes
12527 else
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ac_header_preproc=no
12532 fi
12533 rm -f conftest.err conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12535 echo "${ECHO_T}$ac_header_preproc" >&6
12536
12537 # So? What about this header?
12538 case $ac_header_compiler:$ac_header_preproc in
12539 yes:no )
12540 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12541 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12543 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12544 (
12545 cat <<\_ASBOX
12546 ## ------------------------------------ ##
12547 ## Report this to bug-autoconf@gnu.org. ##
12548 ## ------------------------------------ ##
12549 _ASBOX
12550 ) |
12551 sed "s/^/$as_me: WARNING: /" >&2
12552 ;;
12553 no:yes )
12554 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12555 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12557 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12559 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12560 (
12561 cat <<\_ASBOX
12562 ## ------------------------------------ ##
12563 ## Report this to bug-autoconf@gnu.org. ##
12564 ## ------------------------------------ ##
12565 _ASBOX
12566 ) |
12567 sed "s/^/$as_me: WARNING: /" >&2
12568 ;;
12569 esac
12570 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12571 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12572 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12576 fi
12577 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12578 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12579
12580 fi
12581 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12582 ac_have_func=yes
12583
12584 cat >>confdefs.h <<\_ACEOF
12585 #define DGUX 1
12586 _ACEOF
12587
12588
12589 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12590 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12591 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 ac_check_lib_save_LIBS=$LIBS
12595 LIBS="-ldgc $LIBS"
12596 cat >conftest.$ac_ext <<_ACEOF
12597 #line $LINENO "configure"
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603
12604 /* Override any gcc2 internal prototype to avoid an error. */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 /* We use char because int might match the return type of a gcc2
12609 builtin and then its argument prototype would still apply. */
12610 char dg_sys_info ();
12611 int
12612 main ()
12613 {
12614 dg_sys_info ();
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12621 (eval $ac_link) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -s conftest$ac_exeext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_lib_dgc_dg_sys_info=yes
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_cv_lib_dgc_dg_sys_info=no
12637 fi
12638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12639 LIBS=$ac_check_lib_save_LIBS
12640 fi
12641 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12642 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12643 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12644 cat >>confdefs.h <<_ACEOF
12645 #define HAVE_LIBDGC 1
12646 _ACEOF
12647
12648 LIBS="-ldgc $LIBS"
12649
12650 fi
12651
12652 fi
12653
12654
12655
12656 if test "${ac_cv_header_locale_h+set}" = set; then
12657 echo "$as_me:$LINENO: checking for locale.h" >&5
12658 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12659 if test "${ac_cv_header_locale_h+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 fi
12662 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12663 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12664 else
12665 # Is the header compilable?
12666 echo "$as_me:$LINENO: checking locale.h usability" >&5
12667 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 #include <locale.h>
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 ac_header_compiler=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 ac_header_compiler=no
12696 fi
12697 rm -f conftest.$ac_objext conftest.$ac_ext
12698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12699 echo "${ECHO_T}$ac_header_compiler" >&6
12700
12701 # Is the header present?
12702 echo "$as_me:$LINENO: checking locale.h presence" >&5
12703 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12704 cat >conftest.$ac_ext <<_ACEOF
12705 #line $LINENO "configure"
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <locale.h>
12712 _ACEOF
12713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } >/dev/null; then
12721 if test -s conftest.err; then
12722 ac_cpp_err=$ac_c_preproc_warn_flag
12723 else
12724 ac_cpp_err=
12725 fi
12726 else
12727 ac_cpp_err=yes
12728 fi
12729 if test -z "$ac_cpp_err"; then
12730 ac_header_preproc=yes
12731 else
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735 ac_header_preproc=no
12736 fi
12737 rm -f conftest.err conftest.$ac_ext
12738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6
12740
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc in
12743 yes:no )
12744 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12747 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12748 (
12749 cat <<\_ASBOX
12750 ## ------------------------------------ ##
12751 ## Report this to bug-autoconf@gnu.org. ##
12752 ## ------------------------------------ ##
12753 _ASBOX
12754 ) |
12755 sed "s/^/$as_me: WARNING: /" >&2
12756 ;;
12757 no:yes )
12758 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12759 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12761 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12763 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12764 (
12765 cat <<\_ASBOX
12766 ## ------------------------------------ ##
12767 ## Report this to bug-autoconf@gnu.org. ##
12768 ## ------------------------------------ ##
12769 _ASBOX
12770 ) |
12771 sed "s/^/$as_me: WARNING: /" >&2
12772 ;;
12773 esac
12774 echo "$as_me:$LINENO: checking for locale.h" >&5
12775 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12776 if test "${ac_cv_header_locale_h+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779 ac_cv_header_locale_h=$ac_header_preproc
12780 fi
12781 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12782 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12783
12784 fi
12785
12786
12787
12788 for ac_func in setlocale
12789 do
12790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12791 echo "$as_me:$LINENO: checking for $ac_func" >&5
12792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12793 if eval "test \"\${$as_ac_var+set}\" = set"; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796 cat >conftest.$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 /* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12807 #ifdef __STDC__
12808 # include <limits.h>
12809 #else
12810 # include <assert.h>
12811 #endif
12812 /* Override any gcc2 internal prototype to avoid an error. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 {
12816 #endif
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12819 char $ac_func ();
12820 /* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12824 choke me
12825 #else
12826 char (*f) () = $ac_func;
12827 #endif
12828 #ifdef __cplusplus
12829 }
12830 #endif
12831
12832 int
12833 main ()
12834 {
12835 return f != $ac_func;
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 eval "$as_ac_var=yes"
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 eval "$as_ac_var=no"
12858 fi
12859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12860 fi
12861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12863 if test `eval echo '${'$as_ac_var'}'` = yes; then
12864 cat >>confdefs.h <<_ACEOF
12865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12866 _ACEOF
12867
12868 fi
12869 done
12870
12871
12872 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12873 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12874 # Irix 4.0.5F has the header but not the library.
12875 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12876 ac_have_func=yes
12877
12878 cat >>confdefs.h <<\_ACEOF
12879 #define SVR4 1
12880 _ACEOF
12881
12882 fi
12883
12884 if test $ac_have_func = no; then
12885 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12886 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12887 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12888 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 fi
12891 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12892 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12893 else
12894 # Is the header compilable?
12895 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12896 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12898 #line $LINENO "configure"
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 $ac_includes_default
12905 #include <inq_stats/cpustats.h>
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_header_compiler=yes
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 ac_header_compiler=no
12925 fi
12926 rm -f conftest.$ac_objext conftest.$ac_ext
12927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12928 echo "${ECHO_T}$ac_header_compiler" >&6
12929
12930 # Is the header present?
12931 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12932 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12933 cat >conftest.$ac_ext <<_ACEOF
12934 #line $LINENO "configure"
12935 /* confdefs.h. */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 #include <inq_stats/cpustats.h>
12941 _ACEOF
12942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } >/dev/null; then
12950 if test -s conftest.err; then
12951 ac_cpp_err=$ac_c_preproc_warn_flag
12952 else
12953 ac_cpp_err=
12954 fi
12955 else
12956 ac_cpp_err=yes
12957 fi
12958 if test -z "$ac_cpp_err"; then
12959 ac_header_preproc=yes
12960 else
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_header_preproc=no
12965 fi
12966 rm -f conftest.err conftest.$ac_ext
12967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12968 echo "${ECHO_T}$ac_header_preproc" >&6
12969
12970 # So? What about this header?
12971 case $ac_header_compiler:$ac_header_preproc in
12972 yes:no )
12973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12974 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12976 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12977 (
12978 cat <<\_ASBOX
12979 ## ------------------------------------ ##
12980 ## Report this to bug-autoconf@gnu.org. ##
12981 ## ------------------------------------ ##
12982 _ASBOX
12983 ) |
12984 sed "s/^/$as_me: WARNING: /" >&2
12985 ;;
12986 no:yes )
12987 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12988 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12990 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12992 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12993 (
12994 cat <<\_ASBOX
12995 ## ------------------------------------ ##
12996 ## Report this to bug-autoconf@gnu.org. ##
12997 ## ------------------------------------ ##
12998 _ASBOX
12999 ) |
13000 sed "s/^/$as_me: WARNING: /" >&2
13001 ;;
13002 esac
13003 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13004 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13005 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13009 fi
13010 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13011 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13012
13013 fi
13014 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13015 ac_have_func=yes
13016
13017 cat >>confdefs.h <<\_ACEOF
13018 #define UMAX 1
13019 _ACEOF
13020
13021
13022 cat >>confdefs.h <<\_ACEOF
13023 #define UMAX4_3 1
13024 _ACEOF
13025
13026 fi
13027
13028
13029 fi
13030
13031 if test $ac_have_func = no; then
13032 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13033 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13034 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13035 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 fi
13038 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13039 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13040 else
13041 # Is the header compilable?
13042 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13043 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13044 cat >conftest.$ac_ext <<_ACEOF
13045 #line $LINENO "configure"
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 $ac_includes_default
13052 #include <sys/cpustats.h>
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 ac_header_compiler=yes
13067 else
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 ac_header_compiler=no
13072 fi
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13075 echo "${ECHO_T}$ac_header_compiler" >&6
13076
13077 # Is the header present?
13078 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13079 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13080 cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13082 /* confdefs.h. */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 #include <sys/cpustats.h>
13088 _ACEOF
13089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } >/dev/null; then
13097 if test -s conftest.err; then
13098 ac_cpp_err=$ac_c_preproc_warn_flag
13099 else
13100 ac_cpp_err=
13101 fi
13102 else
13103 ac_cpp_err=yes
13104 fi
13105 if test -z "$ac_cpp_err"; then
13106 ac_header_preproc=yes
13107 else
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 ac_header_preproc=no
13112 fi
13113 rm -f conftest.err conftest.$ac_ext
13114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13115 echo "${ECHO_T}$ac_header_preproc" >&6
13116
13117 # So? What about this header?
13118 case $ac_header_compiler:$ac_header_preproc in
13119 yes:no )
13120 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13121 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13123 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13124 (
13125 cat <<\_ASBOX
13126 ## ------------------------------------ ##
13127 ## Report this to bug-autoconf@gnu.org. ##
13128 ## ------------------------------------ ##
13129 _ASBOX
13130 ) |
13131 sed "s/^/$as_me: WARNING: /" >&2
13132 ;;
13133 no:yes )
13134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13135 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13137 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13139 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13140 (
13141 cat <<\_ASBOX
13142 ## ------------------------------------ ##
13143 ## Report this to bug-autoconf@gnu.org. ##
13144 ## ------------------------------------ ##
13145 _ASBOX
13146 ) |
13147 sed "s/^/$as_me: WARNING: /" >&2
13148 ;;
13149 esac
13150 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13151 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13152 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13156 fi
13157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13159
13160 fi
13161 if test $ac_cv_header_sys_cpustats_h = yes; then
13162 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13163 #define UMAX 1
13164 _ACEOF
13165
13166 fi
13167
13168
13169 fi
13170
13171 if test $ac_have_func = no; then
13172
13173 for ac_header in mach/mach.h
13174 do
13175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13177 echo "$as_me:$LINENO: checking for $ac_header" >&5
13178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 fi
13182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13184 else
13185 # Is the header compilable?
13186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13188 cat >conftest.$ac_ext <<_ACEOF
13189 #line $LINENO "configure"
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 $ac_includes_default
13196 #include <$ac_header>
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_header_compiler=yes
13211 else
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215 ac_header_compiler=no
13216 fi
13217 rm -f conftest.$ac_objext conftest.$ac_ext
13218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13219 echo "${ECHO_T}$ac_header_compiler" >&6
13220
13221 # Is the header present?
13222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13224 cat >conftest.$ac_ext <<_ACEOF
13225 #line $LINENO "configure"
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <$ac_header>
13232 _ACEOF
13233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } >/dev/null; then
13241 if test -s conftest.err; then
13242 ac_cpp_err=$ac_c_preproc_warn_flag
13243 else
13244 ac_cpp_err=
13245 fi
13246 else
13247 ac_cpp_err=yes
13248 fi
13249 if test -z "$ac_cpp_err"; then
13250 ac_header_preproc=yes
13251 else
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ac_header_preproc=no
13256 fi
13257 rm -f conftest.err conftest.$ac_ext
13258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13259 echo "${ECHO_T}$ac_header_preproc" >&6
13260
13261 # So? What about this header?
13262 case $ac_header_compiler:$ac_header_preproc in
13263 yes:no )
13264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13268 (
13269 cat <<\_ASBOX
13270 ## ------------------------------------ ##
13271 ## Report this to bug-autoconf@gnu.org. ##
13272 ## ------------------------------------ ##
13273 _ASBOX
13274 ) |
13275 sed "s/^/$as_me: WARNING: /" >&2
13276 ;;
13277 no:yes )
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13284 (
13285 cat <<\_ASBOX
13286 ## ------------------------------------ ##
13287 ## Report this to bug-autoconf@gnu.org. ##
13288 ## ------------------------------------ ##
13289 _ASBOX
13290 ) |
13291 sed "s/^/$as_me: WARNING: /" >&2
13292 ;;
13293 esac
13294 echo "$as_me:$LINENO: checking for $ac_header" >&5
13295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299 eval "$as_ac_Header=$ac_header_preproc"
13300 fi
13301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13303
13304 fi
13305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13306 cat >>confdefs.h <<_ACEOF
13307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13308 _ACEOF
13309
13310 fi
13311
13312 done
13313
13314 fi
13315
13316
13317 for ac_header in nlist.h
13318 do
13319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13321 echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 fi
13326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13328 else
13329 # Is the header compilable?
13330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13332 cat >conftest.$ac_ext <<_ACEOF
13333 #line $LINENO "configure"
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 $ac_includes_default
13340 #include <$ac_header>
13341 _ACEOF
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_header_compiler=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 ac_header_compiler=no
13360 fi
13361 rm -f conftest.$ac_objext conftest.$ac_ext
13362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13363 echo "${ECHO_T}$ac_header_compiler" >&6
13364
13365 # Is the header present?
13366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include <$ac_header>
13376 _ACEOF
13377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } >/dev/null; then
13385 if test -s conftest.err; then
13386 ac_cpp_err=$ac_c_preproc_warn_flag
13387 else
13388 ac_cpp_err=
13389 fi
13390 else
13391 ac_cpp_err=yes
13392 fi
13393 if test -z "$ac_cpp_err"; then
13394 ac_header_preproc=yes
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 ac_header_preproc=no
13400 fi
13401 rm -f conftest.err conftest.$ac_ext
13402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13403 echo "${ECHO_T}$ac_header_preproc" >&6
13404
13405 # So? What about this header?
13406 case $ac_header_compiler:$ac_header_preproc in
13407 yes:no )
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13412 (
13413 cat <<\_ASBOX
13414 ## ------------------------------------ ##
13415 ## Report this to bug-autoconf@gnu.org. ##
13416 ## ------------------------------------ ##
13417 _ASBOX
13418 ) |
13419 sed "s/^/$as_me: WARNING: /" >&2
13420 ;;
13421 no:yes )
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13428 (
13429 cat <<\_ASBOX
13430 ## ------------------------------------ ##
13431 ## Report this to bug-autoconf@gnu.org. ##
13432 ## ------------------------------------ ##
13433 _ASBOX
13434 ) |
13435 sed "s/^/$as_me: WARNING: /" >&2
13436 ;;
13437 esac
13438 echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 eval "$as_ac_Header=$ac_header_preproc"
13444 fi
13445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13447
13448 fi
13449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13450 cat >>confdefs.h <<_ACEOF
13451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13452 _ACEOF
13453 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13454 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13455 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 cat >conftest.$ac_ext <<_ACEOF
13459 #line $LINENO "configure"
13460 /* confdefs.h. */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 #include <nlist.h>
13466
13467 int
13468 main ()
13469 {
13470 static struct nlist ac_aggr;
13471 if (ac_aggr.n_un.n_name)
13472 return 0;
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -s conftest.$ac_objext'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489 ac_cv_member_struct_nlist_n_un_n_name=yes
13490 else
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494 cat >conftest.$ac_ext <<_ACEOF
13495 #line $LINENO "configure"
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 #include <nlist.h>
13502
13503 int
13504 main ()
13505 {
13506 static struct nlist ac_aggr;
13507 if (sizeof ac_aggr.n_un.n_name)
13508 return 0;
13509 ;
13510 return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_cv_member_struct_nlist_n_un_n_name=yes
13526 else
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 ac_cv_member_struct_nlist_n_un_n_name=no
13531 fi
13532 rm -f conftest.$ac_objext conftest.$ac_ext
13533 fi
13534 rm -f conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13537 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13538 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13539
13540 cat >>confdefs.h <<_ACEOF
13541 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13542 _ACEOF
13543
13544
13545 cat >>confdefs.h <<\_ACEOF
13546 #define NLIST_NAME_UNION 1
13547 _ACEOF
13548
13549 fi
13550
13551
13552 fi
13553
13554 done
13555
13556 fi
13557 done
13558
13559
13560 # Some definitions of getloadavg require that the program be installed setgid.
13561 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13562 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13563 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13568 /* confdefs.h. */
13569 _ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13573 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13574 #ifdef LDAV_PRIVILEGED
13575 Yowza Am I SETGID yet
13576 #endif
13577 _ACEOF
13578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13579 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13580 ac_cv_func_getloadavg_setgid=yes
13581 else
13582 ac_cv_func_getloadavg_setgid=no
13583 fi
13584 rm -f conftest*
13585
13586 fi
13587 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13588 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13589 if test $ac_cv_func_getloadavg_setgid = yes; then
13590 NEED_SETGID=true
13591
13592 cat >>confdefs.h <<\_ACEOF
13593 #define GETLOADAVG_PRIVILEGED 1
13594 _ACEOF
13595
13596 else
13597 NEED_SETGID=false
13598 fi
13599
13600 if test $ac_cv_func_getloadavg_setgid = yes; then
13601 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13602 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13603 if test "${ac_cv_group_kmem+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13607 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13608 # If we got an error (system does not support symlinks), try without -L.
13609 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13610 ac_cv_group_kmem=`echo $ac_ls_output \
13611 | sed -ne 's/[ ][ ]*/ /g;
13612 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13613 / /s/.* //;p;'`
13614
13615 fi
13616 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13617 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13618 KMEM_GROUP=$ac_cv_group_kmem
13619 fi
13620 if test "x$ac_save_LIBS" = x; then
13621 GETLOADAVG_LIBS=$LIBS
13622 else
13623 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13624 fi
13625 LIBS=$ac_save_LIBS
13626
13627
13628
13629 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13630 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13631 if test "${ac_cv_sys_largefile_source+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 while :; do
13635 ac_cv_sys_largefile_source=no
13636 cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 #include <stdio.h>
13644 int
13645 main ()
13646 {
13647 return !fseeko;
13648 ;
13649 return 0;
13650 }
13651 _ACEOF
13652 rm -f conftest.$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654 (eval $ac_compile) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 break
13665 else
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 fi
13670 rm -f conftest.$ac_objext conftest.$ac_ext
13671 cat >conftest.$ac_ext <<_ACEOF
13672 #line $LINENO "configure"
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #define _LARGEFILE_SOURCE 1
13679 #include <stdio.h>
13680 int
13681 main ()
13682 {
13683 return !fseeko;
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690 (eval $ac_compile) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -s conftest.$ac_objext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_sys_largefile_source=1; break
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13704
13705 fi
13706 rm -f conftest.$ac_objext conftest.$ac_ext
13707 break
13708 done
13709 fi
13710 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13711 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13712 if test "$ac_cv_sys_largefile_source" != no; then
13713
13714 cat >>confdefs.h <<_ACEOF
13715 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13716 _ACEOF
13717
13718 fi
13719 rm -f conftest*
13720
13721 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13722 # in glibc 2.1.3, but that breaks too many other things.
13723 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13724 echo "$as_me:$LINENO: checking for fseeko" >&5
13725 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13726 if test "${ac_cv_func_fseeko+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729 cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <stdio.h>
13737 int
13738 main ()
13739 {
13740 return fseeko && fseeko (stdin, 0, 0);
13741 ;
13742 return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -s conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_func_fseeko=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762 ac_cv_func_fseeko=no
13763 fi
13764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13765 fi
13766 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13767 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13768 if test $ac_cv_func_fseeko = yes; then
13769
13770 cat >>confdefs.h <<\_ACEOF
13771 #define HAVE_FSEEKO 1
13772 _ACEOF
13773
13774 fi
13775
13776
13777 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13778 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13779 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782 # Use it with a single arg.
13783 cat >conftest.$ac_ext <<_ACEOF
13784 #line $LINENO "configure"
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13791 int
13792 main ()
13793 {
13794 getpgrp (0);
13795 ;
13796 return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try='test -s conftest.$ac_objext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_func_getpgrp_void=no
13812 else
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ac_cv_func_getpgrp_void=yes
13817 fi
13818 rm -f conftest.$ac_objext conftest.$ac_ext
13819
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13822 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13823 if test $ac_cv_func_getpgrp_void = yes; then
13824
13825 cat >>confdefs.h <<\_ACEOF
13826 #define GETPGRP_VOID 1
13827 _ACEOF
13828
13829 fi
13830
13831
13832 # UNIX98 PTYs.
13833
13834 for ac_func in grantpt
13835 do
13836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13837 echo "$as_me:$LINENO: checking for $ac_func" >&5
13838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_var+set}\" = set"; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 cat >conftest.$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13844 /* confdefs.h. */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char $ac_func (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13853 #ifdef __STDC__
13854 # include <limits.h>
13855 #else
13856 # include <assert.h>
13857 #endif
13858 /* Override any gcc2 internal prototype to avoid an error. */
13859 #ifdef __cplusplus
13860 extern "C"
13861 {
13862 #endif
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13865 char $ac_func ();
13866 /* The GNU C library defines this for functions which it implements
13867 to always fail with ENOSYS. Some functions are actually named
13868 something starting with __ and the normal name is an alias. */
13869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13870 choke me
13871 #else
13872 char (*f) () = $ac_func;
13873 #endif
13874 #ifdef __cplusplus
13875 }
13876 #endif
13877
13878 int
13879 main ()
13880 {
13881 return f != $ac_func;
13882 ;
13883 return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 eval "$as_ac_var=yes"
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 eval "$as_ac_var=no"
13904 fi
13905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13906 fi
13907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13909 if test `eval echo '${'$as_ac_var'}'` = yes; then
13910 cat >>confdefs.h <<_ACEOF
13911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13912 _ACEOF
13913
13914 fi
13915 done
13916
13917
13918 # PTY-related GNU extensions.
13919
13920 for ac_func in getpt
13921 do
13922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13923 echo "$as_me:$LINENO: checking for $ac_func" >&5
13924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13925 if eval "test \"\${$as_ac_var+set}\" = set"; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928 cat >conftest.$ac_ext <<_ACEOF
13929 #line $LINENO "configure"
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 /* System header to define __stub macros and hopefully few prototypes,
13936 which can conflict with char $ac_func (); below.
13937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13938 <limits.h> exists even on freestanding compilers. */
13939 #ifdef __STDC__
13940 # include <limits.h>
13941 #else
13942 # include <assert.h>
13943 #endif
13944 /* Override any gcc2 internal prototype to avoid an error. */
13945 #ifdef __cplusplus
13946 extern "C"
13947 {
13948 #endif
13949 /* We use char because int might match the return type of a gcc2
13950 builtin and then its argument prototype would still apply. */
13951 char $ac_func ();
13952 /* The GNU C library defines this for functions which it implements
13953 to always fail with ENOSYS. Some functions are actually named
13954 something starting with __ and the normal name is an alias. */
13955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13956 choke me
13957 #else
13958 char (*f) () = $ac_func;
13959 #endif
13960 #ifdef __cplusplus
13961 }
13962 #endif
13963
13964 int
13965 main ()
13966 {
13967 return f != $ac_func;
13968 ;
13969 return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext conftest$ac_exeext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13974 (eval $ac_link) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -s conftest$ac_exeext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 eval "$as_ac_var=yes"
13985 else
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 eval "$as_ac_var=no"
13990 fi
13991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13992 fi
13993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13995 if test `eval echo '${'$as_ac_var'}'` = yes; then
13996 cat >>confdefs.h <<_ACEOF
13997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13998 _ACEOF
13999
14000 fi
14001 done
14002
14003
14004 # Check this now, so that we will NOT find the above functions in ncurses.
14005 # That is because we have not set up to link ncurses in lib-src.
14006 # It's better to believe a function is not available
14007 # than to expect to find it in ncurses.
14008
14009 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14010 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14011 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014 ac_check_lib_save_LIBS=$LIBS
14015 LIBS="-lncurses $LIBS"
14016 cat >conftest.$ac_ext <<_ACEOF
14017 #line $LINENO "configure"
14018 /* confdefs.h. */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023
14024 /* Override any gcc2 internal prototype to avoid an error. */
14025 #ifdef __cplusplus
14026 extern "C"
14027 #endif
14028 /* We use char because int might match the return type of a gcc2
14029 builtin and then its argument prototype would still apply. */
14030 char tparm ();
14031 int
14032 main ()
14033 {
14034 tparm ();
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext conftest$ac_exeext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14041 (eval $ac_link) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -s conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_lib_ncurses_tparm=yes
14052 else
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 ac_cv_lib_ncurses_tparm=no
14057 fi
14058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14059 LIBS=$ac_check_lib_save_LIBS
14060 fi
14061 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14062 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14063 if test $ac_cv_lib_ncurses_tparm = yes; then
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_LIBNCURSES 1
14066 _ACEOF
14067
14068 LIBS="-lncurses $LIBS"
14069
14070 fi
14071
14072
14073 # Do we need the Hesiod library to provide the support routines?
14074 if test "$with_hesiod" = yes ; then
14075 # Don't set $LIBS here -- see comments above.
14076 resolv=no
14077 echo "$as_me:$LINENO: checking for res_send" >&5
14078 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14079 if test "${ac_cv_func_res_send+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082 cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 /* System header to define __stub macros and hopefully few prototypes,
14090 which can conflict with char res_send (); below.
14091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14092 <limits.h> exists even on freestanding compilers. */
14093 #ifdef __STDC__
14094 # include <limits.h>
14095 #else
14096 # include <assert.h>
14097 #endif
14098 /* Override any gcc2 internal prototype to avoid an error. */
14099 #ifdef __cplusplus
14100 extern "C"
14101 {
14102 #endif
14103 /* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14105 char res_send ();
14106 /* The GNU C library defines this for functions which it implements
14107 to always fail with ENOSYS. Some functions are actually named
14108 something starting with __ and the normal name is an alias. */
14109 #if defined (__stub_res_send) || defined (__stub___res_send)
14110 choke me
14111 #else
14112 char (*f) () = res_send;
14113 #endif
14114 #ifdef __cplusplus
14115 }
14116 #endif
14117
14118 int
14119 main ()
14120 {
14121 return f != res_send;
14122 ;
14123 return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128 (eval $ac_link) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_func_res_send=yes
14139 else
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143 ac_cv_func_res_send=no
14144 fi
14145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14146 fi
14147 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14148 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14149 if test $ac_cv_func_res_send = yes; then
14150 :
14151 else
14152 echo "$as_me:$LINENO: checking for __res_send" >&5
14153 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14154 if test "${ac_cv_func___res_send+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157 cat >conftest.$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14159 /* confdefs.h. */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char __res_send (); below.
14166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167 <limits.h> exists even on freestanding compilers. */
14168 #ifdef __STDC__
14169 # include <limits.h>
14170 #else
14171 # include <assert.h>
14172 #endif
14173 /* Override any gcc2 internal prototype to avoid an error. */
14174 #ifdef __cplusplus
14175 extern "C"
14176 {
14177 #endif
14178 /* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14180 char __res_send ();
14181 /* The GNU C library defines this for functions which it implements
14182 to always fail with ENOSYS. Some functions are actually named
14183 something starting with __ and the normal name is an alias. */
14184 #if defined (__stub___res_send) || defined (__stub_____res_send)
14185 choke me
14186 #else
14187 char (*f) () = __res_send;
14188 #endif
14189 #ifdef __cplusplus
14190 }
14191 #endif
14192
14193 int
14194 main ()
14195 {
14196 return f != __res_send;
14197 ;
14198 return 0;
14199 }
14200 _ACEOF
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_cv_func___res_send=yes
14214 else
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 ac_cv_func___res_send=no
14219 fi
14220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14221 fi
14222 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14223 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14224 if test $ac_cv_func___res_send = yes; then
14225 :
14226 else
14227 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14228 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14229 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232 ac_check_lib_save_LIBS=$LIBS
14233 LIBS="-lresolv $LIBS"
14234 cat >conftest.$ac_ext <<_ACEOF
14235 #line $LINENO "configure"
14236 /* confdefs.h. */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241
14242 /* Override any gcc2 internal prototype to avoid an error. */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14248 char res_send ();
14249 int
14250 main ()
14251 {
14252 res_send ();
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -s conftest$ac_exeext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_lib_resolv_res_send=yes
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ac_cv_lib_resolv_res_send=no
14275 fi
14276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14277 LIBS=$ac_check_lib_save_LIBS
14278 fi
14279 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14280 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14281 if test $ac_cv_lib_resolv_res_send = yes; then
14282 resolv=yes
14283 else
14284 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14285 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14286 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289 ac_check_lib_save_LIBS=$LIBS
14290 LIBS="-lresolv $LIBS"
14291 cat >conftest.$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14293 /* confdefs.h. */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14298
14299 /* Override any gcc2 internal prototype to avoid an error. */
14300 #ifdef __cplusplus
14301 extern "C"
14302 #endif
14303 /* We use char because int might match the return type of a gcc2
14304 builtin and then its argument prototype would still apply. */
14305 char __res_send ();
14306 int
14307 main ()
14308 {
14309 __res_send ();
14310 ;
14311 return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -s conftest$ac_exeext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_cv_lib_resolv___res_send=yes
14327 else
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 ac_cv_lib_resolv___res_send=no
14332 fi
14333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14334 LIBS=$ac_check_lib_save_LIBS
14335 fi
14336 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14337 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14338 if test $ac_cv_lib_resolv___res_send = yes; then
14339 resolv=yes
14340 fi
14341
14342 fi
14343
14344 fi
14345
14346 fi
14347
14348 if test "$resolv" = yes ; then
14349 RESOLVLIB=-lresolv
14350
14351 cat >>confdefs.h <<\_ACEOF
14352 #define HAVE_LIBRESOLV 1
14353 _ACEOF
14354
14355 else
14356 RESOLVLIB=
14357 fi
14358 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14359 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14360 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363 cat >conftest.$ac_ext <<_ACEOF
14364 #line $LINENO "configure"
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 /* System header to define __stub macros and hopefully few prototypes,
14371 which can conflict with char hes_getmailhost (); below.
14372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14373 <limits.h> exists even on freestanding compilers. */
14374 #ifdef __STDC__
14375 # include <limits.h>
14376 #else
14377 # include <assert.h>
14378 #endif
14379 /* Override any gcc2 internal prototype to avoid an error. */
14380 #ifdef __cplusplus
14381 extern "C"
14382 {
14383 #endif
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14386 char hes_getmailhost ();
14387 /* The GNU C library defines this for functions which it implements
14388 to always fail with ENOSYS. Some functions are actually named
14389 something starting with __ and the normal name is an alias. */
14390 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14391 choke me
14392 #else
14393 char (*f) () = hes_getmailhost;
14394 #endif
14395 #ifdef __cplusplus
14396 }
14397 #endif
14398
14399 int
14400 main ()
14401 {
14402 return f != hes_getmailhost;
14403 ;
14404 return 0;
14405 }
14406 _ACEOF
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409 (eval $ac_link) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -s conftest$ac_exeext'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 ac_cv_func_hes_getmailhost=yes
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14423
14424 ac_cv_func_hes_getmailhost=no
14425 fi
14426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14427 fi
14428 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14429 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14430 if test $ac_cv_func_hes_getmailhost = yes; then
14431 :
14432 else
14433 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14434 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14435 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 else
14438 ac_check_lib_save_LIBS=$LIBS
14439 LIBS="-lhesiod $RESOLVLIB $LIBS"
14440 cat >conftest.$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447
14448 /* Override any gcc2 internal prototype to avoid an error. */
14449 #ifdef __cplusplus
14450 extern "C"
14451 #endif
14452 /* We use char because int might match the return type of a gcc2
14453 builtin and then its argument prototype would still apply. */
14454 char hes_getmailhost ();
14455 int
14456 main ()
14457 {
14458 hes_getmailhost ();
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14465 (eval $ac_link) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -s conftest$ac_exeext'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14475 ac_cv_lib_hesiod_hes_getmailhost=yes
14476 else
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_cv_lib_hesiod_hes_getmailhost=no
14481 fi
14482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14483 LIBS=$ac_check_lib_save_LIBS
14484 fi
14485 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14486 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14487 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14488
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_LIBHESIOD 1
14491 _ACEOF
14492
14493 else
14494 :
14495 fi
14496
14497 fi
14498
14499 fi
14500
14501 # These tell us which Kerberos-related libraries to use.
14502 if test "${with_kerberos+set}" = set; then
14503
14504 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14505 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14506 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509 ac_check_lib_save_LIBS=$LIBS
14510 LIBS="-lcom_err $LIBS"
14511 cat >conftest.$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518
14519 /* Override any gcc2 internal prototype to avoid an error. */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14525 char com_err ();
14526 int
14527 main ()
14528 {
14529 com_err ();
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_lib_com_err_com_err=yes
14547 else
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14550
14551 ac_cv_lib_com_err_com_err=no
14552 fi
14553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14555 fi
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14557 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14558 if test $ac_cv_lib_com_err_com_err = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_LIBCOM_ERR 1
14561 _ACEOF
14562
14563 LIBS="-lcom_err $LIBS"
14564
14565 fi
14566
14567
14568 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14569 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14570 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-lk5crypto $LIBS"
14575 cat >conftest.$ac_ext <<_ACEOF
14576 #line $LINENO "configure"
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582
14583 /* Override any gcc2 internal prototype to avoid an error. */
14584 #ifdef __cplusplus
14585 extern "C"
14586 #endif
14587 /* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14589 char mit_des_cbc_encrypt ();
14590 int
14591 main ()
14592 {
14593 mit_des_cbc_encrypt ();
14594 ;
14595 return 0;
14596 }
14597 _ACEOF
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -s conftest$ac_exeext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14616 fi
14617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14618 LIBS=$ac_check_lib_save_LIBS
14619 fi
14620 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14621 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14622 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14623 cat >>confdefs.h <<_ACEOF
14624 #define HAVE_LIBK5CRYPTO 1
14625 _ACEOF
14626
14627 LIBS="-lk5crypto $LIBS"
14628
14629 fi
14630
14631
14632 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14633 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14634 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637 ac_check_lib_save_LIBS=$LIBS
14638 LIBS="-lcrypto $LIBS"
14639 cat >conftest.$ac_ext <<_ACEOF
14640 #line $LINENO "configure"
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646
14647 /* Override any gcc2 internal prototype to avoid an error. */
14648 #ifdef __cplusplus
14649 extern "C"
14650 #endif
14651 /* We use char because int might match the return type of a gcc2
14652 builtin and then its argument prototype would still apply. */
14653 char mit_des_cbc_encrypt ();
14654 int
14655 main ()
14656 {
14657 mit_des_cbc_encrypt ();
14658 ;
14659 return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext conftest$ac_exeext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14664 (eval $ac_link) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -s conftest$ac_exeext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14675 else
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14680 fi
14681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14682 LIBS=$ac_check_lib_save_LIBS
14683 fi
14684 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14685 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14686 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14687 cat >>confdefs.h <<_ACEOF
14688 #define HAVE_LIBCRYPTO 1
14689 _ACEOF
14690
14691 LIBS="-lcrypto $LIBS"
14692
14693 fi
14694
14695
14696 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14697 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14698 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 ac_check_lib_save_LIBS=$LIBS
14702 LIBS="-lkrb5 $LIBS"
14703 cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14705 /* confdefs.h. */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710
14711 /* Override any gcc2 internal prototype to avoid an error. */
14712 #ifdef __cplusplus
14713 extern "C"
14714 #endif
14715 /* We use char because int might match the return type of a gcc2
14716 builtin and then its argument prototype would still apply. */
14717 char krb5_init_context ();
14718 int
14719 main ()
14720 {
14721 krb5_init_context ();
14722 ;
14723 return 0;
14724 }
14725 _ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_lib_krb5_krb5_init_context=yes
14739 else
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 ac_cv_lib_krb5_krb5_init_context=no
14744 fi
14745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14746 LIBS=$ac_check_lib_save_LIBS
14747 fi
14748 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14749 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14750 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_LIBKRB5 1
14753 _ACEOF
14754
14755 LIBS="-lkrb5 $LIBS"
14756
14757 fi
14758
14759 if test "${with_kerberos5+set}" != set; then
14760
14761 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14762 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14763 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766 ac_check_lib_save_LIBS=$LIBS
14767 LIBS="-ldes425 $LIBS"
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775
14776 /* Override any gcc2 internal prototype to avoid an error. */
14777 #ifdef __cplusplus
14778 extern "C"
14779 #endif
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char des_cbc_encrypt ();
14783 int
14784 main ()
14785 {
14786 des_cbc_encrypt ();
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14793 (eval $ac_link) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -s conftest$ac_exeext'
14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799 (eval $ac_try) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; }; then
14803 ac_cv_lib_des425_des_cbc_encrypt=yes
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_cv_lib_des425_des_cbc_encrypt=no
14809 fi
14810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_check_lib_save_LIBS
14812 fi
14813 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14814 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14815 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_LIBDES425 1
14818 _ACEOF
14819
14820 LIBS="-ldes425 $LIBS"
14821
14822 else
14823
14824 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14825 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14826 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829 ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-ldes $LIBS"
14831 cat >conftest.$ac_ext <<_ACEOF
14832 #line $LINENO "configure"
14833 /* confdefs.h. */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838
14839 /* Override any gcc2 internal prototype to avoid an error. */
14840 #ifdef __cplusplus
14841 extern "C"
14842 #endif
14843 /* We use char because int might match the return type of a gcc2
14844 builtin and then its argument prototype would still apply. */
14845 char des_cbc_encrypt ();
14846 int
14847 main ()
14848 {
14849 des_cbc_encrypt ();
14850 ;
14851 return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856 (eval $ac_link) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -s conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_lib_des_des_cbc_encrypt=yes
14867 else
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14870
14871 ac_cv_lib_des_des_cbc_encrypt=no
14872 fi
14873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14875 fi
14876 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14877 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14878 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LIBDES 1
14881 _ACEOF
14882
14883 LIBS="-ldes $LIBS"
14884
14885 fi
14886
14887 fi
14888
14889
14890 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14891 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14892 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895 ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-lkrb4 $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 #line $LINENO "configure"
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904
14905 /* Override any gcc2 internal prototype to avoid an error. */
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char krb_get_cred ();
14912 int
14913 main ()
14914 {
14915 krb_get_cred ();
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest$ac_exeext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_cv_lib_krb4_krb_get_cred=yes
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14936
14937 ac_cv_lib_krb4_krb_get_cred=no
14938 fi
14939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14940 LIBS=$ac_check_lib_save_LIBS
14941 fi
14942 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14943 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14944 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_LIBKRB4 1
14947 _ACEOF
14948
14949 LIBS="-lkrb4 $LIBS"
14950
14951 else
14952
14953 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14954 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14955 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958 ac_check_lib_save_LIBS=$LIBS
14959 LIBS="-lkrb $LIBS"
14960 cat >conftest.$ac_ext <<_ACEOF
14961 #line $LINENO "configure"
14962 /* confdefs.h. */
14963 _ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14967
14968 /* Override any gcc2 internal prototype to avoid an error. */
14969 #ifdef __cplusplus
14970 extern "C"
14971 #endif
14972 /* We use char because int might match the return type of a gcc2
14973 builtin and then its argument prototype would still apply. */
14974 char krb_get_cred ();
14975 int
14976 main ()
14977 {
14978 krb_get_cred ();
14979 ;
14980 return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -s conftest$ac_exeext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_cv_lib_krb_krb_get_cred=yes
14996 else
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000 ac_cv_lib_krb_krb_get_cred=no
15001 fi
15002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15003 LIBS=$ac_check_lib_save_LIBS
15004 fi
15005 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15006 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15007 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15008 cat >>confdefs.h <<_ACEOF
15009 #define HAVE_LIBKRB 1
15010 _ACEOF
15011
15012 LIBS="-lkrb $LIBS"
15013
15014 fi
15015
15016 fi
15017
15018 fi
15019
15020 if test "${with_kerberos5+set}" = set; then
15021
15022 for ac_header in krb5.h
15023 do
15024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15026 echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 fi
15031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15033 else
15034 # Is the header compilable?
15035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15037 cat >conftest.$ac_ext <<_ACEOF
15038 #line $LINENO "configure"
15039 /* confdefs.h. */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 $ac_includes_default
15045 #include <$ac_header>
15046 _ACEOF
15047 rm -f conftest.$ac_objext
15048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15049 (eval $ac_compile) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
15053 { ac_try='test -s conftest.$ac_objext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_header_compiler=yes
15060 else
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 ac_header_compiler=no
15065 fi
15066 rm -f conftest.$ac_objext conftest.$ac_ext
15067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15068 echo "${ECHO_T}$ac_header_compiler" >&6
15069
15070 # Is the header present?
15071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15073 cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <$ac_header>
15081 _ACEOF
15082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } >/dev/null; then
15090 if test -s conftest.err; then
15091 ac_cpp_err=$ac_c_preproc_warn_flag
15092 else
15093 ac_cpp_err=
15094 fi
15095 else
15096 ac_cpp_err=yes
15097 fi
15098 if test -z "$ac_cpp_err"; then
15099 ac_header_preproc=yes
15100 else
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 ac_header_preproc=no
15105 fi
15106 rm -f conftest.err conftest.$ac_ext
15107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15108 echo "${ECHO_T}$ac_header_preproc" >&6
15109
15110 # So? What about this header?
15111 case $ac_header_compiler:$ac_header_preproc in
15112 yes:no )
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15117 (
15118 cat <<\_ASBOX
15119 ## ------------------------------------ ##
15120 ## Report this to bug-autoconf@gnu.org. ##
15121 ## ------------------------------------ ##
15122 _ASBOX
15123 ) |
15124 sed "s/^/$as_me: WARNING: /" >&2
15125 ;;
15126 no:yes )
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15133 (
15134 cat <<\_ASBOX
15135 ## ------------------------------------ ##
15136 ## Report this to bug-autoconf@gnu.org. ##
15137 ## ------------------------------------ ##
15138 _ASBOX
15139 ) |
15140 sed "s/^/$as_me: WARNING: /" >&2
15141 ;;
15142 esac
15143 echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148 eval "$as_ac_Header=$ac_header_preproc"
15149 fi
15150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15152
15153 fi
15154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157 _ACEOF
15158
15159 fi
15160
15161 done
15162
15163 else
15164
15165 for ac_header in des.h
15166 do
15167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15169 echo "$as_me:$LINENO: checking for $ac_header" >&5
15170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 fi
15174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15176 else
15177 # Is the header compilable?
15178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15181 #line $LINENO "configure"
15182 /* confdefs.h. */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 $ac_includes_default
15188 #include <$ac_header>
15189 _ACEOF
15190 rm -f conftest.$ac_objext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15202 ac_header_compiler=yes
15203 else
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15206
15207 ac_header_compiler=no
15208 fi
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15211 echo "${ECHO_T}$ac_header_compiler" >&6
15212
15213 # Is the header present?
15214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15216 cat >conftest.$ac_ext <<_ACEOF
15217 #line $LINENO "configure"
15218 /* confdefs.h. */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 #include <$ac_header>
15224 _ACEOF
15225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } >/dev/null; then
15233 if test -s conftest.err; then
15234 ac_cpp_err=$ac_c_preproc_warn_flag
15235 else
15236 ac_cpp_err=
15237 fi
15238 else
15239 ac_cpp_err=yes
15240 fi
15241 if test -z "$ac_cpp_err"; then
15242 ac_header_preproc=yes
15243 else
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15246
15247 ac_header_preproc=no
15248 fi
15249 rm -f conftest.err conftest.$ac_ext
15250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251 echo "${ECHO_T}$ac_header_preproc" >&6
15252
15253 # So? What about this header?
15254 case $ac_header_compiler:$ac_header_preproc in
15255 yes:no )
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15260 (
15261 cat <<\_ASBOX
15262 ## ------------------------------------ ##
15263 ## Report this to bug-autoconf@gnu.org. ##
15264 ## ------------------------------------ ##
15265 _ASBOX
15266 ) |
15267 sed "s/^/$as_me: WARNING: /" >&2
15268 ;;
15269 no:yes )
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15276 (
15277 cat <<\_ASBOX
15278 ## ------------------------------------ ##
15279 ## Report this to bug-autoconf@gnu.org. ##
15280 ## ------------------------------------ ##
15281 _ASBOX
15282 ) |
15283 sed "s/^/$as_me: WARNING: /" >&2
15284 ;;
15285 esac
15286 echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291 eval "$as_ac_Header=$ac_header_preproc"
15292 fi
15293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15295
15296 fi
15297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15298 cat >>confdefs.h <<_ACEOF
15299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15300 _ACEOF
15301
15302 else
15303
15304 for ac_header in kerberosIV/des.h
15305 do
15306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15308 echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 fi
15313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15315 else
15316 # Is the header compilable?
15317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15320 #line $LINENO "configure"
15321 /* confdefs.h. */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 $ac_includes_default
15327 #include <$ac_header>
15328 _ACEOF
15329 rm -f conftest.$ac_objext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15331 (eval $ac_compile) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -s conftest.$ac_objext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_header_compiler=yes
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_header_compiler=no
15347 fi
15348 rm -f conftest.$ac_objext conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15350 echo "${ECHO_T}$ac_header_compiler" >&6
15351
15352 # Is the header present?
15353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15356 #line $LINENO "configure"
15357 /* confdefs.h. */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <$ac_header>
15363 _ACEOF
15364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev/null; then
15372 if test -s conftest.err; then
15373 ac_cpp_err=$ac_c_preproc_warn_flag
15374 else
15375 ac_cpp_err=
15376 fi
15377 else
15378 ac_cpp_err=yes
15379 fi
15380 if test -z "$ac_cpp_err"; then
15381 ac_header_preproc=yes
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 ac_header_preproc=no
15387 fi
15388 rm -f conftest.err conftest.$ac_ext
15389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15390 echo "${ECHO_T}$ac_header_preproc" >&6
15391
15392 # So? What about this header?
15393 case $ac_header_compiler:$ac_header_preproc in
15394 yes:no )
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15399 (
15400 cat <<\_ASBOX
15401 ## ------------------------------------ ##
15402 ## Report this to bug-autoconf@gnu.org. ##
15403 ## ------------------------------------ ##
15404 _ASBOX
15405 ) |
15406 sed "s/^/$as_me: WARNING: /" >&2
15407 ;;
15408 no:yes )
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15415 (
15416 cat <<\_ASBOX
15417 ## ------------------------------------ ##
15418 ## Report this to bug-autoconf@gnu.org. ##
15419 ## ------------------------------------ ##
15420 _ASBOX
15421 ) |
15422 sed "s/^/$as_me: WARNING: /" >&2
15423 ;;
15424 esac
15425 echo "$as_me:$LINENO: checking for $ac_header" >&5
15426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 eval "$as_ac_Header=$ac_header_preproc"
15431 fi
15432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15434
15435 fi
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437 cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15439 _ACEOF
15440
15441 else
15442
15443 for ac_header in kerberos/des.h
15444 do
15445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15447 echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 fi
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15454 else
15455 # Is the header compilable?
15456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15458 cat >conftest.$ac_ext <<_ACEOF
15459 #line $LINENO "configure"
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15466 #include <$ac_header>
15467 _ACEOF
15468 rm -f conftest.$ac_objext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15470 (eval $ac_compile) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try='test -s conftest.$ac_objext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 ac_header_compiler=yes
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15484
15485 ac_header_compiler=no
15486 fi
15487 rm -f conftest.$ac_objext conftest.$ac_ext
15488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15489 echo "${ECHO_T}$ac_header_compiler" >&6
15490
15491 # Is the header present?
15492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15494 cat >conftest.$ac_ext <<_ACEOF
15495 #line $LINENO "configure"
15496 /* confdefs.h. */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <$ac_header>
15502 _ACEOF
15503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } >/dev/null; then
15511 if test -s conftest.err; then
15512 ac_cpp_err=$ac_c_preproc_warn_flag
15513 else
15514 ac_cpp_err=
15515 fi
15516 else
15517 ac_cpp_err=yes
15518 fi
15519 if test -z "$ac_cpp_err"; then
15520 ac_header_preproc=yes
15521 else
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 ac_header_preproc=no
15526 fi
15527 rm -f conftest.err conftest.$ac_ext
15528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15529 echo "${ECHO_T}$ac_header_preproc" >&6
15530
15531 # So? What about this header?
15532 case $ac_header_compiler:$ac_header_preproc in
15533 yes:no )
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15538 (
15539 cat <<\_ASBOX
15540 ## ------------------------------------ ##
15541 ## Report this to bug-autoconf@gnu.org. ##
15542 ## ------------------------------------ ##
15543 _ASBOX
15544 ) |
15545 sed "s/^/$as_me: WARNING: /" >&2
15546 ;;
15547 no:yes )
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15554 (
15555 cat <<\_ASBOX
15556 ## ------------------------------------ ##
15557 ## Report this to bug-autoconf@gnu.org. ##
15558 ## ------------------------------------ ##
15559 _ASBOX
15560 ) |
15561 sed "s/^/$as_me: WARNING: /" >&2
15562 ;;
15563 esac
15564 echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15568 else
15569 eval "$as_ac_Header=$ac_header_preproc"
15570 fi
15571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15573
15574 fi
15575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15576 cat >>confdefs.h <<_ACEOF
15577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15578 _ACEOF
15579
15580 fi
15581
15582 done
15583
15584 fi
15585
15586 done
15587
15588 fi
15589
15590 done
15591
15592
15593 for ac_header in krb.h
15594 do
15595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15597 echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 fi
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15604 else
15605 # Is the header compilable?
15606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15608 cat >conftest.$ac_ext <<_ACEOF
15609 #line $LINENO "configure"
15610 /* confdefs.h. */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 $ac_includes_default
15616 #include <$ac_header>
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -s conftest.$ac_objext'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_header_compiler=yes
15631 else
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 ac_header_compiler=no
15636 fi
15637 rm -f conftest.$ac_objext conftest.$ac_ext
15638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15639 echo "${ECHO_T}$ac_header_compiler" >&6
15640
15641 # Is the header present?
15642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <$ac_header>
15652 _ACEOF
15653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 else
15664 ac_cpp_err=
15665 fi
15666 else
15667 ac_cpp_err=yes
15668 fi
15669 if test -z "$ac_cpp_err"; then
15670 ac_header_preproc=yes
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_header_preproc=no
15676 fi
15677 rm -f conftest.err conftest.$ac_ext
15678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15679 echo "${ECHO_T}$ac_header_preproc" >&6
15680
15681 # So? What about this header?
15682 case $ac_header_compiler:$ac_header_preproc in
15683 yes:no )
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15688 (
15689 cat <<\_ASBOX
15690 ## ------------------------------------ ##
15691 ## Report this to bug-autoconf@gnu.org. ##
15692 ## ------------------------------------ ##
15693 _ASBOX
15694 ) |
15695 sed "s/^/$as_me: WARNING: /" >&2
15696 ;;
15697 no:yes )
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15704 (
15705 cat <<\_ASBOX
15706 ## ------------------------------------ ##
15707 ## Report this to bug-autoconf@gnu.org. ##
15708 ## ------------------------------------ ##
15709 _ASBOX
15710 ) |
15711 sed "s/^/$as_me: WARNING: /" >&2
15712 ;;
15713 esac
15714 echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719 eval "$as_ac_Header=$ac_header_preproc"
15720 fi
15721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15723
15724 fi
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15728 _ACEOF
15729
15730 else
15731
15732 for ac_header in kerberosIV/krb.h
15733 do
15734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15736 echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 fi
15741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15743 else
15744 # Is the header compilable?
15745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15747 cat >conftest.$ac_ext <<_ACEOF
15748 #line $LINENO "configure"
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 #include <$ac_header>
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler=yes
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_header_compiler=no
15775 fi
15776 rm -f conftest.$ac_objext conftest.$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15778 echo "${ECHO_T}$ac_header_compiler" >&6
15779
15780 # Is the header present?
15781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15791 _ACEOF
15792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev/null; then
15800 if test -s conftest.err; then
15801 ac_cpp_err=$ac_c_preproc_warn_flag
15802 else
15803 ac_cpp_err=
15804 fi
15805 else
15806 ac_cpp_err=yes
15807 fi
15808 if test -z "$ac_cpp_err"; then
15809 ac_header_preproc=yes
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ac_header_preproc=no
15815 fi
15816 rm -f conftest.err conftest.$ac_ext
15817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15818 echo "${ECHO_T}$ac_header_preproc" >&6
15819
15820 # So? What about this header?
15821 case $ac_header_compiler:$ac_header_preproc in
15822 yes:no )
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15827 (
15828 cat <<\_ASBOX
15829 ## ------------------------------------ ##
15830 ## Report this to bug-autoconf@gnu.org. ##
15831 ## ------------------------------------ ##
15832 _ASBOX
15833 ) |
15834 sed "s/^/$as_me: WARNING: /" >&2
15835 ;;
15836 no:yes )
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843 (
15844 cat <<\_ASBOX
15845 ## ------------------------------------ ##
15846 ## Report this to bug-autoconf@gnu.org. ##
15847 ## ------------------------------------ ##
15848 _ASBOX
15849 ) |
15850 sed "s/^/$as_me: WARNING: /" >&2
15851 ;;
15852 esac
15853 echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858 eval "$as_ac_Header=$ac_header_preproc"
15859 fi
15860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15862
15863 fi
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 _ACEOF
15868
15869 else
15870
15871 for ac_header in kerberos/krb.h
15872 do
15873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15875 echo "$as_me:$LINENO: checking for $ac_header" >&5
15876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 fi
15880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15882 else
15883 # Is the header compilable?
15884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15887 #line $LINENO "configure"
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 $ac_includes_default
15894 #include <$ac_header>
15895 _ACEOF
15896 rm -f conftest.$ac_objext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15898 (eval $ac_compile) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -s conftest.$ac_objext'
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_header_compiler=yes
15909 else
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913 ac_header_compiler=no
15914 fi
15915 rm -f conftest.$ac_objext conftest.$ac_ext
15916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15917 echo "${ECHO_T}$ac_header_compiler" >&6
15918
15919 # Is the header present?
15920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15923 #line $LINENO "configure"
15924 /* confdefs.h. */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15929 #include <$ac_header>
15930 _ACEOF
15931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } >/dev/null; then
15939 if test -s conftest.err; then
15940 ac_cpp_err=$ac_c_preproc_warn_flag
15941 else
15942 ac_cpp_err=
15943 fi
15944 else
15945 ac_cpp_err=yes
15946 fi
15947 if test -z "$ac_cpp_err"; then
15948 ac_header_preproc=yes
15949 else
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 ac_header_preproc=no
15954 fi
15955 rm -f conftest.err conftest.$ac_ext
15956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15957 echo "${ECHO_T}$ac_header_preproc" >&6
15958
15959 # So? What about this header?
15960 case $ac_header_compiler:$ac_header_preproc in
15961 yes:no )
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15966 (
15967 cat <<\_ASBOX
15968 ## ------------------------------------ ##
15969 ## Report this to bug-autoconf@gnu.org. ##
15970 ## ------------------------------------ ##
15971 _ASBOX
15972 ) |
15973 sed "s/^/$as_me: WARNING: /" >&2
15974 ;;
15975 no:yes )
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15982 (
15983 cat <<\_ASBOX
15984 ## ------------------------------------ ##
15985 ## Report this to bug-autoconf@gnu.org. ##
15986 ## ------------------------------------ ##
15987 _ASBOX
15988 ) |
15989 sed "s/^/$as_me: WARNING: /" >&2
15990 ;;
15991 esac
15992 echo "$as_me:$LINENO: checking for $ac_header" >&5
15993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 else
15997 eval "$as_ac_Header=$ac_header_preproc"
15998 fi
15999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16001
16002 fi
16003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16004 cat >>confdefs.h <<_ACEOF
16005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16006 _ACEOF
16007
16008 fi
16009
16010 done
16011
16012 fi
16013
16014 done
16015
16016 fi
16017
16018 done
16019
16020 fi
16021
16022 for ac_header in com_err.h
16023 do
16024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026 echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 fi
16031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16033 else
16034 # Is the header compilable?
16035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16038 #line $LINENO "configure"
16039 /* confdefs.h. */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 $ac_includes_default
16045 #include <$ac_header>
16046 _ACEOF
16047 rm -f conftest.$ac_objext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16049 (eval $ac_compile) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try='test -s conftest.$ac_objext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_header_compiler=yes
16060 else
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 ac_header_compiler=no
16065 fi
16066 rm -f conftest.$ac_objext conftest.$ac_ext
16067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6
16069
16070 # Is the header present?
16071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16073 cat >conftest.$ac_ext <<_ACEOF
16074 #line $LINENO "configure"
16075 /* confdefs.h. */
16076 _ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 #include <$ac_header>
16081 _ACEOF
16082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } >/dev/null; then
16090 if test -s conftest.err; then
16091 ac_cpp_err=$ac_c_preproc_warn_flag
16092 else
16093 ac_cpp_err=
16094 fi
16095 else
16096 ac_cpp_err=yes
16097 fi
16098 if test -z "$ac_cpp_err"; then
16099 ac_header_preproc=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104 ac_header_preproc=no
16105 fi
16106 rm -f conftest.err conftest.$ac_ext
16107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108 echo "${ECHO_T}$ac_header_preproc" >&6
16109
16110 # So? What about this header?
16111 case $ac_header_compiler:$ac_header_preproc in
16112 yes:no )
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 (
16118 cat <<\_ASBOX
16119 ## ------------------------------------ ##
16120 ## Report this to bug-autoconf@gnu.org. ##
16121 ## ------------------------------------ ##
16122 _ASBOX
16123 ) |
16124 sed "s/^/$as_me: WARNING: /" >&2
16125 ;;
16126 no:yes )
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16133 (
16134 cat <<\_ASBOX
16135 ## ------------------------------------ ##
16136 ## Report this to bug-autoconf@gnu.org. ##
16137 ## ------------------------------------ ##
16138 _ASBOX
16139 ) |
16140 sed "s/^/$as_me: WARNING: /" >&2
16141 ;;
16142 esac
16143 echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148 eval "$as_ac_Header=$ac_header_preproc"
16149 fi
16150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16152
16153 fi
16154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16155 cat >>confdefs.h <<_ACEOF
16156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16157 _ACEOF
16158
16159 fi
16160
16161 done
16162
16163 fi
16164
16165 # Solaris requires -lintl if you want strerror (which calls dgettext)
16166 # to return localized messages.
16167
16168 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16169 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16170 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173 ac_check_lib_save_LIBS=$LIBS
16174 LIBS="-lintl $LIBS"
16175 cat >conftest.$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16177 /* confdefs.h. */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182
16183 /* Override any gcc2 internal prototype to avoid an error. */
16184 #ifdef __cplusplus
16185 extern "C"
16186 #endif
16187 /* We use char because int might match the return type of a gcc2
16188 builtin and then its argument prototype would still apply. */
16189 char dgettext ();
16190 int
16191 main ()
16192 {
16193 dgettext ();
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 rm -f conftest.$ac_objext conftest$ac_exeext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16200 (eval $ac_link) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_lib_intl_dgettext=yes
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215 ac_cv_lib_intl_dgettext=no
16216 fi
16217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16218 LIBS=$ac_check_lib_save_LIBS
16219 fi
16220 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16221 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16222 if test $ac_cv_lib_intl_dgettext = yes; then
16223 cat >>confdefs.h <<_ACEOF
16224 #define HAVE_LIBINTL 1
16225 _ACEOF
16226
16227 LIBS="-lintl $LIBS"
16228
16229 fi
16230
16231
16232 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16233 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16234 if test "${emacs_cv_localtime_cache+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237 if test x$ac_cv_func_tzset = xyes; then
16238 if test "$cross_compiling" = yes; then
16239 # If we have tzset, assume the worst when cross-compiling.
16240 emacs_cv_localtime_cache=yes
16241 else
16242 cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 #include <time.h>
16250 extern char **environ;
16251 unset_TZ ()
16252 {
16253 char **from, **to;
16254 for (to = from = environ; (*to = *from); from++)
16255 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16256 to++;
16257 }
16258 char TZ_GMT0[] = "TZ=GMT0";
16259 char TZ_PST8[] = "TZ=PST8";
16260 main()
16261 {
16262 time_t now = time ((time_t *) 0);
16263 int hour_GMT0, hour_unset;
16264 if (putenv (TZ_GMT0) != 0)
16265 exit (1);
16266 hour_GMT0 = localtime (&now)->tm_hour;
16267 unset_TZ ();
16268 hour_unset = localtime (&now)->tm_hour;
16269 if (putenv (TZ_PST8) != 0)
16270 exit (1);
16271 if (localtime (&now)->tm_hour == hour_GMT0)
16272 exit (1);
16273 unset_TZ ();
16274 if (localtime (&now)->tm_hour != hour_unset)
16275 exit (1);
16276 exit (0);
16277 }
16278 _ACEOF
16279 rm -f conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281 (eval $ac_link) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 emacs_cv_localtime_cache=no
16291 else
16292 echo "$as_me: program exited with status $ac_status" >&5
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296 ( exit $ac_status )
16297 emacs_cv_localtime_cache=yes
16298 fi
16299 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16300 fi
16301 else
16302 # If we lack tzset, report that localtime does not cache TZ,
16303 # since we can't invalidate the cache if we don't have tzset.
16304 emacs_cv_localtime_cache=no
16305 fi
16306 fi
16307 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16308 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16309 if test $emacs_cv_localtime_cache = yes; then
16310
16311 cat >>confdefs.h <<\_ACEOF
16312 #define LOCALTIME_CACHE 1
16313 _ACEOF
16314
16315 fi
16316
16317 if test "x$HAVE_TIMEVAL" = xyes; then
16318
16319 for ac_func in gettimeofday
16320 do
16321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16322 echo "$as_me:$LINENO: checking for $ac_func" >&5
16323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16324 if eval "test \"\${$as_ac_var+set}\" = set"; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327 cat >conftest.$ac_ext <<_ACEOF
16328 #line $LINENO "configure"
16329 /* confdefs.h. */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 /* System header to define __stub macros and hopefully few prototypes,
16335 which can conflict with char $ac_func (); below.
16336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16337 <limits.h> exists even on freestanding compilers. */
16338 #ifdef __STDC__
16339 # include <limits.h>
16340 #else
16341 # include <assert.h>
16342 #endif
16343 /* Override any gcc2 internal prototype to avoid an error. */
16344 #ifdef __cplusplus
16345 extern "C"
16346 {
16347 #endif
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16350 char $ac_func ();
16351 /* The GNU C library defines this for functions which it implements
16352 to always fail with ENOSYS. Some functions are actually named
16353 something starting with __ and the normal name is an alias. */
16354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16355 choke me
16356 #else
16357 char (*f) () = $ac_func;
16358 #endif
16359 #ifdef __cplusplus
16360 }
16361 #endif
16362
16363 int
16364 main ()
16365 {
16366 return f != $ac_func;
16367 ;
16368 return 0;
16369 }
16370 _ACEOF
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373 (eval $ac_link) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -s conftest$ac_exeext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 eval "$as_ac_var=yes"
16384 else
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16387
16388 eval "$as_ac_var=no"
16389 fi
16390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16391 fi
16392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16397 _ACEOF
16398
16399 fi
16400 done
16401
16402 if test $ac_cv_func_gettimeofday = yes; then
16403 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16404 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16405 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 else
16408 cat >conftest.$ac_ext <<_ACEOF
16409 #line $LINENO "configure"
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415
16416 #ifdef TIME_WITH_SYS_TIME
16417 #include <sys/time.h>
16418 #include <time.h>
16419 #else
16420 #ifdef HAVE_SYS_TIME_H
16421 #include <sys/time.h>
16422 #else
16423 #include <time.h>
16424 #endif
16425 #endif
16426 int
16427 main ()
16428 {
16429 struct timeval time;
16430 gettimeofday (&time, 0);
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16437 (eval $ac_compile) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -s conftest.$ac_objext'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 emacs_cv_gettimeofday_two_arguments=yes
16448 else
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452 emacs_cv_gettimeofday_two_arguments=no
16453 fi
16454 rm -f conftest.$ac_objext conftest.$ac_ext
16455 fi
16456 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16457 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16458 if test $emacs_cv_gettimeofday_two_arguments = no; then
16459
16460 cat >>confdefs.h <<\_ACEOF
16461 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16462 _ACEOF
16463
16464 fi
16465 fi
16466 fi
16467
16468 if test "$ac_cv_func_gettimeofday" = yes; then
16469 echo "$as_me:$LINENO: checking for struct timezone" >&5
16470 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16471 if test "${emacs_cv_struct_timezone+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474 cat >conftest.$ac_ext <<_ACEOF
16475 #line $LINENO "configure"
16476 /* confdefs.h. */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 #include <sys/time.h>
16482 int
16483 main ()
16484 {
16485 struct timezone tz;
16486 ;
16487 return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 if test "$cross_compiling" = yes; then
16503 emacs_cv_struct_timezone=yes
16504 else
16505 cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16507 /* confdefs.h. */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512
16513 #ifdef TIME_WITH_SYS_TIME
16514 #include <sys/time.h>
16515 #include <time.h>
16516 #else
16517 #ifdef HAVE_SYS_TIME_H
16518 #include <sys/time.h>
16519 #else
16520 #include <time.h>
16521 #endif
16522 #endif
16523 main () {
16524 struct timeval time;
16525 struct timezone dummy;
16526 exit (gettimeofday (&time, &dummy));
16527 }
16528 _ACEOF
16529 rm -f conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 emacs_cv_struct_timezone=yes
16541 else
16542 echo "$as_me: program exited with status $ac_status" >&5
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ( exit $ac_status )
16547 emacs_cv_struct_timezone=no
16548 fi
16549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16550 fi
16551 else
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 emacs_cv_struct_timezone=no
16556 fi
16557 rm -f conftest.$ac_objext conftest.$ac_ext
16558 fi
16559 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16560 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16561 fi
16562
16563 ok_so_far=yes
16564 echo "$as_me:$LINENO: checking for socket" >&5
16565 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16566 if test "${ac_cv_func_socket+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16571 /* confdefs.h. */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 /* System header to define __stub macros and hopefully few prototypes,
16577 which can conflict with char socket (); below.
16578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16579 <limits.h> exists even on freestanding compilers. */
16580 #ifdef __STDC__
16581 # include <limits.h>
16582 #else
16583 # include <assert.h>
16584 #endif
16585 /* Override any gcc2 internal prototype to avoid an error. */
16586 #ifdef __cplusplus
16587 extern "C"
16588 {
16589 #endif
16590 /* We use char because int might match the return type of a gcc2
16591 builtin and then its argument prototype would still apply. */
16592 char socket ();
16593 /* The GNU C library defines this for functions which it implements
16594 to always fail with ENOSYS. Some functions are actually named
16595 something starting with __ and the normal name is an alias. */
16596 #if defined (__stub_socket) || defined (__stub___socket)
16597 choke me
16598 #else
16599 char (*f) () = socket;
16600 #endif
16601 #ifdef __cplusplus
16602 }
16603 #endif
16604
16605 int
16606 main ()
16607 {
16608 return f != socket;
16609 ;
16610 return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -s conftest$ac_exeext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_func_socket=yes
16626 else
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_cv_func_socket=no
16631 fi
16632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16633 fi
16634 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16635 echo "${ECHO_T}$ac_cv_func_socket" >&6
16636 if test $ac_cv_func_socket = yes; then
16637 :
16638 else
16639 ok_so_far=no
16640 fi
16641
16642 if test $ok_so_far = yes; then
16643 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16644 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16645 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16646 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 fi
16649 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16650 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16651 else
16652 # Is the header compilable?
16653 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16654 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16655 cat >conftest.$ac_ext <<_ACEOF
16656 #line $LINENO "configure"
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 $ac_includes_default
16663 #include <netinet/in.h>
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try='test -s conftest.$ac_objext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 ac_header_compiler=yes
16678 else
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 ac_header_compiler=no
16683 fi
16684 rm -f conftest.$ac_objext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16686 echo "${ECHO_T}$ac_header_compiler" >&6
16687
16688 # Is the header present?
16689 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16690 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16691 cat >conftest.$ac_ext <<_ACEOF
16692 #line $LINENO "configure"
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #include <netinet/in.h>
16699 _ACEOF
16700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } >/dev/null; then
16708 if test -s conftest.err; then
16709 ac_cpp_err=$ac_c_preproc_warn_flag
16710 else
16711 ac_cpp_err=
16712 fi
16713 else
16714 ac_cpp_err=yes
16715 fi
16716 if test -z "$ac_cpp_err"; then
16717 ac_header_preproc=yes
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16721
16722 ac_header_preproc=no
16723 fi
16724 rm -f conftest.err conftest.$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16726 echo "${ECHO_T}$ac_header_preproc" >&6
16727
16728 # So? What about this header?
16729 case $ac_header_compiler:$ac_header_preproc in
16730 yes:no )
16731 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16732 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16735 (
16736 cat <<\_ASBOX
16737 ## ------------------------------------ ##
16738 ## Report this to bug-autoconf@gnu.org. ##
16739 ## ------------------------------------ ##
16740 _ASBOX
16741 ) |
16742 sed "s/^/$as_me: WARNING: /" >&2
16743 ;;
16744 no:yes )
16745 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16746 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16748 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16749 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16750 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16751 (
16752 cat <<\_ASBOX
16753 ## ------------------------------------ ##
16754 ## Report this to bug-autoconf@gnu.org. ##
16755 ## ------------------------------------ ##
16756 _ASBOX
16757 ) |
16758 sed "s/^/$as_me: WARNING: /" >&2
16759 ;;
16760 esac
16761 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16762 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16763 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 else
16766 ac_cv_header_netinet_in_h=$ac_header_preproc
16767 fi
16768 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16769 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16770
16771 fi
16772 if test $ac_cv_header_netinet_in_h = yes; then
16773 :
16774 else
16775 ok_so_far=no
16776 fi
16777
16778
16779 fi
16780 if test $ok_so_far = yes; then
16781 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16782 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16783 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16784 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 fi
16787 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16788 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16789 else
16790 # Is the header compilable?
16791 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16792 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16793 cat >conftest.$ac_ext <<_ACEOF
16794 #line $LINENO "configure"
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 $ac_includes_default
16801 #include <arpa/inet.h>
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -s conftest.$ac_objext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_header_compiler=yes
16816 else
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 ac_header_compiler=no
16821 fi
16822 rm -f conftest.$ac_objext conftest.$ac_ext
16823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16824 echo "${ECHO_T}$ac_header_compiler" >&6
16825
16826 # Is the header present?
16827 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16828 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <arpa/inet.h>
16837 _ACEOF
16838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16840 ac_status=$?
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } >/dev/null; then
16846 if test -s conftest.err; then
16847 ac_cpp_err=$ac_c_preproc_warn_flag
16848 else
16849 ac_cpp_err=
16850 fi
16851 else
16852 ac_cpp_err=yes
16853 fi
16854 if test -z "$ac_cpp_err"; then
16855 ac_header_preproc=yes
16856 else
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ac_header_preproc=no
16861 fi
16862 rm -f conftest.err conftest.$ac_ext
16863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16864 echo "${ECHO_T}$ac_header_preproc" >&6
16865
16866 # So? What about this header?
16867 case $ac_header_compiler:$ac_header_preproc in
16868 yes:no )
16869 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16870 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16872 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16873 (
16874 cat <<\_ASBOX
16875 ## ------------------------------------ ##
16876 ## Report this to bug-autoconf@gnu.org. ##
16877 ## ------------------------------------ ##
16878 _ASBOX
16879 ) |
16880 sed "s/^/$as_me: WARNING: /" >&2
16881 ;;
16882 no:yes )
16883 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16884 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16886 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16887 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16888 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16889 (
16890 cat <<\_ASBOX
16891 ## ------------------------------------ ##
16892 ## Report this to bug-autoconf@gnu.org. ##
16893 ## ------------------------------------ ##
16894 _ASBOX
16895 ) |
16896 sed "s/^/$as_me: WARNING: /" >&2
16897 ;;
16898 esac
16899 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16900 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16901 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904 ac_cv_header_arpa_inet_h=$ac_header_preproc
16905 fi
16906 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16907 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16908
16909 fi
16910 if test $ac_cv_header_arpa_inet_h = yes; then
16911 :
16912 else
16913 ok_so_far=no
16914 fi
16915
16916
16917 fi
16918 if test $ok_so_far = yes; then
16919
16920 cat >>confdefs.h <<\_ACEOF
16921 #define HAVE_INET_SOCKETS 1
16922 _ACEOF
16923
16924 fi
16925
16926 if test -f /usr/lpp/X11/bin/smt.exp; then
16927
16928 cat >>confdefs.h <<\_ACEOF
16929 #define HAVE_AIX_SMT_EXP 1
16930 _ACEOF
16931
16932 fi
16933
16934 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16935 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16936 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16937 echo "$as_me:$LINENO: result: yes" >&5
16938 echo "${ECHO_T}yes" >&6
16939
16940 cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_DEV_PTMX 1
16942 _ACEOF
16943
16944 else
16945 echo "$as_me:$LINENO: result: no" >&5
16946 echo "${ECHO_T}no" >&6
16947 fi
16948
16949 echo "$as_me:$LINENO: checking for pid_t" >&5
16950 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16951 if test "${ac_cv_type_pid_t+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 $ac_includes_default
16962 int
16963 main ()
16964 {
16965 if ((pid_t *) 0)
16966 return 0;
16967 if (sizeof (pid_t))
16968 return 0;
16969 ;
16970 return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16975 (eval $ac_compile) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -s conftest.$ac_objext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_type_pid_t=yes
16986 else
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 ac_cv_type_pid_t=no
16991 fi
16992 rm -f conftest.$ac_objext conftest.$ac_ext
16993 fi
16994 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16995 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16996 if test $ac_cv_type_pid_t = yes; then
16997 :
16998 else
16999
17000 cat >>confdefs.h <<_ACEOF
17001 #define pid_t int
17002 _ACEOF
17003
17004 fi
17005
17006
17007
17008 for ac_header in unistd.h vfork.h
17009 do
17010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17012 echo "$as_me:$LINENO: checking for $ac_header" >&5
17013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 fi
17017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17019 else
17020 # Is the header compilable?
17021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17023 cat >conftest.$ac_ext <<_ACEOF
17024 #line $LINENO "configure"
17025 /* confdefs.h. */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 $ac_includes_default
17031 #include <$ac_header>
17032 _ACEOF
17033 rm -f conftest.$ac_objext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17035 (eval $ac_compile) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -s conftest.$ac_objext'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_header_compiler=yes
17046 else
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 ac_header_compiler=no
17051 fi
17052 rm -f conftest.$ac_objext conftest.$ac_ext
17053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17054 echo "${ECHO_T}$ac_header_compiler" >&6
17055
17056 # Is the header present?
17057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17059 cat >conftest.$ac_ext <<_ACEOF
17060 #line $LINENO "configure"
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <$ac_header>
17067 _ACEOF
17068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } >/dev/null; then
17076 if test -s conftest.err; then
17077 ac_cpp_err=$ac_c_preproc_warn_flag
17078 else
17079 ac_cpp_err=
17080 fi
17081 else
17082 ac_cpp_err=yes
17083 fi
17084 if test -z "$ac_cpp_err"; then
17085 ac_header_preproc=yes
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090 ac_header_preproc=no
17091 fi
17092 rm -f conftest.err conftest.$ac_ext
17093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17094 echo "${ECHO_T}$ac_header_preproc" >&6
17095
17096 # So? What about this header?
17097 case $ac_header_compiler:$ac_header_preproc in
17098 yes:no )
17099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17103 (
17104 cat <<\_ASBOX
17105 ## ------------------------------------ ##
17106 ## Report this to bug-autoconf@gnu.org. ##
17107 ## ------------------------------------ ##
17108 _ASBOX
17109 ) |
17110 sed "s/^/$as_me: WARNING: /" >&2
17111 ;;
17112 no:yes )
17113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17119 (
17120 cat <<\_ASBOX
17121 ## ------------------------------------ ##
17122 ## Report this to bug-autoconf@gnu.org. ##
17123 ## ------------------------------------ ##
17124 _ASBOX
17125 ) |
17126 sed "s/^/$as_me: WARNING: /" >&2
17127 ;;
17128 esac
17129 echo "$as_me:$LINENO: checking for $ac_header" >&5
17130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 eval "$as_ac_Header=$ac_header_preproc"
17135 fi
17136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17138
17139 fi
17140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17143 _ACEOF
17144
17145 fi
17146
17147 done
17148
17149
17150
17151 for ac_func in fork vfork
17152 do
17153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17154 echo "$as_me:$LINENO: checking for $ac_func" >&5
17155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17156 if eval "test \"\${$as_ac_var+set}\" = set"; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159 cat >conftest.$ac_ext <<_ACEOF
17160 #line $LINENO "configure"
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 /* System header to define __stub macros and hopefully few prototypes,
17167 which can conflict with char $ac_func (); below.
17168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17169 <limits.h> exists even on freestanding compilers. */
17170 #ifdef __STDC__
17171 # include <limits.h>
17172 #else
17173 # include <assert.h>
17174 #endif
17175 /* Override any gcc2 internal prototype to avoid an error. */
17176 #ifdef __cplusplus
17177 extern "C"
17178 {
17179 #endif
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17182 char $ac_func ();
17183 /* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17187 choke me
17188 #else
17189 char (*f) () = $ac_func;
17190 #endif
17191 #ifdef __cplusplus
17192 }
17193 #endif
17194
17195 int
17196 main ()
17197 {
17198 return f != $ac_func;
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205 (eval $ac_link) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -s conftest$ac_exeext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 eval "$as_ac_var=yes"
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220 eval "$as_ac_var=no"
17221 fi
17222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17223 fi
17224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17226 if test `eval echo '${'$as_ac_var'}'` = yes; then
17227 cat >>confdefs.h <<_ACEOF
17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17229 _ACEOF
17230
17231 fi
17232 done
17233
17234 if test "x$ac_cv_func_fork" = xyes; then
17235 echo "$as_me:$LINENO: checking for working fork" >&5
17236 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17237 if test "${ac_cv_func_fork_works+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240 if test "$cross_compiling" = yes; then
17241 ac_cv_func_fork_works=cross
17242 else
17243 cat >conftest.$ac_ext <<_ACEOF
17244 /* By Ruediger Kuhlmann. */
17245 #include <sys/types.h>
17246 #if HAVE_UNISTD_H
17247 # include <unistd.h>
17248 #endif
17249 /* Some systems only have a dummy stub for fork() */
17250 int main ()
17251 {
17252 if (fork() < 0)
17253 exit (1);
17254 exit (0);
17255 }
17256 _ACEOF
17257 rm -f conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_cv_func_fork_works=yes
17269 else
17270 echo "$as_me: program exited with status $ac_status" >&5
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 ( exit $ac_status )
17275 ac_cv_func_fork_works=no
17276 fi
17277 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17278 fi
17279 fi
17280 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17281 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17282
17283 else
17284 ac_cv_func_fork_works=$ac_cv_func_fork
17285 fi
17286 if test "x$ac_cv_func_fork_works" = xcross; then
17287 case $host in
17288 *-*-amigaos* | *-*-msdosdjgpp*)
17289 # Override, as these systems have only a dummy fork() stub
17290 ac_cv_func_fork_works=no
17291 ;;
17292 *)
17293 ac_cv_func_fork_works=yes
17294 ;;
17295 esac
17296 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17297 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17298 fi
17299 ac_cv_func_vfork_works=$ac_cv_func_vfork
17300 if test "x$ac_cv_func_vfork" = xyes; then
17301 echo "$as_me:$LINENO: checking for working vfork" >&5
17302 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17303 if test "${ac_cv_func_vfork_works+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306 if test "$cross_compiling" = yes; then
17307 ac_cv_func_vfork_works=cross
17308 else
17309 cat >conftest.$ac_ext <<_ACEOF
17310 #line $LINENO "configure"
17311 /* confdefs.h. */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 /* Thanks to Paul Eggert for this test. */
17317 #include <stdio.h>
17318 #include <stdlib.h>
17319 #include <sys/types.h>
17320 #include <sys/stat.h>
17321 #include <sys/wait.h>
17322 #if HAVE_UNISTD_H
17323 # include <unistd.h>
17324 #endif
17325 #if HAVE_VFORK_H
17326 # include <vfork.h>
17327 #endif
17328 /* On some sparc systems, changes by the child to local and incoming
17329 argument registers are propagated back to the parent. The compiler
17330 is told about this with #include <vfork.h>, but some compilers
17331 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17332 static variable whose address is put into a register that is
17333 clobbered by the vfork. */
17334 static void
17335 #ifdef __cplusplus
17336 sparc_address_test (int arg)
17337 # else
17338 sparc_address_test (arg) int arg;
17339 #endif
17340 {
17341 static pid_t child;
17342 if (!child) {
17343 child = vfork ();
17344 if (child < 0) {
17345 perror ("vfork");
17346 _exit(2);
17347 }
17348 if (!child) {
17349 arg = getpid();
17350 write(-1, "", 0);
17351 _exit (arg);
17352 }
17353 }
17354 }
17355
17356 int
17357 main ()
17358 {
17359 pid_t parent = getpid ();
17360 pid_t child;
17361
17362 sparc_address_test (0);
17363
17364 child = vfork ();
17365
17366 if (child == 0) {
17367 /* Here is another test for sparc vfork register problems. This
17368 test uses lots of local variables, at least as many local
17369 variables as main has allocated so far including compiler
17370 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17371 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17372 reuse the register of parent for one of the local variables,
17373 since it will think that parent can't possibly be used any more
17374 in this routine. Assigning to the local variable will thus
17375 munge parent in the parent process. */
17376 pid_t
17377 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17378 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17379 /* Convince the compiler that p..p7 are live; otherwise, it might
17380 use the same hardware register for all 8 local variables. */
17381 if (p != p1 || p != p2 || p != p3 || p != p4
17382 || p != p5 || p != p6 || p != p7)
17383 _exit(1);
17384
17385 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17386 from child file descriptors. If the child closes a descriptor
17387 before it execs or exits, this munges the parent's descriptor
17388 as well. Test for this by closing stdout in the child. */
17389 _exit(close(fileno(stdout)) != 0);
17390 } else {
17391 int status;
17392 struct stat st;
17393
17394 while (wait(&status) != child)
17395 ;
17396 exit(
17397 /* Was there some problem with vforking? */
17398 child < 0
17399
17400 /* Did the child fail? (This shouldn't happen.) */
17401 || status
17402
17403 /* Did the vfork/compiler bug occur? */
17404 || parent != getpid()
17405
17406 /* Did the file descriptor bug occur? */
17407 || fstat(fileno(stdout), &st) != 0
17408 );
17409 }
17410 }
17411 _ACEOF
17412 rm -f conftest$ac_exeext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414 (eval $ac_link) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_func_vfork_works=yes
17424 else
17425 echo "$as_me: program exited with status $ac_status" >&5
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17428
17429 ( exit $ac_status )
17430 ac_cv_func_vfork_works=no
17431 fi
17432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17433 fi
17434 fi
17435 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17436 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17437
17438 fi;
17439 if test "x$ac_cv_func_fork_works" = xcross; then
17440 ac_cv_func_vfork_works=ac_cv_func_vfork
17441 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17442 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17443 fi
17444
17445 if test "x$ac_cv_func_vfork_works" = xyes; then
17446
17447 cat >>confdefs.h <<\_ACEOF
17448 #define HAVE_WORKING_VFORK 1
17449 _ACEOF
17450
17451 else
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define vfork fork
17455 _ACEOF
17456
17457 fi
17458 if test "x$ac_cv_func_fork_works" = xyes; then
17459
17460 cat >>confdefs.h <<\_ACEOF
17461 #define HAVE_WORKING_FORK 1
17462 _ACEOF
17463
17464 fi
17465
17466
17467 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17468 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17469 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472 cat >conftest.$ac_ext <<_ACEOF
17473 #line $LINENO "configure"
17474 /* confdefs.h. */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 #include <langinfo.h>
17480 int
17481 main ()
17482 {
17483 char* cs = nl_langinfo(CODESET);
17484 ;
17485 return 0;
17486 }
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490 (eval $ac_link) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 emacs_cv_langinfo_codeset=yes
17501 else
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505 emacs_cv_langinfo_codeset=no
17506 fi
17507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17508
17509 fi
17510 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17511 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17512 if test $emacs_cv_langinfo_codeset = yes; then
17513
17514 cat >>confdefs.h <<\_ACEOF
17515 #define HAVE_LANGINFO_CODESET 1
17516 _ACEOF
17517
17518 fi
17519
17520 echo "$as_me:$LINENO: checking for size_t" >&5
17521 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17522 if test "${ac_cv_type_size_t+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525 cat >conftest.$ac_ext <<_ACEOF
17526 #line $LINENO "configure"
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17533 int
17534 main ()
17535 {
17536 if ((size_t *) 0)
17537 return 0;
17538 if (sizeof (size_t))
17539 return 0;
17540 ;
17541 return 0;
17542 }
17543 _ACEOF
17544 rm -f conftest.$ac_objext
17545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17546 (eval $ac_compile) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -s conftest.$ac_objext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_type_size_t=yes
17557 else
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17560
17561 ac_cv_type_size_t=no
17562 fi
17563 rm -f conftest.$ac_objext conftest.$ac_ext
17564 fi
17565 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17566 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17567 if test $ac_cv_type_size_t = yes; then
17568
17569 cat >>confdefs.h <<_ACEOF
17570 #define HAVE_SIZE_T 1
17571 _ACEOF
17572
17573
17574 fi
17575
17576
17577 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17578 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17579 if test "${emacs_cv_c_restrict+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582 cat >conftest.$ac_ext <<_ACEOF
17583 #line $LINENO "configure"
17584 /* confdefs.h. */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 void fred (int *restrict x);
17590 int
17591 main ()
17592 {
17593
17594 ;
17595 return 0;
17596 }
17597 _ACEOF
17598 rm -f conftest.$ac_objext
17599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17600 (eval $ac_compile) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } &&
17604 { ac_try='test -s conftest.$ac_objext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 emacs_cv_c_restrict=yes
17611 else
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17614
17615 cat >conftest.$ac_ext <<_ACEOF
17616 #line $LINENO "configure"
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 void fred (int *__restrict x);
17623 int
17624 main ()
17625 {
17626
17627 ;
17628 return 0;
17629 }
17630 _ACEOF
17631 rm -f conftest.$ac_objext
17632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17633 (eval $ac_compile) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try='test -s conftest.$ac_objext'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 emacs_cv_c_restrict=__restrict
17644 else
17645 echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648 emacs_cv_c_restrict=no
17649 fi
17650 rm -f conftest.$ac_objext conftest.$ac_ext
17651 fi
17652 rm -f conftest.$ac_objext conftest.$ac_ext
17653 fi
17654 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17655 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17656 case "$emacs_cv_c_restrict" in
17657 yes) emacs_restrict=restrict;;
17658 no) emacs_restrict="";;
17659 *) emacs_restrict="$emacs_cv_c_restrict";;
17660 esac
17661 if test "$emacs_restrict" != __restrict; then
17662
17663 cat >>confdefs.h <<_ACEOF
17664 #define __restrict $emacs_restrict
17665 _ACEOF
17666
17667 fi
17668
17669 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17670 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17671 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674 cat >conftest.$ac_ext <<_ACEOF
17675 #line $LINENO "configure"
17676 /* confdefs.h. */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 void fred (int x[__restrict]);
17682 int
17683 main ()
17684 {
17685
17686 ;
17687 return 0;
17688 }
17689 _ACEOF
17690 rm -f conftest.$ac_objext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17692 (eval $ac_compile) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try='test -s conftest.$ac_objext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 emacs_cv_c_restrict_arr=yes
17703 else
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707 emacs_cv_c_restrict_arr=no
17708 fi
17709 rm -f conftest.$ac_objext conftest.$ac_ext
17710 fi
17711 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17712 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17713 if test "$emacs_cv_c_restrict_arr" = yes; then
17714
17715 cat >>confdefs.h <<\_ACEOF
17716 #define __restrict_arr __restrict
17717 _ACEOF
17718
17719 fi
17720
17721
17722 for ac_header in nlist.h
17723 do
17724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17726 echo "$as_me:$LINENO: checking for $ac_header" >&5
17727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 fi
17731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17733 else
17734 # Is the header compilable?
17735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17737 cat >conftest.$ac_ext <<_ACEOF
17738 #line $LINENO "configure"
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 $ac_includes_default
17745 #include <$ac_header>
17746 _ACEOF
17747 rm -f conftest.$ac_objext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17749 (eval $ac_compile) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -s conftest.$ac_objext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_header_compiler=yes
17760 else
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ac_header_compiler=no
17765 fi
17766 rm -f conftest.$ac_objext conftest.$ac_ext
17767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17768 echo "${ECHO_T}$ac_header_compiler" >&6
17769
17770 # Is the header present?
17771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17773 cat >conftest.$ac_ext <<_ACEOF
17774 #line $LINENO "configure"
17775 /* confdefs.h. */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 #include <$ac_header>
17781 _ACEOF
17782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17784 ac_status=$?
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } >/dev/null; then
17790 if test -s conftest.err; then
17791 ac_cpp_err=$ac_c_preproc_warn_flag
17792 else
17793 ac_cpp_err=
17794 fi
17795 else
17796 ac_cpp_err=yes
17797 fi
17798 if test -z "$ac_cpp_err"; then
17799 ac_header_preproc=yes
17800 else
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 ac_header_preproc=no
17805 fi
17806 rm -f conftest.err conftest.$ac_ext
17807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17808 echo "${ECHO_T}$ac_header_preproc" >&6
17809
17810 # So? What about this header?
17811 case $ac_header_compiler:$ac_header_preproc in
17812 yes:no )
17813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17817 (
17818 cat <<\_ASBOX
17819 ## ------------------------------------ ##
17820 ## Report this to bug-autoconf@gnu.org. ##
17821 ## ------------------------------------ ##
17822 _ASBOX
17823 ) |
17824 sed "s/^/$as_me: WARNING: /" >&2
17825 ;;
17826 no:yes )
17827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17833 (
17834 cat <<\_ASBOX
17835 ## ------------------------------------ ##
17836 ## Report this to bug-autoconf@gnu.org. ##
17837 ## ------------------------------------ ##
17838 _ASBOX
17839 ) |
17840 sed "s/^/$as_me: WARNING: /" >&2
17841 ;;
17842 esac
17843 echo "$as_me:$LINENO: checking for $ac_header" >&5
17844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848 eval "$as_ac_Header=$ac_header_preproc"
17849 fi
17850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17852
17853 fi
17854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17855 cat >>confdefs.h <<_ACEOF
17856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17857 _ACEOF
17858
17859 cat >>confdefs.h <<\_ACEOF
17860 #define NLIST_STRUCT 1
17861 _ACEOF
17862
17863 fi
17864
17865 done
17866
17867
17868
17869
17870 # Set up the CFLAGS for real compilation, so we can substitute it.
17871 CFLAGS="$REAL_CFLAGS"
17872 CPPFLAGS="$REAL_CPPFLAGS"
17873
17874 #### Find out which version of Emacs this is.
17875 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17876 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17877 if test x"${version}" = x; then
17878 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17879 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17880 { (exit 1); exit 1; }; }
17881 fi
17882
17883 ### Specify what sort of things we'll be editing into Makefile and config.h.
17884 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920 cat >>confdefs.h <<_ACEOF
17921 #define EMACS_CONFIGURATION "${canonical}"
17922 _ACEOF
17923
17924
17925 cat >>confdefs.h <<_ACEOF
17926 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17927 _ACEOF
17928
17929
17930 cat >>confdefs.h <<_ACEOF
17931 #define config_machfile "${machfile}"
17932 _ACEOF
17933
17934
17935 cat >>confdefs.h <<_ACEOF
17936 #define config_opsysfile "${opsysfile}"
17937 _ACEOF
17938
17939
17940 cat >>confdefs.h <<_ACEOF
17941 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17942 _ACEOF
17943
17944
17945 cat >>confdefs.h <<_ACEOF
17946 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17947 _ACEOF
17948
17949
17950 cat >>confdefs.h <<_ACEOF
17951 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17952 _ACEOF
17953
17954
17955 cat >>confdefs.h <<_ACEOF
17956 #define UNEXEC_SRC ${UNEXEC_SRC}
17957 _ACEOF
17958
17959
17960 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17961
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_X_WINDOWS 1
17964 _ACEOF
17965
17966 fi
17967 if test "${USE_X_TOOLKIT}" != "none" ; then
17968
17969 cat >>confdefs.h <<\_ACEOF
17970 #define USE_X_TOOLKIT 1
17971 _ACEOF
17972
17973 fi
17974 if test "${HAVE_X11}" = "yes" ; then
17975
17976 cat >>confdefs.h <<\_ACEOF
17977 #define HAVE_X11 1
17978 _ACEOF
17979
17980 fi
17981 if test "${HAVE_XFREE386}" = "yes" ; then
17982
17983 cat >>confdefs.h <<\_ACEOF
17984 #define HAVE_XFREE386 1
17985 _ACEOF
17986
17987 fi
17988 if test "${HAVE_MENUS}" = "yes" ; then
17989
17990 cat >>confdefs.h <<\_ACEOF
17991 #define HAVE_MENUS 1
17992 _ACEOF
17993
17994 fi
17995 if test "${GNU_MALLOC}" = "yes" ; then
17996
17997 cat >>confdefs.h <<\_ACEOF
17998 #define GNU_MALLOC 1
17999 _ACEOF
18000
18001 fi
18002 if test "${REL_ALLOC}" = "yes" ; then
18003
18004 cat >>confdefs.h <<\_ACEOF
18005 #define REL_ALLOC 1
18006 _ACEOF
18007
18008 fi
18009
18010
18011
18012
18013
18014 #### Report on what we decided to do.
18015 #### Report GTK as a toolkit, even if it doesn't use Xt.
18016 #### It makes printing result more understandable as using GTK sets
18017 #### toolkit_scroll_bars to yes by default.
18018 if test "${HAVE_GTK}" = "yes"; then
18019 USE_X_TOOLKIT=GTK
18020 fi
18021
18022 echo "
18023 Configured for \`${canonical}'.
18024
18025 Where should the build process find the source code? ${srcdir}
18026 What operating system and machine description files should Emacs use?
18027 \`${opsysfile}' and \`${machfile}'
18028 What compiler should emacs be built with? ${CC} ${CFLAGS}
18029 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18030 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18031 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18032 What window system should Emacs use? ${window_system}
18033 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18034
18035 if test -n "${x_includes}"; then
18036 echo " Where do we find X Windows header files? ${x_includes}"
18037 else
18038 echo " Where do we find X Windows header files? Standard dirs"
18039 fi
18040 if test -n "${x_libraries}"; then
18041 echo " Where do we find X Windows libraries? ${x_libraries}"
18042 else
18043 echo " Where do we find X Windows libraries? Standard dirs"
18044 fi
18045
18046 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18047 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18048 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18049 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18050 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18051 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18052 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18053 echo
18054
18055 # Remove any trailing slashes in these variables.
18056 test "${prefix}" != NONE &&
18057 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18058 test "${exec_prefix}" != NONE &&
18059 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18060
18061 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18062 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18063 ## from Makefile.c can correctly provide the arg `-traditional' to the
18064 ## C preprocessor.
18065
18066 cat >conftest.$ac_ext <<_ACEOF
18067 #line $LINENO "configure"
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 yes..yes
18074 _ACEOF
18075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18076 $EGREP "yes..yes" >/dev/null 2>&1; then
18077 CPP_NEED_TRADITIONAL=no
18078 else
18079 CPP_NEED_TRADITIONAL=yes
18080 fi
18081 rm -f conftest*
18082
18083
18084 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"
18085 ac_config_commands="$ac_config_commands default"
18086 cat >confcache <<\_ACEOF
18087 # This file is a shell script that caches the results of configure
18088 # tests run on this system so they can be shared between configure
18089 # scripts and configure runs, see configure's option --config-cache.
18090 # It is not useful on other systems. If it contains results you don't
18091 # want to keep, you may remove or edit it.
18092 #
18093 # config.status only pays attention to the cache file if you give it
18094 # the --recheck option to rerun configure.
18095 #
18096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18098 # following values.
18099
18100 _ACEOF
18101
18102 # The following way of writing the cache mishandles newlines in values,
18103 # but we know of no workaround that is simple, portable, and efficient.
18104 # So, don't put newlines in cache variables' values.
18105 # Ultrix sh set writes to stderr and can't be redirected directly,
18106 # and sets the high bit in the cache file unless we assign to the vars.
18107 {
18108 (set) 2>&1 |
18109 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18110 *ac_space=\ *)
18111 # `set' does not quote correctly, so add quotes (double-quote
18112 # substitution turns \\\\ into \\, and sed turns \\ into \).
18113 sed -n \
18114 "s/'/'\\\\''/g;
18115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18116 ;;
18117 *)
18118 # `set' quotes correctly as required by POSIX, so do not add quotes.
18119 sed -n \
18120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18121 ;;
18122 esac;
18123 } |
18124 sed '
18125 t clear
18126 : clear
18127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18128 t end
18129 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18130 : end' >>confcache
18131 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18132 if test -w $cache_file; then
18133 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18134 cat confcache >$cache_file
18135 else
18136 echo "not updating unwritable cache $cache_file"
18137 fi
18138 fi
18139 rm -f confcache
18140
18141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18142 # Let make expand exec_prefix.
18143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18144
18145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18147 # trailing colons and then remove the whole line if VPATH becomes empty
18148 # (actually we leave an empty line to preserve line numbers).
18149 if test "x$srcdir" = x.; then
18150 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18151 s/:*\$(srcdir):*/:/;
18152 s/:*\${srcdir}:*/:/;
18153 s/:*@srcdir@:*/:/;
18154 s/^\([^=]*=[ ]*\):*/\1/;
18155 s/:*$//;
18156 s/^[^=]*=[ ]*$//;
18157 }'
18158 fi
18159
18160 DEFS=-DHAVE_CONFIG_H
18161
18162 ac_libobjs=
18163 ac_ltlibobjs=
18164 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18165 # 1. Remove the extension, and $U if already installed.
18166 ac_i=`echo "$ac_i" |
18167 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18168 # 2. Add them.
18169 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18170 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18171 done
18172 LIBOBJS=$ac_libobjs
18173
18174 LTLIBOBJS=$ac_ltlibobjs
18175
18176
18177
18178 : ${CONFIG_STATUS=./config.status}
18179 ac_clean_files_save=$ac_clean_files
18180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18181 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18182 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18183 cat >$CONFIG_STATUS <<_ACEOF
18184 #! $SHELL
18185 # Generated by $as_me.
18186 # Run this file to recreate the current configuration.
18187 # Compiler output produced by configure, useful for debugging
18188 # configure, is in config.log if it exists.
18189
18190 debug=false
18191 ac_cs_recheck=false
18192 ac_cs_silent=false
18193 SHELL=\${CONFIG_SHELL-$SHELL}
18194 _ACEOF
18195
18196 cat >>$CONFIG_STATUS <<\_ACEOF
18197 ## --------------------- ##
18198 ## M4sh Initialization. ##
18199 ## --------------------- ##
18200
18201 # Be Bourne compatible
18202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18203 emulate sh
18204 NULLCMD=:
18205 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18206 # is contrary to our usage. Disable this feature.
18207 alias -g '${1+"$@"}'='"$@"'
18208 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18209 set -o posix
18210 fi
18211
18212 # Support unset when possible.
18213 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18214 as_unset=unset
18215 else
18216 as_unset=false
18217 fi
18218
18219
18220 # Work around bugs in pre-3.0 UWIN ksh.
18221 $as_unset ENV MAIL MAILPATH
18222 PS1='$ '
18223 PS2='> '
18224 PS4='+ '
18225
18226 # NLS nuisances.
18227 for as_var in \
18228 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18229 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18230 LC_TELEPHONE LC_TIME
18231 do
18232 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18233 eval $as_var=C; export $as_var
18234 else
18235 $as_unset $as_var
18236 fi
18237 done
18238
18239 # Required to use basename.
18240 if expr a : '\(a\)' >/dev/null 2>&1; then
18241 as_expr=expr
18242 else
18243 as_expr=false
18244 fi
18245
18246 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18247 as_basename=basename
18248 else
18249 as_basename=false
18250 fi
18251
18252
18253 # Name of the executable.
18254 as_me=`$as_basename "$0" ||
18255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18256 X"$0" : 'X\(//\)$' \| \
18257 X"$0" : 'X\(/\)$' \| \
18258 . : '\(.\)' 2>/dev/null ||
18259 echo X/"$0" |
18260 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18261 /^X\/\(\/\/\)$/{ s//\1/; q; }
18262 /^X\/\(\/\).*/{ s//\1/; q; }
18263 s/.*/./; q'`
18264
18265
18266 # PATH needs CR, and LINENO needs CR and PATH.
18267 # Avoid depending upon Character Ranges.
18268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18271 as_cr_digits='0123456789'
18272 as_cr_alnum=$as_cr_Letters$as_cr_digits
18273
18274 # The user is always right.
18275 if test "${PATH_SEPARATOR+set}" != set; then
18276 echo "#! /bin/sh" >conf$$.sh
18277 echo "exit 0" >>conf$$.sh
18278 chmod +x conf$$.sh
18279 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18280 PATH_SEPARATOR=';'
18281 else
18282 PATH_SEPARATOR=:
18283 fi
18284 rm -f conf$$.sh
18285 fi
18286
18287
18288 as_lineno_1=$LINENO
18289 as_lineno_2=$LINENO
18290 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18291 test "x$as_lineno_1" != "x$as_lineno_2" &&
18292 test "x$as_lineno_3" = "x$as_lineno_2" || {
18293 # Find who we are. Look in the path if we contain no path at all
18294 # relative or not.
18295 case $0 in
18296 *[\\/]* ) as_myself=$0 ;;
18297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18299 do
18300 IFS=$as_save_IFS
18301 test -z "$as_dir" && as_dir=.
18302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18303 done
18304
18305 ;;
18306 esac
18307 # We did not find ourselves, most probably we were run as `sh COMMAND'
18308 # in which case we are not to be found in the path.
18309 if test "x$as_myself" = x; then
18310 as_myself=$0
18311 fi
18312 if test ! -f "$as_myself"; then
18313 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18315 { (exit 1); exit 1; }; }
18316 fi
18317 case $CONFIG_SHELL in
18318 '')
18319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18320 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18321 do
18322 IFS=$as_save_IFS
18323 test -z "$as_dir" && as_dir=.
18324 for as_base in sh bash ksh sh5; do
18325 case $as_dir in
18326 /*)
18327 if ("$as_dir/$as_base" -c '
18328 as_lineno_1=$LINENO
18329 as_lineno_2=$LINENO
18330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18331 test "x$as_lineno_1" != "x$as_lineno_2" &&
18332 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18333 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18334 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18335 CONFIG_SHELL=$as_dir/$as_base
18336 export CONFIG_SHELL
18337 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18338 fi;;
18339 esac
18340 done
18341 done
18342 ;;
18343 esac
18344
18345 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18346 # uniformly replaced by the line number. The first 'sed' inserts a
18347 # line-number line before each line; the second 'sed' does the real
18348 # work. The second script uses 'N' to pair each line-number line
18349 # with the numbered line, and appends trailing '-' during
18350 # substitution so that $LINENO is not a special case at line end.
18351 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18352 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18353 sed '=' <$as_myself |
18354 sed '
18355 N
18356 s,$,-,
18357 : loop
18358 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18359 t loop
18360 s,-$,,
18361 s,^['$as_cr_digits']*\n,,
18362 ' >$as_me.lineno &&
18363 chmod +x $as_me.lineno ||
18364 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18365 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18366 { (exit 1); exit 1; }; }
18367
18368 # Don't try to exec as it changes $[0], causing all sort of problems
18369 # (the dirname of $[0] is not the place where we might find the
18370 # original and so on. Autoconf is especially sensible to this).
18371 . ./$as_me.lineno
18372 # Exit status is that of the last command.
18373 exit
18374 }
18375
18376
18377 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18378 *c*,-n*) ECHO_N= ECHO_C='
18379 ' ECHO_T=' ' ;;
18380 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18381 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18382 esac
18383
18384 if expr a : '\(a\)' >/dev/null 2>&1; then
18385 as_expr=expr
18386 else
18387 as_expr=false
18388 fi
18389
18390 rm -f conf$$ conf$$.exe conf$$.file
18391 echo >conf$$.file
18392 if ln -s conf$$.file conf$$ 2>/dev/null; then
18393 # We could just check for DJGPP; but this test a) works b) is more generic
18394 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18395 if test -f conf$$.exe; then
18396 # Don't use ln at all; we don't have any links
18397 as_ln_s='cp -p'
18398 else
18399 as_ln_s='ln -s'
18400 fi
18401 elif ln conf$$.file conf$$ 2>/dev/null; then
18402 as_ln_s=ln
18403 else
18404 as_ln_s='cp -p'
18405 fi
18406 rm -f conf$$ conf$$.exe conf$$.file
18407
18408 if mkdir -p . 2>/dev/null; then
18409 as_mkdir_p=:
18410 else
18411 as_mkdir_p=false
18412 fi
18413
18414 as_executable_p="test -f"
18415
18416 # Sed expression to map a string onto a valid CPP name.
18417 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18418
18419 # Sed expression to map a string onto a valid variable name.
18420 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18421
18422
18423 # IFS
18424 # We need space, tab and new line, in precisely that order.
18425 as_nl='
18426 '
18427 IFS=" $as_nl"
18428
18429 # CDPATH.
18430 $as_unset CDPATH
18431
18432 exec 6>&1
18433
18434 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18435 # report actual input values of CONFIG_FILES etc. instead of their
18436 # values after options handling. Logging --version etc. is OK.
18437 exec 5>>config.log
18438 {
18439 echo
18440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18441 ## Running $as_me. ##
18442 _ASBOX
18443 } >&5
18444 cat >&5 <<_CSEOF
18445
18446 This file was extended by $as_me, which was
18447 generated by GNU Autoconf 2.57. Invocation command line was
18448
18449 CONFIG_FILES = $CONFIG_FILES
18450 CONFIG_HEADERS = $CONFIG_HEADERS
18451 CONFIG_LINKS = $CONFIG_LINKS
18452 CONFIG_COMMANDS = $CONFIG_COMMANDS
18453 $ $0 $@
18454
18455 _CSEOF
18456 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18457 echo >&5
18458 _ACEOF
18459
18460 # Files that config.status was made for.
18461 if test -n "$ac_config_files"; then
18462 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18463 fi
18464
18465 if test -n "$ac_config_headers"; then
18466 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18467 fi
18468
18469 if test -n "$ac_config_links"; then
18470 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18471 fi
18472
18473 if test -n "$ac_config_commands"; then
18474 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18475 fi
18476
18477 cat >>$CONFIG_STATUS <<\_ACEOF
18478
18479 ac_cs_usage="\
18480 \`$as_me' instantiates files from templates according to the
18481 current configuration.
18482
18483 Usage: $0 [OPTIONS] [FILE]...
18484
18485 -h, --help print this help, then exit
18486 -V, --version print version number, then exit
18487 -q, --quiet do not print progress messages
18488 -d, --debug don't remove temporary files
18489 --recheck update $as_me by reconfiguring in the same conditions
18490 --file=FILE[:TEMPLATE]
18491 instantiate the configuration file FILE
18492 --header=FILE[:TEMPLATE]
18493 instantiate the configuration header FILE
18494
18495 Configuration files:
18496 $config_files
18497
18498 Configuration headers:
18499 $config_headers
18500
18501 Configuration commands:
18502 $config_commands
18503
18504 Report bugs to <bug-autoconf@gnu.org>."
18505 _ACEOF
18506
18507 cat >>$CONFIG_STATUS <<_ACEOF
18508 ac_cs_version="\\
18509 config.status
18510 configured by $0, generated by GNU Autoconf 2.57,
18511 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18512
18513 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18514 Free Software Foundation, Inc.
18515 This config.status script is free software; the Free Software Foundation
18516 gives unlimited permission to copy, distribute and modify it."
18517 srcdir=$srcdir
18518 INSTALL="$INSTALL"
18519 _ACEOF
18520
18521 cat >>$CONFIG_STATUS <<\_ACEOF
18522 # If no file are specified by the user, then we need to provide default
18523 # value. By we need to know if files were specified by the user.
18524 ac_need_defaults=:
18525 while test $# != 0
18526 do
18527 case $1 in
18528 --*=*)
18529 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18530 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18531 ac_shift=:
18532 ;;
18533 -*)
18534 ac_option=$1
18535 ac_optarg=$2
18536 ac_shift=shift
18537 ;;
18538 *) # This is not an option, so the user has probably given explicit
18539 # arguments.
18540 ac_option=$1
18541 ac_need_defaults=false;;
18542 esac
18543
18544 case $ac_option in
18545 # Handling of the options.
18546 _ACEOF
18547 cat >>$CONFIG_STATUS <<\_ACEOF
18548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18549 ac_cs_recheck=: ;;
18550 --version | --vers* | -V )
18551 echo "$ac_cs_version"; exit 0 ;;
18552 --he | --h)
18553 # Conflict between --help and --header
18554 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18555 Try \`$0 --help' for more information." >&5
18556 echo "$as_me: error: ambiguous option: $1
18557 Try \`$0 --help' for more information." >&2;}
18558 { (exit 1); exit 1; }; };;
18559 --help | --hel | -h )
18560 echo "$ac_cs_usage"; exit 0 ;;
18561 --debug | --d* | -d )
18562 debug=: ;;
18563 --file | --fil | --fi | --f )
18564 $ac_shift
18565 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18566 ac_need_defaults=false;;
18567 --header | --heade | --head | --hea )
18568 $ac_shift
18569 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18570 ac_need_defaults=false;;
18571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18573 ac_cs_silent=: ;;
18574
18575 # This is an error.
18576 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18577 Try \`$0 --help' for more information." >&5
18578 echo "$as_me: error: unrecognized option: $1
18579 Try \`$0 --help' for more information." >&2;}
18580 { (exit 1); exit 1; }; } ;;
18581
18582 *) ac_config_targets="$ac_config_targets $1" ;;
18583
18584 esac
18585 shift
18586 done
18587
18588 ac_configure_extra_args=
18589
18590 if $ac_cs_silent; then
18591 exec 6>/dev/null
18592 ac_configure_extra_args="$ac_configure_extra_args --silent"
18593 fi
18594
18595 _ACEOF
18596 cat >>$CONFIG_STATUS <<_ACEOF
18597 if \$ac_cs_recheck; then
18598 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18599 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18600 fi
18601
18602 _ACEOF
18603
18604 cat >>$CONFIG_STATUS <<_ACEOF
18605 #
18606 # INIT-COMMANDS section.
18607 #
18608
18609 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18610
18611 _ACEOF
18612
18613
18614
18615 cat >>$CONFIG_STATUS <<\_ACEOF
18616 for ac_config_target in $ac_config_targets
18617 do
18618 case "$ac_config_target" in
18619 # Handling of arguments.
18620 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18621 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18622 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18623 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18624 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18625 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18626 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18627 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18628 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18629 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18630 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18631 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18634 { (exit 1); exit 1; }; };;
18635 esac
18636 done
18637
18638 # If the user did not use the arguments to specify the items to instantiate,
18639 # then the envvar interface is used. Set only those that are not.
18640 # We use the long form for the default assignment because of an extremely
18641 # bizarre bug on SunOS 4.1.3.
18642 if $ac_need_defaults; then
18643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18644 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18645 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18646 fi
18647
18648 # Have a temporary directory for convenience. Make it in the build tree
18649 # simply because there is no reason to put it here, and in addition,
18650 # creating and moving files from /tmp can sometimes cause problems.
18651 # Create a temporary directory, and hook for its removal unless debugging.
18652 $debug ||
18653 {
18654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18655 trap '{ (exit 1); exit 1; }' 1 2 13 15
18656 }
18657
18658 # Create a (secure) tmp directory for tmp files.
18659
18660 {
18661 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18662 test -n "$tmp" && test -d "$tmp"
18663 } ||
18664 {
18665 tmp=./confstat$$-$RANDOM
18666 (umask 077 && mkdir $tmp)
18667 } ||
18668 {
18669 echo "$me: cannot create a temporary directory in ." >&2
18670 { (exit 1); exit 1; }
18671 }
18672
18673 _ACEOF
18674
18675 cat >>$CONFIG_STATUS <<_ACEOF
18676
18677 #
18678 # CONFIG_FILES section.
18679 #
18680
18681 # No need to generate the scripts if there are no CONFIG_FILES.
18682 # This happens for instance when ./config.status config.h
18683 if test -n "\$CONFIG_FILES"; then
18684 # Protect against being on the right side of a sed subst in config.status.
18685 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18686 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18687 s,@SHELL@,$SHELL,;t t
18688 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18689 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18690 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18691 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18692 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18693 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18694 s,@exec_prefix@,$exec_prefix,;t t
18695 s,@prefix@,$prefix,;t t
18696 s,@program_transform_name@,$program_transform_name,;t t
18697 s,@bindir@,$bindir,;t t
18698 s,@sbindir@,$sbindir,;t t
18699 s,@libexecdir@,$libexecdir,;t t
18700 s,@datadir@,$datadir,;t t
18701 s,@sysconfdir@,$sysconfdir,;t t
18702 s,@sharedstatedir@,$sharedstatedir,;t t
18703 s,@localstatedir@,$localstatedir,;t t
18704 s,@libdir@,$libdir,;t t
18705 s,@includedir@,$includedir,;t t
18706 s,@oldincludedir@,$oldincludedir,;t t
18707 s,@infodir@,$infodir,;t t
18708 s,@mandir@,$mandir,;t t
18709 s,@build_alias@,$build_alias,;t t
18710 s,@host_alias@,$host_alias,;t t
18711 s,@target_alias@,$target_alias,;t t
18712 s,@DEFS@,$DEFS,;t t
18713 s,@ECHO_C@,$ECHO_C,;t t
18714 s,@ECHO_N@,$ECHO_N,;t t
18715 s,@ECHO_T@,$ECHO_T,;t t
18716 s,@LIBS@,$LIBS,;t t
18717 s,@build@,$build,;t t
18718 s,@build_cpu@,$build_cpu,;t t
18719 s,@build_vendor@,$build_vendor,;t t
18720 s,@build_os@,$build_os,;t t
18721 s,@host@,$host,;t t
18722 s,@host_cpu@,$host_cpu,;t t
18723 s,@host_vendor@,$host_vendor,;t t
18724 s,@host_os@,$host_os,;t t
18725 s,@CC@,$CC,;t t
18726 s,@CFLAGS@,$CFLAGS,;t t
18727 s,@LDFLAGS@,$LDFLAGS,;t t
18728 s,@CPPFLAGS@,$CPPFLAGS,;t t
18729 s,@ac_ct_CC@,$ac_ct_CC,;t t
18730 s,@EXEEXT@,$EXEEXT,;t t
18731 s,@OBJEXT@,$OBJEXT,;t t
18732 s,@LN_S@,$LN_S,;t t
18733 s,@CPP@,$CPP,;t t
18734 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18735 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18736 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18737 s,@RANLIB@,$RANLIB,;t t
18738 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18739 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18740 s,@EGREP@,$EGREP,;t t
18741 s,@LIBSOUND@,$LIBSOUND,;t t
18742 s,@SET_MAKE@,$SET_MAKE,;t t
18743 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18744 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18745 s,@GTK_LIBS@,$GTK_LIBS,;t t
18746 s,@ALLOCA@,$ALLOCA,;t t
18747 s,@liblockfile@,$liblockfile,;t t
18748 s,@LIBOBJS@,$LIBOBJS,;t t
18749 s,@NEED_SETGID@,$NEED_SETGID,;t t
18750 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18751 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18752 s,@version@,$version,;t t
18753 s,@configuration@,$configuration,;t t
18754 s,@canonical@,$canonical,;t t
18755 s,@srcdir@,$srcdir,;t t
18756 s,@lispdir@,$lispdir,;t t
18757 s,@locallisppath@,$locallisppath,;t t
18758 s,@lisppath@,$lisppath,;t t
18759 s,@x_default_search_path@,$x_default_search_path,;t t
18760 s,@etcdir@,$etcdir,;t t
18761 s,@archlibdir@,$archlibdir,;t t
18762 s,@docdir@,$docdir,;t t
18763 s,@bitmapdir@,$bitmapdir,;t t
18764 s,@gamedir@,$gamedir,;t t
18765 s,@gameuser@,$gameuser,;t t
18766 s,@c_switch_system@,$c_switch_system,;t t
18767 s,@c_switch_machine@,$c_switch_machine,;t t
18768 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18769 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18770 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18771 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18772 s,@machfile@,$machfile,;t t
18773 s,@opsysfile@,$opsysfile,;t t
18774 s,@carbon_appdir@,$carbon_appdir,;t t
18775 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18776 CEOF
18777
18778 _ACEOF
18779
18780 cat >>$CONFIG_STATUS <<\_ACEOF
18781 # Split the substitutions into bite-sized pieces for seds with
18782 # small command number limits, like on Digital OSF/1 and HP-UX.
18783 ac_max_sed_lines=48
18784 ac_sed_frag=1 # Number of current file.
18785 ac_beg=1 # First line for current file.
18786 ac_end=$ac_max_sed_lines # Line after last line for current file.
18787 ac_more_lines=:
18788 ac_sed_cmds=
18789 while $ac_more_lines; do
18790 if test $ac_beg -gt 1; then
18791 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18792 else
18793 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18794 fi
18795 if test ! -s $tmp/subs.frag; then
18796 ac_more_lines=false
18797 else
18798 # The purpose of the label and of the branching condition is to
18799 # speed up the sed processing (if there are no `@' at all, there
18800 # is no need to browse any of the substitutions).
18801 # These are the two extra sed commands mentioned above.
18802 (echo ':t
18803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18804 if test -z "$ac_sed_cmds"; then
18805 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18806 else
18807 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18808 fi
18809 ac_sed_frag=`expr $ac_sed_frag + 1`
18810 ac_beg=$ac_end
18811 ac_end=`expr $ac_end + $ac_max_sed_lines`
18812 fi
18813 done
18814 if test -z "$ac_sed_cmds"; then
18815 ac_sed_cmds=cat
18816 fi
18817 fi # test -n "$CONFIG_FILES"
18818
18819 _ACEOF
18820 cat >>$CONFIG_STATUS <<\_ACEOF
18821 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18822 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18823 case $ac_file in
18824 - | *:- | *:-:* ) # input from stdin
18825 cat >$tmp/stdin
18826 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18828 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18830 * ) ac_file_in=$ac_file.in ;;
18831 esac
18832
18833 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18834 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18836 X"$ac_file" : 'X\(//\)[^/]' \| \
18837 X"$ac_file" : 'X\(//\)$' \| \
18838 X"$ac_file" : 'X\(/\)' \| \
18839 . : '\(.\)' 2>/dev/null ||
18840 echo X"$ac_file" |
18841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18843 /^X\(\/\/\)$/{ s//\1/; q; }
18844 /^X\(\/\).*/{ s//\1/; q; }
18845 s/.*/./; q'`
18846 { if $as_mkdir_p; then
18847 mkdir -p "$ac_dir"
18848 else
18849 as_dir="$ac_dir"
18850 as_dirs=
18851 while test ! -d "$as_dir"; do
18852 as_dirs="$as_dir $as_dirs"
18853 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18855 X"$as_dir" : 'X\(//\)[^/]' \| \
18856 X"$as_dir" : 'X\(//\)$' \| \
18857 X"$as_dir" : 'X\(/\)' \| \
18858 . : '\(.\)' 2>/dev/null ||
18859 echo X"$as_dir" |
18860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18862 /^X\(\/\/\)$/{ s//\1/; q; }
18863 /^X\(\/\).*/{ s//\1/; q; }
18864 s/.*/./; q'`
18865 done
18866 test ! -n "$as_dirs" || mkdir $as_dirs
18867 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18868 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18869 { (exit 1); exit 1; }; }; }
18870
18871 ac_builddir=.
18872
18873 if test "$ac_dir" != .; then
18874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18875 # A "../" for each directory in $ac_dir_suffix.
18876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18877 else
18878 ac_dir_suffix= ac_top_builddir=
18879 fi
18880
18881 case $srcdir in
18882 .) # No --srcdir option. We are building in place.
18883 ac_srcdir=.
18884 if test -z "$ac_top_builddir"; then
18885 ac_top_srcdir=.
18886 else
18887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18888 fi ;;
18889 [\\/]* | ?:[\\/]* ) # Absolute path.
18890 ac_srcdir=$srcdir$ac_dir_suffix;
18891 ac_top_srcdir=$srcdir ;;
18892 *) # Relative path.
18893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18895 esac
18896 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18897 # absolute.
18898 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18899 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18900 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18901 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18902
18903
18904 case $INSTALL in
18905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18906 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18907 esac
18908
18909 if test x"$ac_file" != x-; then
18910 { echo "$as_me:$LINENO: creating $ac_file" >&5
18911 echo "$as_me: creating $ac_file" >&6;}
18912 rm -f "$ac_file"
18913 fi
18914 # Let's still pretend it is `configure' which instantiates (i.e., don't
18915 # use $as_me), people would be surprised to read:
18916 # /* config.h. Generated by config.status. */
18917 if test x"$ac_file" = x-; then
18918 configure_input=
18919 else
18920 configure_input="$ac_file. "
18921 fi
18922 configure_input=$configure_input"Generated from `echo $ac_file_in |
18923 sed 's,.*/,,'` by configure."
18924
18925 # First look for the input files in the build tree, otherwise in the
18926 # src tree.
18927 ac_file_inputs=`IFS=:
18928 for f in $ac_file_in; do
18929 case $f in
18930 -) echo $tmp/stdin ;;
18931 [\\/$]*)
18932 # Absolute (can't be DOS-style, as IFS=:)
18933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18934 echo "$as_me: error: cannot find input file: $f" >&2;}
18935 { (exit 1); exit 1; }; }
18936 echo $f;;
18937 *) # Relative
18938 if test -f "$f"; then
18939 # Build tree
18940 echo $f
18941 elif test -f "$srcdir/$f"; then
18942 # Source tree
18943 echo $srcdir/$f
18944 else
18945 # /dev/null tree
18946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18947 echo "$as_me: error: cannot find input file: $f" >&2;}
18948 { (exit 1); exit 1; }; }
18949 fi;;
18950 esac
18951 done` || { (exit 1); exit 1; }
18952 _ACEOF
18953 cat >>$CONFIG_STATUS <<_ACEOF
18954 sed "$ac_vpsub
18955 $extrasub
18956 _ACEOF
18957 cat >>$CONFIG_STATUS <<\_ACEOF
18958 :t
18959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18960 s,@configure_input@,$configure_input,;t t
18961 s,@srcdir@,$ac_srcdir,;t t
18962 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18963 s,@top_srcdir@,$ac_top_srcdir,;t t
18964 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18965 s,@builddir@,$ac_builddir,;t t
18966 s,@abs_builddir@,$ac_abs_builddir,;t t
18967 s,@top_builddir@,$ac_top_builddir,;t t
18968 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18969 s,@INSTALL@,$ac_INSTALL,;t t
18970 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18971 rm -f $tmp/stdin
18972 if test x"$ac_file" != x-; then
18973 mv $tmp/out $ac_file
18974 else
18975 cat $tmp/out
18976 rm -f $tmp/out
18977 fi
18978
18979 done
18980 _ACEOF
18981 cat >>$CONFIG_STATUS <<\_ACEOF
18982
18983 #
18984 # CONFIG_HEADER section.
18985 #
18986
18987 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18988 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18989 #
18990 # ac_d sets the value in "#define NAME VALUE" lines.
18991 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18992 ac_dB='[ ].*$,\1#\2'
18993 ac_dC=' '
18994 ac_dD=',;t'
18995 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18996 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18997 ac_uB='$,\1#\2define\3'
18998 ac_uC=' '
18999 ac_uD=',;t'
19000
19001 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19003 case $ac_file in
19004 - | *:- | *:-:* ) # input from stdin
19005 cat >$tmp/stdin
19006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19010 * ) ac_file_in=$ac_file.in ;;
19011 esac
19012
19013 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19014 echo "$as_me: creating $ac_file" >&6;}
19015
19016 # First look for the input files in the build tree, otherwise in the
19017 # src tree.
19018 ac_file_inputs=`IFS=:
19019 for f in $ac_file_in; do
19020 case $f in
19021 -) echo $tmp/stdin ;;
19022 [\\/$]*)
19023 # Absolute (can't be DOS-style, as IFS=:)
19024 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19025 echo "$as_me: error: cannot find input file: $f" >&2;}
19026 { (exit 1); exit 1; }; }
19027 echo $f;;
19028 *) # Relative
19029 if test -f "$f"; then
19030 # Build tree
19031 echo $f
19032 elif test -f "$srcdir/$f"; then
19033 # Source tree
19034 echo $srcdir/$f
19035 else
19036 # /dev/null tree
19037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19038 echo "$as_me: error: cannot find input file: $f" >&2;}
19039 { (exit 1); exit 1; }; }
19040 fi;;
19041 esac
19042 done` || { (exit 1); exit 1; }
19043 # Remove the trailing spaces.
19044 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19045
19046 _ACEOF
19047
19048 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19049 # `conftest.undefs', that substitutes the proper values into
19050 # config.h.in to produce config.h. The first handles `#define'
19051 # templates, and the second `#undef' templates.
19052 # And first: Protect against being on the right side of a sed subst in
19053 # config.status. Protect against being in an unquoted here document
19054 # in config.status.
19055 rm -f conftest.defines conftest.undefs
19056 # Using a here document instead of a string reduces the quoting nightmare.
19057 # Putting comments in sed scripts is not portable.
19058 #
19059 # `end' is used to avoid that the second main sed command (meant for
19060 # 0-ary CPP macros) applies to n-ary macro definitions.
19061 # See the Autoconf documentation for `clear'.
19062 cat >confdef2sed.sed <<\_ACEOF
19063 s/[\\&,]/\\&/g
19064 s,[\\$`],\\&,g
19065 t clear
19066 : clear
19067 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19068 t end
19069 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19070 : end
19071 _ACEOF
19072 # If some macros were called several times there might be several times
19073 # the same #defines, which is useless. Nevertheless, we may not want to
19074 # sort them, since we want the *last* AC-DEFINE to be honored.
19075 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19076 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19077 rm -f confdef2sed.sed
19078
19079 # This sed command replaces #undef with comments. This is necessary, for
19080 # example, in the case of _POSIX_SOURCE, which is predefined and required
19081 # on some systems where configure will not decide to define it.
19082 cat >>conftest.undefs <<\_ACEOF
19083 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19084 _ACEOF
19085
19086 # Break up conftest.defines because some shells have a limit on the size
19087 # of here documents, and old seds have small limits too (100 cmds).
19088 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19089 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19090 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19091 echo ' :' >>$CONFIG_STATUS
19092 rm -f conftest.tail
19093 while grep . conftest.defines >/dev/null
19094 do
19095 # Write a limited-size here document to $tmp/defines.sed.
19096 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19097 # Speed up: don't consider the non `#define' lines.
19098 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19099 # Work around the forget-to-reset-the-flag bug.
19100 echo 't clr' >>$CONFIG_STATUS
19101 echo ': clr' >>$CONFIG_STATUS
19102 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19103 echo 'CEOF
19104 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19105 rm -f $tmp/in
19106 mv $tmp/out $tmp/in
19107 ' >>$CONFIG_STATUS
19108 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19109 rm -f conftest.defines
19110 mv conftest.tail conftest.defines
19111 done
19112 rm -f conftest.defines
19113 echo ' fi # grep' >>$CONFIG_STATUS
19114 echo >>$CONFIG_STATUS
19115
19116 # Break up conftest.undefs because some shells have a limit on the size
19117 # of here documents, and old seds have small limits too (100 cmds).
19118 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19119 rm -f conftest.tail
19120 while grep . conftest.undefs >/dev/null
19121 do
19122 # Write a limited-size here document to $tmp/undefs.sed.
19123 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19124 # Speed up: don't consider the non `#undef'
19125 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19126 # Work around the forget-to-reset-the-flag bug.
19127 echo 't clr' >>$CONFIG_STATUS
19128 echo ': clr' >>$CONFIG_STATUS
19129 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19130 echo 'CEOF
19131 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19132 rm -f $tmp/in
19133 mv $tmp/out $tmp/in
19134 ' >>$CONFIG_STATUS
19135 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19136 rm -f conftest.undefs
19137 mv conftest.tail conftest.undefs
19138 done
19139 rm -f conftest.undefs
19140
19141 cat >>$CONFIG_STATUS <<\_ACEOF
19142 # Let's still pretend it is `configure' which instantiates (i.e., don't
19143 # use $as_me), people would be surprised to read:
19144 # /* config.h. Generated by config.status. */
19145 if test x"$ac_file" = x-; then
19146 echo "/* Generated by configure. */" >$tmp/config.h
19147 else
19148 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19149 fi
19150 cat $tmp/in >>$tmp/config.h
19151 rm -f $tmp/in
19152 if test x"$ac_file" != x-; then
19153 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19155 echo "$as_me: $ac_file is unchanged" >&6;}
19156 else
19157 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19159 X"$ac_file" : 'X\(//\)[^/]' \| \
19160 X"$ac_file" : 'X\(//\)$' \| \
19161 X"$ac_file" : 'X\(/\)' \| \
19162 . : '\(.\)' 2>/dev/null ||
19163 echo X"$ac_file" |
19164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19166 /^X\(\/\/\)$/{ s//\1/; q; }
19167 /^X\(\/\).*/{ s//\1/; q; }
19168 s/.*/./; q'`
19169 { if $as_mkdir_p; then
19170 mkdir -p "$ac_dir"
19171 else
19172 as_dir="$ac_dir"
19173 as_dirs=
19174 while test ! -d "$as_dir"; do
19175 as_dirs="$as_dir $as_dirs"
19176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19178 X"$as_dir" : 'X\(//\)[^/]' \| \
19179 X"$as_dir" : 'X\(//\)$' \| \
19180 X"$as_dir" : 'X\(/\)' \| \
19181 . : '\(.\)' 2>/dev/null ||
19182 echo X"$as_dir" |
19183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19185 /^X\(\/\/\)$/{ s//\1/; q; }
19186 /^X\(\/\).*/{ s//\1/; q; }
19187 s/.*/./; q'`
19188 done
19189 test ! -n "$as_dirs" || mkdir $as_dirs
19190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19192 { (exit 1); exit 1; }; }; }
19193
19194 rm -f $ac_file
19195 mv $tmp/config.h $ac_file
19196 fi
19197 else
19198 cat $tmp/config.h
19199 rm -f $tmp/config.h
19200 fi
19201 done
19202 _ACEOF
19203 cat >>$CONFIG_STATUS <<\_ACEOF
19204
19205 #
19206 # CONFIG_COMMANDS section.
19207 #
19208 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19209 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19210 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19211 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19212 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19213 X"$ac_dest" : 'X\(//\)[^/]' \| \
19214 X"$ac_dest" : 'X\(//\)$' \| \
19215 X"$ac_dest" : 'X\(/\)' \| \
19216 . : '\(.\)' 2>/dev/null ||
19217 echo X"$ac_dest" |
19218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19220 /^X\(\/\/\)$/{ s//\1/; q; }
19221 /^X\(\/\).*/{ s//\1/; q; }
19222 s/.*/./; q'`
19223 ac_builddir=.
19224
19225 if test "$ac_dir" != .; then
19226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19227 # A "../" for each directory in $ac_dir_suffix.
19228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19229 else
19230 ac_dir_suffix= ac_top_builddir=
19231 fi
19232
19233 case $srcdir in
19234 .) # No --srcdir option. We are building in place.
19235 ac_srcdir=.
19236 if test -z "$ac_top_builddir"; then
19237 ac_top_srcdir=.
19238 else
19239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19240 fi ;;
19241 [\\/]* | ?:[\\/]* ) # Absolute path.
19242 ac_srcdir=$srcdir$ac_dir_suffix;
19243 ac_top_srcdir=$srcdir ;;
19244 *) # Relative path.
19245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19247 esac
19248 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19249 # absolute.
19250 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19251 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19252 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19253 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19254
19255
19256 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19257 echo "$as_me: executing $ac_dest commands" >&6;}
19258 case $ac_dest in
19259 default )
19260
19261 ### Make the necessary directories, if they don't exist.
19262 for dir in etc lisp ; do
19263 test -d ${dir} || mkdir ${dir}
19264 done
19265
19266 # Build src/Makefile from ${srcdir}/src/Makefile.c
19267 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19268 # This must be done after src/config.h is built, since we rely on that file.
19269
19270 # Now get this: Some word that is part of the ${srcdir} directory name
19271 # or the ${configuration} value might, just might, happen to be an
19272 # identifier like `sun4' or `i386' or something, and be predefined by
19273 # the C preprocessor to some helpful value like 1, or maybe the empty
19274 # string. Needless to say consequent macro substitutions are less
19275 # than conducive to the makefile finding the correct directory.
19276 undefs="`echo $top_srcdir $configuration $canonical |
19277 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19278 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19279 `"
19280
19281 echo creating src/epaths.h
19282 ${MAKE-make} epaths-force
19283
19284 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19285 # `..' to `. .' unless invoked with -traditional
19286
19287 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19288 CPPFLAGS="$CPPFLAGS -traditional"
19289 fi
19290
19291 echo creating lib-src/Makefile
19292 ( cd lib-src
19293 rm -f junk.c junk1.c junk2.c
19294 sed -e '/start of cpp stuff/q' \
19295 < Makefile.c > junk1.c
19296 sed -e '1,/start of cpp stuff/d'\
19297 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19298 < Makefile.c > junk.c
19299 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19300 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19301 cat junk1.c junk2.c > Makefile.new
19302 rm -f junk.c junk1.c junk2.c
19303 chmod 444 Makefile.new
19304 mv -f Makefile.new Makefile
19305 )
19306
19307 echo creating src/Makefile
19308 ( cd src
19309 rm -f junk.c junk1.c junk2.c
19310 sed -e '/start of cpp stuff/q' \
19311 < Makefile.c > junk1.c
19312 sed -e '1,/start of cpp stuff/d'\
19313 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19314 < Makefile.c > junk.c
19315 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19316 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19317 cat junk1.c junk2.c > Makefile.new
19318 rm -f junk.c junk1.c junk2.c
19319 chmod 444 Makefile.new
19320 mv -f Makefile.new Makefile
19321 )
19322
19323 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19324 echo creating src/.gdbinit
19325 echo source $srcdir/src/.gdbinit > src/.gdbinit
19326 fi
19327
19328 # This is how we know whether to re-run configure in certain cases.
19329 touch src/config.stamp
19330
19331 ;;
19332 esac
19333 done
19334 _ACEOF
19335
19336 cat >>$CONFIG_STATUS <<\_ACEOF
19337
19338 { (exit 0); exit 0; }
19339 _ACEOF
19340 chmod +x $CONFIG_STATUS
19341 ac_clean_files=$ac_clean_files_save
19342
19343
19344 # configure is writing to config.log, and then calls config.status.
19345 # config.status does its own redirection, appending to config.log.
19346 # Unfortunately, on DOS this fails, as config.log is still kept open
19347 # by configure, so config.status won't be able to write to it; its
19348 # output is simply discarded. So we exec the FD to /dev/null,
19349 # effectively closing config.log, so it can be properly (re)opened and
19350 # appended to by config.status. When coming back to configure, we
19351 # need to make the FD available again.
19352 if test "$no_create" != yes; then
19353 ac_cs_success=:
19354 ac_config_status_args=
19355 test "$silent" = yes &&
19356 ac_config_status_args="$ac_config_status_args --quiet"
19357 exec 5>/dev/null
19358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19359 exec 5>>config.log
19360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19361 # would make configure fail if this is the last instruction.
19362 $ac_cs_success || { (exit 1); exit 1; }
19363 fi
19364
19365