]> code.delx.au - gnu-emacs/blob - configure
Rebuild.
[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 MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
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 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --disable-largefile omit support for large files
861
862 Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --without-gcc don't use GCC to compile Emacs if GCC is found
866 --without-pop don't support POP mail retrieval with movemail
867 --with-kerberos support Kerberos-authenticated POP
868 --with-kerberos5 support Kerberos version 5 authenticated POP
869 --with-hesiod support Hesiod to get the POP server host
870 --without-sound don't compile with sound support
871 --with-x-toolkit=KIT use an X toolkit
872 (KIT = yes/lucid/athena/motif/gtk/no)
873 --with-xpm use -lXpm for displaying XPM images
874 --with-jpeg use -ljpeg for displaying JPEG images
875 --with-tiff use -ltiff for displaying TIFF images
876 --with-gif use -lungif for displaying GIF images
877 --with-png use -lpng for displaying PNG images
878 --with-gtk use GTK (same as --with-x-toolkit=gtk)
879 --with-pkg-config-prog Path to pkg-config to use for finding GTK
880 --without-toolkit-scroll-bars
881 don't use Motif or Xaw3d scroll bars
882 --without-xim don't use X11 XIM
883 --without-carbon don't use Carbon GUI on Mac OS X
884 --with-x use the X Window System
885
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
894
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
897
898 _ACEOF
899 fi
900
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
903 ac_popdir=`pwd`
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
906 ac_builddir=.
907
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912 else
913 ac_dir_suffix= ac_top_builddir=
914 fi
915
916 case $srcdir in
917 .) # No --srcdir option. We are building in place.
918 ac_srcdir=.
919 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=.
921 else
922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 fi ;;
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
927 *) # Relative path.
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 esac
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932 # absolute.
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd $ac_popdir
954 done
955 fi
956
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959 cat <<\_ACEOF
960
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966 exit 0
967 fi
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
972
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
975
976 $ $0 $@
977
978 _ACEOF
979 {
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
984
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993
994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001
1002 _ASUNAME
1003
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1006 do
1007 IFS=$as_save_IFS
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1010 done
1011
1012 } >&5
1013
1014 cat >&5 <<_ACEOF
1015
1016
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1020
1021 _ACEOF
1022
1023
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1035 do
1036 for ac_arg
1037 do
1038 case $ac_arg in
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 continue ;;
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045 esac
1046 case $ac_pass in
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048 2)
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1052 else
1053 case $ac_arg in
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 esac
1061 ;;
1062 -* ) ac_must_keep_next=true ;;
1063 esac
1064 fi
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1067 ac_sep=" "
1068 ;;
1069 esac
1070 done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1074
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081 # Save into config.log some information that might help in debugging.
1082 {
1083 echo
1084
1085 cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090 echo
1091 # The following way of writing the cache mishandles newlines in values,
1092 {
1093 (set) 2>&1 |
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 *ac_space=\ *)
1096 sed -n \
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 ;;
1100 *)
1101 sed -n \
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 ;;
1104 esac;
1105 }
1106 echo
1107
1108 cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113 echo
1114 for ac_var in $ac_subst_vars
1115 do
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
1120
1121 if test -n "$ac_subst_files"; then
1122 cat <<\_ASBOX
1123 ## ------------- ##
1124 ## Output files. ##
1125 ## ------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_files
1129 do
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1134 fi
1135
1136 if test -s confdefs.h; then
1137 cat <<\_ASBOX
1138 ## ----------- ##
1139 ## confdefs.h. ##
1140 ## ----------- ##
1141 _ASBOX
1142 echo
1143 sed "/^$/d" confdefs.h | sort
1144 echo
1145 fi
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1149 } >&5
1150 rm -f core core.* *.core &&
1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 exit $exit_status
1153 ' 0
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1158
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1163
1164 # Predefined preprocessor variables.
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1189
1190
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 else
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 fi
1199 fi
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's/^/| /' "$ac_site_file" >&5
1205 . "$ac_site_file"
1206 fi
1207 done
1208
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215 case $cache_file in
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1218 esac
1219 fi
1220 else
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223 >$cache_file
1224 fi
1225
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1236 set,)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,set)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,);;
1245 *)
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1254 fi;;
1255 esac
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1258 case $ac_new_val in
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1262 esac
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 esac
1267 fi
1268 done
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1275 fi
1276
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302
1303
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1309 # Double any \ or $. echo might interpret backslashes.
1310 # By default was `s,x,x', remove it if useless.
1311 cat <<\_ACEOF >conftest.sed
1312 s/[\\$]/&&/g;s/;s,x,x,$//
1313 _ACEOF
1314 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1315 rm conftest.sed
1316
1317
1318 lispdir='${datadir}/emacs/${version}/lisp'
1319 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1320 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1321 lisppath='${locallisppath}:${lispdir}'
1322 etcdir='${datadir}/emacs/${version}/etc'
1323 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1324 docdir='${datadir}/emacs/${version}/etc'
1325 gamedir='${localstatedir}/games/emacs'
1326
1327 gameuser=games
1328
1329
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1332 withval="$with_gcc"
1333
1334 fi;
1335
1336 # Check whether --with-pop or --without-pop was given.
1337 if test "${with_pop+set}" = set; then
1338 withval="$with_pop"
1339 if test "$withval" = yes; then
1340 cat >>confdefs.h <<\_ACEOF
1341 #define MAIL_USE_POP 1
1342 _ACEOF
1343
1344 else :
1345 fi
1346 else
1347 cat >>confdefs.h <<\_ACEOF
1348 #define MAIL_USE_POP 1
1349 _ACEOF
1350
1351 fi;
1352
1353
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval="$with_kerberos"
1357 cat >>confdefs.h <<\_ACEOF
1358 #define KERBEROS 1
1359 _ACEOF
1360
1361 fi;
1362
1363
1364 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1365 if test "${with_kerberos5+set}" = set; then
1366 withval="$with_kerberos5"
1367 if test "${with_kerberos5+set}" = set; then
1368 if test "${with_kerberos+set}" != set; then
1369 with_kerberos=yes
1370 cat >>confdefs.h <<\_ACEOF
1371 #define KERBEROS 1
1372 _ACEOF
1373
1374 fi
1375 fi
1376
1377 cat >>confdefs.h <<\_ACEOF
1378 #define KERBEROS5 1
1379 _ACEOF
1380
1381 fi;
1382
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval="$with_hesiod"
1386
1387 cat >>confdefs.h <<\_ACEOF
1388 #define HESIOD 1
1389 _ACEOF
1390
1391 fi;
1392
1393
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval="$with_sound"
1397
1398 fi;
1399
1400
1401 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1402 if test "${with_x_toolkit+set}" = set; then
1403 withval="$with_x_toolkit"
1404 case "${withval}" in
1405 y | ye | yes ) val=athena ;;
1406 n | no ) val=no ;;
1407 l | lu | luc | luci | lucid ) val=lucid ;;
1408 a | at | ath | athe | athen | athena ) val=athena ;;
1409 m | mo | mot | moti | motif ) val=motif ;;
1410 g | gt | gtk ) val=gtk ;;
1411 * )
1412 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1413 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1414 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1415 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1416 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1417 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1418 { (exit 1); exit 1; }; }
1419 ;;
1420 esac
1421 with_x_toolkit=$val
1422
1423 fi;
1424
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1427 withval="$with_xpm"
1428
1429 fi;
1430
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval="$with_jpeg"
1434
1435 fi;
1436
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval="$with_tiff"
1440
1441 fi;
1442
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1445 withval="$with_gif"
1446
1447 fi;
1448
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1451 withval="$with_png"
1452
1453 fi;
1454
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1457 withval="$with_gtk"
1458
1459 fi;
1460
1461 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1462 if test "${with_pkg_config_prog+set}" = set; then
1463 withval="$with_pkg_config_prog"
1464
1465 fi;
1466
1467 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1468 if test "${with_toolkit_scroll_bars+set}" = set; then
1469 withval="$with_toolkit_scroll_bars"
1470
1471 fi;
1472
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1475 withval="$with_xim"
1476
1477 fi;
1478
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval="$with_carbon"
1482
1483 fi;
1484 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1485 if test "${enable_carbon_app+set}" = set; then
1486 enableval="$enable_carbon_app"
1487 carbon_appdir_x=${enableval}
1488 fi;
1489
1490 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1491 if test "${enable_maintainer_mode+set}" = set; then
1492 enableval="$enable_maintainer_mode"
1493 USE_MAINTAINER_MODE=$enableval
1494 else
1495 USE_MAINTAINER_MODE=no
1496 fi;
1497 if test $USE_MAINTAINER_MODE = yes; then
1498 MAINT=
1499 else
1500 MAINT=#
1501 fi
1502
1503
1504 #### Make srcdir absolute, if it isn't already. It's important to
1505 #### avoid running the path through pwd unnecessarily, since pwd can
1506 #### give you automounter prefixes, which can go away. We do all this
1507 #### so Emacs can find its files when run uninstalled.
1508 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1509 unset CDPATH
1510 case "${srcdir}" in
1511 /* ) ;;
1512 . )
1513 ## We may be able to use the $PWD environment variable to make this
1514 ## absolute. But sometimes PWD is inaccurate.
1515 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1516 ## but that tested only for a well-formed and valid PWD,
1517 ## it did not object when PWD was well-formed and valid but just wrong.
1518 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1519 then
1520 srcdir="$PWD"
1521 else
1522 srcdir="`(cd ${srcdir}; pwd)`"
1523 fi
1524 ;;
1525 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1526 esac
1527
1528 #### Check if the source directory already has a configured system in it.
1529 if test `pwd` != `(cd ${srcdir} && pwd)` \
1530 && test -f "${srcdir}/src/config.h" ; then
1531 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1532 as a build directory right now; it has been configured in its own
1533 right. To configure in another directory as well, you MUST
1534 use GNU make. If you do not have GNU make, then you must
1535 now do \`make distclean' in ${srcdir},
1536 and then run $0 again." >&5
1537 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1538 as a build directory right now; it has been configured in its own
1539 right. To configure in another directory as well, you MUST
1540 use GNU make. If you do not have GNU make, then you must
1541 now do \`make distclean' in ${srcdir},
1542 and then run $0 again." >&2;}
1543
1544 extrasub='/^VPATH[ ]*=/c\
1545 vpath %.c $(srcdir)\
1546 vpath %.h $(srcdir)\
1547 vpath %.y $(srcdir)\
1548 vpath %.l $(srcdir)\
1549 vpath %.s $(srcdir)\
1550 vpath %.in $(srcdir)\
1551 vpath %.texi $(srcdir)'
1552 fi
1553
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1556
1557 ### Canonicalize the configuration name.
1558
1559 ac_aux_dir=
1560 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1561 if test -f $ac_dir/install-sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 break
1565 elif test -f $ac_dir/install.sh; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 break
1569 elif test -f $ac_dir/shtool; then
1570 ac_aux_dir=$ac_dir
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 break
1573 fi
1574 done
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1579 fi
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584 # Make sure we can run config.sub.
1585 $ac_config_sub sun4 >/dev/null 2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1589
1590 echo "$as_me:$LINENO: checking build system type" >&5
1591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592 if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 ac_cv_build_alias=$build_alias
1596 test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias=`$ac_config_guess`
1598 test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607 fi
1608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609 echo "${ECHO_T}$ac_cv_build" >&6
1610 build=$ac_cv_build
1611 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616 echo "$as_me:$LINENO: checking host system type" >&5
1617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618 if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 ac_cv_host_alias=$host_alias
1622 test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629 fi
1630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631 echo "${ECHO_T}$ac_cv_host" >&6
1632 host=$ac_cv_host
1633 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638 canonical=$host
1639 configuration=${host_alias-$host}
1640
1641
1642
1643 ### If you add support for a new configuration, add code to this
1644 ### switch statement to recognize your configuration name and select
1645 ### the appropriate operating system and machine description files.
1646
1647 ### You would hope that you could choose an m/*.h file pretty much
1648 ### based on the machine portion of the configuration name, and an s-
1649 ### file based on the operating system portion. However, it turns out
1650 ### that each m/*.h file is pretty manufacturer-specific - for
1651 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1652 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1653 ### machines. So we basically have to have a special case for each
1654 ### configuration name.
1655 ###
1656 ### As far as handling version numbers on operating systems is
1657 ### concerned, make sure things will fail in a fixable way. If
1658 ### /etc/MACHINES doesn't say anything about version numbers, be
1659 ### prepared to handle anything reasonably. If version numbers
1660 ### matter, be sure /etc/MACHINES says something about it.
1661 ###
1662 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1663 ### "System V Release 4"; he writes, "The old convention encouraged
1664 ### confusion between `system' and `release' levels'."
1665
1666 machine='' opsys='' unported=no
1667 case "${canonical}" in
1668
1669 ## FreeBSD ports
1670 *-*-freebsd* )
1671 opsys=freebsd
1672 case "${canonical}" in
1673 alpha*-*-freebsd*) machine=alpha ;;
1674 i[3456]86-*-freebsd*) machine=intel386 ;;
1675 esac
1676 ;;
1677
1678 ## NetBSD ports
1679 *-*-netbsd* )
1680 opsys=netbsd
1681 if test -f /usr/lib/crti.o; then
1682
1683 cat >>confdefs.h <<\_ACEOF
1684 #define HAVE_CRTIN
1685 _ACEOF
1686
1687 fi
1688
1689 case "${canonical}" in
1690 alpha*-*-netbsd*) machine=alpha ;;
1691 i[3456]86-*-netbsd*) machine=intel386 ;;
1692 m68k-*-netbsd*)
1693 # This is somewhat bogus.
1694 machine=hp9000s300 ;;
1695 powerpc-apple-netbsd*) machine=macppc ;;
1696 mips-*-netbsd*) machine=pmax ;;
1697 mipsel-*-netbsd*) machine=pmax ;;
1698 mipseb-*-netbsd*) machine=pmax ;;
1699 ns32k-*-netbsd*) machine=ns32000 ;;
1700 powerpc-*-netbsd*) machine=macppc ;;
1701 sparc*-*-netbsd*) machine=sparc ;;
1702 vax-*-netbsd*) machine=vax ;;
1703 arm-*-netbsd*) machine=arm ;;
1704 esac
1705 ;;
1706
1707 ## OpenBSD ports
1708 *-*-openbsd* )
1709 opsys=openbsd
1710 case "${canonical}" in
1711 alpha*-*-openbsd*) machine=alpha ;;
1712 i386-*-openbsd*) machine=intel386 ;;
1713 m68k-*-openbsd*) machine=hp9000s300 ;;
1714 mipsel-*-openbsd*) machine=pmax ;;
1715 ns32k-*-openbsd*) machine=ns32000 ;;
1716 sparc-*-openbsd*) machine=sparc ;;
1717 vax-*-openbsd*) machine=vax ;;
1718 esac
1719 ;;
1720
1721 ## Acorn RISCiX:
1722 arm-acorn-riscix1.1* )
1723 machine=acorn opsys=riscix1-1
1724 ;;
1725 arm-acorn-riscix1.2* | arm-acorn-riscix )
1726 ## This name is riscix12 instead of riscix1.2
1727 ## to avoid a file name conflict on MSDOS.
1728 machine=acorn opsys=riscix12
1729 ;;
1730
1731 ## BSDI ports
1732 *-*-bsdi* )
1733 opsys=bsdi
1734 case "${canonical}" in
1735 i[345]86-*-bsdi*) machine=intel386 ;;
1736 sparc-*-bsdi*) machine=sparc ;;
1737 powerpc-*-bsdi*) machine=macppc ;;
1738 esac
1739 case "${canonical}" in
1740 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1741 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1742 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1743 *-*-bsdi3* ) opsys=bsdos3 ;;
1744 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1745 esac
1746 ;;
1747
1748 ## Alliant machines
1749 ## Strictly speaking, we need the version of the alliant operating
1750 ## system to choose the right machine file, but currently the
1751 ## configuration name doesn't tell us enough to choose the right
1752 ## one; we need to give alliants their own operating system name to
1753 ## do this right. When someone cares, they can help us.
1754 fx80-alliant-* )
1755 machine=alliant4 opsys=bsd4-2
1756 ;;
1757 i860-alliant-* )
1758 machine=alliant-2800 opsys=bsd4-3
1759 ;;
1760
1761 ## Alpha (DEC) machines.
1762 alpha*-dec-osf* )
1763 machine=alpha opsys=osf1
1764 # This is needed to find X11R6.1 libraries for certain tests.
1765 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1766 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1767 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1768 # due to non-traditional preprocessing with the current compiler
1769 # defaults. OSF 4 can also have that compiler version, and there
1770 # seems always to have been a usable /usr/bin/cpp.
1771 NON_GNU_CPP=/usr/bin/cpp
1772 case "${canonical}" in
1773 alpha*-dec-osf[5-9]*)
1774 opsys=osf5-0 ;;
1775 esac
1776 ;;
1777
1778 alpha*-*-linux-gnu* )
1779 machine=alpha opsys=gnu-linux
1780 ;;
1781
1782 arm*-*-linux-gnu* )
1783 machine=arm opsys=gnu-linux
1784 ;;
1785
1786 ppc-*-linux | \
1787 powerpc-*-linux* )
1788 machine=macppc opsys=gnu-linux
1789 ;;
1790
1791 ## Altos 3068
1792 m68*-altos-sysv* )
1793 machine=altos opsys=usg5-2
1794 ;;
1795
1796 ## Amdahl UTS
1797 580-amdahl-sysv* )
1798 machine=amdahl opsys=usg5-2-2
1799 ;;
1800
1801 ## Apollo, Domain/OS
1802 m68*-apollo-* )
1803 machine=apollo opsys=bsd4-3
1804 ;;
1805
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1807 we32k-att-sysv* )
1808 machine=att3b opsys=usg5-2-2
1809 ;;
1810
1811 ## AT&T 3b1 - The Mighty Unix PC!
1812 m68*-att-sysv* )
1813 machine=7300 opsys=usg5-2-2
1814 ;;
1815
1816 ## Bull dpx20
1817 rs6000-bull-bosx* )
1818 machine=ibmrs6000 opsys=aix3-2
1819 ;;
1820
1821 ## Bull dpx2
1822 m68*-bull-sysv3* )
1823 machine=dpx2 opsys=usg5-3
1824 ;;
1825
1826 ## Bull sps7
1827 m68*-bull-sysv2* )
1828 machine=sps7 opsys=usg5-2
1829 ;;
1830
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
1832
1833 ## Celerity
1834 ## I don't know what configuration name to use for this; config.sub
1835 ## doesn't seem to know anything about it. Hey, Celerity users, get
1836 ## in touch with us!
1837 celerity-celerity-bsd* )
1838 machine=celerity opsys=bsd4-2
1839 ;;
1840
1841 ## Clipper
1842 ## What operating systems does this chip run that Emacs has been
1843 ## tested on?
1844 clipper-* )
1845 machine=clipper
1846 ## We'll use the catch-all code at the bottom to guess the
1847 ## operating system.
1848 ;;
1849
1850 ## Compaq Nonstop
1851 mips-compaq-nonstopux* )
1852 machine=nonstopux opsys=nonstopux
1853 ;;
1854
1855 ## Convex
1856 *-convex-bsd* | *-convex-convexos* )
1857 machine=convex opsys=bsd4-3
1858 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1859 NON_GNU_CPP="cc -E -P"
1860 ;;
1861
1862 ## Cubix QBx/386
1863 i[3456]86-cubix-sysv* )
1864 machine=intel386 opsys=usg5-3
1865 ;;
1866
1867 ## Cydra 5
1868 cydra*-cydrome-sysv* )
1869 machine=cydra5 opsys=usg5-3
1870 ;;
1871
1872 ## Data General AViiON Machines
1873 ## DG changed naming conventions with the release of 5.4.4.10, they
1874 ## dropped the initial 5.4 but left the intervening R. Because of the
1875 ## R this shouldn't conflict with older versions of the OS (which I
1876 ## think were named like dgux4.*). In addition, DG new AViiONs series
1877 ## uses either Motorola M88k or Intel Pentium CPUs.
1878 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1879 machine=aviion opsys=dgux4
1880 ;;
1881 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1882 ## This name is dgux5-4-3 instead of dgux5-4r3
1883 ## to avoid a file name conflict on MSDOS.
1884 machine=aviion opsys=dgux5-4-3
1885 ;;
1886 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1887 machine=aviion opsys=dgux5-4r2
1888 ;;
1889 m88k-dg-dgux* )
1890 machine=aviion opsys=dgux
1891 ;;
1892
1893 ## Data General AViiON Intel (x86) Machines
1894 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1895 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1896 i[345]86-dg-dguxR4* )
1897 machine=aviion-intel opsys=dgux4
1898 ;;
1899
1900 ## DECstations
1901 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1902 machine=pmax opsys=bsd4-2
1903 ;;
1904 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1905 machine=pmax opsys=bsd4-3
1906 ;;
1907 mips-dec-ultrix* )
1908 machine=pmax opsys=ultrix4-3
1909 ;;
1910 mips-dec-osf* )
1911 machine=pmax opsys=osf1
1912 ;;
1913 mips-dec-mach_bsd4.3* )
1914 machine=pmax opsys=mach-bsd4-3
1915 ;;
1916
1917 ## Motorola Delta machines
1918 m68k-motorola-sysv* | m68000-motorola-sysv* )
1919 machine=delta opsys=usg5-3
1920 if test -z "`type gnucc | grep 'not found'`"
1921 then
1922 if test -s /etc/167config
1923 then CC="gnucc -m68040"
1924 else CC="gnucc -m68881"
1925 fi
1926 else
1927 if test -z "`type gcc | grep 'not found'`"
1928 then CC=gcc
1929 else CC=cc
1930 fi
1931 fi
1932 ;;
1933 m88k-motorola-sysv4* )
1934 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1935 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1936 # I hope there are not other 4.0 versions for this machine
1937 # which really need usg5-4 instead.
1938 machine=delta88k opsys=usg5-4-2
1939 ;;
1940 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1941 machine=delta88k opsys=usg5-3
1942 ;;
1943
1944 ## Dual machines
1945 m68*-dual-sysv* )
1946 machine=dual opsys=usg5-2
1947 ;;
1948 m68*-dual-uniplus* )
1949 machine=dual opsys=unipl5-2
1950 ;;
1951
1952 ## Elxsi 6400
1953 elxsi-elxsi-sysv* )
1954 machine=elxsi opsys=usg5-2
1955 ;;
1956
1957 ## Encore machines
1958 ns16k-encore-bsd* )
1959 machine=ns16000 opsys=umax
1960 ;;
1961
1962 ## The GEC 63 - apparently, this port isn't really finished yet.
1963 # I'm sure we finished off the last of the machines, though. -- fx
1964
1965 ## Gould Power Node and NP1
1966 pn-gould-bsd4.2* )
1967 machine=gould opsys=bsd4-2
1968 ;;
1969 pn-gould-bsd4.3* )
1970 machine=gould opsys=bsd4-3
1971 ;;
1972 np1-gould-bsd* )
1973 machine=gould-np1 opsys=bsd4-3
1974 ;;
1975
1976 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1977 ## as far as Emacs is concerned).
1978 m88k-harris-cxux* )
1979 # Build needs to be different on 7.0 and later releases
1980 case "`uname -r`" in
1981 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1982 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1983 esac
1984 NON_GNU_CPP="/lib/cpp"
1985 ;;
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1987 m68k-harris-cxux* )
1988 machine=nh3000 opsys=cxux
1989 ;;
1990 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1991 powerpc-harris-powerunix )
1992 machine=nh6000 opsys=powerunix
1993 NON_GNU_CPP="cc -Xo -E -P"
1994 ;;
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1-hitachi-hiuxmpp* )
1997 machine=sr2k opsys=hiuxmpp
1998 ;;
1999 hppa1.1-hitachi-hiuxwe2* )
2000 machine=sr2k opsys=hiuxwe2
2001 ;;
2002 ## Honeywell XPS100
2003 xps*-honeywell-sysv* )
2004 machine=xps100 opsys=usg5-2
2005 ;;
2006
2007 ## HP 9000 series 200 or 300
2008 m68*-hp-bsd* )
2009 machine=hp9000s300 opsys=bsd4-3
2010 ;;
2011 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2012 m68*-hp-hpux* )
2013 case "`uname -r`" in
2014 ## Someone's system reports A.B8.05 for this.
2015 ## I wonder what other possibilities there are.
2016 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2017 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2018 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2019 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2020 *) machine=hp9000s300 opsys=hpux ;;
2021 esac
2022 ;;
2023
2024 ## HP 9000 series 700 and 800, running HP/UX
2025 hppa*-hp-hpux7* )
2026 machine=hp800 opsys=hpux
2027 ;;
2028 hppa*-hp-hpux8* )
2029 machine=hp800 opsys=hpux8
2030 ;;
2031 hppa*-hp-hpux9shr* )
2032 machine=hp800 opsys=hpux9shr
2033 ;;
2034 hppa*-hp-hpux9* )
2035 machine=hp800 opsys=hpux9
2036 ;;
2037 hppa*-hp-hpux10.2* )
2038 machine=hp800 opsys=hpux10-20
2039 ;;
2040 hppa*-hp-hpux10* )
2041 machine=hp800 opsys=hpux10
2042 ;;
2043 hppa*-hp-hpux1[1-9]* )
2044 machine=hp800 opsys=hpux11
2045 ;;
2046
2047 hppa*-*-linux-gnu* )
2048 machine=hp800 opsys=gnu-linux
2049 ;;
2050
2051 ## HP 9000 series 700 and 800, running HP/UX
2052 hppa*-hp-hpux* )
2053 ## Cross-compilation? Nah!
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2058 *.08.* ) machine=hp800 opsys=hpux8 ;;
2059 *.09.* ) machine=hp800 opsys=hpux9 ;;
2060 *) machine=hp800 opsys=hpux10 ;;
2061 esac
2062 ;;
2063 hppa*-*-nextstep* )
2064 machine=hp800 opsys=nextstep
2065 ;;
2066
2067 ## Orion machines
2068 orion-orion-bsd* )
2069 machine=orion opsys=bsd4-2
2070 ;;
2071 clipper-orion-bsd* )
2072 machine=orion105 opsys=bsd4-2
2073 ;;
2074
2075 ## IBM machines
2076 i[3456]86-ibm-aix1.1* )
2077 machine=ibmps2-aix opsys=usg5-2-2
2078 ;;
2079 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2080 machine=ibmps2-aix opsys=usg5-3
2081 ;;
2082 i370-ibm-aix*)
2083 machine=ibm370aix opsys=usg5-3
2084 ;;
2085 s390-*-linux-gnu* )
2086 machine=ibms390 opsys=gnu-linux
2087 ;;
2088 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2089 machine=ibmrs6000 opsys=aix3-1
2090 ;;
2091 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2092 machine=ibmrs6000 opsys=aix3-2-5
2093 ;;
2094 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2095 machine=ibmrs6000 opsys=aix4-1
2096 ;;
2097 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2098 machine=ibmrs6000 opsys=aix4-2
2099 ;;
2100 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2101 machine=ibmrs6000 opsys=aix4-2
2102 ;;
2103 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2104 machine=ibmrs6000 opsys=aix4
2105 ;;
2106 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2107 machine=ibmrs6000 opsys=aix4-1
2108 ;;
2109 rs6000-ibm-aix* | powerpc-ibm-aix* )
2110 machine=ibmrs6000 opsys=aix3-2
2111 ;;
2112 romp-ibm-bsd4.3* )
2113 machine=ibmrt opsys=bsd4-3
2114 ;;
2115 romp-ibm-bsd4.2* )
2116 machine=ibmrt opsys=bsd4-2
2117 ;;
2118 romp-ibm-aos4.3* )
2119 machine=ibmrt opsys=bsd4-3
2120 ;;
2121 romp-ibm-aos4.2* )
2122 machine=ibmrt opsys=bsd4-2
2123 ;;
2124 romp-ibm-aos* )
2125 machine=ibmrt opsys=bsd4-3
2126 ;;
2127 romp-ibm-bsd* )
2128 machine=ibmrt opsys=bsd4-3
2129 ;;
2130 romp-ibm-aix* )
2131 machine=ibmrt-aix opsys=usg5-2-2
2132 ;;
2133
2134 ## Integrated Solutions `Optimum V'
2135 m68*-isi-bsd4.2* )
2136 machine=isi-ov opsys=bsd4-2
2137 ;;
2138 m68*-isi-bsd4.3* )
2139 machine=isi-ov opsys=bsd4-3
2140 ;;
2141
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i[3456]86-intsys-sysv* )
2144 machine=is386 opsys=usg5-2-2
2145 ;;
2146
2147 ## Prime EXL
2148 i[3456]86-prime-sysv* )
2149 machine=i386 opsys=usg5-3
2150 ;;
2151
2152 ## Sequent Symmetry running Dynix
2153 i[3456]86-sequent-bsd* )
2154 machine=symmetry opsys=bsd4-3
2155 ;;
2156
2157 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2158 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2159 machine=sequent-ptx opsys=ptx4
2160 NON_GNU_CPP=/lib/cpp
2161 ;;
2162
2163 ## Sequent Symmetry running DYNIX/ptx
2164 ## Use the old cpp rather than the newer ANSI one.
2165 i[3456]86-sequent-ptx* )
2166 machine=sequent-ptx opsys=ptx
2167 NON_GNU_CPP="/lib/cpp"
2168 ;;
2169
2170 ## ncr machine running svr4.3.
2171 i[3456]86-ncr-sysv4.3 )
2172 machine=ncr386 opsys=usg5-4-3
2173 ;;
2174
2175 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2176 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2177 i[3456]86-ncr-sysv* )
2178 machine=ncr386 opsys=usg5-4-2
2179 ;;
2180
2181 ## Intel Paragon OSF/1
2182 i860-intel-osf1* )
2183 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2184 ;;
2185
2186 ## Intel 860
2187 i860-*-sysv4* )
2188 machine=i860 opsys=usg5-4
2189 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2190 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2191 ;;
2192
2193 ## Macintosh PowerPC
2194 powerpc*-*-linux-gnu* )
2195 machine=macppc opsys=gnu-linux
2196 ;;
2197
2198 ## Masscomp machines
2199 m68*-masscomp-rtu* )
2200 machine=masscomp opsys=rtu
2201 ;;
2202
2203 ## Megatest machines
2204 m68*-megatest-bsd* )
2205 machine=mega68 opsys=bsd4-2
2206 ;;
2207
2208 ## Workstations sold by MIPS
2209 ## This is not necessarily all workstations using the MIPS processor -
2210 ## Irises are produced by SGI, and DECstations by DEC.
2211
2212 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2213 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2214 ## it gives for choosing between the alternatives seems to be "Use
2215 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2216 ## the BSD world." I'll assume that these are instructions for
2217 ## handling two odd situations, and that every other situation
2218 ## should use mips.h and usg5-2-2, they being listed first.
2219 mips-mips-usg* )
2220 machine=mips4
2221 ## Fall through to the general code at the bottom to decide on the OS.
2222 ;;
2223 mips-mips-riscos4* )
2224 machine=mips4 opsys=bsd4-3
2225 NON_GNU_CC="cc -systype bsd43"
2226 NON_GNU_CPP="cc -systype bsd43 -E"
2227 ;;
2228 mips-mips-riscos5* )
2229 machine=mips4 opsys=riscos5
2230 NON_GNU_CC="cc -systype bsd43"
2231 NON_GNU_CPP="cc -systype bsd43 -E"
2232 ;;
2233 mips-mips-bsd* )
2234 machine=mips opsys=bsd4-3
2235 ;;
2236 mips-mips-* )
2237 machine=mips opsys=usg5-2-2
2238 ;;
2239
2240 ## NeXT
2241 m68*-next-* | m68k-*-nextstep* )
2242 machine=m68k opsys=nextstep
2243 ;;
2244
2245 ## The complete machine from National Semiconductor
2246 ns32k-ns-genix* )
2247 machine=ns32000 opsys=usg5-2
2248 ;;
2249
2250 ## NCR machines
2251 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2252 machine=tower32 opsys=usg5-2-2
2253 ;;
2254 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2255 machine=tower32v3 opsys=usg5-3
2256 ;;
2257
2258 ## NEC EWS4800
2259 mips-nec-sysv4*)
2260 machine=ews4800 opsys=ux4800
2261 ;;
2262
2263 ## Nixdorf Targon 31
2264 m68*-nixdorf-sysv* )
2265 machine=targon31 opsys=usg5-2-2
2266 ;;
2267
2268 ## Nu (TI or LMI)
2269 m68*-nu-sysv* )
2270 machine=nu opsys=usg5-2
2271 ;;
2272
2273 ## Plexus
2274 m68*-plexus-sysv* )
2275 machine=plexus opsys=usg5-2
2276 ;;
2277
2278 ## Pyramid machines
2279 ## I don't really have any idea what sort of processor the Pyramid has,
2280 ## so I'm assuming it is its own architecture.
2281 pyramid-pyramid-bsd* )
2282 machine=pyramid opsys=bsd4-2
2283 ;;
2284
2285 ## Sequent Balance
2286 ns32k-sequent-bsd4.2* )
2287 machine=sequent opsys=bsd4-2
2288 ;;
2289 ns32k-sequent-bsd4.3* )
2290 machine=sequent opsys=bsd4-3
2291 ;;
2292
2293 ## Siemens Nixdorf
2294 mips-siemens-sysv* | mips-sni-sysv*)
2295 machine=mips-siemens opsys=usg5-4
2296 NON_GNU_CC=/usr/ccs/bin/cc
2297 NON_GNU_CPP=/usr/ccs/lib/cpp
2298 ;;
2299
2300 ## Silicon Graphics machines
2301 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2302 m68*-sgi-iris3.5* )
2303 machine=irist opsys=iris3-5
2304 ;;
2305 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2306 machine=irist opsys=iris3-6
2307 ;;
2308 ## Iris 4D
2309 mips-sgi-irix3* )
2310 machine=iris4d opsys=irix3-3
2311 ;;
2312 mips-sgi-irix4* )
2313 machine=iris4d opsys=irix4-0
2314 ;;
2315 mips-sgi-irix6.5 )
2316 machine=iris4d opsys=irix6-5
2317 # Without defining _LANGUAGE_C, things get masked out in the headers
2318 # so that, for instance, grepping for `free' in stdlib.h fails and
2319 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2320 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2321 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2322 ;;
2323 mips-sgi-irix6* )
2324 machine=iris4d opsys=irix6-0
2325 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2326 # but presumably it does no harm.
2327 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2328 # -32 probably isn't necessary in later v.6s -- anyone know which?
2329 NON_GCC_TEST_OPTIONS=-32
2330 ;;
2331 mips-sgi-irix5.[01]* )
2332 machine=iris4d opsys=irix5-0
2333 ;;
2334 mips-sgi-irix5* | mips-sgi-irix* )
2335 machine=iris4d opsys=irix5-2
2336 ;;
2337
2338 ## SONY machines
2339 m68*-sony-bsd4.2* )
2340 machine=news opsys=bsd4-2
2341 ;;
2342 m68*-sony-bsd4.3* )
2343 machine=news opsys=bsd4-3
2344 ;;
2345 m68*-sony-newsos3* | m68*-sony-news3*)
2346 machine=news opsys=bsd4-3
2347 ;;
2348 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2349 machine=news-risc opsys=bsd4-3
2350 ;;
2351 mips-sony-newsos6* )
2352 machine=news-r6 opsys=newsos6
2353 ;;
2354 mips-sony-news* )
2355 machine=news-risc opsys=newsos5
2356 ;;
2357
2358 ## Stride
2359 m68*-stride-sysv* )
2360 machine=stride opsys=usg5-2
2361 ;;
2362
2363 ## Suns
2364 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2365 machine=sparc opsys=gnu-linux
2366 ;;
2367
2368 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2369 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2370 | rs6000-*-solaris2*)
2371 case "${canonical}" in
2372 m68*-sunos1* ) machine=sun1 ;;
2373 m68*-sunos2* ) machine=sun2 ;;
2374 m68* ) machine=sun3 ;;
2375 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2376 i[3456]86-*-* ) machine=intel386 ;;
2377 powerpcle* ) machine=powerpcle ;;
2378 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2379 sparc* ) machine=sparc ;;
2380 * ) unported=yes ;;
2381 esac
2382 case "${canonical}" in
2383 ## The Sun386 didn't get past 4.0.
2384 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2385 *-sunos4.0* ) opsys=sunos4-0 ;;
2386 *-sunos4.1.[3-9]*noshare )
2387 ## This name is sunos413 instead of sunos4-1-3
2388 ## to avoid a file name conflict on MSDOS.
2389 opsys=sunos413
2390 NON_GNU_CPP=/usr/lib/cpp
2391 NON_GCC_TEST_OPTIONS=-Bstatic
2392 GCC_TEST_OPTIONS=-static
2393 ;;
2394 *-sunos4.1.[3-9]* | *-sunos4shr*)
2395 opsys=sunos4shr
2396 NON_GNU_CPP=/usr/lib/cpp
2397 ;;
2398 *-sunos4* | *-sunos )
2399 opsys=sunos4-1
2400 NON_GCC_TEST_OPTIONS=-Bstatic
2401 GCC_TEST_OPTIONS=-static
2402 ;;
2403 *-sunos5.3* | *-solaris2.3* )
2404 opsys=sol2-3
2405 NON_GNU_CPP=/usr/ccs/lib/cpp
2406 ;;
2407 *-sunos5.4* | *-solaris2.4* )
2408 opsys=sol2-4
2409 NON_GNU_CPP=/usr/ccs/lib/cpp
2410 RANLIB="ar -ts"
2411 ;;
2412 *-sunos5.5* | *-solaris2.5* )
2413 opsys=sol2-5
2414 NON_GNU_CPP=/usr/ccs/lib/cpp
2415 RANLIB="ar -ts"
2416 ;;
2417 *-sunos5.6* | *-solaris2.6* )
2418 opsys=sol2-6
2419 NON_GNU_CPP=/usr/ccs/lib/cpp
2420 RANLIB="ar -ts"
2421 ;;
2422 *-sunos5* | *-solaris* )
2423 opsys=sol2-6
2424 NON_GNU_CPP=/usr/ccs/lib/cpp
2425 ;;
2426 * ) opsys=bsd4-2 ;;
2427 esac
2428 ## Watch out for a compiler that we know will not work.
2429 case "${canonical}" in
2430 *-solaris* | *-sunos5* )
2431 if [ "x$CC" = x/usr/ucb/cc ]; then
2432 ## /usr/ucb/cc doesn't work;
2433 ## we should find some other compiler that does work.
2434 unset CC
2435 fi
2436 ;;
2437 *) ;;
2438 esac
2439 ;;
2440 sparc-*-nextstep* )
2441 machine=sparc opsys=nextstep
2442 ;;
2443
2444 ## Tadpole 68k
2445 m68*-tadpole-sysv* )
2446 machine=tad68k opsys=usg5-3
2447 ;;
2448
2449 ## Tahoe machines
2450 tahoe-tahoe-bsd4.2* )
2451 machine=tahoe opsys=bsd4-2
2452 ;;
2453 tahoe-tahoe-bsd4.3* )
2454 machine=tahoe opsys=bsd4-3
2455 ;;
2456
2457 ## Tandem Integrity S2
2458 mips-tandem-sysv* )
2459 machine=tandem-s2 opsys=usg5-3
2460 ;;
2461
2462 ## Tektronix XD88
2463 m88k-tektronix-sysv3* )
2464 machine=tekxd88 opsys=usg5-3
2465 ;;
2466
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd* )
2469 machine=ns16000 opsys=bsd4-2
2470 ;;
2471 ## Tektronix 4300
2472 ## src/m/tek4300.h hints that this is a m68k machine.
2473 m68*-tektronix-bsd* )
2474 machine=tek4300 opsys=bsd4-3
2475 ;;
2476
2477 ## Titan P2 or P3
2478 ## We seem to have lost the machine-description file titan.h!
2479 titan-titan-sysv* )
2480 machine=titan opsys=usg5-3
2481 ;;
2482
2483 ## Ustation E30 (SS5E)
2484 m68*-unisys-uniplus* )
2485 machine=ustation opsystem=unipl5-2
2486 ;;
2487
2488 ## Vaxen.
2489 vax-dec-* )
2490 machine=vax
2491 case "${canonical}" in
2492 *-bsd4.1* ) opsys=bsd4-1 ;;
2493 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2494 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2495 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2496 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2497 *-vms* ) opsys=vms ;;
2498 * ) unported=yes
2499 esac
2500 ;;
2501
2502 ## Whitechapel MG1
2503 ns16k-whitechapel-* )
2504 machine=mg1
2505 ## We don't know what sort of OS runs on these; we'll let the
2506 ## operating system guessing code below try.
2507 ;;
2508
2509 ## Wicat
2510 m68*-wicat-sysv* )
2511 machine=wicat opsys=usg5-2
2512 ;;
2513
2514 ## IA-64
2515 ia64*-*-linux* )
2516 machine=ia64 opsys=gnu-linux
2517 ;;
2518
2519 ## Intel 386 machines where we don't care about the manufacturer
2520 i[3456]86-*-* )
2521 machine=intel386
2522 case "${canonical}" in
2523 *-cygwin ) opsys=cygwin ;;
2524 *-lynxos* ) opsys=lynxos ;;
2525 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2526 *-isc2.2* ) opsys=isc2-2 ;;
2527 *-isc4.0* ) opsys=isc4-0 ;;
2528 *-isc4.* ) opsys=isc4-1
2529 GCC_TEST_OPTIONS=-posix
2530 NON_GCC_TEST_OPTIONS=-Xp
2531 ;;
2532 *-isc* ) opsys=isc3-0 ;;
2533 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2534 *-esix* ) opsys=esix ;;
2535 *-xenix* ) opsys=xenix ;;
2536 *-linux-gnu* ) opsys=gnu-linux ;;
2537 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2538 *-sco3.2v5* ) opsys=sco5
2539 NON_GNU_CPP=/lib/cpp
2540 # Prevent -belf from being passed to $CPP.
2541 # /lib/cpp does not accept it.
2542 OVERRIDE_CPPFLAGS=" "
2543 ;;
2544 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2545 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2546 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2547 *-386bsd* ) opsys=386bsd ;;
2548 *-nextstep* ) opsys=nextstep ;;
2549 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2550 esac
2551 ;;
2552
2553 ## m68k Linux-based GNU system
2554 m68k-*-linux-gnu* )
2555 machine=m68k opsys=gnu-linux
2556 ;;
2557
2558 ## Mips Linux-based GNU system
2559 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2560 machine=mips opsys=gnu-linux
2561 ;;
2562
2563 ## UXP/DS
2564 sparc-fujitsu-sysv4* )
2565 machine=sparc opsys=uxpds
2566 NON_GNU_CPP=/usr/ccs/lib/cpp
2567 RANLIB="ar -ts"
2568 ;;
2569
2570 ## UXP/V
2571 f301-fujitsu-uxpv4.1)
2572 machine=f301 opsys=uxpv
2573 ;;
2574
2575 ## Darwin / Mac OS X
2576 powerpc-apple-darwin* )
2577 machine=powermac opsys=darwin
2578 # Define CPP as follows to make autoconf work correctly.
2579 CPP="${CC} -E -no-cpp-precomp"
2580 ;;
2581
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-*-linux-gnu* )
2584 machine=amdx86-64 opsys=gnu-linux
2585 ;;
2586
2587 * )
2588 unported=yes
2589 ;;
2590 esac
2591
2592 ### If the code above didn't choose an operating system, just choose
2593 ### an operating system based on the configuration name. You really
2594 ### only want to use this when you have no idea what the right
2595 ### operating system is; if you know what operating systems a machine
2596 ### runs, it's cleaner to make it explicit in the case statement
2597 ### above.
2598 if test x"${opsys}" = x; then
2599 case "${canonical}" in
2600 *-gnu* ) opsys=gnu ;;
2601 *-bsd4.[01] ) opsys=bsd4-1 ;;
2602 *-bsd4.2 ) opsys=bsd4-2 ;;
2603 *-bsd4.3 ) opsys=bsd4-3 ;;
2604 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2605 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2606 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2607 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2608 *-sysv4.2uw* ) opsys=unixware ;;
2609 *-sysv5uw* ) opsys=unixware ;;
2610 *-sysv5OpenUNIX* ) opsys=unixware ;;
2611 *-sysv4.1* | *-sysvr4.1* )
2612 NON_GNU_CPP=/usr/lib/cpp
2613 opsys=usg5-4 ;;
2614 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2615 if [ x$NON_GNU_CPP = x ]; then
2616 if [ -f /usr/ccs/lib/cpp ]; then
2617 NON_GNU_CPP=/usr/ccs/lib/cpp
2618 else
2619 NON_GNU_CPP=/lib/cpp
2620 fi
2621 fi
2622 opsys=usg5-4-2 ;;
2623 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2624 * )
2625 unported=yes
2626 ;;
2627 esac
2628 fi
2629
2630
2631
2632 if test $unported = yes; then
2633 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&5
2635 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2636 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2637 { (exit 1); exit 1; }; }
2638 fi
2639
2640 machfile="m/${machine}.h"
2641 opsysfile="s/${opsys}.h"
2642
2643
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified=yes
2646
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS="$CFLAGS"
2649
2650 case ${with_gcc} in
2651 "yes" ) CC="gcc" GCC=yes ;;
2652 "no" ) : ${CC=cc} ;;
2653 * )
2654 esac
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684
2685 fi
2686 fi
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6
2691 else
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2694 fi
2695
2696 fi
2697 if test -z "$ac_cv_prog_CC"; then
2698 ac_ct_CC=$CC
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722
2723 fi
2724 fi
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2732 fi
2733
2734 CC=$ac_ct_CC
2735 else
2736 CC="$ac_cv_prog_CC"
2737 fi
2738
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}cc; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CC="${ac_tool_prefix}cc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764
2765 fi
2766 fi
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6
2771 else
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2774 fi
2775
2776 fi
2777 if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc; ac_word=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802
2803 fi
2804 fi
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2808 echo "${ECHO_T}$ac_ct_CC" >&6
2809 else
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812 fi
2813
2814 CC=$ac_ct_CC
2815 else
2816 CC="$ac_cv_prog_CC"
2817 fi
2818
2819 fi
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 ac_prog_rejected=no
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2841 continue
2842 fi
2843 ac_cv_prog_CC="cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy $ac_cv_prog_CC
2853 shift
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2858 shift
2859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2860 fi
2861 fi
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873 fi
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in cl
2877 do
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901
2902 fi
2903 fi
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2911 fi
2912
2913 test -n "$CC" && break
2914 done
2915 fi
2916 if test -z "$CC"; then
2917 ac_ct_CC=$CC
2918 for ac_prog in cl
2919 do
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2950 else
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2953 fi
2954
2955 test -n "$ac_ct_CC" && break
2956 done
2957
2958 CC=$ac_ct_CC
2959 fi
2960
2961 fi
2962
2963
2964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2969
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C compiler version" >&5
2973 ac_compiler=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev/null >&5) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev/null >&5) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev/null >&5) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2989
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997
2998 int
2999 main ()
3000 {
3001
3002 ;
3003 return 0;
3004 }
3005 _ACEOF
3006 ac_clean_files_save=$ac_clean_files
3007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3010 # of exeext.
3011 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3012 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # Find the output, starting from the most likely. This scheme is
3020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3021 # resort.
3022
3023 # Be careful to initialize this variable, since it used to be cached.
3024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3025 ac_cv_exeext=
3026 # b.out is created by i960 compilers.
3027 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3028 do
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3032 ;;
3033 conftest.$ac_ext )
3034 # This is the source file.
3035 ;;
3036 [ab].out )
3037 # We found the default executable, but exeext='' is most
3038 # certainly right.
3039 break;;
3040 *.* )
3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim.
3045 export ac_cv_exeext
3046 break;;
3047 * )
3048 break;;
3049 esac
3050 done
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&2;}
3059 { (exit 77); exit 77; }; }
3060 fi
3061
3062 ac_exeext=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
3065
3066 # Check the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try='./$ac_file'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 (eval $ac_try) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 cross_compiling=no
3080 else
3081 if test "$cross_compiling" = maybe; then
3082 cross_compiling=yes
3083 else
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092 fi
3093 fi
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3096
3097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3098 ac_clean_files=$ac_clean_files_save
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6
3105
3106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3116 # `rm'.
3117 for ac_file in conftest.exe conftest conftest.*; do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 export ac_cv_exeext
3123 break;;
3124 * ) break;;
3125 esac
3126 done
3127 else
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3133 fi
3134
3135 rm -f conftest$ac_cv_exeext
3136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3137 echo "${ECHO_T}$ac_cv_exeext" >&6
3138
3139 rm -f conftest.$ac_ext
3140 EXEEXT=$ac_cv_exeext
3141 ac_exeext=$EXEEXT
3142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3144 if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154
3155 int
3156 main ()
3157 {
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3185 fi
3186
3187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3188 fi
3189 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6
3191 OBJEXT=$ac_cv_objext
3192 ac_objext=$OBJEXT
3193 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_compiler_gnu=yes
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 ac_compiler_gnu=no
3235 fi
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3238
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3242 GCC=`test $ac_compiler_gnu = yes && echo yes`
3243 ac_test_CFLAGS=${CFLAGS+set}
3244 ac_save_CFLAGS=$CFLAGS
3245 CFLAGS="-g"
3246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 cat >conftest.$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_prog_cc_g=yes
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 ac_cv_prog_cc_g=no
3285 fi
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3287 fi
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3294 CFLAGS="-g -O2"
3295 else
3296 CFLAGS="-g"
3297 fi
3298 else
3299 if test "$GCC" = yes; then
3300 CFLAGS="-O2"
3301 else
3302 CFLAGS=
3303 fi
3304 fi
3305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 ac_cv_prog_cc_stdc=no
3311 ac_save_CC=$CC
3312 cat >conftest.$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <stdarg.h>
3320 #include <stdio.h>
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3327 char **p;
3328 int i;
3329 {
3330 return p[i];
3331 }
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3333 {
3334 char *s;
3335 va_list v;
3336 va_start (v,p);
3337 s = g (p, va_arg (v,int));
3338 va_end (v);
3339 return s;
3340 }
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345 int argc;
3346 char **argv;
3347 int
3348 main ()
3349 {
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3351 ;
3352 return 0;
3353 }
3354 _ACEOF
3355 # Don't try gcc -ansi; that turns off useful extensions and
3356 # breaks some systems' header files.
3357 # AIX -qlanglvl=ansi
3358 # Ultrix and OSF/1 -std1
3359 # HP-UX 10.20 and later -Ae
3360 # HP-UX older versions -Aa -D_HPUX_SOURCE
3361 # SVR4 -Xc -D__EXTENSIONS__
3362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 do
3364 CC="$ac_save_CC $ac_arg"
3365 rm -f conftest.$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cc_stdc=$ac_arg
3378 break
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 fi
3384 rm -f conftest.$ac_objext
3385 done
3386 rm -f conftest.$ac_ext conftest.$ac_objext
3387 CC=$ac_save_CC
3388
3389 fi
3390
3391 case "x$ac_cv_prog_cc_stdc" in
3392 x|xno)
3393 echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6 ;;
3395 *)
3396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3398 CC="$CC $ac_cv_prog_cc_stdc" ;;
3399 esac
3400
3401 # Some people use a C++ compiler to compile C. Since we use `exit',
3402 # in C++ we need to declare it. In case someone uses the same compiler
3403 # for both compiling C and C++ we need to have the C++ compiler decide
3404 # the declaration of exit, since it's the most demanding environment.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #ifndef __cplusplus
3407 choke me
3408 #endif
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration in \
3423 ''\
3424 '#include <stdlib.h>' \
3425 'extern "C" void std::exit (int) throw (); using std::exit;' \
3426 'extern "C" void std::exit (int); using std::exit;' \
3427 'extern "C" void exit (int) throw ();' \
3428 'extern "C" void exit (int);' \
3429 'void exit (int);'
3430 do
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line $LINENO "configure"
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #include <stdlib.h>
3439 $ac_declaration
3440 int
3441 main ()
3442 {
3443 exit (42);
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 :
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 continue
3466 fi
3467 rm -f conftest.$ac_objext conftest.$ac_ext
3468 cat >conftest.$ac_ext <<_ACEOF
3469 #line $LINENO "configure"
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 $ac_declaration
3476 int
3477 main ()
3478 {
3479 exit (42);
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 break
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 fi
3502 rm -f conftest.$ac_objext conftest.$ac_ext
3503 done
3504 rm -f conftest*
3505 if test -n "$ac_declaration"; then
3506 echo '#ifdef __cplusplus' >>confdefs.h
3507 echo $ac_declaration >>confdefs.h
3508 echo '#endif' >>confdefs.h
3509 fi
3510
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 fi
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3526 CPP=
3527 fi
3528
3529 #### Some systems specify a CPP to use unless we are using GCC.
3530 #### Now that we know whether we are using GCC, we can decide whether
3531 #### to use that one.
3532 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3533 then
3534 CPP="$NON_GNU_CPP"
3535 fi
3536
3537 #### Some systems specify a CC to use unless we are using GCC.
3538 #### Now that we know whether we are using GCC, we can decide whether
3539 #### to use that one.
3540 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3541 test x$cc_specified != xyes
3542 then
3543 CC="$NON_GNU_CC"
3544 fi
3545
3546 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3547 then
3548 CC="$CC $GCC_TEST_OPTIONS"
3549 fi
3550
3551 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3552 then
3553 CC="$CC $NON_GCC_TEST_OPTIONS"
3554 fi
3555
3556 #### Some other nice autoconf tests.
3557
3558 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3559 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3560 LN_S=$as_ln_s
3561 if test "$LN_S" = "ln -s"; then
3562 echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3564 else
3565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3566 echo "${ECHO_T}no, using $LN_S" >&6
3567 fi
3568
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3576 # On Suns, sometimes $CPP names a directory.
3577 if test -n "$CPP" && test -d "$CPP"; then
3578 CPP=
3579 fi
3580 if test -z "$CPP"; then
3581 if test "${ac_cv_prog_CPP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 # Double quotes because CPP needs to be expanded
3585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3586 do
3587 ac_preproc_ok=false
3588 for ac_c_preproc_warn_flag in '' yes
3589 do
3590 # Use a header file that comes with gcc, so configuring glibc
3591 # with a fresh cross-compiler works.
3592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3593 # <limits.h> exists even on freestanding compilers.
3594 # On the NeXT, cc -E runs the code through the compiler's parser,
3595 # not just through cpp. "Syntax error" is here to catch this case.
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #ifdef __STDC__
3604 # include <limits.h>
3605 #else
3606 # include <assert.h>
3607 #endif
3608 Syntax error
3609 _ACEOF
3610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null; then
3618 if test -s conftest.err; then
3619 ac_cpp_err=$ac_c_preproc_warn_flag
3620 else
3621 ac_cpp_err=
3622 fi
3623 else
3624 ac_cpp_err=yes
3625 fi
3626 if test -z "$ac_cpp_err"; then
3627 :
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 # Broken: fails on valid input.
3633 continue
3634 fi
3635 rm -f conftest.err conftest.$ac_ext
3636
3637 # OK, works on sane cases. Now check whether non-existent headers
3638 # can be detected and how.
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <ac_nonexistent.h>
3647 _ACEOF
3648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3650 ac_status=$?
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } >/dev/null; then
3656 if test -s conftest.err; then
3657 ac_cpp_err=$ac_c_preproc_warn_flag
3658 else
3659 ac_cpp_err=
3660 fi
3661 else
3662 ac_cpp_err=yes
3663 fi
3664 if test -z "$ac_cpp_err"; then
3665 # Broken: success on invalid input.
3666 continue
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 # Passes both tests.
3672 ac_preproc_ok=:
3673 break
3674 fi
3675 rm -f conftest.err conftest.$ac_ext
3676
3677 done
3678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679 rm -f conftest.err conftest.$ac_ext
3680 if $ac_preproc_ok; then
3681 break
3682 fi
3683
3684 done
3685 ac_cv_prog_CPP=$CPP
3686
3687 fi
3688 CPP=$ac_cv_prog_CPP
3689 else
3690 ac_cv_prog_CPP=$CPP
3691 fi
3692 echo "$as_me:$LINENO: result: $CPP" >&5
3693 echo "${ECHO_T}$CPP" >&6
3694 ac_preproc_ok=false
3695 for ac_c_preproc_warn_flag in '' yes
3696 do
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #ifdef __STDC__
3711 # include <limits.h>
3712 #else
3713 # include <assert.h>
3714 #endif
3715 Syntax error
3716 _ACEOF
3717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev/null; then
3725 if test -s conftest.err; then
3726 ac_cpp_err=$ac_c_preproc_warn_flag
3727 else
3728 ac_cpp_err=
3729 fi
3730 else
3731 ac_cpp_err=yes
3732 fi
3733 if test -z "$ac_cpp_err"; then
3734 :
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 # Broken: fails on valid input.
3740 continue
3741 fi
3742 rm -f conftest.err conftest.$ac_ext
3743
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.$ac_ext <<_ACEOF
3747 #line $LINENO "configure"
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3754 _ACEOF
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev/null; then
3763 if test -s conftest.err; then
3764 ac_cpp_err=$ac_c_preproc_warn_flag
3765 else
3766 ac_cpp_err=
3767 fi
3768 else
3769 ac_cpp_err=yes
3770 fi
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3773 continue
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778 # Passes both tests.
3779 ac_preproc_ok=:
3780 break
3781 fi
3782 rm -f conftest.err conftest.$ac_ext
3783
3784 done
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.$ac_ext
3787 if $ac_preproc_ok; then
3788 :
3789 else
3790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." >&5
3792 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3793 See \`config.log' for more details." >&2;}
3794 { (exit 1); exit 1; }; }
3795 fi
3796
3797 ac_ext=c
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802
3803 # Find a good install program. We prefer a C program (faster),
3804 # so one script is as good as another. But avoid the broken or
3805 # incompatible versions:
3806 # SysV /etc/install, /usr/sbin/install
3807 # SunOS /usr/etc/install
3808 # IRIX /sbin/install
3809 # AIX /bin/install
3810 # AmigaOS /C/install, which installs bootblocks on floppy discs
3811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3814 # ./install, which can be erroneously created by make from ./install.sh.
3815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3817 if test -z "$INSTALL"; then
3818 if test "${ac_cv_path_install+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 # Account for people who put trailing slashes in PATH elements.
3827 case $as_dir/ in
3828 ./ | .// | /cC/* | \
3829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3830 /usr/ucb/* ) ;;
3831 *)
3832 # OSF1 and SCO ODT 3.0 have their own names for install.
3833 # Don't use installbsd from OSF since it installs stuff as root
3834 # by default.
3835 for ac_prog in ginstall scoinst install; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3838 if test $ac_prog = install &&
3839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840 # AIX install. It has an incompatible calling convention.
3841 :
3842 elif test $ac_prog = install &&
3843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3844 # program-specific install script used by HP pwplus--don't use.
3845 :
3846 else
3847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848 break 3
3849 fi
3850 fi
3851 done
3852 done
3853 ;;
3854 esac
3855 done
3856
3857
3858 fi
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL=$ac_cv_path_install
3861 else
3862 # As a last resort, use the slow shell script. We don't cache a
3863 # path for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the path is relative.
3866 INSTALL=$ac_install_sh
3867 fi
3868 fi
3869 echo "$as_me:$LINENO: result: $INSTALL" >&5
3870 echo "${ECHO_T}$INSTALL" >&6
3871
3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873 # It thinks the first close brace ends the variable substitution.
3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880 if test "x$RANLIB" = x; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$RANLIB"; then
3890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905
3906 fi
3907 fi
3908 RANLIB=$ac_cv_prog_RANLIB
3909 if test -n "$RANLIB"; then
3910 echo "$as_me:$LINENO: result: $RANLIB" >&5
3911 echo "${ECHO_T}$RANLIB" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 fi
3918 if test -z "$ac_cv_prog_RANLIB"; then
3919 ac_ct_RANLIB=$RANLIB
3920 # Extract the first word of "ranlib", so it can be a program name with args.
3921 set dummy ranlib; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$ac_ct_RANLIB"; then
3928 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_RANLIB="ranlib"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943
3944 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3945 fi
3946 fi
3947 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3948 if test -n "$ac_ct_RANLIB"; then
3949 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3950 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3951 else
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3954 fi
3955
3956 RANLIB=$ac_ct_RANLIB
3957 else
3958 RANLIB="$ac_cv_prog_RANLIB"
3959 fi
3960
3961 fi
3962 # Extract the first word of "install-info", so it can be a program name with args.
3963 set dummy install-info; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 case $INSTALL_INFO in
3970 [\\/]* | ?:[\\/]*)
3971 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3972 ;;
3973 *)
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987
3988 ;;
3989 esac
3990 fi
3991 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3992
3993 if test -n "$INSTALL_INFO"; then
3994 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3995 echo "${ECHO_T}$INSTALL_INFO" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001 # Extract the first word of "install-info", so it can be a program name with args.
4002 set dummy install-info; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 case $INSTALL_INFO in
4009 [\\/]* | ?:[\\/]*)
4010 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4011 ;;
4012 *)
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in /usr/sbin
4015 do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024 done
4025 done
4026
4027 ;;
4028 esac
4029 fi
4030 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4031
4032 if test -n "$INSTALL_INFO"; then
4033 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4034 echo "${ECHO_T}$INSTALL_INFO" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038 fi
4039
4040 # Extract the first word of "install-info", so it can be a program name with args.
4041 set dummy install-info; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 case $INSTALL_INFO in
4048 [\\/]* | ?:[\\/]*)
4049 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4050 ;;
4051 *)
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in /sbin
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065
4066 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4067 ;;
4068 esac
4069 fi
4070 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4071
4072 if test -n "$INSTALL_INFO"; then
4073 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4074 echo "${ECHO_T}$INSTALL_INFO" >&6
4075 else
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079
4080
4081
4082 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4083 then
4084 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4085 fi
4086
4087 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4088 then
4089 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4090 fi
4091
4092
4093
4094 echo "$as_me:$LINENO: checking for egrep" >&5
4095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4096 if test "${ac_cv_prog_egrep+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4100 then ac_cv_prog_egrep='grep -E'
4101 else ac_cv_prog_egrep='egrep'
4102 fi
4103 fi
4104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4106 EGREP=$ac_cv_prog_egrep
4107
4108
4109
4110 echo "$as_me:$LINENO: checking for AIX" >&5
4111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4112 cat >conftest.$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #ifdef _AIX
4120 yes
4121 #endif
4122
4123 _ACEOF
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "yes" >/dev/null 2>&1; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6
4128 cat >>confdefs.h <<\_ACEOF
4129 #define _ALL_SOURCE 1
4130 _ACEOF
4131
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4135 fi
4136 rm -f conftest*
4137
4138
4139
4140 #### Extract some information from the operating system and machine files.
4141
4142 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4143 - which libraries the lib-src programs will want, and
4144 - whether the GNU malloc routines are usable..." >&5
4145 echo "$as_me: checking the machine- and system-dependent files to find out
4146 - which libraries the lib-src programs will want, and
4147 - whether the GNU malloc routines are usable..." >&6;}
4148
4149 ### First figure out CFLAGS (which we use for running the compiler here)
4150 ### and REAL_CFLAGS (which we use for real compilation).
4151 ### The two are the same except on a few systems, where they are made
4152 ### different to work around various lossages. For example,
4153 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4154 ### as implying static linking.
4155
4156 ### If the CFLAGS env var is specified, we use that value
4157 ### instead of the default.
4158
4159 ### It's not important that this name contain the PID; you can't run
4160 ### two configures in the same directory and have anything work
4161 ### anyway.
4162 tempcname="conftest.c"
4163
4164 echo '
4165 #include "'${srcdir}'/src/'${opsysfile}'"
4166 #include "'${srcdir}'/src/'${machfile}'"
4167 #ifndef LIBS_MACHINE
4168 #define LIBS_MACHINE
4169 #endif
4170 #ifndef LIBS_SYSTEM
4171 #define LIBS_SYSTEM
4172 #endif
4173 #ifndef C_SWITCH_SYSTEM
4174 #define C_SWITCH_SYSTEM
4175 #endif
4176 #ifndef C_SWITCH_MACHINE
4177 #define C_SWITCH_MACHINE
4178 #endif
4179 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4180 configure___ c_switch_system=C_SWITCH_SYSTEM
4181 configure___ c_switch_machine=C_SWITCH_MACHINE
4182
4183 #ifndef LIB_X11_LIB
4184 #define LIB_X11_LIB -lX11
4185 #endif
4186
4187 #ifndef LIBX11_MACHINE
4188 #define LIBX11_MACHINE
4189 #endif
4190
4191 #ifndef LIBX11_SYSTEM
4192 #define LIBX11_SYSTEM
4193 #endif
4194 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4195
4196 #ifdef UNEXEC
4197 configure___ unexec=UNEXEC
4198 #else
4199 configure___ unexec=unexec.o
4200 #endif
4201
4202 #ifdef SYSTEM_MALLOC
4203 configure___ system_malloc=yes
4204 #else
4205 configure___ system_malloc=no
4206 #endif
4207
4208 #ifdef USE_MMAP_FOR_BUFFERS
4209 configure___ use_mmap_for_buffers=yes
4210 #else
4211 configure___ use_mmap_for_buffers=no
4212 #endif
4213
4214 #ifndef C_DEBUG_SWITCH
4215 #define C_DEBUG_SWITCH -g
4216 #endif
4217
4218 #ifndef C_OPTIMIZE_SWITCH
4219 #ifdef __GNUC__
4220 #define C_OPTIMIZE_SWITCH -O2
4221 #else
4222 #define C_OPTIMIZE_SWITCH -O
4223 #endif
4224 #endif
4225
4226 #ifndef LD_SWITCH_MACHINE
4227 #define LD_SWITCH_MACHINE
4228 #endif
4229
4230 #ifndef LD_SWITCH_SYSTEM
4231 #define LD_SWITCH_SYSTEM
4232 #endif
4233
4234 #ifndef LD_SWITCH_X_SITE_AUX
4235 #define LD_SWITCH_X_SITE_AUX
4236 #endif
4237
4238 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4239 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4240
4241 #ifdef THIS_IS_CONFIGURE
4242
4243 /* Get the CFLAGS for tests in configure. */
4244 #ifdef __GNUC__
4245 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4246 #else
4247 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4248 #endif
4249
4250 #else /* not THIS_IS_CONFIGURE */
4251
4252 /* Get the CFLAGS for real compilation. */
4253 #ifdef __GNUC__
4254 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4255 #else
4256 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4257 #endif
4258
4259 #endif /* not THIS_IS_CONFIGURE */
4260 ' > ${tempcname}
4261
4262 # The value of CPP is a quoted variable reference, so we need to do this
4263 # to get its actual value...
4264 CPP=`eval "echo $CPP"`
4265 eval `${CPP} -Isrc ${tempcname} \
4266 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4267 if test "x$SPECIFIED_CFLAGS" = x; then
4268 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4269 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4270 else
4271 REAL_CFLAGS="$CFLAGS"
4272 fi
4273 rm ${tempcname}
4274
4275 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4276
4277 ### Make sure subsequent tests use flags consistent with the build flags.
4278
4279 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4280 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4281 else
4282 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4283 fi
4284
4285
4286
4287
4288 cat >>confdefs.h <<\_ACEOF
4289 #define _GNU_SOURCE 1
4290 _ACEOF
4291
4292
4293
4294 # Check whether --enable-largefile or --disable-largefile was given.
4295 if test "${enable_largefile+set}" = set; then
4296 enableval="$enable_largefile"
4297
4298 fi;
4299 if test "$enable_largefile" != no; then
4300
4301 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4302 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4303 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306 ac_cv_sys_largefile_CC=no
4307 if test "$GCC" != yes; then
4308 ac_save_CC=$CC
4309 while :; do
4310 # IRIX 6.2 and later do not support large files by default,
4311 # so use the C compiler's -n32 option if that helps.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 #line $LINENO "configure"
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <sys/types.h>
4320 /* Check that off_t can represent 2**63 - 1 correctly.
4321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4322 since some C++ compilers masquerading as C compilers
4323 incorrectly reject 9223372036854775807. */
4324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4326 && LARGE_OFF_T % 2147483647 == 1)
4327 ? 1 : -1];
4328 int
4329 main ()
4330 {
4331
4332 ;
4333 return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 break
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353 fi
4354 rm -f conftest.$ac_objext
4355 CC="$CC -n32"
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_sys_largefile_CC=' -n32'; break
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 fi
4374 rm -f conftest.$ac_objext
4375 break
4376 done
4377 CC=$ac_save_CC
4378 rm -f conftest.$ac_ext
4379 fi
4380 fi
4381 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4382 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4383 if test "$ac_cv_sys_largefile_CC" != no; then
4384 CC=$CC$ac_cv_sys_largefile_CC
4385 fi
4386
4387 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4388 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4389 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 while :; do
4393 ac_cv_sys_file_offset_bits=no
4394 cat >conftest.$ac_ext <<_ACEOF
4395 #line $LINENO "configure"
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include <sys/types.h>
4402 /* Check that off_t can represent 2**63 - 1 correctly.
4403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4404 since some C++ compilers masquerading as C compilers
4405 incorrectly reject 9223372036854775807. */
4406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4408 && LARGE_OFF_T % 2147483647 == 1)
4409 ? 1 : -1];
4410 int
4411 main ()
4412 {
4413
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 break
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 fi
4436 rm -f conftest.$ac_objext conftest.$ac_ext
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #define _FILE_OFFSET_BITS 64
4445 #include <sys/types.h>
4446 /* Check that off_t can represent 2**63 - 1 correctly.
4447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4448 since some C++ compilers masquerading as C compilers
4449 incorrectly reject 9223372036854775807. */
4450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4452 && LARGE_OFF_T % 2147483647 == 1)
4453 ? 1 : -1];
4454 int
4455 main ()
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_sys_file_offset_bits=64; break
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 fi
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4481 break
4482 done
4483 fi
4484 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4485 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4486 if test "$ac_cv_sys_file_offset_bits" != no; then
4487
4488 cat >>confdefs.h <<_ACEOF
4489 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4490 _ACEOF
4491
4492 fi
4493 rm -f conftest*
4494 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4495 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4496 if test "${ac_cv_sys_large_files+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 while :; do
4500 ac_cv_sys_large_files=no
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4516 ? 1 : -1];
4517 int
4518 main ()
4519 {
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 break
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 fi
4543 rm -f conftest.$ac_objext conftest.$ac_ext
4544 cat >conftest.$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #define _LARGE_FILES 1
4552 #include <sys/types.h>
4553 /* Check that off_t can represent 2**63 - 1 correctly.
4554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4555 since some C++ compilers masquerading as C compilers
4556 incorrectly reject 9223372036854775807. */
4557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4559 && LARGE_OFF_T % 2147483647 == 1)
4560 ? 1 : -1];
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_sys_large_files=1; break
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 fi
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588 break
4589 done
4590 fi
4591 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4592 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4593 if test "$ac_cv_sys_large_files" != no; then
4594
4595 cat >>confdefs.h <<_ACEOF
4596 #define _LARGE_FILES $ac_cv_sys_large_files
4597 _ACEOF
4598
4599 fi
4600 rm -f conftest*
4601 fi
4602
4603
4604 if test "${with_sound}" != "no"; then
4605 # Sound support for GNU/Linux and the free BSDs.
4606 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4607 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4608 if test "${ac_cv_header_stdc+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 cat >conftest.$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 #include <stdlib.h>
4619 #include <stdarg.h>
4620 #include <string.h>
4621 #include <float.h>
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_cv_header_stdc=yes
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest.$ac_objext conftest.$ac_ext
4651
4652 if test $ac_cv_header_stdc = yes; then
4653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 #include <string.h>
4662
4663 _ACEOF
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "memchr" >/dev/null 2>&1; then
4666 :
4667 else
4668 ac_cv_header_stdc=no
4669 fi
4670 rm -f conftest*
4671
4672 fi
4673
4674 if test $ac_cv_header_stdc = yes; then
4675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4676 cat >conftest.$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 #include <stdlib.h>
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "free" >/dev/null 2>&1; then
4688 :
4689 else
4690 ac_cv_header_stdc=no
4691 fi
4692 rm -f conftest*
4693
4694 fi
4695
4696 if test $ac_cv_header_stdc = yes; then
4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698 if test "$cross_compiling" = yes; then
4699 :
4700 else
4701 cat >conftest.$ac_ext <<_ACEOF
4702 #line $LINENO "configure"
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <ctype.h>
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 #else
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718 #endif
4719
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721 int
4722 main ()
4723 {
4724 int i;
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4728 exit(2);
4729 exit (0);
4730 }
4731 _ACEOF
4732 rm -f conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 :
4744 else
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ( exit $ac_status )
4750 ac_cv_header_stdc=no
4751 fi
4752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 fi
4755 fi
4756 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4757 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4758 if test $ac_cv_header_stdc = yes; then
4759
4760 cat >>confdefs.h <<\_ACEOF
4761 #define STDC_HEADERS 1
4762 _ACEOF
4763
4764 fi
4765
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4777 inttypes.h stdint.h unistd.h
4778 do
4779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4793
4794 #include <$ac_header>
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 eval "$as_ac_Header=yes"
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 eval "$as_ac_Header=no"
4814 fi
4815 rm -f conftest.$ac_objext conftest.$ac_ext
4816 fi
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4822 _ACEOF
4823
4824 fi
4825
4826 done
4827
4828
4829
4830
4831
4832 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4833 do
4834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 fi
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 else
4844 # Is the header compilable?
4845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #line $LINENO "configure"
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 $ac_includes_default
4855 #include <$ac_header>
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_header_compiler=no
4875 fi
4876 rm -f conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 echo "${ECHO_T}$ac_header_compiler" >&6
4879
4880 # Is the header present?
4881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <$ac_header>
4891 _ACEOF
4892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null; then
4900 if test -s conftest.err; then
4901 ac_cpp_err=$ac_c_preproc_warn_flag
4902 else
4903 ac_cpp_err=
4904 fi
4905 else
4906 ac_cpp_err=yes
4907 fi
4908 if test -z "$ac_cpp_err"; then
4909 ac_header_preproc=yes
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 ac_header_preproc=no
4915 fi
4916 rm -f conftest.err conftest.$ac_ext
4917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918 echo "${ECHO_T}$ac_header_preproc" >&6
4919
4920 # So? What about this header?
4921 case $ac_header_compiler:$ac_header_preproc in
4922 yes:no )
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4927 (
4928 cat <<\_ASBOX
4929 ## ------------------------------------ ##
4930 ## Report this to bug-autoconf@gnu.org. ##
4931 ## ------------------------------------ ##
4932 _ASBOX
4933 ) |
4934 sed "s/^/$as_me: WARNING: /" >&2
4935 ;;
4936 no:yes )
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4943 (
4944 cat <<\_ASBOX
4945 ## ------------------------------------ ##
4946 ## Report this to bug-autoconf@gnu.org. ##
4947 ## ------------------------------------ ##
4948 _ASBOX
4949 ) |
4950 sed "s/^/$as_me: WARNING: /" >&2
4951 ;;
4952 esac
4953 echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 eval "$as_ac_Header=$ac_header_preproc"
4959 fi
4960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4962
4963 fi
4964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4965 cat >>confdefs.h <<_ACEOF
4966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 _ACEOF
4968
4969 fi
4970
4971 done
4972
4973 # Emulation library used on NetBSD.
4974 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4975 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4976 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 ac_check_lib_save_LIBS=$LIBS
4980 LIBS="-lossaudio $LIBS"
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 #ifdef __cplusplus
4991 extern "C"
4992 #endif
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4995 char _oss_ioctl ();
4996 int
4997 main ()
4998 {
4999 _oss_ioctl ();
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext conftest$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_ossaudio__oss_ioctl=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ac_cv_lib_ossaudio__oss_ioctl=no
5022 fi
5023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5024 LIBS=$ac_check_lib_save_LIBS
5025 fi
5026 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5027 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5028 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5029 LIBSOUND=-lossaudio
5030 else
5031 LIBSOUND=
5032 fi
5033
5034
5035 fi
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5061 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5062 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5063 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5064 do
5065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067 echo "$as_me:$LINENO: checking for $ac_header" >&5
5068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 fi
5072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5074 else
5075 # Is the header compilable?
5076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5078 cat >conftest.$ac_ext <<_ACEOF
5079 #line $LINENO "configure"
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5086 #include <$ac_header>
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_header_compiler=yes
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_header_compiler=no
5106 fi
5107 rm -f conftest.$ac_objext conftest.$ac_ext
5108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5109 echo "${ECHO_T}$ac_header_compiler" >&6
5110
5111 # Is the header present?
5112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5114 cat >conftest.$ac_ext <<_ACEOF
5115 #line $LINENO "configure"
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <$ac_header>
5122 _ACEOF
5123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then
5132 ac_cpp_err=$ac_c_preproc_warn_flag
5133 else
5134 ac_cpp_err=
5135 fi
5136 else
5137 ac_cpp_err=yes
5138 fi
5139 if test -z "$ac_cpp_err"; then
5140 ac_header_preproc=yes
5141 else
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 ac_header_preproc=no
5146 fi
5147 rm -f conftest.err conftest.$ac_ext
5148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5149 echo "${ECHO_T}$ac_header_preproc" >&6
5150
5151 # So? What about this header?
5152 case $ac_header_compiler:$ac_header_preproc in
5153 yes:no )
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5158 (
5159 cat <<\_ASBOX
5160 ## ------------------------------------ ##
5161 ## Report this to bug-autoconf@gnu.org. ##
5162 ## ------------------------------------ ##
5163 _ASBOX
5164 ) |
5165 sed "s/^/$as_me: WARNING: /" >&2
5166 ;;
5167 no:yes )
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5174 (
5175 cat <<\_ASBOX
5176 ## ------------------------------------ ##
5177 ## Report this to bug-autoconf@gnu.org. ##
5178 ## ------------------------------------ ##
5179 _ASBOX
5180 ) |
5181 sed "s/^/$as_me: WARNING: /" >&2
5182 ;;
5183 esac
5184 echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 eval "$as_ac_Header=$ac_header_preproc"
5190 fi
5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193
5194 fi
5195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5196 cat >>confdefs.h <<_ACEOF
5197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5198 _ACEOF
5199
5200 fi
5201
5202 done
5203
5204
5205 for ac_header in term.h
5206 do
5207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 #include <$ac_header>
5221 _ACEOF
5222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null; then
5230 if test -s conftest.err; then
5231 ac_cpp_err=$ac_c_preproc_warn_flag
5232 else
5233 ac_cpp_err=
5234 fi
5235 else
5236 ac_cpp_err=yes
5237 fi
5238 if test -z "$ac_cpp_err"; then
5239 eval "$as_ac_Header=yes"
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 eval "$as_ac_Header=no"
5245 fi
5246 rm -f conftest.err conftest.$ac_ext
5247 fi
5248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h <<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5254
5255 fi
5256
5257 done
5258
5259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5261 if test "${ac_cv_header_stdc+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5271 #include <stdlib.h>
5272 #include <stdarg.h>
5273 #include <string.h>
5274 #include <float.h>
5275
5276 int
5277 main ()
5278 {
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_header_stdc=yes
5297 else
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 ac_cv_header_stdc=no
5302 fi
5303 rm -f conftest.$ac_objext conftest.$ac_ext
5304
5305 if test $ac_cv_header_stdc = yes; then
5306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <string.h>
5315
5316 _ACEOF
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "memchr" >/dev/null 2>&1; then
5319 :
5320 else
5321 ac_cv_header_stdc=no
5322 fi
5323 rm -f conftest*
5324
5325 fi
5326
5327 if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat >conftest.$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #include <stdlib.h>
5337
5338 _ACEOF
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 $EGREP "free" >/dev/null 2>&1; then
5341 :
5342 else
5343 ac_cv_header_stdc=no
5344 fi
5345 rm -f conftest*
5346
5347 fi
5348
5349 if test $ac_cv_header_stdc = yes; then
5350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5351 if test "$cross_compiling" = yes; then
5352 :
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 #line $LINENO "configure"
5356 /* confdefs.h. */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 #include <ctype.h>
5362 #if ((' ' & 0x0FF) == 0x020)
5363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5365 #else
5366 # define ISLOWER(c) \
5367 (('a' <= (c) && (c) <= 'i') \
5368 || ('j' <= (c) && (c) <= 'r') \
5369 || ('s' <= (c) && (c) <= 'z'))
5370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5371 #endif
5372
5373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5374 int
5375 main ()
5376 {
5377 int i;
5378 for (i = 0; i < 256; i++)
5379 if (XOR (islower (i), ISLOWER (i))
5380 || toupper (i) != TOUPPER (i))
5381 exit(2);
5382 exit (0);
5383 }
5384 _ACEOF
5385 rm -f conftest$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387 (eval $ac_link) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 :
5397 else
5398 echo "$as_me: program exited with status $ac_status" >&5
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 ( exit $ac_status )
5403 ac_cv_header_stdc=no
5404 fi
5405 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5406 fi
5407 fi
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5411 if test $ac_cv_header_stdc = yes; then
5412
5413 cat >>confdefs.h <<\_ACEOF
5414 #define STDC_HEADERS 1
5415 _ACEOF
5416
5417 fi
5418
5419 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5420 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5421 if test "${ac_cv_header_time+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424 cat >conftest.$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 #include <sys/time.h>
5433 #include <time.h>
5434
5435 int
5436 main ()
5437 {
5438 if ((struct tm *) 0)
5439 return 0;
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_header_time=yes
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 ac_cv_header_time=no
5462 fi
5463 rm -f conftest.$ac_objext conftest.$ac_ext
5464 fi
5465 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5466 echo "${ECHO_T}$ac_cv_header_time" >&6
5467 if test $ac_cv_header_time = yes; then
5468
5469 cat >>confdefs.h <<\_ACEOF
5470 #define TIME_WITH_SYS_TIME 1
5471 _ACEOF
5472
5473 fi
5474
5475 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5476 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5477 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 cat >conftest.$ac_ext <<_ACEOF
5481 #line $LINENO "configure"
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5488 int
5489 main ()
5490 {
5491 #ifndef sys_siglist
5492 char *p = (char *) sys_siglist;
5493 #endif
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_have_decl_sys_siglist=yes
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_cv_have_decl_sys_siglist=no
5517 fi
5518 rm -f conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5521 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5522 if test $ac_cv_have_decl_sys_siglist = yes; then
5523
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_DECL_SYS_SIGLIST 1
5526 _ACEOF
5527
5528
5529 else
5530 cat >>confdefs.h <<_ACEOF
5531 #define HAVE_DECL_SYS_SIGLIST 0
5532 _ACEOF
5533
5534
5535 fi
5536
5537
5538 if test $ac_cv_have_decl_sys_siglist != yes; then
5539 # For Tru64, at least:
5540 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5541 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5542 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 else
5545 cat >conftest.$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5553 int
5554 main ()
5555 {
5556 #ifndef __sys_siglist
5557 char *p = (char *) __sys_siglist;
5558 #endif
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_have_decl___sys_siglist=yes
5577 else
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581 ac_cv_have_decl___sys_siglist=no
5582 fi
5583 rm -f conftest.$ac_objext conftest.$ac_ext
5584 fi
5585 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5586 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5587 if test $ac_cv_have_decl___sys_siglist = yes; then
5588
5589 cat >>confdefs.h <<_ACEOF
5590 #define HAVE_DECL___SYS_SIGLIST 1
5591 _ACEOF
5592
5593
5594 else
5595 cat >>confdefs.h <<_ACEOF
5596 #define HAVE_DECL___SYS_SIGLIST 0
5597 _ACEOF
5598
5599
5600 fi
5601
5602
5603 if test $ac_cv_have_decl___sys_siglist = yes; then
5604
5605 cat >>confdefs.h <<\_ACEOF
5606 #define sys_siglist __sys_siglist
5607 _ACEOF
5608
5609 fi
5610 fi
5611 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5612 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <sys/wait.h>
5625 #ifndef WEXITSTATUS
5626 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5627 #endif
5628 #ifndef WIFEXITED
5629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5630 #endif
5631
5632 int
5633 main ()
5634 {
5635 int s;
5636 wait (&s);
5637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_header_sys_wait_h=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659 ac_cv_header_sys_wait_h=no
5660 fi
5661 rm -f conftest.$ac_objext conftest.$ac_ext
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5664 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5665 if test $ac_cv_header_sys_wait_h = yes; then
5666
5667 cat >>confdefs.h <<\_ACEOF
5668 #define HAVE_SYS_WAIT_H 1
5669 _ACEOF
5670
5671 fi
5672
5673
5674 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5675 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #ifdef TIME_WITH_SYS_TIME
5687 #include <sys/time.h>
5688 #include <time.h>
5689 #else
5690 #ifdef HAVE_SYS_TIME_H
5691 #include <sys/time.h>
5692 #else
5693 #include <time.h>
5694 #endif
5695 #endif
5696 #ifdef HAVE_UTIME_H
5697 #include <utime.h>
5698 #endif
5699 int
5700 main ()
5701 {
5702 static struct utimbuf x; x.actime = x.modtime;
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 emacs_cv_struct_utimbuf=yes
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 emacs_cv_struct_utimbuf=no
5725 fi
5726 rm -f conftest.$ac_objext conftest.$ac_ext
5727 fi
5728 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5729 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5730 if test $emacs_cv_struct_utimbuf = yes; then
5731
5732 cat >>confdefs.h <<\_ACEOF
5733 #define HAVE_STRUCT_UTIMBUF 1
5734 _ACEOF
5735
5736 fi
5737
5738 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5739 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5740 if test "${ac_cv_type_signal+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 #line $LINENO "configure"
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 #include <signal.h>
5752 #ifdef signal
5753 # undef signal
5754 #endif
5755 #ifdef __cplusplus
5756 extern "C" void (*signal (int, void (*)(int)))(int);
5757 #else
5758 void (*signal ()) ();
5759 #endif
5760
5761 int
5762 main ()
5763 {
5764 int i;
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_type_signal=void
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 ac_cv_type_signal=int
5787 fi
5788 rm -f conftest.$ac_objext conftest.$ac_ext
5789 fi
5790 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5791 echo "${ECHO_T}$ac_cv_type_signal" >&6
5792
5793 cat >>confdefs.h <<_ACEOF
5794 #define RETSIGTYPE $ac_cv_type_signal
5795 _ACEOF
5796
5797
5798
5799 echo "$as_me:$LINENO: checking for speed_t" >&5
5800 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5801 if test "${emacs_cv_speed_t+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <termios.h>
5812 int
5813 main ()
5814 {
5815 speed_t x = 1;
5816 ;
5817 return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 emacs_cv_speed_t=yes
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 emacs_cv_speed_t=no
5838 fi
5839 rm -f conftest.$ac_objext conftest.$ac_ext
5840 fi
5841 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5842 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5843 if test $emacs_cv_speed_t = yes; then
5844
5845 cat >>confdefs.h <<\_ACEOF
5846 #define HAVE_SPEED_T 1
5847 _ACEOF
5848
5849 fi
5850
5851 echo "$as_me:$LINENO: checking for struct timeval" >&5
5852 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5853 if test "${emacs_cv_struct_timeval+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #ifdef TIME_WITH_SYS_TIME
5864 #include <sys/time.h>
5865 #include <time.h>
5866 #else
5867 #ifdef HAVE_SYS_TIME_H
5868 #include <sys/time.h>
5869 #else
5870 #include <time.h>
5871 #endif
5872 #endif
5873 int
5874 main ()
5875 {
5876 static struct timeval x; x.tv_sec = x.tv_usec;
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 emacs_cv_struct_timeval=yes
5894 else
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 emacs_cv_struct_timeval=no
5899 fi
5900 rm -f conftest.$ac_objext conftest.$ac_ext
5901 fi
5902 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5903 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5904 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5905 if test $emacs_cv_struct_timeval = yes; then
5906
5907 cat >>confdefs.h <<\_ACEOF
5908 #define HAVE_TIMEVAL 1
5909 _ACEOF
5910
5911 fi
5912
5913 echo "$as_me:$LINENO: checking for struct exception" >&5
5914 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5915 if test "${emacs_cv_struct_exception+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #include <math.h>
5926 int
5927 main ()
5928 {
5929 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5930 ;
5931 return 0;
5932 }
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 emacs_cv_struct_exception=yes
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 emacs_cv_struct_exception=no
5952 fi
5953 rm -f conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5956 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5957 HAVE_EXCEPTION=$emacs_cv_struct_exception
5958 if test $emacs_cv_struct_exception != yes; then
5959
5960 cat >>confdefs.h <<\_ACEOF
5961 #define NO_MATHERR 1
5962 _ACEOF
5963
5964 fi
5965
5966 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5968 if test "${ac_cv_struct_tm+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 cat >conftest.$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 #include <time.h>
5980
5981 int
5982 main ()
5983 {
5984 struct tm *tp; tp->tm_sec;
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_struct_tm=time.h
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 ac_cv_struct_tm=sys/time.h
6007 fi
6008 rm -f conftest.$ac_objext conftest.$ac_ext
6009 fi
6010 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6011 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6012 if test $ac_cv_struct_tm = sys/time.h; then
6013
6014 cat >>confdefs.h <<\_ACEOF
6015 #define TM_IN_SYS_TIME 1
6016 _ACEOF
6017
6018 fi
6019
6020 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6021 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6022 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 #include <$ac_cv_struct_tm>
6034
6035
6036 int
6037 main ()
6038 {
6039 static struct tm ac_aggr;
6040 if (ac_aggr.tm_zone)
6041 return 0;
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -s conftest.$ac_objext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 ac_cv_member_struct_tm_tm_zone=yes
6059 else
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 #include <$ac_cv_struct_tm>
6072
6073
6074 int
6075 main ()
6076 {
6077 static struct tm ac_aggr;
6078 if (sizeof ac_aggr.tm_zone)
6079 return 0;
6080 ;
6081 return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_member_struct_tm_tm_zone=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_member_struct_tm_tm_zone=no
6102 fi
6103 rm -f conftest.$ac_objext conftest.$ac_ext
6104 fi
6105 rm -f conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6108 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6109 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define HAVE_STRUCT_TM_TM_ZONE 1
6113 _ACEOF
6114
6115
6116 fi
6117
6118 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6119
6120 cat >>confdefs.h <<\_ACEOF
6121 #define HAVE_TM_ZONE 1
6122 _ACEOF
6123
6124 else
6125 echo "$as_me:$LINENO: checking for tzname" >&5
6126 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6127 if test "${ac_cv_var_tzname+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <time.h>
6138 #ifndef tzname /* For SGI. */
6139 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6140 #endif
6141
6142 int
6143 main ()
6144 {
6145 atoi(*tzname);
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_var_tzname=yes
6163 else
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_cv_var_tzname=no
6168 fi
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 fi
6171 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6172 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6173 if test $ac_cv_var_tzname = yes; then
6174
6175 cat >>confdefs.h <<\_ACEOF
6176 #define HAVE_TZNAME 1
6177 _ACEOF
6178
6179 fi
6180 fi
6181
6182 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6183 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6184 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 cat >conftest.$ac_ext <<_ACEOF
6188 #line $LINENO "configure"
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <time.h>
6195
6196 int
6197 main ()
6198 {
6199 static struct tm ac_aggr;
6200 if (ac_aggr.tm_gmtoff)
6201 return 0;
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_member_struct_tm_tm_gmtoff=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <time.h>
6231
6232 int
6233 main ()
6234 {
6235 static struct tm ac_aggr;
6236 if (sizeof ac_aggr.tm_gmtoff)
6237 return 0;
6238 ;
6239 return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_member_struct_tm_tm_gmtoff=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 ac_cv_member_struct_tm_tm_gmtoff=no
6260 fi
6261 rm -f conftest.$ac_objext conftest.$ac_ext
6262 fi
6263 rm -f conftest.$ac_objext conftest.$ac_ext
6264 fi
6265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6266 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6267 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 #define HAVE_TM_GMTOFF 1
6271 _ACEOF
6272
6273 fi
6274
6275 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6276 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6277 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280 cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6282 /* confdefs.h. */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 #include <net/if.h>
6288
6289 int
6290 main ()
6291 {
6292 static struct ifreq ac_aggr;
6293 if (ac_aggr.ifr_flags)
6294 return 0;
6295 ;
6296 return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_member_struct_ifreq_ifr_flags=yes
6312 else
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <net/if.h>
6324
6325 int
6326 main ()
6327 {
6328 static struct ifreq ac_aggr;
6329 if (sizeof ac_aggr.ifr_flags)
6330 return 0;
6331 ;
6332 return 0;
6333 }
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_member_struct_ifreq_ifr_flags=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352 ac_cv_member_struct_ifreq_ifr_flags=no
6353 fi
6354 rm -f conftest.$ac_objext conftest.$ac_ext
6355 fi
6356 rm -f conftest.$ac_objext conftest.$ac_ext
6357 fi
6358 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6359 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6360 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6361
6362 cat >>confdefs.h <<_ACEOF
6363 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6364 _ACEOF
6365
6366
6367 fi
6368 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6369 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6370 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 cat >conftest.$ac_ext <<_ACEOF
6374 #line $LINENO "configure"
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <net/if.h>
6381
6382 int
6383 main ()
6384 {
6385 static struct ifreq ac_aggr;
6386 if (ac_aggr.ifr_hwaddr)
6387 return 0;
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 cat >conftest.$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 #include <net/if.h>
6417
6418 int
6419 main ()
6420 {
6421 static struct ifreq ac_aggr;
6422 if (sizeof ac_aggr.ifr_hwaddr)
6423 return 0;
6424 ;
6425 return 0;
6426 }
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_cv_member_struct_ifreq_ifr_hwaddr=no
6446 fi
6447 rm -f conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 rm -f conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6452 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6453 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6457 _ACEOF
6458
6459
6460 fi
6461 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6462 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6463 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <net/if.h>
6474
6475 int
6476 main ()
6477 {
6478 static struct ifreq ac_aggr;
6479 if (ac_aggr.ifr_netmask)
6480 return 0;
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_cv_member_struct_ifreq_ifr_netmask=yes
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 cat >conftest.$ac_ext <<_ACEOF
6503 #line $LINENO "configure"
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <net/if.h>
6510
6511 int
6512 main ()
6513 {
6514 static struct ifreq ac_aggr;
6515 if (sizeof ac_aggr.ifr_netmask)
6516 return 0;
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_cv_member_struct_ifreq_ifr_netmask=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 ac_cv_member_struct_ifreq_ifr_netmask=no
6539 fi
6540 rm -f conftest.$ac_objext conftest.$ac_ext
6541 fi
6542 rm -f conftest.$ac_objext conftest.$ac_ext
6543 fi
6544 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6545 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6546 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6550 _ACEOF
6551
6552
6553 fi
6554 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6555 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6556 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559 cat >conftest.$ac_ext <<_ACEOF
6560 #line $LINENO "configure"
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #include <net/if.h>
6567
6568 int
6569 main ()
6570 {
6571 static struct ifreq ac_aggr;
6572 if (ac_aggr.ifr_broadaddr)
6573 return 0;
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -s conftest.$ac_objext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6591 else
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6594
6595 cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <net/if.h>
6603
6604 int
6605 main ()
6606 {
6607 static struct ifreq ac_aggr;
6608 if (sizeof ac_aggr.ifr_broadaddr)
6609 return 0;
6610 ;
6611 return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_member_struct_ifreq_ifr_broadaddr=no
6632 fi
6633 rm -f conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 rm -f conftest.$ac_objext conftest.$ac_ext
6636 fi
6637 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6638 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6639 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6640
6641 cat >>confdefs.h <<_ACEOF
6642 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6643 _ACEOF
6644
6645
6646 fi
6647 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6648 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
6649 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 cat >conftest.$ac_ext <<_ACEOF
6653 #line $LINENO "configure"
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 #include <net/if.h>
6660
6661 int
6662 main ()
6663 {
6664 static struct ifreq ac_aggr;
6665 if (ac_aggr.ifr_addr)
6666 return 0;
6667 ;
6668 return 0;
6669 }
6670 _ACEOF
6671 rm -f conftest.$ac_objext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_cv_member_struct_ifreq_ifr_addr=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 cat >conftest.$ac_ext <<_ACEOF
6689 #line $LINENO "configure"
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 #include <net/if.h>
6696
6697 int
6698 main ()
6699 {
6700 static struct ifreq ac_aggr;
6701 if (sizeof ac_aggr.ifr_addr)
6702 return 0;
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest.$ac_objext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_member_struct_ifreq_ifr_addr=yes
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724 ac_cv_member_struct_ifreq_ifr_addr=no
6725 fi
6726 rm -f conftest.$ac_objext conftest.$ac_ext
6727 fi
6728 rm -f conftest.$ac_objext conftest.$ac_ext
6729 fi
6730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
6731 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
6732 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6736 _ACEOF
6737
6738
6739 fi
6740
6741
6742
6743 echo "$as_me:$LINENO: checking for function prototypes" >&5
6744 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6745 if test "$ac_cv_prog_cc_stdc" != no; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747 echo "${ECHO_T}yes" >&6
6748
6749 cat >>confdefs.h <<\_ACEOF
6750 #define PROTOTYPES 1
6751 _ACEOF
6752
6753
6754 cat >>confdefs.h <<\_ACEOF
6755 #define __PROTOTYPES 1
6756 _ACEOF
6757
6758 else
6759 echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6
6761 fi
6762
6763 echo "$as_me:$LINENO: checking for working volatile" >&5
6764 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6765 if test "${ac_cv_c_volatile+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775
6776 int
6777 main ()
6778 {
6779
6780 volatile int x;
6781 int * volatile y;
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try='test -s conftest.$ac_objext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_c_volatile=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_cv_c_volatile=no
6804 fi
6805 rm -f conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6808 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6809 if test $ac_cv_c_volatile = no; then
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define volatile
6813 _ACEOF
6814
6815 fi
6816
6817 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6819 if test "${ac_cv_c_const+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 cat >conftest.$ac_ext <<_ACEOF
6823 #line $LINENO "configure"
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829
6830 int
6831 main ()
6832 {
6833 /* FIXME: Include the comments suggested by Paul. */
6834 #ifndef __cplusplus
6835 /* Ultrix mips cc rejects this. */
6836 typedef int charset[2];
6837 const charset x;
6838 /* SunOS 4.1.1 cc rejects this. */
6839 char const *const *ccp;
6840 char **p;
6841 /* NEC SVR4.0.2 mips cc rejects this. */
6842 struct point {int x, y;};
6843 static struct point const zero = {0,0};
6844 /* AIX XL C 1.02.0.0 rejects this.
6845 It does not let you subtract one const X* pointer from another in
6846 an arm of an if-expression whose if-part is not a constant
6847 expression */
6848 const char *g = "string";
6849 ccp = &g + (g ? g-g : 0);
6850 /* HPUX 7.0 cc rejects these. */
6851 ++ccp;
6852 p = (char**) ccp;
6853 ccp = (char const *const *) p;
6854 { /* SCO 3.2v4 cc rejects this. */
6855 char *t;
6856 char const *s = 0 ? (char *) 0 : (char const *) 0;
6857
6858 *t++ = 0;
6859 }
6860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6861 int x[] = {25, 17};
6862 const int *foo = &x[0];
6863 ++foo;
6864 }
6865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6866 typedef const int *iptr;
6867 iptr p = 0;
6868 ++p;
6869 }
6870 { /* AIX XL C 1.02.0.0 rejects this saying
6871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6872 struct s { int j; const int *ap[3]; };
6873 struct s *b; b->j = 5;
6874 }
6875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6876 const int foo = 10;
6877 }
6878 #endif
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886 (eval $ac_compile) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 ac_cv_c_const=yes
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 ac_cv_c_const=no
6902 fi
6903 rm -f conftest.$ac_objext conftest.$ac_ext
6904 fi
6905 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6906 echo "${ECHO_T}$ac_cv_c_const" >&6
6907 if test $ac_cv_c_const = no; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define const
6911 _ACEOF
6912
6913 fi
6914
6915 echo "$as_me:$LINENO: checking for void * support" >&5
6916 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6917 if test "${emacs_cv_void_star+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927
6928 int
6929 main ()
6930 {
6931 void * foo;
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 emacs_cv_void_star=yes
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 emacs_cv_void_star=no
6954 fi
6955 rm -f conftest.$ac_objext conftest.$ac_ext
6956 fi
6957 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6958 echo "${ECHO_T}$emacs_cv_void_star" >&6
6959 if test $emacs_cv_void_star = yes; then
6960 cat >>confdefs.h <<\_ACEOF
6961 #define POINTER_TYPE void
6962 _ACEOF
6963
6964 else
6965 cat >>confdefs.h <<\_ACEOF
6966 #define POINTER_TYPE char
6967 _ACEOF
6968
6969 fi
6970
6971
6972
6973 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6975 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6976 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 cat >conftest.make <<\_ACEOF
6980 all:
6981 @echo 'ac_maketemp="$(MAKE)"'
6982 _ACEOF
6983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6984 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6985 if test -n "$ac_maketemp"; then
6986 eval ac_cv_prog_make_${ac_make}_set=yes
6987 else
6988 eval ac_cv_prog_make_${ac_make}_set=no
6989 fi
6990 rm -f conftest.make
6991 fi
6992 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994 echo "${ECHO_T}yes" >&6
6995 SET_MAKE=
6996 else
6997 echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6
6999 SET_MAKE="MAKE=${MAKE-make}"
7000 fi
7001
7002
7003 echo "$as_me:$LINENO: checking for long file names" >&5
7004 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7005 if test "${ac_cv_sys_long_file_names+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 ac_cv_sys_long_file_names=yes
7009 # Test for long file names in all the places we know might matter:
7010 # . the current directory, where building will happen
7011 # $prefix/lib where we will be installing things
7012 # $exec_prefix/lib likewise
7013 # eval it to expand exec_prefix.
7014 # $TMPDIR if set, where it might want to write temporary files
7015 # if $TMPDIR is not set:
7016 # /tmp where it might want to write temporary files
7017 # /var/tmp likewise
7018 # /usr/tmp likewise
7019 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7020 ac_tmpdirs=$TMPDIR
7021 else
7022 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7023 fi
7024 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7025 test -d $ac_dir || continue
7026 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7027 ac_xdir=$ac_dir/cf$$
7028 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7029 ac_tf1=$ac_xdir/conftest9012345
7030 ac_tf2=$ac_xdir/conftest9012346
7031 (echo 1 >$ac_tf1) 2>/dev/null
7032 (echo 2 >$ac_tf2) 2>/dev/null
7033 ac_val=`cat $ac_tf1 2>/dev/null`
7034 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7035 ac_cv_sys_long_file_names=no
7036 rm -rf $ac_xdir 2>/dev/null
7037 break
7038 fi
7039 rm -rf $ac_xdir 2>/dev/null
7040 done
7041 fi
7042 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7043 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7044 if test $ac_cv_sys_long_file_names = yes; then
7045
7046 cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_LONG_FILE_NAMES 1
7048 _ACEOF
7049
7050 fi
7051
7052
7053 #### Choose a window system.
7054
7055 echo "$as_me:$LINENO: checking for X" >&5
7056 echo $ECHO_N "checking for X... $ECHO_C" >&6
7057
7058
7059 # Check whether --with-x or --without-x was given.
7060 if test "${with_x+set}" = set; then
7061 withval="$with_x"
7062
7063 fi;
7064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7065 if test "x$with_x" = xno; then
7066 # The user explicitly disabled X.
7067 have_x=disabled
7068 else
7069 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7070 # Both variables are already set.
7071 have_x=yes
7072 else
7073 if test "${ac_cv_have_x+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 # One or both of the vars are not set, and there is no cached value.
7077 ac_x_includes=no ac_x_libraries=no
7078 rm -fr conftest.dir
7079 if mkdir conftest.dir; then
7080 cd conftest.dir
7081 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7082 cat >Imakefile <<'_ACEOF'
7083 acfindx:
7084 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7085 _ACEOF
7086 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7088 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7089 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7090 for ac_extension in a so sl; do
7091 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7092 test -f $ac_im_libdir/libX11.$ac_extension; then
7093 ac_im_usrlibdir=$ac_im_libdir; break
7094 fi
7095 done
7096 # Screen out bogus values from the imake configuration. They are
7097 # bogus both because they are the default anyway, and because
7098 # using them would break gcc on systems where it needs fixed includes.
7099 case $ac_im_incroot in
7100 /usr/include) ;;
7101 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7102 esac
7103 case $ac_im_usrlibdir in
7104 /usr/lib | /lib) ;;
7105 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7106 esac
7107 fi
7108 cd ..
7109 rm -fr conftest.dir
7110 fi
7111
7112 # Standard set of common directories for X headers.
7113 # Check X11 before X11Rn because it is often a symlink to the current release.
7114 ac_x_header_dirs='
7115 /usr/X11/include
7116 /usr/X11R6/include
7117 /usr/X11R5/include
7118 /usr/X11R4/include
7119
7120 /usr/include/X11
7121 /usr/include/X11R6
7122 /usr/include/X11R5
7123 /usr/include/X11R4
7124
7125 /usr/local/X11/include
7126 /usr/local/X11R6/include
7127 /usr/local/X11R5/include
7128 /usr/local/X11R4/include
7129
7130 /usr/local/include/X11
7131 /usr/local/include/X11R6
7132 /usr/local/include/X11R5
7133 /usr/local/include/X11R4
7134
7135 /usr/X386/include
7136 /usr/x386/include
7137 /usr/XFree86/include/X11
7138
7139 /usr/include
7140 /usr/local/include
7141 /usr/unsupported/include
7142 /usr/athena/include
7143 /usr/local/x11r5/include
7144 /usr/lpp/Xamples/include
7145
7146 /usr/openwin/include
7147 /usr/openwin/share/include'
7148
7149 if test "$ac_x_includes" = no; then
7150 # Guess where to find include files, by looking for Intrinsic.h.
7151 # First, try using that file with no special directory specified.
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <X11/Intrinsic.h>
7160 _ACEOF
7161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev/null; then
7169 if test -s conftest.err; then
7170 ac_cpp_err=$ac_c_preproc_warn_flag
7171 else
7172 ac_cpp_err=
7173 fi
7174 else
7175 ac_cpp_err=yes
7176 fi
7177 if test -z "$ac_cpp_err"; then
7178 # We can compile using X headers with no special include directory.
7179 ac_x_includes=
7180 else
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 for ac_dir in $ac_x_header_dirs; do
7185 if test -r "$ac_dir/X11/Intrinsic.h"; then
7186 ac_x_includes=$ac_dir
7187 break
7188 fi
7189 done
7190 fi
7191 rm -f conftest.err conftest.$ac_ext
7192 fi # $ac_x_includes = no
7193
7194 if test "$ac_x_libraries" = no; then
7195 # Check for the libraries.
7196 # See if we find them without any special options.
7197 # Don't add to $LIBS permanently.
7198 ac_save_LIBS=$LIBS
7199 LIBS="-lXt $LIBS"
7200 cat >conftest.$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #include <X11/Intrinsic.h>
7208 int
7209 main ()
7210 {
7211 XtMalloc (0)
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 rm -f conftest.$ac_objext conftest$ac_exeext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>&5
7219 ac_status=$?
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7228 LIBS=$ac_save_LIBS
7229 # We can link X programs with no special library path.
7230 ac_x_libraries=
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 LIBS=$ac_save_LIBS
7236 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7237 do
7238 # Don't even attempt the hair of trying to link an X program!
7239 for ac_extension in a so sl; do
7240 if test -r $ac_dir/libXt.$ac_extension; then
7241 ac_x_libraries=$ac_dir
7242 break 2
7243 fi
7244 done
7245 done
7246 fi
7247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7248 fi # $ac_x_libraries = no
7249
7250 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7251 # Didn't find X anywhere. Cache the known absence of X.
7252 ac_cv_have_x="have_x=no"
7253 else
7254 # Record where we found X for the cache.
7255 ac_cv_have_x="have_x=yes \
7256 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7257 fi
7258 fi
7259
7260 fi
7261 eval "$ac_cv_have_x"
7262 fi # $with_x != no
7263
7264 if test "$have_x" != yes; then
7265 echo "$as_me:$LINENO: result: $have_x" >&5
7266 echo "${ECHO_T}$have_x" >&6
7267 no_x=yes
7268 else
7269 # If each of the values was on the command line, it overrides each guess.
7270 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7271 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7272 # Update the cache value to reflect the command line values.
7273 ac_cv_have_x="have_x=yes \
7274 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7275 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7276 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7277 fi
7278
7279 if test "$no_x" = yes; then
7280 window_system=none
7281 else
7282 window_system=x11
7283 fi
7284
7285 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7286 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7287 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7288 x_default_search_path=""
7289 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7290 x_search_path="\
7291 ${x_library}/X11/%L/%T/%N%C%S:\
7292 ${x_library}/X11/%l/%T/%N%C%S:\
7293 ${x_library}/X11/%T/%N%C%S:\
7294 ${x_library}/X11/%L/%T/%N%S:\
7295 ${x_library}/X11/%l/%T/%N%S:\
7296 ${x_library}/X11/%T/%N%S"
7297 if test x"${x_default_search_path}" = x; then
7298 x_default_search_path=${x_search_path}
7299 else
7300 x_default_search_path="${x_search_path}:${x_default_search_path}"
7301 fi
7302 done
7303 fi
7304 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7305 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7306 fi
7307
7308 if test x"${x_includes}" = x; then
7309 bitmapdir=/usr/include/X11/bitmaps
7310 else
7311 # accumulate include directories that have X11 bitmap subdirectories
7312 bmd_acc="dummyval"
7313 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7314 if test -d "${bmd}/X11/bitmaps"; then
7315 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7316 fi
7317 if test -d "${bmd}/bitmaps"; then
7318 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7319 fi
7320 done
7321 if test ${bmd_acc} != "dummyval"; then
7322 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7323 fi
7324 fi
7325
7326 case "${window_system}" in
7327 x11 )
7328 HAVE_X_WINDOWS=yes
7329 HAVE_X11=yes
7330 case "${with_x_toolkit}" in
7331 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7332 motif ) USE_X_TOOLKIT=MOTIF ;;
7333 gtk ) with_gtk=yes
7334 USE_X_TOOLKIT=none ;;
7335 no ) USE_X_TOOLKIT=none ;;
7336 * ) USE_X_TOOLKIT=maybe ;;
7337 esac
7338 ;;
7339 none )
7340 HAVE_X_WINDOWS=no
7341 HAVE_X11=no
7342 USE_X_TOOLKIT=none
7343 ;;
7344 esac
7345
7346 ### If we're using X11, we should use the X menu package.
7347 HAVE_MENUS=no
7348 case ${HAVE_X11} in
7349 yes ) HAVE_MENUS=yes ;;
7350 esac
7351
7352 if test "${opsys}" = "hpux9"; then
7353 case "${x_libraries}" in
7354 *X11R4* )
7355 opsysfile="s/hpux9-x11r4.h"
7356 ;;
7357 esac
7358 fi
7359
7360 if test "${opsys}" = "hpux9shr"; then
7361 case "${x_libraries}" in
7362 *X11R4* )
7363 opsysfile="s/hpux9shxr4.h"
7364 ;;
7365 esac
7366 fi
7367
7368 ### Compute the unexec source name from the object name.
7369 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
7370
7371 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7372 # Assume not, until told otherwise.
7373 GNU_MALLOC=yes
7374 doug_lea_malloc=yes
7375 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7376 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7377 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 #line $LINENO "configure"
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char malloc_get_state (); below.
7389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 <limits.h> exists even on freestanding compilers. */
7391 #ifdef __STDC__
7392 # include <limits.h>
7393 #else
7394 # include <assert.h>
7395 #endif
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 #ifdef __cplusplus
7398 extern "C"
7399 {
7400 #endif
7401 /* We use char because int might match the return type of a gcc2
7402 builtin and then its argument prototype would still apply. */
7403 char malloc_get_state ();
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7408 choke me
7409 #else
7410 char (*f) () = malloc_get_state;
7411 #endif
7412 #ifdef __cplusplus
7413 }
7414 #endif
7415
7416 int
7417 main ()
7418 {
7419 return f != malloc_get_state;
7420 ;
7421 return 0;
7422 }
7423 _ACEOF
7424 rm -f conftest.$ac_objext conftest$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_func_malloc_get_state=yes
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441 ac_cv_func_malloc_get_state=no
7442 fi
7443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7444 fi
7445 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7446 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7447 if test $ac_cv_func_malloc_get_state = yes; then
7448 :
7449 else
7450 doug_lea_malloc=no
7451 fi
7452
7453 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7454 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7455 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 cat >conftest.$ac_ext <<_ACEOF
7459 #line $LINENO "configure"
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 /* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char malloc_set_state (); below.
7467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7468 <limits.h> exists even on freestanding compilers. */
7469 #ifdef __STDC__
7470 # include <limits.h>
7471 #else
7472 # include <assert.h>
7473 #endif
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 #ifdef __cplusplus
7476 extern "C"
7477 {
7478 #endif
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char malloc_set_state ();
7482 /* The GNU C library defines this for functions which it implements
7483 to always fail with ENOSYS. Some functions are actually named
7484 something starting with __ and the normal name is an alias. */
7485 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7486 choke me
7487 #else
7488 char (*f) () = malloc_set_state;
7489 #endif
7490 #ifdef __cplusplus
7491 }
7492 #endif
7493
7494 int
7495 main ()
7496 {
7497 return f != malloc_set_state;
7498 ;
7499 return 0;
7500 }
7501 _ACEOF
7502 rm -f conftest.$ac_objext conftest$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_func_malloc_set_state=yes
7515 else
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519 ac_cv_func_malloc_set_state=no
7520 fi
7521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7522 fi
7523 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7524 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7525 if test $ac_cv_func_malloc_set_state = yes; then
7526 :
7527 else
7528 doug_lea_malloc=no
7529 fi
7530
7531 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7532 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7533 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 extern void (* __after_morecore_hook)();
7544 int
7545 main ()
7546 {
7547 __after_morecore_hook = 0
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 emacs_cv_var___after_morecore_hook=yes
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 emacs_cv_var___after_morecore_hook=no
7570 fi
7571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7572 fi
7573 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7574 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7575 if test $emacs_cv_var___after_morecore_hook = no; then
7576 doug_lea_malloc=no
7577 fi
7578 if test "${system_malloc}" = "yes"; then
7579 GNU_MALLOC=no
7580 GNU_MALLOC_reason="
7581 (The GNU allocators don't work with this system configuration.)"
7582 fi
7583 if test "$doug_lea_malloc" = "yes" ; then
7584 if test "$GNU_MALLOC" = yes ; then
7585 GNU_MALLOC_reason="
7586 (Using Doug Lea's new malloc from the GNU C Library.)"
7587 fi
7588
7589 cat >>confdefs.h <<\_ACEOF
7590 #define DOUG_LEA_MALLOC 1
7591 _ACEOF
7592
7593 fi
7594
7595 if test x"${REL_ALLOC}" = x; then
7596 REL_ALLOC=${GNU_MALLOC}
7597 fi
7598
7599
7600
7601
7602 for ac_header in stdlib.h unistd.h
7603 do
7604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo "$as_me:$LINENO: checking for $ac_header" >&5
7607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 fi
7611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613 else
7614 # Is the header compilable?
7615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7625 #include <$ac_header>
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_header_compiler=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_header_compiler=no
7645 fi
7646 rm -f conftest.$ac_objext conftest.$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7649
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <$ac_header>
7661 _ACEOF
7662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } >/dev/null; then
7670 if test -s conftest.err; then
7671 ac_cpp_err=$ac_c_preproc_warn_flag
7672 else
7673 ac_cpp_err=
7674 fi
7675 else
7676 ac_cpp_err=yes
7677 fi
7678 if test -z "$ac_cpp_err"; then
7679 ac_header_preproc=yes
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 ac_header_preproc=no
7685 fi
7686 rm -f conftest.err conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6
7689
7690 # So? What about this header?
7691 case $ac_header_compiler:$ac_header_preproc in
7692 yes:no )
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7697 (
7698 cat <<\_ASBOX
7699 ## ------------------------------------ ##
7700 ## Report this to bug-autoconf@gnu.org. ##
7701 ## ------------------------------------ ##
7702 _ASBOX
7703 ) |
7704 sed "s/^/$as_me: WARNING: /" >&2
7705 ;;
7706 no:yes )
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 (
7714 cat <<\_ASBOX
7715 ## ------------------------------------ ##
7716 ## Report this to bug-autoconf@gnu.org. ##
7717 ## ------------------------------------ ##
7718 _ASBOX
7719 ) |
7720 sed "s/^/$as_me: WARNING: /" >&2
7721 ;;
7722 esac
7723 echo "$as_me:$LINENO: checking for $ac_header" >&5
7724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 eval "$as_ac_Header=$ac_header_preproc"
7729 fi
7730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7732
7733 fi
7734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7735 cat >>confdefs.h <<_ACEOF
7736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7737 _ACEOF
7738
7739 fi
7740
7741 done
7742
7743
7744 for ac_func in getpagesize
7745 do
7746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7747 echo "$as_me:$LINENO: checking for $ac_func" >&5
7748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_var+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 /* System header to define __stub macros and hopefully few prototypes,
7760 which can conflict with char $ac_func (); below.
7761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7762 <limits.h> exists even on freestanding compilers. */
7763 #ifdef __STDC__
7764 # include <limits.h>
7765 #else
7766 # include <assert.h>
7767 #endif
7768 /* Override any gcc2 internal prototype to avoid an error. */
7769 #ifdef __cplusplus
7770 extern "C"
7771 {
7772 #endif
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7775 char $ac_func ();
7776 /* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7780 choke me
7781 #else
7782 char (*f) () = $ac_func;
7783 #endif
7784 #ifdef __cplusplus
7785 }
7786 #endif
7787
7788 int
7789 main ()
7790 {
7791 return f != $ac_func;
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 eval "$as_ac_var=yes"
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813 eval "$as_ac_var=no"
7814 fi
7815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7816 fi
7817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7819 if test `eval echo '${'$as_ac_var'}'` = yes; then
7820 cat >>confdefs.h <<_ACEOF
7821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7822 _ACEOF
7823
7824 fi
7825 done
7826
7827 echo "$as_me:$LINENO: checking for working mmap" >&5
7828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 if test "$cross_compiling" = yes; then
7833 ac_cv_func_mmap_fixed_mapped=no
7834 else
7835 cat >conftest.$ac_ext <<_ACEOF
7836 #line $LINENO "configure"
7837 /* confdefs.h. */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 $ac_includes_default
7843 /* malloc might have been renamed as rpl_malloc. */
7844 #undef malloc
7845
7846 /* Thanks to Mike Haertel and Jim Avera for this test.
7847 Here is a matrix of mmap possibilities:
7848 mmap private not fixed
7849 mmap private fixed at somewhere currently unmapped
7850 mmap private fixed at somewhere already mapped
7851 mmap shared not fixed
7852 mmap shared fixed at somewhere currently unmapped
7853 mmap shared fixed at somewhere already mapped
7854 For private mappings, we should verify that changes cannot be read()
7855 back from the file, nor mmap's back from the file at a different
7856 address. (There have been systems where private was not correctly
7857 implemented like the infamous i386 svr4.0, and systems where the
7858 VM page cache was not coherent with the file system buffer cache
7859 like early versions of FreeBSD and possibly contemporary NetBSD.)
7860 For shared mappings, we should conversely verify that changes get
7861 propagated back to all the places they're supposed to be.
7862
7863 Grep wants private fixed already mapped.
7864 The main things grep needs to know about mmap are:
7865 * does it exist and is it safe to write into the mmap'd area
7866 * how to use it (BSD variants) */
7867
7868 #include <fcntl.h>
7869 #include <sys/mman.h>
7870
7871 #if !STDC_HEADERS && !HAVE_STDLIB_H
7872 char *malloc ();
7873 #endif
7874
7875 /* This mess was copied from the GNU getpagesize.h. */
7876 #if !HAVE_GETPAGESIZE
7877 /* Assume that all systems that can run configure have sys/param.h. */
7878 # if !HAVE_SYS_PARAM_H
7879 # define HAVE_SYS_PARAM_H 1
7880 # endif
7881
7882 # ifdef _SC_PAGESIZE
7883 # define getpagesize() sysconf(_SC_PAGESIZE)
7884 # else /* no _SC_PAGESIZE */
7885 # if HAVE_SYS_PARAM_H
7886 # include <sys/param.h>
7887 # ifdef EXEC_PAGESIZE
7888 # define getpagesize() EXEC_PAGESIZE
7889 # else /* no EXEC_PAGESIZE */
7890 # ifdef NBPG
7891 # define getpagesize() NBPG * CLSIZE
7892 # ifndef CLSIZE
7893 # define CLSIZE 1
7894 # endif /* no CLSIZE */
7895 # else /* no NBPG */
7896 # ifdef NBPC
7897 # define getpagesize() NBPC
7898 # else /* no NBPC */
7899 # ifdef PAGESIZE
7900 # define getpagesize() PAGESIZE
7901 # endif /* PAGESIZE */
7902 # endif /* no NBPC */
7903 # endif /* no NBPG */
7904 # endif /* no EXEC_PAGESIZE */
7905 # else /* no HAVE_SYS_PARAM_H */
7906 # define getpagesize() 8192 /* punt totally */
7907 # endif /* no HAVE_SYS_PARAM_H */
7908 # endif /* no _SC_PAGESIZE */
7909
7910 #endif /* no HAVE_GETPAGESIZE */
7911
7912 int
7913 main ()
7914 {
7915 char *data, *data2, *data3;
7916 int i, pagesize;
7917 int fd;
7918
7919 pagesize = getpagesize ();
7920
7921 /* First, make a file with some known garbage in it. */
7922 data = (char *) malloc (pagesize);
7923 if (!data)
7924 exit (1);
7925 for (i = 0; i < pagesize; ++i)
7926 *(data + i) = rand ();
7927 umask (0);
7928 fd = creat ("conftest.mmap", 0600);
7929 if (fd < 0)
7930 exit (1);
7931 if (write (fd, data, pagesize) != pagesize)
7932 exit (1);
7933 close (fd);
7934
7935 /* Next, try to mmap the file at a fixed address which already has
7936 something else allocated at it. If we can, also make sure that
7937 we see the same garbage. */
7938 fd = open ("conftest.mmap", O_RDWR);
7939 if (fd < 0)
7940 exit (1);
7941 data2 = (char *) malloc (2 * pagesize);
7942 if (!data2)
7943 exit (1);
7944 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7945 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7946 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7947 exit (1);
7948 for (i = 0; i < pagesize; ++i)
7949 if (*(data + i) != *(data2 + i))
7950 exit (1);
7951
7952 /* Finally, make sure that changes to the mapped area do not
7953 percolate back to the file as seen by read(). (This is a bug on
7954 some variants of i386 svr4.0.) */
7955 for (i = 0; i < pagesize; ++i)
7956 *(data2 + i) = *(data2 + i) + 1;
7957 data3 = (char *) malloc (pagesize);
7958 if (!data3)
7959 exit (1);
7960 if (read (fd, data3, pagesize) != pagesize)
7961 exit (1);
7962 for (i = 0; i < pagesize; ++i)
7963 if (*(data + i) != *(data3 + i))
7964 exit (1);
7965 close (fd);
7966 exit (0);
7967 }
7968 _ACEOF
7969 rm -f conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_func_mmap_fixed_mapped=yes
7981 else
7982 echo "$as_me: program exited with status $ac_status" >&5
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 ( exit $ac_status )
7987 ac_cv_func_mmap_fixed_mapped=no
7988 fi
7989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 fi
7992 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7993 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7994 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define HAVE_MMAP 1
7998 _ACEOF
7999
8000 fi
8001 rm -f conftest.mmap
8002
8003 if test $use_mmap_for_buffers = yes; then
8004 REL_ALLOC=no
8005 fi
8006
8007 LIBS="$libsrc_libs $LIBS"
8008
8009
8010 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8011 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8012 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 ac_check_lib_save_LIBS=$LIBS
8016 LIBS="-ldnet $LIBS"
8017 cat >conftest.$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024
8025 /* Override any gcc2 internal prototype to avoid an error. */
8026 #ifdef __cplusplus
8027 extern "C"
8028 #endif
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031 char dnet_ntoa ();
8032 int
8033 main ()
8034 {
8035 dnet_ntoa ();
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_lib_dnet_dnet_ntoa=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_cv_lib_dnet_dnet_ntoa=no
8058 fi
8059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8060 LIBS=$ac_check_lib_save_LIBS
8061 fi
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8063 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8064 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8065 cat >>confdefs.h <<_ACEOF
8066 #define HAVE_LIBDNET 1
8067 _ACEOF
8068
8069 LIBS="-ldnet $LIBS"
8070
8071 fi
8072
8073
8074 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8075 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8076 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 ac_check_lib_save_LIBS=$LIBS
8080 LIBS="-lXbsd $LIBS"
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088
8089
8090 int
8091 main ()
8092 {
8093 main ();
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_lib_Xbsd_main=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 ac_cv_lib_Xbsd_main=no
8116 fi
8117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8118 LIBS=$ac_check_lib_save_LIBS
8119 fi
8120 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8121 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8122 if test $ac_cv_lib_Xbsd_main = yes; then
8123 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8124 fi
8125
8126
8127
8128 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8129 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8130 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-lpthreads $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8137 /* confdefs.h. */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142
8143 /* Override any gcc2 internal prototype to avoid an error. */
8144 #ifdef __cplusplus
8145 extern "C"
8146 #endif
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8149 char cma_open ();
8150 int
8151 main ()
8152 {
8153 cma_open ();
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_lib_pthreads_cma_open=yes
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 ac_cv_lib_pthreads_cma_open=no
8176 fi
8177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8178 LIBS=$ac_check_lib_save_LIBS
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8181 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8182 if test $ac_cv_lib_pthreads_cma_open = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define HAVE_LIBPTHREADS 1
8185 _ACEOF
8186
8187 LIBS="-lpthreads $LIBS"
8188
8189 fi
8190
8191
8192 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8193 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8194 if test -d /usr/X386/include; then
8195 HAVE_XFREE386=yes
8196 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8197 else
8198 HAVE_XFREE386=no
8199 fi
8200 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8201 echo "${ECHO_T}$HAVE_XFREE386" >&6
8202
8203
8204 case ${host_os} in
8205 aix*)
8206 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8207 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8208 if test "${gdb_cv_bigtoc+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211
8212 case $GCC in
8213 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8214 *) gdb_cv_bigtoc=-bbigtoc ;;
8215 esac
8216
8217 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225
8226 int
8227 main ()
8228 {
8229 int i;
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 :
8247 else
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 gdb_cv_bigtoc=
8252 fi
8253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8254
8255 fi
8256 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8257 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8258 ;;
8259 esac
8260
8261 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8262 # used for the tests that follow. We set them back to REAL_CFLAGS and
8263 # REAL_CPPFLAGS later on.
8264
8265 REAL_CPPFLAGS="$CPPFLAGS"
8266
8267 if test "${HAVE_X11}" = "yes"; then
8268 DEFS="$C_SWITCH_X_SITE $DEFS"
8269 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8270 LIBS="$LIBX $LIBS"
8271 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8272 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8273
8274 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8275 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8276 # but it's more convenient here to set LD_RUN_PATH
8277 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8278 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8279 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8280 export LD_RUN_PATH
8281 fi
8282
8283 if test "${opsys}" = "gnu-linux"; then
8284 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8285 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293
8294 int
8295 main ()
8296 {
8297 XOpenDisplay ("foo");
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -s conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 xlinux_first_failure=no
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 xlinux_first_failure=yes
8320 fi
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322 if test "${xlinux_first_failure}" = "yes"; then
8323 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8324 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8325 OLD_CPPFLAGS="$CPPFLAGS"
8326 OLD_LIBS="$LIBS"
8327 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8328 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8329 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8330 LIBS="$LIBS -b i486-linuxaout"
8331 cat >conftest.$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338
8339 int
8340 main ()
8341 {
8342 XOpenDisplay ("foo");
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349 (eval $ac_link) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 xlinux_second_failure=no
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 xlinux_second_failure=yes
8365 fi
8366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8367 if test "${xlinux_second_failure}" = "yes"; then
8368 # If we get the same failure with -b, there is no use adding -b.
8369 # So take it out. This plays safe.
8370 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8371 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8372 CPPFLAGS="$OLD_CPPFLAGS"
8373 LIBS="$OLD_LIBS"
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8376 else
8377 echo "$as_me:$LINENO: result: yes" >&5
8378 echo "${ECHO_T}yes" >&6
8379 fi
8380 else
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8383 fi
8384 fi
8385
8386 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8387 # header files included from there.
8388 echo "$as_me:$LINENO: checking for Xkb" >&5
8389 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <X11/Xlib.h>
8398 #include <X11/XKBlib.h>
8399 int
8400 main ()
8401 {
8402 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 emacs_xkb=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 emacs_xkb=no
8425 fi
8426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8428 echo "${ECHO_T}$emacs_xkb" >&6
8429 if test $emacs_xkb = yes; then
8430
8431 cat >>confdefs.h <<\_ACEOF
8432 #define HAVE_XKBGETKEYBOARD 1
8433 _ACEOF
8434
8435 fi
8436
8437
8438
8439
8440
8441 for ac_func in XrmSetDatabase XScreenResourceString \
8442 XScreenNumberOfScreen XSetWMProtocols
8443 do
8444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8445 echo "$as_me:$LINENO: checking for $ac_func" >&5
8446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8447 if eval "test \"\${$as_ac_var+set}\" = set"; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 /* System header to define __stub macros and hopefully few prototypes,
8458 which can conflict with char $ac_func (); below.
8459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8460 <limits.h> exists even on freestanding compilers. */
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466 /* Override any gcc2 internal prototype to avoid an error. */
8467 #ifdef __cplusplus
8468 extern "C"
8469 {
8470 #endif
8471 /* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473 char $ac_func ();
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8478 choke me
8479 #else
8480 char (*f) () = $ac_func;
8481 #endif
8482 #ifdef __cplusplus
8483 }
8484 #endif
8485
8486 int
8487 main ()
8488 {
8489 return f != $ac_func;
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 eval "$as_ac_var=yes"
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 eval "$as_ac_var=no"
8512 fi
8513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514 fi
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8517 if test `eval echo '${'$as_ac_var'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8520 _ACEOF
8521
8522 fi
8523 done
8524
8525 fi
8526
8527 if test "${window_system}" = "x11"; then
8528 echo "$as_me:$LINENO: checking X11 version 6" >&5
8529 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8530 if test "${emacs_cv_x11_version_6+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <X11/Xlib.h>
8541 int
8542 main ()
8543 {
8544 #if XlibSpecificationRelease < 6
8545 fail;
8546 #endif
8547
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 emacs_cv_x11_version_6=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 emacs_cv_x11_version_6=no
8570 fi
8571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8572 fi
8573
8574 if test $emacs_cv_x11_version_6 = yes; then
8575 echo "$as_me:$LINENO: result: 6 or newer" >&5
8576 echo "${ECHO_T}6 or newer" >&6
8577
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_X11R6 1
8580 _ACEOF
8581
8582 else
8583 echo "$as_me:$LINENO: result: before 6" >&5
8584 echo "${ECHO_T}before 6" >&6
8585 fi
8586 fi
8587
8588 if test "${window_system}" = "x11"; then
8589 echo "$as_me:$LINENO: checking X11 version 5" >&5
8590 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8591 if test "${emacs_cv_x11_version_5+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594 cat >conftest.$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 #include <X11/Xlib.h>
8602 int
8603 main ()
8604 {
8605 #if XlibSpecificationRelease < 5
8606 fail;
8607 #endif
8608
8609 ;
8610 return 0;
8611 }
8612 _ACEOF
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 emacs_cv_x11_version_5=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 emacs_cv_x11_version_5=no
8631 fi
8632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8633 fi
8634
8635 if test $emacs_cv_x11_version_5 = yes; then
8636 echo "$as_me:$LINENO: result: 5 or newer" >&5
8637 echo "${ECHO_T}5 or newer" >&6
8638 HAVE_X11R5=yes
8639
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_X11R5 1
8642 _ACEOF
8643
8644 else
8645 HAVE_X11R5=no
8646 echo "$as_me:$LINENO: result: before 5" >&5
8647 echo "${ECHO_T}before 5" >&6
8648 fi
8649 fi
8650
8651
8652
8653 HAVE_GTK=no
8654 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8655 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8656 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8657 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8658 { (exit 1); exit 1; }; };
8659 fi
8660 GLIB_REQUIRED=2.0.1
8661 GTK_REQUIRED=2.0.1
8662 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8663
8664 if test "X${with_pkg_config_prog}" != X; then
8665 PKG_CONFIG="${with_pkg_config_prog}"
8666 fi
8667
8668 succeeded=no
8669
8670 if test -z "$PKG_CONFIG"; then
8671 # Extract the first word of "pkg-config", so it can be a program name with args.
8672 set dummy pkg-config; ac_word=$2
8673 echo "$as_me:$LINENO: checking for $ac_word" >&5
8674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 case $PKG_CONFIG in
8679 [\\/]* | ?:[\\/]*)
8680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8681 ;;
8682 *)
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694 done
8695 done
8696
8697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8698 ;;
8699 esac
8700 fi
8701 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8702
8703 if test -n "$PKG_CONFIG"; then
8704 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8705 echo "${ECHO_T}$PKG_CONFIG" >&6
8706 else
8707 echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6
8709 fi
8710
8711 fi
8712
8713 if test "$PKG_CONFIG" = "no" ; then
8714 echo "*** The pkg-config script could not be found. Make sure it is"
8715 echo "*** in your path, or give the full path to pkg-config with"
8716 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8717 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8718 else
8719 PKG_CONFIG_MIN_VERSION=0.9.0
8720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8721 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8722 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8723
8724 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8727 succeeded=yes
8728
8729 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8730 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8731 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8732 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8733 echo "${ECHO_T}$GTK_CFLAGS" >&6
8734
8735 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8736 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8737 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8738 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8739 echo "${ECHO_T}$GTK_LIBS" >&6
8740 else
8741 GTK_CFLAGS=""
8742 GTK_LIBS=""
8743 ## If we have a custom action on failure, don't print errors, but
8744 ## do set a variable so people can do so.
8745 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8746 echo $GTK_PKG_ERRORS
8747 fi
8748
8749
8750
8751 else
8752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8754 fi
8755 fi
8756
8757 if test $succeeded = yes; then
8758 :
8759 else
8760 { { 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
8761 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;}
8762 { (exit 1); exit 1; }; }
8763 fi
8764
8765
8766
8767 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8768 CFLAGS="$CFLAGS $GTK_CFLAGS"
8769 LIBS="$GTK_LIBS $LIBS"
8770 HAVE_GTK=yes
8771
8772 cat >>confdefs.h <<\_ACEOF
8773 #define HAVE_GTK 1
8774 _ACEOF
8775
8776 USE_X_TOOLKIT=none
8777
8778 with_toolkit_scroll_bars=yes
8779
8780 HAVE_GTK_MULTIDISPLAY=no
8781
8782 for ac_func in gdk_display_open
8783 do
8784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785 echo "$as_me:$LINENO: checking for $ac_func" >&5
8786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 cat >conftest.$ac_ext <<_ACEOF
8791 #line $LINENO "configure"
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func (); below.
8799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800 <limits.h> exists even on freestanding compilers. */
8801 #ifdef __STDC__
8802 # include <limits.h>
8803 #else
8804 # include <assert.h>
8805 #endif
8806 /* Override any gcc2 internal prototype to avoid an error. */
8807 #ifdef __cplusplus
8808 extern "C"
8809 {
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char $ac_func ();
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8818 choke me
8819 #else
8820 char (*f) () = $ac_func;
8821 #endif
8822 #ifdef __cplusplus
8823 }
8824 #endif
8825
8826 int
8827 main ()
8828 {
8829 return f != $ac_func;
8830 ;
8831 return 0;
8832 }
8833 _ACEOF
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 eval "$as_ac_var=yes"
8847 else
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 eval "$as_ac_var=no"
8852 fi
8853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8854 fi
8855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8857 if test `eval echo '${'$as_ac_var'}'` = yes; then
8858 cat >>confdefs.h <<_ACEOF
8859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8860 _ACEOF
8861 HAVE_GTK_MULTIDISPLAY=yes
8862 fi
8863 done
8864
8865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8866
8867 cat >>confdefs.h <<\_ACEOF
8868 #define HAVE_GTK_MULTIDISPLAY 1
8869 _ACEOF
8870
8871 fi
8872 fi
8873
8874 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8875 if test x"${HAVE_X11R5}" = xyes; then
8876 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8877 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8878 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 /* confdefs.h. */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888
8889 #include <X11/Intrinsic.h>
8890 #include <X11/Xaw/Simple.h>
8891 int
8892 main ()
8893 {
8894
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 emacs_cv_x11_version_5_with_xaw=yes
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 emacs_cv_x11_version_5_with_xaw=no
8917 fi
8918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8919 fi
8920
8921 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8922 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8923 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8924 USE_X_TOOLKIT=LUCID
8925 else
8926 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8927 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8928 USE_X_TOOLKIT=none
8929 fi
8930 else
8931 USE_X_TOOLKIT=none
8932 fi
8933 fi
8934
8935 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8936
8937 if test "${USE_X_TOOLKIT}" != "none"; then
8938 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8939 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8940 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943 cat >conftest.$ac_ext <<_ACEOF
8944 #line $LINENO "configure"
8945 /* confdefs.h. */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 #include <X11/Intrinsic.h>
8951 int
8952 main ()
8953 {
8954 #if XtSpecificationRelease < 6
8955 fail;
8956 #endif
8957
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 emacs_cv_x11_toolkit_version_6=yes
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 emacs_cv_x11_toolkit_version_6=no
8980 fi
8981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8982 fi
8983
8984 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8985 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8986 echo "$as_me:$LINENO: result: 6 or newer" >&5
8987 echo "${ECHO_T}6 or newer" >&6
8988
8989 cat >>confdefs.h <<\_ACEOF
8990 #define HAVE_X11XTR6 1
8991 _ACEOF
8992
8993 else
8994 echo "$as_me:$LINENO: result: before 6" >&5
8995 echo "${ECHO_T}before 6" >&6
8996 fi
8997
8998 OLDLIBS="$LIBS"
8999 if test x$HAVE_X11XTR6 = xyes; then
9000 LIBS="-lXt -lSM -lICE $LIBS"
9001 else
9002 LIBS="-lXt $LIBS"
9003 fi
9004
9005 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9006 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9007 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 ac_check_lib_save_LIBS=$LIBS
9011 LIBS="-lXmu $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF
9013 #line $LINENO "configure"
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019
9020 /* Override any gcc2 internal prototype to avoid an error. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 /* We use char because int might match the return type of a gcc2
9025 builtin and then its argument prototype would still apply. */
9026 char XmuConvertStandardSelection ();
9027 int
9028 main ()
9029 {
9030 XmuConvertStandardSelection ();
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9048 else
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9053 fi
9054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9055 LIBS=$ac_check_lib_save_LIBS
9056 fi
9057 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9058 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9059 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE_LIBXMU 1
9062 _ACEOF
9063
9064 LIBS="-lXmu $LIBS"
9065
9066 fi
9067
9068 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9069 fi
9070
9071 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9072 if test "${HAVE_X11}" = "yes"; then
9073 if test "${USE_X_TOOLKIT}" != "none"; then
9074
9075 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9076 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9077 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 ac_check_lib_save_LIBS=$LIBS
9081 LIBS="-lXext $LIBS"
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 #ifdef __cplusplus
9092 extern "C"
9093 #endif
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096 char XShapeQueryExtension ();
9097 int
9098 main ()
9099 {
9100 XShapeQueryExtension ();
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_Xext_XShapeQueryExtension=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_cv_lib_Xext_XShapeQueryExtension=no
9123 fi
9124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9126 fi
9127 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9128 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9129 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9130 cat >>confdefs.h <<_ACEOF
9131 #define HAVE_LIBXEXT 1
9132 _ACEOF
9133
9134 LIBS="-lXext $LIBS"
9135
9136 fi
9137
9138 fi
9139 fi
9140
9141 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9142 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9143 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9144 if test "${emacs_cv_lesstif+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147 # We put this in CFLAGS temporarily to precede other -I options
9148 # that might be in CFLAGS temporarily.
9149 # We put this in CPPFLAGS where it precedes the other -I options.
9150 OLD_CPPFLAGS=$CPPFLAGS
9151 OLD_CFLAGS=$CFLAGS
9152 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9153 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 #line $LINENO "configure"
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9162 int
9163 main ()
9164 {
9165 int x = 5;
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -s conftest.$ac_objext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 emacs_cv_lesstif=yes
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187 emacs_cv_lesstif=no
9188 fi
9189 rm -f conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9192 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9193 if test $emacs_cv_lesstif = yes; then
9194 # Make sure this -I option remains in CPPFLAGS after it is set
9195 # back to REAL_CPPFLAGS.
9196 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9197 # have those other -I options anyway. Ultimately, having this
9198 # directory ultimately in CPPFLAGS will be enough.
9199 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9200 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9201 else
9202 CFLAGS=$OLD_CFLAGS
9203 CPPFLAGS=$OLD_CPPFLAGS
9204 fi
9205 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9206 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9207 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 cat >conftest.$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <Xm/Xm.h>
9218 int
9219 main ()
9220 {
9221 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9222 int x = 5;
9223 #else
9224 Motif version prior to 2.1.
9225 #endif
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 emacs_cv_motif_version_2_1=yes
9243 else
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 emacs_cv_motif_version_2_1=no
9248 fi
9249 rm -f conftest.$ac_objext conftest.$ac_ext
9250 fi
9251 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9252 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9253 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
9254 if test $emacs_cv_motif_version_2_1 = yes; then
9255 HAVE_LIBXP=no
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_MOTIF_2_1 1
9259 _ACEOF
9260
9261 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9262 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9263 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-lXp $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275
9276 /* Override any gcc2 internal prototype to avoid an error. */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9282 char XpCreateContext ();
9283 int
9284 main ()
9285 {
9286 XpCreateContext ();
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_cv_lib_Xp_XpCreateContext=yes
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 ac_cv_lib_Xp_XpCreateContext=no
9309 fi
9310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9312 fi
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9314 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
9315 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9316 HAVE_LIBXP=yes
9317 fi
9318
9319 if test ${HAVE_LIBXP} = yes; then
9320
9321 cat >>confdefs.h <<\_ACEOF
9322 #define HAVE_LIBXP 1
9323 _ACEOF
9324
9325 fi
9326 fi
9327 fi
9328
9329 ### Is -lXaw3d available?
9330 HAVE_XAW3D=no
9331 if test "${HAVE_X11}" = "yes"; then
9332 if test "${USE_X_TOOLKIT}" != "none"; then
9333 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
9334 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
9335 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338 cat >conftest.$ac_ext <<_ACEOF
9339 #line $LINENO "configure"
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 #include <X11/Xaw3d/Scrollbar.h>
9346 _ACEOF
9347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9349 ac_status=$?
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev/null; then
9355 if test -s conftest.err; then
9356 ac_cpp_err=$ac_c_preproc_warn_flag
9357 else
9358 ac_cpp_err=
9359 fi
9360 else
9361 ac_cpp_err=yes
9362 fi
9363 if test -z "$ac_cpp_err"; then
9364 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
9365 else
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
9370 fi
9371 rm -f conftest.err conftest.$ac_ext
9372 fi
9373 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
9374 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
9375 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
9376 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
9377 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
9378 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 ac_check_lib_save_LIBS=$LIBS
9382 LIBS="-lXaw3d $LIBS"
9383 cat >conftest.$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390
9391 /* Override any gcc2 internal prototype to avoid an error. */
9392 #ifdef __cplusplus
9393 extern "C"
9394 #endif
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9397 char XawScrollbarSetThumb ();
9398 int
9399 main ()
9400 {
9401 XawScrollbarSetThumb ();
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
9424 fi
9425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426 LIBS=$ac_check_lib_save_LIBS
9427 fi
9428 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
9429 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
9430 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
9431 HAVE_XAW3D=yes
9432 fi
9433
9434 fi
9435
9436
9437 if test "${HAVE_XAW3D}" = "yes"; then
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_XAW3D 1
9441 _ACEOF
9442
9443 fi
9444 fi
9445 fi
9446
9447
9448
9449 USE_TOOLKIT_SCROLL_BARS=no
9450 if test "${with_toolkit_scroll_bars}" != "no"; then
9451 if test "${USE_X_TOOLKIT}" != "none"; then
9452 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define USE_TOOLKIT_SCROLL_BARS 1
9455 _ACEOF
9456
9457 HAVE_XAW3D=no
9458 USE_TOOLKIT_SCROLL_BARS=yes
9459 elif test "${HAVE_XAW3D}" = "yes"; then
9460 cat >>confdefs.h <<\_ACEOF
9461 #define USE_TOOLKIT_SCROLL_BARS 1
9462 _ACEOF
9463
9464 USE_TOOLKIT_SCROLL_BARS=yes
9465 fi
9466 elif test "${HAVE_GTK}" = "yes"; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define USE_TOOLKIT_SCROLL_BARS 1
9469 _ACEOF
9470
9471 USE_TOOLKIT_SCROLL_BARS=yes
9472 fi
9473 fi
9474
9475 cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482
9483 #include <X11/Xlib.h>
9484 #include <X11/Xresource.h>
9485 int
9486 main ()
9487 {
9488 XIMProc callback;
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 rm -f conftest.$ac_objext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9495 (eval $ac_compile) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -s conftest.$ac_objext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 HAVE_XIM=yes
9506
9507 cat >>confdefs.h <<\_ACEOF
9508 #define HAVE_XIM 1
9509 _ACEOF
9510
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515 HAVE_XIM=no
9516 fi
9517 rm -f conftest.$ac_objext conftest.$ac_ext
9518
9519
9520 if test "${with_xim}" != "no"; then
9521
9522 cat >>confdefs.h <<\_ACEOF
9523 #define USE_XIM 1
9524 _ACEOF
9525
9526 fi
9527
9528
9529 if test "${HAVE_XIM}" != "no"; then
9530 late_CFLAGS=$CFLAGS
9531 if test "$GCC" = yes; then
9532 CFLAGS="$CFLAGS --pedantic-errors"
9533 fi
9534 cat >conftest.$ac_ext <<_ACEOF
9535 #line $LINENO "configure"
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541
9542 #include <X11/Xlib.h>
9543 #include <X11/Xresource.h>
9544 int
9545 main ()
9546 {
9547 Display *display;
9548 XrmDatabase db;
9549 char *res_name;
9550 char *res_class;
9551 XIMProc callback;
9552 XPointer *client_data;
9553 #ifndef __GNUC__
9554 /* If we're not using GCC, it's probably not XFree86, and this is
9555 probably right, but we can't use something like --pedantic-errors. */
9556 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9557 char*, XIMProc, XPointer*);
9558 #endif
9559 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9560 client_data);
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567 (eval $ac_compile) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 emacs_cv_arg6_star=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582 fi
9583 rm -f conftest.$ac_objext conftest.$ac_ext
9584
9585 if test "$emacs_cv_arg6_star" = yes; then
9586 cat >>confdefs.h <<\_ACEOF
9587 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9588 _ACEOF
9589
9590 else
9591 cat >>confdefs.h <<\_ACEOF
9592 #define XRegisterIMInstantiateCallback_arg6 XPointer
9593 _ACEOF
9594
9595 fi
9596 CFLAGS=$late_CFLAGS
9597 fi
9598
9599 ### Use -lXpm if available, unless `--with-xpm=no'.
9600 HAVE_XPM=no
9601 if test "${HAVE_X11}" = "yes"; then
9602 if test "${with_xpm}" != "no"; then
9603 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9604 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9605 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9606 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 fi
9609 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9610 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9611 else
9612 # Is the header compilable?
9613 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9614 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 $ac_includes_default
9623 #include <X11/xpm.h>
9624 _ACEOF
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_header_compiler=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 ac_header_compiler=no
9643 fi
9644 rm -f conftest.$ac_objext conftest.$ac_ext
9645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6
9647
9648 # Is the header present?
9649 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9650 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
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 #include <X11/xpm.h>
9659 _ACEOF
9660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } >/dev/null; then
9668 if test -s conftest.err; then
9669 ac_cpp_err=$ac_c_preproc_warn_flag
9670 else
9671 ac_cpp_err=
9672 fi
9673 else
9674 ac_cpp_err=yes
9675 fi
9676 if test -z "$ac_cpp_err"; then
9677 ac_header_preproc=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_header_preproc=no
9683 fi
9684 rm -f conftest.err conftest.$ac_ext
9685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686 echo "${ECHO_T}$ac_header_preproc" >&6
9687
9688 # So? What about this header?
9689 case $ac_header_compiler:$ac_header_preproc in
9690 yes:no )
9691 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9692 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9694 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9695 (
9696 cat <<\_ASBOX
9697 ## ------------------------------------ ##
9698 ## Report this to bug-autoconf@gnu.org. ##
9699 ## ------------------------------------ ##
9700 _ASBOX
9701 ) |
9702 sed "s/^/$as_me: WARNING: /" >&2
9703 ;;
9704 no:yes )
9705 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9710 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9711 (
9712 cat <<\_ASBOX
9713 ## ------------------------------------ ##
9714 ## Report this to bug-autoconf@gnu.org. ##
9715 ## ------------------------------------ ##
9716 _ASBOX
9717 ) |
9718 sed "s/^/$as_me: WARNING: /" >&2
9719 ;;
9720 esac
9721 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9722 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9723 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 ac_cv_header_X11_xpm_h=$ac_header_preproc
9727 fi
9728 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9729 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9730
9731 fi
9732 if test $ac_cv_header_X11_xpm_h = yes; then
9733 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9734 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9735 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 ac_check_lib_save_LIBS=$LIBS
9739 LIBS="-lXpm -lX11 $LIBS"
9740 cat >conftest.$ac_ext <<_ACEOF
9741 #line $LINENO "configure"
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char XpmReadFileToPixmap ();
9755 int
9756 main ()
9757 {
9758 XpmReadFileToPixmap ();
9759 ;
9760 return 0;
9761 }
9762 _ACEOF
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9781 fi
9782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_lib_save_LIBS
9784 fi
9785 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9786 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9787 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9788 HAVE_XPM=yes
9789 fi
9790
9791 fi
9792
9793
9794 if test "${HAVE_XPM}" = "yes"; then
9795 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9796 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9797 cat >conftest.$ac_ext <<_ACEOF
9798 #line $LINENO "configure"
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include "X11/xpm.h"
9805 #ifndef XpmReturnAllocPixels
9806 no_return_alloc_pixels
9807 #endif
9808
9809 _ACEOF
9810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9811 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9812 HAVE_XPM=no
9813 else
9814 HAVE_XPM=yes
9815 fi
9816 rm -f conftest*
9817
9818
9819 if test "${HAVE_XPM}" = "yes"; then
9820 echo "$as_me:$LINENO: result: yes" >&5
9821 echo "${ECHO_T}yes" >&6
9822 else
9823 echo "$as_me:$LINENO: result: no" >&5
9824 echo "${ECHO_T}no" >&6
9825 fi
9826 fi
9827 fi
9828
9829 if test "${HAVE_XPM}" = "yes"; then
9830
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_XPM 1
9833 _ACEOF
9834
9835 fi
9836 fi
9837
9838 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9839 HAVE_JPEG=no
9840 if test "${HAVE_X11}" = "yes"; then
9841 if test "${with_jpeg}" != "no"; then
9842 if test "${ac_cv_header_jerror_h+set}" = set; then
9843 echo "$as_me:$LINENO: checking for jerror.h" >&5
9844 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9845 if test "${ac_cv_header_jerror_h+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 fi
9848 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9849 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9850 else
9851 # Is the header compilable?
9852 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9853 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9862 #include <jerror.h>
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_header_compiler=yes
9877 else
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_header_compiler=no
9882 fi
9883 rm -f conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6
9886
9887 # Is the header present?
9888 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9889 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <jerror.h>
9898 _ACEOF
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev/null; then
9907 if test -s conftest.err; then
9908 ac_cpp_err=$ac_c_preproc_warn_flag
9909 else
9910 ac_cpp_err=
9911 fi
9912 else
9913 ac_cpp_err=yes
9914 fi
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921 ac_header_preproc=no
9922 fi
9923 rm -f conftest.err conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9926
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc in
9929 yes:no )
9930 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9934 (
9935 cat <<\_ASBOX
9936 ## ------------------------------------ ##
9937 ## Report this to bug-autoconf@gnu.org. ##
9938 ## ------------------------------------ ##
9939 _ASBOX
9940 ) |
9941 sed "s/^/$as_me: WARNING: /" >&2
9942 ;;
9943 no:yes )
9944 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9945 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9947 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9950 (
9951 cat <<\_ASBOX
9952 ## ------------------------------------ ##
9953 ## Report this to bug-autoconf@gnu.org. ##
9954 ## ------------------------------------ ##
9955 _ASBOX
9956 ) |
9957 sed "s/^/$as_me: WARNING: /" >&2
9958 ;;
9959 esac
9960 echo "$as_me:$LINENO: checking for jerror.h" >&5
9961 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9962 if test "${ac_cv_header_jerror_h+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965 ac_cv_header_jerror_h=$ac_header_preproc
9966 fi
9967 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9968 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9969
9970 fi
9971 if test $ac_cv_header_jerror_h = yes; then
9972 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9973 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9974 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 ac_check_lib_save_LIBS=$LIBS
9978 LIBS="-ljpeg $LIBS"
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986
9987 /* Override any gcc2 internal prototype to avoid an error. */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char jpeg_destroy_compress ();
9994 int
9995 main ()
9996 {
9997 jpeg_destroy_compress ();
9998 ;
9999 return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10020 fi
10021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10025 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10026 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10027 HAVE_JPEG=yes
10028 fi
10029
10030 fi
10031
10032
10033 fi
10034
10035
10036 if test "${HAVE_JPEG}" = "yes"; then
10037 cat >>confdefs.h <<\_ACEOF
10038 #define HAVE_JPEG 1
10039 _ACEOF
10040
10041 cat >conftest.$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <jpeglib.h>
10049 version=JPEG_LIB_VERSION
10050
10051 _ACEOF
10052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10054 cat >>confdefs.h <<\_ACEOF
10055 #define HAVE_JPEG 1
10056 _ACEOF
10057
10058 else
10059 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10060 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10061 HAVE_JPEG=no
10062 fi
10063 rm -f conftest*
10064
10065 fi
10066 fi
10067
10068 ### Use -lpng if available, unless `--with-png=no'.
10069 HAVE_PNG=no
10070 if test "${HAVE_X11}" = "yes"; then
10071 if test "${with_png}" != "no"; then
10072 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10073 # in /usr/include/libpng.
10074
10075
10076 for ac_header in png.h libpng/png.h
10077 do
10078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10080 echo "$as_me:$LINENO: checking for $ac_header" >&5
10081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 fi
10085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10087 else
10088 # Is the header compilable?
10089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10099 #include <$ac_header>
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_header_compiler=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_header_compiler=no
10119 fi
10120 rm -f conftest.$ac_objext conftest.$ac_ext
10121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122 echo "${ECHO_T}$ac_header_compiler" >&6
10123
10124 # Is the header present?
10125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10128 #line $LINENO "configure"
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10135 _ACEOF
10136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } >/dev/null; then
10144 if test -s conftest.err; then
10145 ac_cpp_err=$ac_c_preproc_warn_flag
10146 else
10147 ac_cpp_err=
10148 fi
10149 else
10150 ac_cpp_err=yes
10151 fi
10152 if test -z "$ac_cpp_err"; then
10153 ac_header_preproc=yes
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_header_preproc=no
10159 fi
10160 rm -f conftest.err conftest.$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10162 echo "${ECHO_T}$ac_header_preproc" >&6
10163
10164 # So? What about this header?
10165 case $ac_header_compiler:$ac_header_preproc in
10166 yes:no )
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10171 (
10172 cat <<\_ASBOX
10173 ## ------------------------------------ ##
10174 ## Report this to bug-autoconf@gnu.org. ##
10175 ## ------------------------------------ ##
10176 _ASBOX
10177 ) |
10178 sed "s/^/$as_me: WARNING: /" >&2
10179 ;;
10180 no:yes )
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10187 (
10188 cat <<\_ASBOX
10189 ## ------------------------------------ ##
10190 ## Report this to bug-autoconf@gnu.org. ##
10191 ## ------------------------------------ ##
10192 _ASBOX
10193 ) |
10194 sed "s/^/$as_me: WARNING: /" >&2
10195 ;;
10196 esac
10197 echo "$as_me:$LINENO: checking for $ac_header" >&5
10198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 eval "$as_ac_Header=$ac_header_preproc"
10203 fi
10204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10206
10207 fi
10208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10209 cat >>confdefs.h <<_ACEOF
10210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10211 _ACEOF
10212
10213 fi
10214
10215 done
10216
10217 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10218 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10219 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
10220 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-lpng -lz -lm $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10227 /* confdefs.h. */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232
10233 /* Override any gcc2 internal prototype to avoid an error. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10239 char png_get_channels ();
10240 int
10241 main ()
10242 {
10243 png_get_channels ();
10244 ;
10245 return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_png_png_get_channels=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_cv_lib_png_png_get_channels=no
10266 fi
10267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_check_lib_save_LIBS
10269 fi
10270 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10271 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
10272 if test $ac_cv_lib_png_png_get_channels = yes; then
10273 HAVE_PNG=yes
10274 fi
10275
10276 fi
10277 fi
10278
10279 if test "${HAVE_PNG}" = "yes"; then
10280
10281 cat >>confdefs.h <<\_ACEOF
10282 #define HAVE_PNG 1
10283 _ACEOF
10284
10285 fi
10286 fi
10287
10288 ### Use -ltiff if available, unless `--with-tiff=no'.
10289 HAVE_TIFF=no
10290 if test "${HAVE_X11}" = "yes"; then
10291 if test "${with_tiff}" != "no"; then
10292 if test "${ac_cv_header_tiffio_h+set}" = set; then
10293 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10294 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10295 if test "${ac_cv_header_tiffio_h+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 fi
10298 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10299 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10300 else
10301 # Is the header compilable?
10302 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
10303 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10305 #line $LINENO "configure"
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10312 #include <tiffio.h>
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_header_compiler=yes
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_header_compiler=no
10332 fi
10333 rm -f conftest.$ac_objext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10335 echo "${ECHO_T}$ac_header_compiler" >&6
10336
10337 # Is the header present?
10338 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
10339 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <tiffio.h>
10348 _ACEOF
10349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } >/dev/null; then
10357 if test -s conftest.err; then
10358 ac_cpp_err=$ac_c_preproc_warn_flag
10359 else
10360 ac_cpp_err=
10361 fi
10362 else
10363 ac_cpp_err=yes
10364 fi
10365 if test -z "$ac_cpp_err"; then
10366 ac_header_preproc=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_header_preproc=no
10372 fi
10373 rm -f conftest.err conftest.$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10375 echo "${ECHO_T}$ac_header_preproc" >&6
10376
10377 # So? What about this header?
10378 case $ac_header_compiler:$ac_header_preproc in
10379 yes:no )
10380 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10381 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10383 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10384 (
10385 cat <<\_ASBOX
10386 ## ------------------------------------ ##
10387 ## Report this to bug-autoconf@gnu.org. ##
10388 ## ------------------------------------ ##
10389 _ASBOX
10390 ) |
10391 sed "s/^/$as_me: WARNING: /" >&2
10392 ;;
10393 no:yes )
10394 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
10395 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
10397 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10399 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10400 (
10401 cat <<\_ASBOX
10402 ## ------------------------------------ ##
10403 ## Report this to bug-autoconf@gnu.org. ##
10404 ## ------------------------------------ ##
10405 _ASBOX
10406 ) |
10407 sed "s/^/$as_me: WARNING: /" >&2
10408 ;;
10409 esac
10410 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10411 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10412 if test "${ac_cv_header_tiffio_h+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 ac_cv_header_tiffio_h=$ac_header_preproc
10416 fi
10417 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10418 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10419
10420 fi
10421 if test $ac_cv_header_tiffio_h = yes; then
10422 tifflibs="-lz -lm"
10423 # At least one tiff package requires the jpeg library.
10424 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10425 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10426 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
10427 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430 ac_check_lib_save_LIBS=$LIBS
10431 LIBS="-ltiff $tifflibs $LIBS"
10432 cat >conftest.$ac_ext <<_ACEOF
10433 #line $LINENO "configure"
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439
10440 /* Override any gcc2 internal prototype to avoid an error. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446 char TIFFGetVersion ();
10447 int
10448 main ()
10449 {
10450 TIFFGetVersion ();
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_tiff_TIFFGetVersion=yes
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 ac_cv_lib_tiff_TIFFGetVersion=no
10473 fi
10474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10476 fi
10477 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10478 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
10479 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10480 HAVE_TIFF=yes
10481 fi
10482
10483 fi
10484
10485
10486 fi
10487
10488 if test "${HAVE_TIFF}" = "yes"; then
10489
10490 cat >>confdefs.h <<\_ACEOF
10491 #define HAVE_TIFF 1
10492 _ACEOF
10493
10494 fi
10495 fi
10496
10497 ### Use -lgif if available, unless `--with-gif=no'.
10498 HAVE_GIF=no
10499 if test "${HAVE_X11}" = "yes"; then
10500 if test "${with_gif}" != "no"; then
10501 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10502 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10503 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10504 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10508 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10509 else
10510 # Is the header compilable?
10511 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
10512 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
10513 cat >conftest.$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #include <gif_lib.h>
10522 _ACEOF
10523 rm -f conftest.$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_header_compiler=yes
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_header_compiler=no
10541 fi
10542 rm -f conftest.$ac_objext conftest.$ac_ext
10543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544 echo "${ECHO_T}$ac_header_compiler" >&6
10545
10546 # Is the header present?
10547 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10548 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10549 cat >conftest.$ac_ext <<_ACEOF
10550 #line $LINENO "configure"
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 #include <gif_lib.h>
10557 _ACEOF
10558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } >/dev/null; then
10566 if test -s conftest.err; then
10567 ac_cpp_err=$ac_c_preproc_warn_flag
10568 else
10569 ac_cpp_err=
10570 fi
10571 else
10572 ac_cpp_err=yes
10573 fi
10574 if test -z "$ac_cpp_err"; then
10575 ac_header_preproc=yes
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 ac_header_preproc=no
10581 fi
10582 rm -f conftest.err conftest.$ac_ext
10583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10584 echo "${ECHO_T}$ac_header_preproc" >&6
10585
10586 # So? What about this header?
10587 case $ac_header_compiler:$ac_header_preproc in
10588 yes:no )
10589 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10590 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10593 (
10594 cat <<\_ASBOX
10595 ## ------------------------------------ ##
10596 ## Report this to bug-autoconf@gnu.org. ##
10597 ## ------------------------------------ ##
10598 _ASBOX
10599 ) |
10600 sed "s/^/$as_me: WARNING: /" >&2
10601 ;;
10602 no:yes )
10603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10609 (
10610 cat <<\_ASBOX
10611 ## ------------------------------------ ##
10612 ## Report this to bug-autoconf@gnu.org. ##
10613 ## ------------------------------------ ##
10614 _ASBOX
10615 ) |
10616 sed "s/^/$as_me: WARNING: /" >&2
10617 ;;
10618 esac
10619 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10620 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10621 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 ac_cv_header_gif_lib_h=$ac_header_preproc
10625 fi
10626 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10627 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10628
10629 fi
10630 if test $ac_cv_header_gif_lib_h = yes; then
10631 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10632 # Earlier versions can crash Emacs.
10633 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10634 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10635 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-lungif $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647
10648 /* Override any gcc2 internal prototype to avoid an error. */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char EGifPutExtensionLast ();
10655 int
10656 main ()
10657 {
10658 EGifPutExtensionLast ();
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10679
10680 ac_cv_lib_ungif_EGifPutExtensionLast=no
10681 fi
10682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10686 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10687 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10688 HAVE_GIF=yes
10689 fi
10690
10691 fi
10692
10693
10694 fi
10695
10696 if test "${HAVE_GIF}" = "yes"; then
10697
10698 cat >>confdefs.h <<\_ACEOF
10699 #define HAVE_GIF 1
10700 _ACEOF
10701
10702 fi
10703 fi
10704
10705 ### Use Mac OS X Carbon API to implement GUI.
10706 HAVE_CARBON=no
10707 if test "${with_carbon}" != "no"; then
10708 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10709 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10710 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10711 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 fi
10714 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10715 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10716 else
10717 # Is the header compilable?
10718 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10719 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 $ac_includes_default
10728 #include <Carbon/Carbon.h>
10729 _ACEOF
10730 rm -f conftest.$ac_objext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_header_compiler=yes
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 ac_header_compiler=no
10748 fi
10749 rm -f conftest.$ac_objext conftest.$ac_ext
10750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751 echo "${ECHO_T}$ac_header_compiler" >&6
10752
10753 # Is the header present?
10754 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10755 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10756 cat >conftest.$ac_ext <<_ACEOF
10757 #line $LINENO "configure"
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <Carbon/Carbon.h>
10764 _ACEOF
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then
10774 ac_cpp_err=$ac_c_preproc_warn_flag
10775 else
10776 ac_cpp_err=
10777 fi
10778 else
10779 ac_cpp_err=yes
10780 fi
10781 if test -z "$ac_cpp_err"; then
10782 ac_header_preproc=yes
10783 else
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787 ac_header_preproc=no
10788 fi
10789 rm -f conftest.err conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10791 echo "${ECHO_T}$ac_header_preproc" >&6
10792
10793 # So? What about this header?
10794 case $ac_header_compiler:$ac_header_preproc in
10795 yes:no )
10796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10797 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10800 (
10801 cat <<\_ASBOX
10802 ## ------------------------------------ ##
10803 ## Report this to bug-autoconf@gnu.org. ##
10804 ## ------------------------------------ ##
10805 _ASBOX
10806 ) |
10807 sed "s/^/$as_me: WARNING: /" >&2
10808 ;;
10809 no:yes )
10810 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10816 (
10817 cat <<\_ASBOX
10818 ## ------------------------------------ ##
10819 ## Report this to bug-autoconf@gnu.org. ##
10820 ## ------------------------------------ ##
10821 _ASBOX
10822 ) |
10823 sed "s/^/$as_me: WARNING: /" >&2
10824 ;;
10825 esac
10826 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10827 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10828 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10832 fi
10833 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10834 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10835
10836 fi
10837 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10838 HAVE_CARBON=yes
10839 fi
10840
10841
10842 fi
10843
10844 if test "${HAVE_CARBON}" = "yes"; then
10845
10846 cat >>confdefs.h <<\_ACEOF
10847 #define HAVE_CARBON 1
10848 _ACEOF
10849
10850 window_system=mac
10851 ## Specify the install directory
10852 carbon_appdir=
10853 if test "${carbon_appdir_x}" != ""; then
10854 case ${carbon_appdir_x} in
10855 y | ye | yes) carbon_appdir=/Applications ;;
10856 * ) carbon_appdir=${carbon_appdir_x} ;;
10857 esac
10858 fi
10859 # We also have mouse menus.
10860 HAVE_MENUS=yes
10861 fi
10862
10863 ### Use session management (-lSM -lICE) if available
10864 HAVE_X_SM=no
10865 if test "${HAVE_X11}" = "yes"; then
10866 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10867 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10868 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10869 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 fi
10872 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10873 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10874 else
10875 # Is the header compilable?
10876 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10877 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10878 cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <X11/SM/SMlib.h>
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_header_compiler=yes
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 ac_header_compiler=no
10906 fi
10907 rm -f conftest.$ac_objext conftest.$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909 echo "${ECHO_T}$ac_header_compiler" >&6
10910
10911 # Is the header present?
10912 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10913 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10914 cat >conftest.$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <X11/SM/SMlib.h>
10922 _ACEOF
10923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } >/dev/null; then
10931 if test -s conftest.err; then
10932 ac_cpp_err=$ac_c_preproc_warn_flag
10933 else
10934 ac_cpp_err=
10935 fi
10936 else
10937 ac_cpp_err=yes
10938 fi
10939 if test -z "$ac_cpp_err"; then
10940 ac_header_preproc=yes
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 ac_header_preproc=no
10946 fi
10947 rm -f conftest.err conftest.$ac_ext
10948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10949 echo "${ECHO_T}$ac_header_preproc" >&6
10950
10951 # So? What about this header?
10952 case $ac_header_compiler:$ac_header_preproc in
10953 yes:no )
10954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10955 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10957 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10958 (
10959 cat <<\_ASBOX
10960 ## ------------------------------------ ##
10961 ## Report this to bug-autoconf@gnu.org. ##
10962 ## ------------------------------------ ##
10963 _ASBOX
10964 ) |
10965 sed "s/^/$as_me: WARNING: /" >&2
10966 ;;
10967 no:yes )
10968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10969 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10971 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10973 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10974 (
10975 cat <<\_ASBOX
10976 ## ------------------------------------ ##
10977 ## Report this to bug-autoconf@gnu.org. ##
10978 ## ------------------------------------ ##
10979 _ASBOX
10980 ) |
10981 sed "s/^/$as_me: WARNING: /" >&2
10982 ;;
10983 esac
10984 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10985 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10986 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10990 fi
10991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10992 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10993
10994 fi
10995 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10996 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10997 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10998 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lSM -lICE $LIBS"
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11005 /* confdefs.h. */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010
11011 /* Override any gcc2 internal prototype to avoid an error. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017 char SmcOpenConnection ();
11018 int
11019 main ()
11020 {
11021 SmcOpenConnection ();
11022 ;
11023 return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_lib_SM_SmcOpenConnection=yes
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_cv_lib_SM_SmcOpenConnection=no
11044 fi
11045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11047 fi
11048 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11049 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
11050 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
11051 HAVE_X_SM=yes
11052 fi
11053
11054 fi
11055
11056
11057
11058 if test "${HAVE_X_SM}" = "yes"; then
11059
11060 cat >>confdefs.h <<\_ACEOF
11061 #define HAVE_X_SM 1
11062 _ACEOF
11063
11064 case "$LIBS" in
11065 *-lSM*) ;;
11066 *) LIBS="-lSM -lICE $LIBS" ;;
11067 esac
11068 fi
11069 fi
11070
11071 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11072 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
11073 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
11074 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077 cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 #include <netdb.h>
11085 int
11086 main ()
11087 {
11088 return h_errno;
11089 ;
11090 return 0;
11091 }
11092 _ACEOF
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -s conftest$ac_exeext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 emacs_cv_netdb_declares_h_errno=yes
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 emacs_cv_netdb_declares_h_errno=no
11111 fi
11112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11113 fi
11114 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11115 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11116 if test $emacs_cv_netdb_declares_h_errno = yes; then
11117
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_H_ERRNO 1
11120 _ACEOF
11121
11122 fi
11123
11124 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11125 # for constant arguments. Useless!
11126 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11127 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11128 if test "${ac_cv_working_alloca_h+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131 cat >conftest.$ac_ext <<_ACEOF
11132 #line $LINENO "configure"
11133 /* confdefs.h. */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <alloca.h>
11139 int
11140 main ()
11141 {
11142 char *p = (char *) alloca (2 * sizeof (int));
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -s conftest$ac_exeext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_working_alloca_h=yes
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164 ac_cv_working_alloca_h=no
11165 fi
11166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11167 fi
11168 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11169 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11170 if test $ac_cv_working_alloca_h = yes; then
11171
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_ALLOCA_H 1
11174 _ACEOF
11175
11176 fi
11177
11178 echo "$as_me:$LINENO: checking for alloca" >&5
11179 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11180 if test "${ac_cv_func_alloca_works+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183 cat >conftest.$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11185 /* confdefs.h. */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 #ifdef __GNUC__
11191 # define alloca __builtin_alloca
11192 #else
11193 # ifdef _MSC_VER
11194 # include <malloc.h>
11195 # define alloca _alloca
11196 # else
11197 # if HAVE_ALLOCA_H
11198 # include <alloca.h>
11199 # else
11200 # ifdef _AIX
11201 #pragma alloca
11202 # else
11203 # ifndef alloca /* predefined by HP cc +Olibcalls */
11204 char *alloca ();
11205 # endif
11206 # endif
11207 # endif
11208 # endif
11209 #endif
11210
11211 int
11212 main ()
11213 {
11214 char *p = (char *) alloca (1);
11215 ;
11216 return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -s conftest$ac_exeext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ac_cv_func_alloca_works=yes
11232 else
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 ac_cv_func_alloca_works=no
11237 fi
11238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11239 fi
11240 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11241 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11242
11243 if test $ac_cv_func_alloca_works = yes; then
11244
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_ALLOCA 1
11247 _ACEOF
11248
11249 else
11250 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11251 # that cause trouble. Some versions do not even contain alloca or
11252 # contain a buggy version. If you still want to use their alloca,
11253 # use ar to extract alloca.o from them instead of compiling alloca.c.
11254
11255 ALLOCA=alloca.$ac_objext
11256
11257 cat >>confdefs.h <<\_ACEOF
11258 #define C_ALLOCA 1
11259 _ACEOF
11260
11261
11262 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11263 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11264 if test "${ac_cv_os_cray+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 cat >conftest.$ac_ext <<_ACEOF
11268 #line $LINENO "configure"
11269 /* confdefs.h. */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 #if defined(CRAY) && ! defined(CRAY2)
11275 webecray
11276 #else
11277 wenotbecray
11278 #endif
11279
11280 _ACEOF
11281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11282 $EGREP "webecray" >/dev/null 2>&1; then
11283 ac_cv_os_cray=yes
11284 else
11285 ac_cv_os_cray=no
11286 fi
11287 rm -f conftest*
11288
11289 fi
11290 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11291 echo "${ECHO_T}$ac_cv_os_cray" >&6
11292 if test $ac_cv_os_cray = yes; then
11293 for ac_func in _getb67 GETB67 getb67; do
11294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 echo "$as_me:$LINENO: checking for $ac_func" >&5
11296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11297 if eval "test \"\${$as_ac_var+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 cat >conftest.$ac_ext <<_ACEOF
11301 #line $LINENO "configure"
11302 /* confdefs.h. */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11311 #ifdef __STDC__
11312 # include <limits.h>
11313 #else
11314 # include <assert.h>
11315 #endif
11316 /* Override any gcc2 internal prototype to avoid an error. */
11317 #ifdef __cplusplus
11318 extern "C"
11319 {
11320 #endif
11321 /* We use char because int might match the return type of a gcc2
11322 builtin and then its argument prototype would still apply. */
11323 char $ac_func ();
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11328 choke me
11329 #else
11330 char (*f) () = $ac_func;
11331 #endif
11332 #ifdef __cplusplus
11333 }
11334 #endif
11335
11336 int
11337 main ()
11338 {
11339 return f != $ac_func;
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 eval "$as_ac_var=yes"
11357 else
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 eval "$as_ac_var=no"
11362 fi
11363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 fi
11365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11367 if test `eval echo '${'$as_ac_var'}'` = yes; then
11368
11369 cat >>confdefs.h <<_ACEOF
11370 #define CRAY_STACKSEG_END $ac_func
11371 _ACEOF
11372
11373 break
11374 fi
11375
11376 done
11377 fi
11378
11379 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11380 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11381 if test "${ac_cv_c_stack_direction+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384 if test "$cross_compiling" = yes; then
11385 ac_cv_c_stack_direction=0
11386 else
11387 cat >conftest.$ac_ext <<_ACEOF
11388 #line $LINENO "configure"
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 int
11395 find_stack_direction ()
11396 {
11397 static char *addr = 0;
11398 auto char dummy;
11399 if (addr == 0)
11400 {
11401 addr = &dummy;
11402 return find_stack_direction ();
11403 }
11404 else
11405 return (&dummy > addr) ? 1 : -1;
11406 }
11407
11408 int
11409 main ()
11410 {
11411 exit (find_stack_direction () < 0);
11412 }
11413 _ACEOF
11414 rm -f conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_c_stack_direction=1
11426 else
11427 echo "$as_me: program exited with status $ac_status" >&5
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 ( exit $ac_status )
11432 ac_cv_c_stack_direction=-1
11433 fi
11434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11435 fi
11436 fi
11437 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11438 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11439
11440 cat >>confdefs.h <<_ACEOF
11441 #define STACK_DIRECTION $ac_cv_c_stack_direction
11442 _ACEOF
11443
11444
11445 fi
11446
11447
11448 # fmod, logb, and frexp are found in -lm on most systems.
11449 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11450
11451 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
11452 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
11453 if test "${ac_cv_lib_m_sqrt+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456 ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-lm $LIBS"
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
11466 /* Override any gcc2 internal prototype to avoid an error. */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 /* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11472 char sqrt ();
11473 int
11474 main ()
11475 {
11476 sqrt ();
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -s conftest$ac_exeext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 ac_cv_lib_m_sqrt=yes
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498 ac_cv_lib_m_sqrt=no
11499 fi
11500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11502 fi
11503 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
11504 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
11505 if test $ac_cv_lib_m_sqrt = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define HAVE_LIBM 1
11508 _ACEOF
11509
11510 LIBS="-lm $LIBS"
11511
11512 fi
11513
11514
11515 # Check for mail-locking functions in a "mail" library. Probably this should
11516 # have the same check as for liblockfile below.
11517
11518 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
11519 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
11520 if test "${ac_cv_lib_mail_maillock+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523 ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-lmail $LIBS"
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532
11533 /* Override any gcc2 internal prototype to avoid an error. */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11539 char maillock ();
11540 int
11541 main ()
11542 {
11543 maillock ();
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -s conftest$ac_exeext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_lib_mail_maillock=yes
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_cv_lib_mail_maillock=no
11566 fi
11567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11571 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11572 if test $ac_cv_lib_mail_maillock = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define HAVE_LIBMAIL 1
11575 _ACEOF
11576
11577 LIBS="-lmail $LIBS"
11578
11579 fi
11580
11581
11582 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11583 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11584 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587 ac_check_lib_save_LIBS=$LIBS
11588 LIBS="-llockfile $LIBS"
11589 cat >conftest.$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 /* confdefs.h. */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596
11597 /* Override any gcc2 internal prototype to avoid an error. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603 char maillock ();
11604 int
11605 main ()
11606 {
11607 maillock ();
11608 ;
11609 return 0;
11610 }
11611 _ACEOF
11612 rm -f conftest.$ac_objext conftest$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -s conftest$ac_exeext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_cv_lib_lockfile_maillock=yes
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_cv_lib_lockfile_maillock=no
11630 fi
11631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11632 LIBS=$ac_check_lib_save_LIBS
11633 fi
11634 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11635 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11636 if test $ac_cv_lib_lockfile_maillock = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define HAVE_LIBLOCKFILE 1
11639 _ACEOF
11640
11641 LIBS="-llockfile $LIBS"
11642
11643 fi
11644
11645 # If we have the shared liblockfile, assume we must use it for mail
11646 # locking (e.g. Debian). If we couldn't link against liblockfile
11647 # (no liblockfile.a installed), ensure that we don't need to.
11648 if test "$ac_cv_lib_lockfile_maillock" = no; then
11649 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11650 set dummy liblockfile.so; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_liblockfile+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 if test -n "$liblockfile"; then
11657 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11661 for as_dir in $as_dummy
11662 do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_prog_liblockfile="yes"
11668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11670 fi
11671 done
11672 done
11673
11674 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11675 fi
11676 fi
11677 liblockfile=$ac_cv_prog_liblockfile
11678 if test -n "$liblockfile"; then
11679 echo "$as_me:$LINENO: result: $liblockfile" >&5
11680 echo "${ECHO_T}$liblockfile" >&6
11681 else
11682 echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11684 fi
11685
11686 if test $ac_cv_prog_liblockfile = yes; then
11687 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11688 This probably means that movemail could lose mail.
11689 There may be a \`development' package to install containing liblockfile." >&5
11690 echo "$as_me: error: Shared liblockfile found but can't link against it.
11691 This probably means that movemail could lose mail.
11692 There may be a \`development' package to install containing liblockfile." >&2;}
11693 { (exit 1); exit 1; }; }
11694 else :
11695 fi
11696 fi
11697
11698 for ac_func in touchlock
11699 do
11700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11701 echo "$as_me:$LINENO: checking for $ac_func" >&5
11702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11703 if eval "test \"\${$as_ac_var+set}\" = set"; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 cat >conftest.$ac_ext <<_ACEOF
11707 #line $LINENO "configure"
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 /* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */
11717 #ifdef __STDC__
11718 # include <limits.h>
11719 #else
11720 # include <assert.h>
11721 #endif
11722 /* Override any gcc2 internal prototype to avoid an error. */
11723 #ifdef __cplusplus
11724 extern "C"
11725 {
11726 #endif
11727 /* We use char because int might match the return type of a gcc2
11728 builtin and then its argument prototype would still apply. */
11729 char $ac_func ();
11730 /* The GNU C library defines this for functions which it implements
11731 to always fail with ENOSYS. Some functions are actually named
11732 something starting with __ and the normal name is an alias. */
11733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11734 choke me
11735 #else
11736 char (*f) () = $ac_func;
11737 #endif
11738 #ifdef __cplusplus
11739 }
11740 #endif
11741
11742 int
11743 main ()
11744 {
11745 return f != $ac_func;
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 eval "$as_ac_var=yes"
11763 else
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767 eval "$as_ac_var=no"
11768 fi
11769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11770 fi
11771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774 cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11776 _ACEOF
11777
11778 fi
11779 done
11780
11781
11782 for ac_header in maillock.h
11783 do
11784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11786 echo "$as_me:$LINENO: checking for $ac_header" >&5
11787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 fi
11791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11793 else
11794 # Is the header compilable?
11795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11798 #line $LINENO "configure"
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 #include <$ac_header>
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -s conftest.$ac_objext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_header_compiler=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_header_compiler=no
11825 fi
11826 rm -f conftest.$ac_objext conftest.$ac_ext
11827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11828 echo "${ECHO_T}$ac_header_compiler" >&6
11829
11830 # Is the header present?
11831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 #include <$ac_header>
11841 _ACEOF
11842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev/null; then
11850 if test -s conftest.err; then
11851 ac_cpp_err=$ac_c_preproc_warn_flag
11852 else
11853 ac_cpp_err=
11854 fi
11855 else
11856 ac_cpp_err=yes
11857 fi
11858 if test -z "$ac_cpp_err"; then
11859 ac_header_preproc=yes
11860 else
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_header_preproc=no
11865 fi
11866 rm -f conftest.err conftest.$ac_ext
11867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11868 echo "${ECHO_T}$ac_header_preproc" >&6
11869
11870 # So? What about this header?
11871 case $ac_header_compiler:$ac_header_preproc in
11872 yes:no )
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11877 (
11878 cat <<\_ASBOX
11879 ## ------------------------------------ ##
11880 ## Report this to bug-autoconf@gnu.org. ##
11881 ## ------------------------------------ ##
11882 _ASBOX
11883 ) |
11884 sed "s/^/$as_me: WARNING: /" >&2
11885 ;;
11886 no:yes )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11893 (
11894 cat <<\_ASBOX
11895 ## ------------------------------------ ##
11896 ## Report this to bug-autoconf@gnu.org. ##
11897 ## ------------------------------------ ##
11898 _ASBOX
11899 ) |
11900 sed "s/^/$as_me: WARNING: /" >&2
11901 ;;
11902 esac
11903 echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 eval "$as_ac_Header=$ac_header_preproc"
11909 fi
11910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11912
11913 fi
11914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11915 cat >>confdefs.h <<_ACEOF
11916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11917 _ACEOF
11918
11919 fi
11920
11921 done
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991 for ac_func in gethostname getdomainname dup2 \
11992 rename closedir mkdir rmdir sysinfo \
11993 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11994 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11995 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11996 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11997 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11998 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11999 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
12000 do
12001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12002 echo "$as_me:$LINENO: checking for $ac_func" >&5
12003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12004 if eval "test \"\${$as_ac_var+set}\" = set"; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007 cat >conftest.$ac_ext <<_ACEOF
12008 #line $LINENO "configure"
12009 /* confdefs.h. */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */
12018 #ifdef __STDC__
12019 # include <limits.h>
12020 #else
12021 # include <assert.h>
12022 #endif
12023 /* Override any gcc2 internal prototype to avoid an error. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 {
12027 #endif
12028 /* We use char because int might match the return type of a gcc2
12029 builtin and then its argument prototype would still apply. */
12030 char $ac_func ();
12031 /* The GNU C library defines this for functions which it implements
12032 to always fail with ENOSYS. Some functions are actually named
12033 something starting with __ and the normal name is an alias. */
12034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12035 choke me
12036 #else
12037 char (*f) () = $ac_func;
12038 #endif
12039 #ifdef __cplusplus
12040 }
12041 #endif
12042
12043 int
12044 main ()
12045 {
12046 return f != $ac_func;
12047 ;
12048 return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -s conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 eval "$as_ac_var=yes"
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 eval "$as_ac_var=no"
12069 fi
12070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12071 fi
12072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12074 if test `eval echo '${'$as_ac_var'}'` = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12077 _ACEOF
12078
12079 fi
12080 done
12081
12082
12083
12084 for ac_header in sys/un.h
12085 do
12086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12088 echo "$as_me:$LINENO: checking for $ac_header" >&5
12089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 fi
12093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12095 else
12096 # Is the header compilable?
12097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 $ac_includes_default
12107 #include <$ac_header>
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -s conftest.$ac_objext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_header_compiler=yes
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 ac_header_compiler=no
12127 fi
12128 rm -f conftest.$ac_objext conftest.$ac_ext
12129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6
12131
12132 # Is the header present?
12133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <$ac_header>
12143 _ACEOF
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev/null; then
12152 if test -s conftest.err; then
12153 ac_cpp_err=$ac_c_preproc_warn_flag
12154 else
12155 ac_cpp_err=
12156 fi
12157 else
12158 ac_cpp_err=yes
12159 fi
12160 if test -z "$ac_cpp_err"; then
12161 ac_header_preproc=yes
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 ac_header_preproc=no
12167 fi
12168 rm -f conftest.err conftest.$ac_ext
12169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12170 echo "${ECHO_T}$ac_header_preproc" >&6
12171
12172 # So? What about this header?
12173 case $ac_header_compiler:$ac_header_preproc in
12174 yes:no )
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12179 (
12180 cat <<\_ASBOX
12181 ## ------------------------------------ ##
12182 ## Report this to bug-autoconf@gnu.org. ##
12183 ## ------------------------------------ ##
12184 _ASBOX
12185 ) |
12186 sed "s/^/$as_me: WARNING: /" >&2
12187 ;;
12188 no:yes )
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12195 (
12196 cat <<\_ASBOX
12197 ## ------------------------------------ ##
12198 ## Report this to bug-autoconf@gnu.org. ##
12199 ## ------------------------------------ ##
12200 _ASBOX
12201 ) |
12202 sed "s/^/$as_me: WARNING: /" >&2
12203 ;;
12204 esac
12205 echo "$as_me:$LINENO: checking for $ac_header" >&5
12206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 eval "$as_ac_Header=$ac_header_preproc"
12211 fi
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12214
12215 fi
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h <<_ACEOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12219 _ACEOF
12220
12221 fi
12222
12223 done
12224
12225
12226
12227
12228 for ac_header in sys/time.h unistd.h
12229 do
12230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo "$as_me:$LINENO: checking for $ac_header" >&5
12233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 fi
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12239 else
12240 # Is the header compilable?
12241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12243 cat >conftest.$ac_ext <<_ACEOF
12244 #line $LINENO "configure"
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 $ac_includes_default
12251 #include <$ac_header>
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
12259 { ac_try='test -s conftest.$ac_objext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_header_compiler=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270 ac_header_compiler=no
12271 fi
12272 rm -f conftest.$ac_objext conftest.$ac_ext
12273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12274 echo "${ECHO_T}$ac_header_compiler" >&6
12275
12276 # Is the header present?
12277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12279 cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <$ac_header>
12287 _ACEOF
12288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } >/dev/null; then
12296 if test -s conftest.err; then
12297 ac_cpp_err=$ac_c_preproc_warn_flag
12298 else
12299 ac_cpp_err=
12300 fi
12301 else
12302 ac_cpp_err=yes
12303 fi
12304 if test -z "$ac_cpp_err"; then
12305 ac_header_preproc=yes
12306 else
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ac_header_preproc=no
12311 fi
12312 rm -f conftest.err conftest.$ac_ext
12313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12314 echo "${ECHO_T}$ac_header_preproc" >&6
12315
12316 # So? What about this header?
12317 case $ac_header_compiler:$ac_header_preproc in
12318 yes:no )
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12323 (
12324 cat <<\_ASBOX
12325 ## ------------------------------------ ##
12326 ## Report this to bug-autoconf@gnu.org. ##
12327 ## ------------------------------------ ##
12328 _ASBOX
12329 ) |
12330 sed "s/^/$as_me: WARNING: /" >&2
12331 ;;
12332 no:yes )
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12339 (
12340 cat <<\_ASBOX
12341 ## ------------------------------------ ##
12342 ## Report this to bug-autoconf@gnu.org. ##
12343 ## ------------------------------------ ##
12344 _ASBOX
12345 ) |
12346 sed "s/^/$as_me: WARNING: /" >&2
12347 ;;
12348 esac
12349 echo "$as_me:$LINENO: checking for $ac_header" >&5
12350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354 eval "$as_ac_Header=$ac_header_preproc"
12355 fi
12356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12358
12359 fi
12360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12361 cat >>confdefs.h <<_ACEOF
12362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12363 _ACEOF
12364
12365 fi
12366
12367 done
12368
12369
12370 for ac_func in alarm
12371 do
12372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12373 echo "$as_me:$LINENO: checking for $ac_func" >&5
12374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12375 if eval "test \"\${$as_ac_var+set}\" = set"; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 cat >conftest.$ac_ext <<_ACEOF
12379 #line $LINENO "configure"
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 /* System header to define __stub macros and hopefully few prototypes,
12386 which can conflict with char $ac_func (); below.
12387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12388 <limits.h> exists even on freestanding compilers. */
12389 #ifdef __STDC__
12390 # include <limits.h>
12391 #else
12392 # include <assert.h>
12393 #endif
12394 /* Override any gcc2 internal prototype to avoid an error. */
12395 #ifdef __cplusplus
12396 extern "C"
12397 {
12398 #endif
12399 /* We use char because int might match the return type of a gcc2
12400 builtin and then its argument prototype would still apply. */
12401 char $ac_func ();
12402 /* The GNU C library defines this for functions which it implements
12403 to always fail with ENOSYS. Some functions are actually named
12404 something starting with __ and the normal name is an alias. */
12405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12406 choke me
12407 #else
12408 char (*f) () = $ac_func;
12409 #endif
12410 #ifdef __cplusplus
12411 }
12412 #endif
12413
12414 int
12415 main ()
12416 {
12417 return f != $ac_func;
12418 ;
12419 return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424 (eval $ac_link) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 eval "$as_ac_var=yes"
12435 else
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439 eval "$as_ac_var=no"
12440 fi
12441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12442 fi
12443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12445 if test `eval echo '${'$as_ac_var'}'` = yes; then
12446 cat >>confdefs.h <<_ACEOF
12447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12448 _ACEOF
12449
12450 fi
12451 done
12452
12453 echo "$as_me:$LINENO: checking for working mktime" >&5
12454 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12455 if test "${ac_cv_func_working_mktime+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 if test "$cross_compiling" = yes; then
12459 ac_cv_func_working_mktime=no
12460 else
12461 cat >conftest.$ac_ext <<_ACEOF
12462 #line $LINENO "configure"
12463 /* confdefs.h. */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 /* Test program from Paul Eggert and Tony Leneis. */
12469 #if TIME_WITH_SYS_TIME
12470 # include <sys/time.h>
12471 # include <time.h>
12472 #else
12473 # if HAVE_SYS_TIME_H
12474 # include <sys/time.h>
12475 # else
12476 # include <time.h>
12477 # endif
12478 #endif
12479
12480 #if HAVE_UNISTD_H
12481 # include <unistd.h>
12482 #endif
12483
12484 #if !HAVE_ALARM
12485 # define alarm(X) /* empty */
12486 #endif
12487
12488 /* Work around redefinition to rpl_putenv by other config tests. */
12489 #undef putenv
12490
12491 static time_t time_t_max;
12492
12493 /* Values we'll use to set the TZ environment variable. */
12494 static const char *const tz_strings[] = {
12495 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12496 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12497 };
12498 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12499
12500 /* Fail if mktime fails to convert a date in the spring-forward gap.
12501 Based on a problem report from Andreas Jaeger. */
12502 static void
12503 spring_forward_gap ()
12504 {
12505 /* glibc (up to about 1998-10-07) failed this test. */
12506 struct tm tm;
12507
12508 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12509 instead of "TZ=America/Vancouver" in order to detect the bug even
12510 on systems that don't support the Olson extension, or don't have the
12511 full zoneinfo tables installed. */
12512 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12513
12514 tm.tm_year = 98;
12515 tm.tm_mon = 3;
12516 tm.tm_mday = 5;
12517 tm.tm_hour = 2;
12518 tm.tm_min = 0;
12519 tm.tm_sec = 0;
12520 tm.tm_isdst = -1;
12521 if (mktime (&tm) == (time_t)-1)
12522 exit (1);
12523 }
12524
12525 static void
12526 mktime_test (now)
12527 time_t now;
12528 {
12529 struct tm *lt;
12530 if ((lt = localtime (&now)) && mktime (lt) != now)
12531 exit (1);
12532 now = time_t_max - now;
12533 if ((lt = localtime (&now)) && mktime (lt) != now)
12534 exit (1);
12535 }
12536
12537 static void
12538 irix_6_4_bug ()
12539 {
12540 /* Based on code from Ariel Faigon. */
12541 struct tm tm;
12542 tm.tm_year = 96;
12543 tm.tm_mon = 3;
12544 tm.tm_mday = 0;
12545 tm.tm_hour = 0;
12546 tm.tm_min = 0;
12547 tm.tm_sec = 0;
12548 tm.tm_isdst = -1;
12549 mktime (&tm);
12550 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12551 exit (1);
12552 }
12553
12554 static void
12555 bigtime_test (j)
12556 int j;
12557 {
12558 struct tm tm;
12559 time_t now;
12560 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12561 now = mktime (&tm);
12562 if (now != (time_t) -1)
12563 {
12564 struct tm *lt = localtime (&now);
12565 if (! (lt
12566 && lt->tm_year == tm.tm_year
12567 && lt->tm_mon == tm.tm_mon
12568 && lt->tm_mday == tm.tm_mday
12569 && lt->tm_hour == tm.tm_hour
12570 && lt->tm_min == tm.tm_min
12571 && lt->tm_sec == tm.tm_sec
12572 && lt->tm_yday == tm.tm_yday
12573 && lt->tm_wday == tm.tm_wday
12574 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12575 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12576 exit (1);
12577 }
12578 }
12579
12580 int
12581 main ()
12582 {
12583 time_t t, delta;
12584 int i, j;
12585
12586 /* This test makes some buggy mktime implementations loop.
12587 Give up after 60 seconds; a mktime slower than that
12588 isn't worth using anyway. */
12589 alarm (60);
12590
12591 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12592 continue;
12593 time_t_max--;
12594 delta = time_t_max / 997; /* a suitable prime number */
12595 for (i = 0; i < N_STRINGS; i++)
12596 {
12597 if (tz_strings[i])
12598 putenv (tz_strings[i]);
12599
12600 for (t = 0; t <= time_t_max - delta; t += delta)
12601 mktime_test (t);
12602 mktime_test ((time_t) 60 * 60);
12603 mktime_test ((time_t) 60 * 60 * 24);
12604
12605 for (j = 1; 0 < j; j *= 2)
12606 bigtime_test (j);
12607 bigtime_test (j - 1);
12608 }
12609 irix_6_4_bug ();
12610 spring_forward_gap ();
12611 exit (0);
12612 }
12613 _ACEOF
12614 rm -f conftest$ac_exeext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12616 (eval $ac_link) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_func_working_mktime=yes
12626 else
12627 echo "$as_me: program exited with status $ac_status" >&5
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 ( exit $ac_status )
12632 ac_cv_func_working_mktime=no
12633 fi
12634 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12635 fi
12636 fi
12637 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12638 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12639 if test $ac_cv_func_working_mktime = no; then
12640 LIBOBJS="$LIBOBJS mktime.$ac_objext"
12641 fi
12642
12643 if test "$ac_cv_func_working_mktime" = no; then
12644
12645 cat >>confdefs.h <<\_ACEOF
12646 #define BROKEN_MKTIME 1
12647 _ACEOF
12648
12649 fi
12650
12651 ac_have_func=no # yes means we've found a way to get the load average.
12652
12653 # Make sure getloadavg.c is where it belongs, at configure-time.
12654 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12655 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12656 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12657 { (exit 1); exit 1; }; }
12658
12659 ac_save_LIBS=$LIBS
12660
12661 # Check for getloadavg, but be sure not to touch the cache variable.
12662 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12663 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12664 if test "${ac_cv_func_getloadavg+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667 cat >conftest.$ac_ext <<_ACEOF
12668 #line $LINENO "configure"
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 /* System header to define __stub macros and hopefully few prototypes,
12675 which can conflict with char getloadavg (); below.
12676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12677 <limits.h> exists even on freestanding compilers. */
12678 #ifdef __STDC__
12679 # include <limits.h>
12680 #else
12681 # include <assert.h>
12682 #endif
12683 /* Override any gcc2 internal prototype to avoid an error. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 {
12687 #endif
12688 /* We use char because int might match the return type of a gcc2
12689 builtin and then its argument prototype would still apply. */
12690 char getloadavg ();
12691 /* The GNU C library defines this for functions which it implements
12692 to always fail with ENOSYS. Some functions are actually named
12693 something starting with __ and the normal name is an alias. */
12694 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12695 choke me
12696 #else
12697 char (*f) () = getloadavg;
12698 #endif
12699 #ifdef __cplusplus
12700 }
12701 #endif
12702
12703 int
12704 main ()
12705 {
12706 return f != getloadavg;
12707 ;
12708 return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713 (eval $ac_link) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_func_getloadavg=yes
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_cv_func_getloadavg=no
12729 fi
12730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12731 fi
12732 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12733 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12734 if test $ac_cv_func_getloadavg = yes; then
12735 exit 0
12736 else
12737 exit 1
12738 fi
12739 ) && ac_have_func=yes
12740
12741 # On HPUX9, an unprivileged user can get load averages through this function.
12742
12743 for ac_func in pstat_getdynamic
12744 do
12745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746 echo "$as_me:$LINENO: checking for $ac_func" >&5
12747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12748 if eval "test \"\${$as_ac_var+set}\" = set"; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751 cat >conftest.$ac_ext <<_ACEOF
12752 #line $LINENO "configure"
12753 /* confdefs.h. */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 /* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func (); below.
12760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 <limits.h> exists even on freestanding compilers. */
12762 #ifdef __STDC__
12763 # include <limits.h>
12764 #else
12765 # include <assert.h>
12766 #endif
12767 /* Override any gcc2 internal prototype to avoid an error. */
12768 #ifdef __cplusplus
12769 extern "C"
12770 {
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12774 char $ac_func ();
12775 /* The GNU C library defines this for functions which it implements
12776 to always fail with ENOSYS. Some functions are actually named
12777 something starting with __ and the normal name is an alias. */
12778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12779 choke me
12780 #else
12781 char (*f) () = $ac_func;
12782 #endif
12783 #ifdef __cplusplus
12784 }
12785 #endif
12786
12787 int
12788 main ()
12789 {
12790 return f != $ac_func;
12791 ;
12792 return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 eval "$as_ac_var=yes"
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 eval "$as_ac_var=no"
12813 fi
12814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12815 fi
12816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12818 if test `eval echo '${'$as_ac_var'}'` = yes; then
12819 cat >>confdefs.h <<_ACEOF
12820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12821 _ACEOF
12822
12823 fi
12824 done
12825
12826
12827 # Solaris has libkstat which does not require root.
12828
12829 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12830 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12831 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 ac_check_lib_save_LIBS=$LIBS
12835 LIBS="-lkstat $LIBS"
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843
12844 /* Override any gcc2 internal prototype to avoid an error. */
12845 #ifdef __cplusplus
12846 extern "C"
12847 #endif
12848 /* We use char because int might match the return type of a gcc2
12849 builtin and then its argument prototype would still apply. */
12850 char kstat_open ();
12851 int
12852 main ()
12853 {
12854 kstat_open ();
12855 ;
12856 return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_lib_kstat_kstat_open=yes
12872 else
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_cv_lib_kstat_kstat_open=no
12877 fi
12878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12880 fi
12881 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12882 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12883 if test $ac_cv_lib_kstat_kstat_open = yes; then
12884 cat >>confdefs.h <<_ACEOF
12885 #define HAVE_LIBKSTAT 1
12886 _ACEOF
12887
12888 LIBS="-lkstat $LIBS"
12889
12890 fi
12891
12892 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12893
12894 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12895 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12896 # to get the right answer into the cache.
12897 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12898 if test $ac_have_func = no; then
12899 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12900 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12901 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 ac_check_lib_save_LIBS=$LIBS
12905 LIBS="-lelf $LIBS"
12906 cat >conftest.$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913
12914 /* Override any gcc2 internal prototype to avoid an error. */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 /* We use char because int might match the return type of a gcc2
12919 builtin and then its argument prototype would still apply. */
12920 char elf_begin ();
12921 int
12922 main ()
12923 {
12924 elf_begin ();
12925 ;
12926 return 0;
12927 }
12928 _ACEOF
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931 (eval $ac_link) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -s conftest$ac_exeext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_cv_lib_elf_elf_begin=yes
12942 else
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12945
12946 ac_cv_lib_elf_elf_begin=no
12947 fi
12948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12950 fi
12951 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12952 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12953 if test $ac_cv_lib_elf_elf_begin = yes; then
12954 LIBS="-lelf $LIBS"
12955 fi
12956
12957 fi
12958 if test $ac_have_func = no; then
12959 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12960 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12961 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964 ac_check_lib_save_LIBS=$LIBS
12965 LIBS="-lkvm $LIBS"
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973
12974 /* Override any gcc2 internal prototype to avoid an error. */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12980 char kvm_open ();
12981 int
12982 main ()
12983 {
12984 kvm_open ();
12985 ;
12986 return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -s conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_lib_kvm_kvm_open=yes
13002 else
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 ac_cv_lib_kvm_kvm_open=no
13007 fi
13008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13009 LIBS=$ac_check_lib_save_LIBS
13010 fi
13011 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
13012 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
13013 if test $ac_cv_lib_kvm_kvm_open = yes; then
13014 LIBS="-lkvm $LIBS"
13015 fi
13016
13017 # Check for the 4.4BSD definition of getloadavg.
13018 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
13019 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
13020 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lutil $LIBS"
13025 cat >conftest.$ac_ext <<_ACEOF
13026 #line $LINENO "configure"
13027 /* confdefs.h. */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032
13033 /* Override any gcc2 internal prototype to avoid an error. */
13034 #ifdef __cplusplus
13035 extern "C"
13036 #endif
13037 /* We use char because int might match the return type of a gcc2
13038 builtin and then its argument prototype would still apply. */
13039 char getloadavg ();
13040 int
13041 main ()
13042 {
13043 getloadavg ();
13044 ;
13045 return 0;
13046 }
13047 _ACEOF
13048 rm -f conftest.$ac_objext conftest$ac_exeext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
13054 { ac_try='test -s conftest$ac_exeext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_lib_util_getloadavg=yes
13061 else
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065 ac_cv_lib_util_getloadavg=no
13066 fi
13067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13068 LIBS=$ac_check_lib_save_LIBS
13069 fi
13070 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
13071 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
13072 if test $ac_cv_lib_util_getloadavg = yes; then
13073 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13074 fi
13075
13076 fi
13077
13078 if test $ac_have_func = no; then
13079 # There is a commonly available library for RS/6000 AIX.
13080 # Since it is not a standard part of AIX, it might be installed locally.
13081 ac_getloadavg_LIBS=$LIBS
13082 LIBS="-L/usr/local/lib $LIBS"
13083 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
13084 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
13085 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 ac_check_lib_save_LIBS=$LIBS
13089 LIBS="-lgetloadavg $LIBS"
13090 cat >conftest.$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13092 /* confdefs.h. */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097
13098 /* Override any gcc2 internal prototype to avoid an error. */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 /* We use char because int might match the return type of a gcc2
13103 builtin and then its argument prototype would still apply. */
13104 char getloadavg ();
13105 int
13106 main ()
13107 {
13108 getloadavg ();
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_lib_getloadavg_getloadavg=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130 ac_cv_lib_getloadavg_getloadavg=no
13131 fi
13132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13133 LIBS=$ac_check_lib_save_LIBS
13134 fi
13135 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13136 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
13137 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
13138 LIBS="-lgetloadavg $LIBS"
13139 else
13140 LIBS=$ac_getloadavg_LIBS
13141 fi
13142
13143 fi
13144
13145 # Make sure it is really in the library, if we think we found it,
13146 # otherwise set up the replacement function.
13147
13148 for ac_func in getloadavg
13149 do
13150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13151 echo "$as_me:$LINENO: checking for $ac_func" >&5
13152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13153 if eval "test \"\${$as_ac_var+set}\" = set"; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156 cat >conftest.$ac_ext <<_ACEOF
13157 #line $LINENO "configure"
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 /* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char $ac_func (); below.
13165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166 <limits.h> exists even on freestanding compilers. */
13167 #ifdef __STDC__
13168 # include <limits.h>
13169 #else
13170 # include <assert.h>
13171 #endif
13172 /* Override any gcc2 internal prototype to avoid an error. */
13173 #ifdef __cplusplus
13174 extern "C"
13175 {
13176 #endif
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13179 char $ac_func ();
13180 /* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13184 choke me
13185 #else
13186 char (*f) () = $ac_func;
13187 #endif
13188 #ifdef __cplusplus
13189 }
13190 #endif
13191
13192 int
13193 main ()
13194 {
13195 return f != $ac_func;
13196 ;
13197 return 0;
13198 }
13199 _ACEOF
13200 rm -f conftest.$ac_objext conftest$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -s conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 eval "$as_ac_var=yes"
13213 else
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217 eval "$as_ac_var=no"
13218 fi
13219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13220 fi
13221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13223 if test `eval echo '${'$as_ac_var'}'` = yes; then
13224 cat >>confdefs.h <<_ACEOF
13225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13226 _ACEOF
13227
13228 else
13229 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13230
13231 cat >>confdefs.h <<\_ACEOF
13232 #define C_GETLOADAVG 1
13233 _ACEOF
13234
13235 # Figure out what our getloadavg.c needs.
13236 ac_have_func=no
13237 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13238 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13239 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13240 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 fi
13243 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13244 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13245 else
13246 # Is the header compilable?
13247 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
13248 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
13249 cat >conftest.$ac_ext <<_ACEOF
13250 #line $LINENO "configure"
13251 /* confdefs.h. */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 #include <sys/dg_sys_info.h>
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_header_compiler=yes
13272 else
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13275
13276 ac_header_compiler=no
13277 fi
13278 rm -f conftest.$ac_objext conftest.$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13280 echo "${ECHO_T}$ac_header_compiler" >&6
13281
13282 # Is the header present?
13283 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
13284 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
13285 cat >conftest.$ac_ext <<_ACEOF
13286 #line $LINENO "configure"
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 #include <sys/dg_sys_info.h>
13293 _ACEOF
13294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } >/dev/null; then
13302 if test -s conftest.err; then
13303 ac_cpp_err=$ac_c_preproc_warn_flag
13304 else
13305 ac_cpp_err=
13306 fi
13307 else
13308 ac_cpp_err=yes
13309 fi
13310 if test -z "$ac_cpp_err"; then
13311 ac_header_preproc=yes
13312 else
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_header_preproc=no
13317 fi
13318 rm -f conftest.err conftest.$ac_ext
13319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13320 echo "${ECHO_T}$ac_header_preproc" >&6
13321
13322 # So? What about this header?
13323 case $ac_header_compiler:$ac_header_preproc in
13324 yes:no )
13325 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
13326 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13328 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13329 (
13330 cat <<\_ASBOX
13331 ## ------------------------------------ ##
13332 ## Report this to bug-autoconf@gnu.org. ##
13333 ## ------------------------------------ ##
13334 _ASBOX
13335 ) |
13336 sed "s/^/$as_me: WARNING: /" >&2
13337 ;;
13338 no:yes )
13339 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
13340 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
13342 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13344 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13345 (
13346 cat <<\_ASBOX
13347 ## ------------------------------------ ##
13348 ## Report this to bug-autoconf@gnu.org. ##
13349 ## ------------------------------------ ##
13350 _ASBOX
13351 ) |
13352 sed "s/^/$as_me: WARNING: /" >&2
13353 ;;
13354 esac
13355 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13356 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13357 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
13361 fi
13362 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13363 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13364
13365 fi
13366 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
13367 ac_have_func=yes
13368
13369 cat >>confdefs.h <<\_ACEOF
13370 #define DGUX 1
13371 _ACEOF
13372
13373
13374 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
13375 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
13376 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379 ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-ldgc $LIBS"
13381 cat >conftest.$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388
13389 /* Override any gcc2 internal prototype to avoid an error. */
13390 #ifdef __cplusplus
13391 extern "C"
13392 #endif
13393 /* We use char because int might match the return type of a gcc2
13394 builtin and then its argument prototype would still apply. */
13395 char dg_sys_info ();
13396 int
13397 main ()
13398 {
13399 dg_sys_info ();
13400 ;
13401 return 0;
13402 }
13403 _ACEOF
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_lib_dgc_dg_sys_info=yes
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 ac_cv_lib_dgc_dg_sys_info=no
13422 fi
13423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13424 LIBS=$ac_check_lib_save_LIBS
13425 fi
13426 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13427 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
13428 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
13429 cat >>confdefs.h <<_ACEOF
13430 #define HAVE_LIBDGC 1
13431 _ACEOF
13432
13433 LIBS="-ldgc $LIBS"
13434
13435 fi
13436
13437 fi
13438
13439
13440
13441 if test "${ac_cv_header_locale_h+set}" = set; then
13442 echo "$as_me:$LINENO: checking for locale.h" >&5
13443 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13444 if test "${ac_cv_header_locale_h+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 fi
13447 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13448 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13449 else
13450 # Is the header compilable?
13451 echo "$as_me:$LINENO: checking locale.h usability" >&5
13452 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13454 #line $LINENO "configure"
13455 /* confdefs.h. */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13461 #include <locale.h>
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_header_compiler=yes
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13479
13480 ac_header_compiler=no
13481 fi
13482 rm -f conftest.$ac_objext conftest.$ac_ext
13483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13484 echo "${ECHO_T}$ac_header_compiler" >&6
13485
13486 # Is the header present?
13487 echo "$as_me:$LINENO: checking locale.h presence" >&5
13488 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
13489 cat >conftest.$ac_ext <<_ACEOF
13490 #line $LINENO "configure"
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 #include <locale.h>
13497 _ACEOF
13498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } >/dev/null; then
13506 if test -s conftest.err; then
13507 ac_cpp_err=$ac_c_preproc_warn_flag
13508 else
13509 ac_cpp_err=
13510 fi
13511 else
13512 ac_cpp_err=yes
13513 fi
13514 if test -z "$ac_cpp_err"; then
13515 ac_header_preproc=yes
13516 else
13517 echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13519
13520 ac_header_preproc=no
13521 fi
13522 rm -f conftest.err conftest.$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13524 echo "${ECHO_T}$ac_header_preproc" >&6
13525
13526 # So? What about this header?
13527 case $ac_header_compiler:$ac_header_preproc in
13528 yes:no )
13529 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
13530 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13532 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13533 (
13534 cat <<\_ASBOX
13535 ## ------------------------------------ ##
13536 ## Report this to bug-autoconf@gnu.org. ##
13537 ## ------------------------------------ ##
13538 _ASBOX
13539 ) |
13540 sed "s/^/$as_me: WARNING: /" >&2
13541 ;;
13542 no:yes )
13543 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13544 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13546 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13548 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13549 (
13550 cat <<\_ASBOX
13551 ## ------------------------------------ ##
13552 ## Report this to bug-autoconf@gnu.org. ##
13553 ## ------------------------------------ ##
13554 _ASBOX
13555 ) |
13556 sed "s/^/$as_me: WARNING: /" >&2
13557 ;;
13558 esac
13559 echo "$as_me:$LINENO: checking for locale.h" >&5
13560 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13561 if test "${ac_cv_header_locale_h+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 ac_cv_header_locale_h=$ac_header_preproc
13565 fi
13566 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13568
13569 fi
13570
13571
13572
13573 for ac_func in setlocale
13574 do
13575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13576 echo "$as_me:$LINENO: checking for $ac_func" >&5
13577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13578 if eval "test \"\${$as_ac_var+set}\" = set"; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 cat >conftest.$ac_ext <<_ACEOF
13582 #line $LINENO "configure"
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 /* System header to define __stub macros and hopefully few prototypes,
13589 which can conflict with char $ac_func (); below.
13590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13591 <limits.h> exists even on freestanding compilers. */
13592 #ifdef __STDC__
13593 # include <limits.h>
13594 #else
13595 # include <assert.h>
13596 #endif
13597 /* Override any gcc2 internal prototype to avoid an error. */
13598 #ifdef __cplusplus
13599 extern "C"
13600 {
13601 #endif
13602 /* We use char because int might match the return type of a gcc2
13603 builtin and then its argument prototype would still apply. */
13604 char $ac_func ();
13605 /* The GNU C library defines this for functions which it implements
13606 to always fail with ENOSYS. Some functions are actually named
13607 something starting with __ and the normal name is an alias. */
13608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13609 choke me
13610 #else
13611 char (*f) () = $ac_func;
13612 #endif
13613 #ifdef __cplusplus
13614 }
13615 #endif
13616
13617 int
13618 main ()
13619 {
13620 return f != $ac_func;
13621 ;
13622 return 0;
13623 }
13624 _ACEOF
13625 rm -f conftest.$ac_objext conftest$ac_exeext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13627 (eval $ac_link) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -s conftest$ac_exeext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 eval "$as_ac_var=yes"
13638 else
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642 eval "$as_ac_var=no"
13643 fi
13644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13645 fi
13646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13648 if test `eval echo '${'$as_ac_var'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13651 _ACEOF
13652
13653 fi
13654 done
13655
13656
13657 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13658 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13659 # Irix 4.0.5F has the header but not the library.
13660 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13661 ac_have_func=yes
13662
13663 cat >>confdefs.h <<\_ACEOF
13664 #define SVR4 1
13665 _ACEOF
13666
13667 fi
13668
13669 if test $ac_have_func = no; then
13670 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13671 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13672 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13673 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 fi
13676 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13677 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13678 else
13679 # Is the header compilable?
13680 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13681 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13682 cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 /* confdefs.h. */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 #include <inq_stats/cpustats.h>
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_header_compiler=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_header_compiler=no
13710 fi
13711 rm -f conftest.$ac_objext conftest.$ac_ext
13712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13713 echo "${ECHO_T}$ac_header_compiler" >&6
13714
13715 # Is the header present?
13716 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13717 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13718 cat >conftest.$ac_ext <<_ACEOF
13719 #line $LINENO "configure"
13720 /* confdefs.h. */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 #include <inq_stats/cpustats.h>
13726 _ACEOF
13727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13729 ac_status=$?
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } >/dev/null; then
13735 if test -s conftest.err; then
13736 ac_cpp_err=$ac_c_preproc_warn_flag
13737 else
13738 ac_cpp_err=
13739 fi
13740 else
13741 ac_cpp_err=yes
13742 fi
13743 if test -z "$ac_cpp_err"; then
13744 ac_header_preproc=yes
13745 else
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13748
13749 ac_header_preproc=no
13750 fi
13751 rm -f conftest.err conftest.$ac_ext
13752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753 echo "${ECHO_T}$ac_header_preproc" >&6
13754
13755 # So? What about this header?
13756 case $ac_header_compiler:$ac_header_preproc in
13757 yes:no )
13758 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13759 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13761 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13762 (
13763 cat <<\_ASBOX
13764 ## ------------------------------------ ##
13765 ## Report this to bug-autoconf@gnu.org. ##
13766 ## ------------------------------------ ##
13767 _ASBOX
13768 ) |
13769 sed "s/^/$as_me: WARNING: /" >&2
13770 ;;
13771 no:yes )
13772 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13773 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13775 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13777 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13778 (
13779 cat <<\_ASBOX
13780 ## ------------------------------------ ##
13781 ## Report this to bug-autoconf@gnu.org. ##
13782 ## ------------------------------------ ##
13783 _ASBOX
13784 ) |
13785 sed "s/^/$as_me: WARNING: /" >&2
13786 ;;
13787 esac
13788 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13789 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13790 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13794 fi
13795 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13796 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13797
13798 fi
13799 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13800 ac_have_func=yes
13801
13802 cat >>confdefs.h <<\_ACEOF
13803 #define UMAX 1
13804 _ACEOF
13805
13806
13807 cat >>confdefs.h <<\_ACEOF
13808 #define UMAX4_3 1
13809 _ACEOF
13810
13811 fi
13812
13813
13814 fi
13815
13816 if test $ac_have_func = no; then
13817 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13818 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13819 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13820 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 fi
13823 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13824 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13825 else
13826 # Is the header compilable?
13827 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13828 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13829 cat >conftest.$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <sys/cpustats.h>
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_header_compiler=yes
13852 else
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 ac_header_compiler=no
13857 fi
13858 rm -f conftest.$ac_objext conftest.$ac_ext
13859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13860 echo "${ECHO_T}$ac_header_compiler" >&6
13861
13862 # Is the header present?
13863 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13864 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13867 /* confdefs.h. */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 #include <sys/cpustats.h>
13873 _ACEOF
13874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } >/dev/null; then
13882 if test -s conftest.err; then
13883 ac_cpp_err=$ac_c_preproc_warn_flag
13884 else
13885 ac_cpp_err=
13886 fi
13887 else
13888 ac_cpp_err=yes
13889 fi
13890 if test -z "$ac_cpp_err"; then
13891 ac_header_preproc=yes
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13895
13896 ac_header_preproc=no
13897 fi
13898 rm -f conftest.err conftest.$ac_ext
13899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13900 echo "${ECHO_T}$ac_header_preproc" >&6
13901
13902 # So? What about this header?
13903 case $ac_header_compiler:$ac_header_preproc in
13904 yes:no )
13905 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13906 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13908 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13909 (
13910 cat <<\_ASBOX
13911 ## ------------------------------------ ##
13912 ## Report this to bug-autoconf@gnu.org. ##
13913 ## ------------------------------------ ##
13914 _ASBOX
13915 ) |
13916 sed "s/^/$as_me: WARNING: /" >&2
13917 ;;
13918 no:yes )
13919 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13920 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13922 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13924 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13925 (
13926 cat <<\_ASBOX
13927 ## ------------------------------------ ##
13928 ## Report this to bug-autoconf@gnu.org. ##
13929 ## ------------------------------------ ##
13930 _ASBOX
13931 ) |
13932 sed "s/^/$as_me: WARNING: /" >&2
13933 ;;
13934 esac
13935 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13936 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13937 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13941 fi
13942 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13943 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13944
13945 fi
13946 if test $ac_cv_header_sys_cpustats_h = yes; then
13947 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13948 #define UMAX 1
13949 _ACEOF
13950
13951 fi
13952
13953
13954 fi
13955
13956 if test $ac_have_func = no; then
13957
13958 for ac_header in mach/mach.h
13959 do
13960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13962 echo "$as_me:$LINENO: checking for $ac_header" >&5
13963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 fi
13967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13969 else
13970 # Is the header compilable?
13971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13974 #line $LINENO "configure"
13975 /* confdefs.h. */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <$ac_header>
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_header_compiler=yes
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000 ac_header_compiler=no
14001 fi
14002 rm -f conftest.$ac_objext conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14004 echo "${ECHO_T}$ac_header_compiler" >&6
14005
14006 # Is the header present?
14007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14009 cat >conftest.$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14011 /* confdefs.h. */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include <$ac_header>
14017 _ACEOF
14018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } >/dev/null; then
14026 if test -s conftest.err; then
14027 ac_cpp_err=$ac_c_preproc_warn_flag
14028 else
14029 ac_cpp_err=
14030 fi
14031 else
14032 ac_cpp_err=yes
14033 fi
14034 if test -z "$ac_cpp_err"; then
14035 ac_header_preproc=yes
14036 else
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040 ac_header_preproc=no
14041 fi
14042 rm -f conftest.err conftest.$ac_ext
14043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14044 echo "${ECHO_T}$ac_header_preproc" >&6
14045
14046 # So? What about this header?
14047 case $ac_header_compiler:$ac_header_preproc in
14048 yes:no )
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14053 (
14054 cat <<\_ASBOX
14055 ## ------------------------------------ ##
14056 ## Report this to bug-autoconf@gnu.org. ##
14057 ## ------------------------------------ ##
14058 _ASBOX
14059 ) |
14060 sed "s/^/$as_me: WARNING: /" >&2
14061 ;;
14062 no:yes )
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14069 (
14070 cat <<\_ASBOX
14071 ## ------------------------------------ ##
14072 ## Report this to bug-autoconf@gnu.org. ##
14073 ## ------------------------------------ ##
14074 _ASBOX
14075 ) |
14076 sed "s/^/$as_me: WARNING: /" >&2
14077 ;;
14078 esac
14079 echo "$as_me:$LINENO: checking for $ac_header" >&5
14080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 eval "$as_ac_Header=$ac_header_preproc"
14085 fi
14086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14088
14089 fi
14090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14091 cat >>confdefs.h <<_ACEOF
14092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14093 _ACEOF
14094
14095 fi
14096
14097 done
14098
14099 fi
14100
14101
14102 for ac_header in nlist.h
14103 do
14104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo "$as_me:$LINENO: checking for $ac_header" >&5
14107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 fi
14111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14113 else
14114 # Is the header compilable?
14115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14117 cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 $ac_includes_default
14125 #include <$ac_header>
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_header_compiler=yes
14140 else
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14143
14144 ac_header_compiler=no
14145 fi
14146 rm -f conftest.$ac_objext conftest.$ac_ext
14147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14148 echo "${ECHO_T}$ac_header_compiler" >&6
14149
14150 # Is the header present?
14151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14153 cat >conftest.$ac_ext <<_ACEOF
14154 #line $LINENO "configure"
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <$ac_header>
14161 _ACEOF
14162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } >/dev/null; then
14170 if test -s conftest.err; then
14171 ac_cpp_err=$ac_c_preproc_warn_flag
14172 else
14173 ac_cpp_err=
14174 fi
14175 else
14176 ac_cpp_err=yes
14177 fi
14178 if test -z "$ac_cpp_err"; then
14179 ac_header_preproc=yes
14180 else
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184 ac_header_preproc=no
14185 fi
14186 rm -f conftest.err conftest.$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14188 echo "${ECHO_T}$ac_header_preproc" >&6
14189
14190 # So? What about this header?
14191 case $ac_header_compiler:$ac_header_preproc in
14192 yes:no )
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14197 (
14198 cat <<\_ASBOX
14199 ## ------------------------------------ ##
14200 ## Report this to bug-autoconf@gnu.org. ##
14201 ## ------------------------------------ ##
14202 _ASBOX
14203 ) |
14204 sed "s/^/$as_me: WARNING: /" >&2
14205 ;;
14206 no:yes )
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 (
14214 cat <<\_ASBOX
14215 ## ------------------------------------ ##
14216 ## Report this to bug-autoconf@gnu.org. ##
14217 ## ------------------------------------ ##
14218 _ASBOX
14219 ) |
14220 sed "s/^/$as_me: WARNING: /" >&2
14221 ;;
14222 esac
14223 echo "$as_me:$LINENO: checking for $ac_header" >&5
14224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 eval "$as_ac_Header=$ac_header_preproc"
14229 fi
14230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14232
14233 fi
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235 cat >>confdefs.h <<_ACEOF
14236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14237 _ACEOF
14238 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
14239 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
14240 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243 cat >conftest.$ac_ext <<_ACEOF
14244 #line $LINENO "configure"
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 #include <nlist.h>
14251
14252 int
14253 main ()
14254 {
14255 static struct nlist ac_aggr;
14256 if (ac_aggr.n_un.n_name)
14257 return 0;
14258 ;
14259 return 0;
14260 }
14261 _ACEOF
14262 rm -f conftest.$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } &&
14268 { ac_try='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 ac_cv_member_struct_nlist_n_un_n_name=yes
14275 else
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279 cat >conftest.$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <nlist.h>
14287
14288 int
14289 main ()
14290 {
14291 static struct nlist ac_aggr;
14292 if (sizeof ac_aggr.n_un.n_name)
14293 return 0;
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_member_struct_nlist_n_un_n_name=yes
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315 ac_cv_member_struct_nlist_n_un_n_name=no
14316 fi
14317 rm -f conftest.$ac_objext conftest.$ac_ext
14318 fi
14319 rm -f conftest.$ac_objext conftest.$ac_ext
14320 fi
14321 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
14322 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
14323 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
14324
14325 cat >>confdefs.h <<_ACEOF
14326 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14327 _ACEOF
14328
14329
14330 cat >>confdefs.h <<\_ACEOF
14331 #define NLIST_NAME_UNION 1
14332 _ACEOF
14333
14334 fi
14335
14336
14337 fi
14338
14339 done
14340
14341 fi
14342 done
14343
14344
14345 # Some definitions of getloadavg require that the program be installed setgid.
14346 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
14347 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
14348 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351 cat >conftest.$ac_ext <<_ACEOF
14352 #line $LINENO "configure"
14353 /* confdefs.h. */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
14359 #ifdef LDAV_PRIVILEGED
14360 Yowza Am I SETGID yet
14361 #endif
14362 _ACEOF
14363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14364 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
14365 ac_cv_func_getloadavg_setgid=yes
14366 else
14367 ac_cv_func_getloadavg_setgid=no
14368 fi
14369 rm -f conftest*
14370
14371 fi
14372 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
14373 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
14374 if test $ac_cv_func_getloadavg_setgid = yes; then
14375 NEED_SETGID=true
14376
14377 cat >>confdefs.h <<\_ACEOF
14378 #define GETLOADAVG_PRIVILEGED 1
14379 _ACEOF
14380
14381 else
14382 NEED_SETGID=false
14383 fi
14384
14385 if test $ac_cv_func_getloadavg_setgid = yes; then
14386 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
14387 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
14388 if test "${ac_cv_group_kmem+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
14392 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
14393 # If we got an error (system does not support symlinks), try without -L.
14394 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
14395 ac_cv_group_kmem=`echo $ac_ls_output \
14396 | sed -ne 's/[ ][ ]*/ /g;
14397 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
14398 / /s/.* //;p;'`
14399
14400 fi
14401 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
14402 echo "${ECHO_T}$ac_cv_group_kmem" >&6
14403 KMEM_GROUP=$ac_cv_group_kmem
14404 fi
14405 if test "x$ac_save_LIBS" = x; then
14406 GETLOADAVG_LIBS=$LIBS
14407 else
14408 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
14409 fi
14410 LIBS=$ac_save_LIBS
14411
14412
14413
14414 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14415 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14416 if test "${ac_cv_sys_largefile_source+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419 while :; do
14420 ac_cv_sys_largefile_source=no
14421 cat >conftest.$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14423 /* confdefs.h. */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428 #include <stdio.h>
14429 int
14430 main ()
14431 {
14432 return !fseeko;
14433 ;
14434 return 0;
14435 }
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 break
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454 fi
14455 rm -f conftest.$ac_objext conftest.$ac_ext
14456 cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #define _LARGEFILE_SOURCE 1
14464 #include <stdio.h>
14465 int
14466 main ()
14467 {
14468 return !fseeko;
14469 ;
14470 return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14475 (eval $ac_compile) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_cv_sys_largefile_source=1; break
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490 fi
14491 rm -f conftest.$ac_objext conftest.$ac_ext
14492 break
14493 done
14494 fi
14495 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14496 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14497 if test "$ac_cv_sys_largefile_source" != no; then
14498
14499 cat >>confdefs.h <<_ACEOF
14500 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14501 _ACEOF
14502
14503 fi
14504 rm -f conftest*
14505
14506 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14507 # in glibc 2.1.3, but that breaks too many other things.
14508 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14509 echo "$as_me:$LINENO: checking for fseeko" >&5
14510 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14511 if test "${ac_cv_func_fseeko+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514 cat >conftest.$ac_ext <<_ACEOF
14515 #line $LINENO "configure"
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <stdio.h>
14522 int
14523 main ()
14524 {
14525 return fseeko && fseeko (stdin, 0, 0);
14526 ;
14527 return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -s conftest$ac_exeext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_func_fseeko=yes
14543 else
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547 ac_cv_func_fseeko=no
14548 fi
14549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14550 fi
14551 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
14552 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14553 if test $ac_cv_func_fseeko = yes; then
14554
14555 cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_FSEEKO 1
14557 _ACEOF
14558
14559 fi
14560
14561
14562 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14563 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14564 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 # Use it with a single arg.
14568 cat >conftest.$ac_ext <<_ACEOF
14569 #line $LINENO "configure"
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 $ac_includes_default
14576 int
14577 main ()
14578 {
14579 getpgrp (0);
14580 ;
14581 return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_cv_func_getpgrp_void=no
14597 else
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601 ac_cv_func_getpgrp_void=yes
14602 fi
14603 rm -f conftest.$ac_objext conftest.$ac_ext
14604
14605 fi
14606 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14607 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14608 if test $ac_cv_func_getpgrp_void = yes; then
14609
14610 cat >>confdefs.h <<\_ACEOF
14611 #define GETPGRP_VOID 1
14612 _ACEOF
14613
14614 fi
14615
14616
14617
14618 for ac_func in strftime
14619 do
14620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14621 echo "$as_me:$LINENO: checking for $ac_func" >&5
14622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14623 if eval "test \"\${$as_ac_var+set}\" = set"; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 cat >conftest.$ac_ext <<_ACEOF
14627 #line $LINENO "configure"
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 /* System header to define __stub macros and hopefully few prototypes,
14634 which can conflict with char $ac_func (); below.
14635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14636 <limits.h> exists even on freestanding compilers. */
14637 #ifdef __STDC__
14638 # include <limits.h>
14639 #else
14640 # include <assert.h>
14641 #endif
14642 /* Override any gcc2 internal prototype to avoid an error. */
14643 #ifdef __cplusplus
14644 extern "C"
14645 {
14646 #endif
14647 /* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14649 char $ac_func ();
14650 /* The GNU C library defines this for functions which it implements
14651 to always fail with ENOSYS. Some functions are actually named
14652 something starting with __ and the normal name is an alias. */
14653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14654 choke me
14655 #else
14656 char (*f) () = $ac_func;
14657 #endif
14658 #ifdef __cplusplus
14659 }
14660 #endif
14661
14662 int
14663 main ()
14664 {
14665 return f != $ac_func;
14666 ;
14667 return 0;
14668 }
14669 _ACEOF
14670 rm -f conftest.$ac_objext conftest$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 eval "$as_ac_var=yes"
14683 else
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 eval "$as_ac_var=no"
14688 fi
14689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14690 fi
14691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14693 if test `eval echo '${'$as_ac_var'}'` = yes; then
14694 cat >>confdefs.h <<_ACEOF
14695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14696 _ACEOF
14697
14698 else
14699 # strftime is in -lintl on SCO UNIX.
14700 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14701 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14702 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 ac_check_lib_save_LIBS=$LIBS
14706 LIBS="-lintl $LIBS"
14707 cat >conftest.$ac_ext <<_ACEOF
14708 #line $LINENO "configure"
14709 /* confdefs.h. */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714
14715 /* Override any gcc2 internal prototype to avoid an error. */
14716 #ifdef __cplusplus
14717 extern "C"
14718 #endif
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14721 char strftime ();
14722 int
14723 main ()
14724 {
14725 strftime ();
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_lib_intl_strftime=yes
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_cv_lib_intl_strftime=no
14748 fi
14749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14750 LIBS=$ac_check_lib_save_LIBS
14751 fi
14752 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14753 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14754 if test $ac_cv_lib_intl_strftime = yes; then
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_STRFTIME 1
14757 _ACEOF
14758
14759 LIBS="-lintl $LIBS"
14760 fi
14761
14762 fi
14763 done
14764
14765
14766 # UNIX98 PTYs.
14767
14768 for ac_func in grantpt
14769 do
14770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14771 echo "$as_me:$LINENO: checking for $ac_func" >&5
14772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14773 if eval "test \"\${$as_ac_var+set}\" = set"; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776 cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 /* System header to define __stub macros and hopefully few prototypes,
14784 which can conflict with char $ac_func (); below.
14785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14786 <limits.h> exists even on freestanding compilers. */
14787 #ifdef __STDC__
14788 # include <limits.h>
14789 #else
14790 # include <assert.h>
14791 #endif
14792 /* Override any gcc2 internal prototype to avoid an error. */
14793 #ifdef __cplusplus
14794 extern "C"
14795 {
14796 #endif
14797 /* We use char because int might match the return type of a gcc2
14798 builtin and then its argument prototype would still apply. */
14799 char $ac_func ();
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14804 choke me
14805 #else
14806 char (*f) () = $ac_func;
14807 #endif
14808 #ifdef __cplusplus
14809 }
14810 #endif
14811
14812 int
14813 main ()
14814 {
14815 return f != $ac_func;
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext conftest$ac_exeext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14822 (eval $ac_link) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 eval "$as_ac_var=yes"
14833 else
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 eval "$as_ac_var=no"
14838 fi
14839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14840 fi
14841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14843 if test `eval echo '${'$as_ac_var'}'` = yes; then
14844 cat >>confdefs.h <<_ACEOF
14845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14846 _ACEOF
14847
14848 fi
14849 done
14850
14851
14852 # PTY-related GNU extensions.
14853
14854 for ac_func in getpt
14855 do
14856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14857 echo "$as_me:$LINENO: checking for $ac_func" >&5
14858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14859 if eval "test \"\${$as_ac_var+set}\" = set"; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 cat >conftest.$ac_ext <<_ACEOF
14863 #line $LINENO "configure"
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 /* System header to define __stub macros and hopefully few prototypes,
14870 which can conflict with char $ac_func (); below.
14871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14872 <limits.h> exists even on freestanding compilers. */
14873 #ifdef __STDC__
14874 # include <limits.h>
14875 #else
14876 # include <assert.h>
14877 #endif
14878 /* Override any gcc2 internal prototype to avoid an error. */
14879 #ifdef __cplusplus
14880 extern "C"
14881 {
14882 #endif
14883 /* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14885 char $ac_func ();
14886 /* The GNU C library defines this for functions which it implements
14887 to always fail with ENOSYS. Some functions are actually named
14888 something starting with __ and the normal name is an alias. */
14889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14890 choke me
14891 #else
14892 char (*f) () = $ac_func;
14893 #endif
14894 #ifdef __cplusplus
14895 }
14896 #endif
14897
14898 int
14899 main ()
14900 {
14901 return f != $ac_func;
14902 ;
14903 return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 eval "$as_ac_var=yes"
14919 else
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14922
14923 eval "$as_ac_var=no"
14924 fi
14925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14926 fi
14927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14929 if test `eval echo '${'$as_ac_var'}'` = yes; then
14930 cat >>confdefs.h <<_ACEOF
14931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14932 _ACEOF
14933
14934 fi
14935 done
14936
14937
14938 # Check this now, so that we will NOT find the above functions in ncurses.
14939 # That is because we have not set up to link ncurses in lib-src.
14940 # It's better to believe a function is not available
14941 # than to expect to find it in ncurses.
14942
14943 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14944 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14945 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948 ac_check_lib_save_LIBS=$LIBS
14949 LIBS="-lncurses $LIBS"
14950 cat >conftest.$ac_ext <<_ACEOF
14951 #line $LINENO "configure"
14952 /* confdefs.h. */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957
14958 /* Override any gcc2 internal prototype to avoid an error. */
14959 #ifdef __cplusplus
14960 extern "C"
14961 #endif
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14964 char tparm ();
14965 int
14966 main ()
14967 {
14968 tparm ();
14969 ;
14970 return 0;
14971 }
14972 _ACEOF
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_ncurses_tparm=yes
14986 else
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_cv_lib_ncurses_tparm=no
14991 fi
14992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14996 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14997 if test $ac_cv_lib_ncurses_tparm = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define HAVE_LIBNCURSES 1
15000 _ACEOF
15001
15002 LIBS="-lncurses $LIBS"
15003
15004 fi
15005
15006
15007 # Do we need the Hesiod library to provide the support routines?
15008 if test "$with_hesiod" = yes ; then
15009 # Don't set $LIBS here -- see comments above.
15010 resolv=no
15011 echo "$as_me:$LINENO: checking for res_send" >&5
15012 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
15013 if test "${ac_cv_func_res_send+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016 cat >conftest.$ac_ext <<_ACEOF
15017 #line $LINENO "configure"
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 /* System header to define __stub macros and hopefully few prototypes,
15024 which can conflict with char res_send (); below.
15025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15026 <limits.h> exists even on freestanding compilers. */
15027 #ifdef __STDC__
15028 # include <limits.h>
15029 #else
15030 # include <assert.h>
15031 #endif
15032 /* Override any gcc2 internal prototype to avoid an error. */
15033 #ifdef __cplusplus
15034 extern "C"
15035 {
15036 #endif
15037 /* We use char because int might match the return type of a gcc2
15038 builtin and then its argument prototype would still apply. */
15039 char res_send ();
15040 /* The GNU C library defines this for functions which it implements
15041 to always fail with ENOSYS. Some functions are actually named
15042 something starting with __ and the normal name is an alias. */
15043 #if defined (__stub_res_send) || defined (__stub___res_send)
15044 choke me
15045 #else
15046 char (*f) () = res_send;
15047 #endif
15048 #ifdef __cplusplus
15049 }
15050 #endif
15051
15052 int
15053 main ()
15054 {
15055 return f != res_send;
15056 ;
15057 return 0;
15058 }
15059 _ACEOF
15060 rm -f conftest.$ac_objext conftest$ac_exeext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15062 (eval $ac_link) 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -s conftest$ac_exeext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 ac_cv_func_res_send=yes
15073 else
15074 echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15076
15077 ac_cv_func_res_send=no
15078 fi
15079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15080 fi
15081 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
15082 echo "${ECHO_T}$ac_cv_func_res_send" >&6
15083 if test $ac_cv_func_res_send = yes; then
15084 :
15085 else
15086 echo "$as_me:$LINENO: checking for __res_send" >&5
15087 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
15088 if test "${ac_cv_func___res_send+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 /* System header to define __stub macros and hopefully few prototypes,
15099 which can conflict with char __res_send (); below.
15100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15101 <limits.h> exists even on freestanding compilers. */
15102 #ifdef __STDC__
15103 # include <limits.h>
15104 #else
15105 # include <assert.h>
15106 #endif
15107 /* Override any gcc2 internal prototype to avoid an error. */
15108 #ifdef __cplusplus
15109 extern "C"
15110 {
15111 #endif
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char __res_send ();
15115 /* The GNU C library defines this for functions which it implements
15116 to always fail with ENOSYS. Some functions are actually named
15117 something starting with __ and the normal name is an alias. */
15118 #if defined (__stub___res_send) || defined (__stub_____res_send)
15119 choke me
15120 #else
15121 char (*f) () = __res_send;
15122 #endif
15123 #ifdef __cplusplus
15124 }
15125 #endif
15126
15127 int
15128 main ()
15129 {
15130 return f != __res_send;
15131 ;
15132 return 0;
15133 }
15134 _ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15137 (eval $ac_link) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_cv_func___res_send=yes
15148 else
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152 ac_cv_func___res_send=no
15153 fi
15154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15155 fi
15156 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
15157 echo "${ECHO_T}$ac_cv_func___res_send" >&6
15158 if test $ac_cv_func___res_send = yes; then
15159 :
15160 else
15161 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
15162 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
15163 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166 ac_check_lib_save_LIBS=$LIBS
15167 LIBS="-lresolv $LIBS"
15168 cat >conftest.$ac_ext <<_ACEOF
15169 #line $LINENO "configure"
15170 /* confdefs.h. */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175
15176 /* Override any gcc2 internal prototype to avoid an error. */
15177 #ifdef __cplusplus
15178 extern "C"
15179 #endif
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15182 char res_send ();
15183 int
15184 main ()
15185 {
15186 res_send ();
15187 ;
15188 return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_lib_resolv_res_send=yes
15204 else
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 ac_cv_lib_resolv_res_send=no
15209 fi
15210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15211 LIBS=$ac_check_lib_save_LIBS
15212 fi
15213 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
15214 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
15215 if test $ac_cv_lib_resolv_res_send = yes; then
15216 resolv=yes
15217 else
15218 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
15219 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
15220 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223 ac_check_lib_save_LIBS=$LIBS
15224 LIBS="-lresolv $LIBS"
15225 cat >conftest.$ac_ext <<_ACEOF
15226 #line $LINENO "configure"
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232
15233 /* Override any gcc2 internal prototype to avoid an error. */
15234 #ifdef __cplusplus
15235 extern "C"
15236 #endif
15237 /* We use char because int might match the return type of a gcc2
15238 builtin and then its argument prototype would still apply. */
15239 char __res_send ();
15240 int
15241 main ()
15242 {
15243 __res_send ();
15244 ;
15245 return 0;
15246 }
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250 (eval $ac_link) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -s conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_cv_lib_resolv___res_send=yes
15261 else
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15264
15265 ac_cv_lib_resolv___res_send=no
15266 fi
15267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15269 fi
15270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
15271 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
15272 if test $ac_cv_lib_resolv___res_send = yes; then
15273 resolv=yes
15274 fi
15275
15276 fi
15277
15278 fi
15279
15280 fi
15281
15282 if test "$resolv" = yes ; then
15283 RESOLVLIB=-lresolv
15284
15285 cat >>confdefs.h <<\_ACEOF
15286 #define HAVE_LIBRESOLV 1
15287 _ACEOF
15288
15289 else
15290 RESOLVLIB=
15291 fi
15292 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
15293 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
15294 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297 cat >conftest.$ac_ext <<_ACEOF
15298 #line $LINENO "configure"
15299 /* confdefs.h. */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 /* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char hes_getmailhost (); below.
15306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15307 <limits.h> exists even on freestanding compilers. */
15308 #ifdef __STDC__
15309 # include <limits.h>
15310 #else
15311 # include <assert.h>
15312 #endif
15313 /* Override any gcc2 internal prototype to avoid an error. */
15314 #ifdef __cplusplus
15315 extern "C"
15316 {
15317 #endif
15318 /* We use char because int might match the return type of a gcc2
15319 builtin and then its argument prototype would still apply. */
15320 char hes_getmailhost ();
15321 /* The GNU C library defines this for functions which it implements
15322 to always fail with ENOSYS. Some functions are actually named
15323 something starting with __ and the normal name is an alias. */
15324 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
15325 choke me
15326 #else
15327 char (*f) () = hes_getmailhost;
15328 #endif
15329 #ifdef __cplusplus
15330 }
15331 #endif
15332
15333 int
15334 main ()
15335 {
15336 return f != hes_getmailhost;
15337 ;
15338 return 0;
15339 }
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15343 (eval $ac_link) 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -s conftest$ac_exeext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_cv_func_hes_getmailhost=yes
15354 else
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15357
15358 ac_cv_func_hes_getmailhost=no
15359 fi
15360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15361 fi
15362 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
15363 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
15364 if test $ac_cv_func_hes_getmailhost = yes; then
15365 :
15366 else
15367 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
15368 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
15369 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lhesiod $RESOLVLIB $LIBS"
15374 cat >conftest.$ac_ext <<_ACEOF
15375 #line $LINENO "configure"
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381
15382 /* Override any gcc2 internal prototype to avoid an error. */
15383 #ifdef __cplusplus
15384 extern "C"
15385 #endif
15386 /* We use char because int might match the return type of a gcc2
15387 builtin and then its argument prototype would still apply. */
15388 char hes_getmailhost ();
15389 int
15390 main ()
15391 {
15392 hes_getmailhost ();
15393 ;
15394 return 0;
15395 }
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -s conftest$ac_exeext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_cv_lib_hesiod_hes_getmailhost=yes
15410 else
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 ac_cv_lib_hesiod_hes_getmailhost=no
15415 fi
15416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15417 LIBS=$ac_check_lib_save_LIBS
15418 fi
15419 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15420 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
15421 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
15422
15423 cat >>confdefs.h <<\_ACEOF
15424 #define HAVE_LIBHESIOD 1
15425 _ACEOF
15426
15427 else
15428 :
15429 fi
15430
15431 fi
15432
15433 fi
15434
15435 # These tell us which Kerberos-related libraries to use.
15436 if test "${with_kerberos+set}" = set; then
15437
15438 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
15439 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
15440 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 else
15443 ac_check_lib_save_LIBS=$LIBS
15444 LIBS="-lcom_err $LIBS"
15445 cat >conftest.$ac_ext <<_ACEOF
15446 #line $LINENO "configure"
15447 /* confdefs.h. */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452
15453 /* Override any gcc2 internal prototype to avoid an error. */
15454 #ifdef __cplusplus
15455 extern "C"
15456 #endif
15457 /* We use char because int might match the return type of a gcc2
15458 builtin and then its argument prototype would still apply. */
15459 char com_err ();
15460 int
15461 main ()
15462 {
15463 com_err ();
15464 ;
15465 return 0;
15466 }
15467 _ACEOF
15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try='test -s conftest$ac_exeext'
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_cv_lib_com_err_com_err=yes
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15484
15485 ac_cv_lib_com_err_com_err=no
15486 fi
15487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15488 LIBS=$ac_check_lib_save_LIBS
15489 fi
15490 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
15491 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
15492 if test $ac_cv_lib_com_err_com_err = yes; then
15493 cat >>confdefs.h <<_ACEOF
15494 #define HAVE_LIBCOM_ERR 1
15495 _ACEOF
15496
15497 LIBS="-lcom_err $LIBS"
15498
15499 fi
15500
15501
15502 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15503 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
15504 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 ac_check_lib_save_LIBS=$LIBS
15508 LIBS="-lk5crypto $LIBS"
15509 cat >conftest.$ac_ext <<_ACEOF
15510 #line $LINENO "configure"
15511 /* confdefs.h. */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516
15517 /* Override any gcc2 internal prototype to avoid an error. */
15518 #ifdef __cplusplus
15519 extern "C"
15520 #endif
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523 char mit_des_cbc_encrypt ();
15524 int
15525 main ()
15526 {
15527 mit_des_cbc_encrypt ();
15528 ;
15529 return 0;
15530 }
15531 _ACEOF
15532 rm -f conftest.$ac_objext conftest$ac_exeext
15533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15534 (eval $ac_link) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -s conftest$ac_exeext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15545 else
15546 echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15548
15549 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15550 fi
15551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15553 fi
15554 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15555 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
15556 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
15557 cat >>confdefs.h <<_ACEOF
15558 #define HAVE_LIBK5CRYPTO 1
15559 _ACEOF
15560
15561 LIBS="-lk5crypto $LIBS"
15562
15563 fi
15564
15565
15566 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15567 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15568 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571 ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lcrypto $LIBS"
15573 cat >conftest.$ac_ext <<_ACEOF
15574 #line $LINENO "configure"
15575 /* confdefs.h. */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580
15581 /* Override any gcc2 internal prototype to avoid an error. */
15582 #ifdef __cplusplus
15583 extern "C"
15584 #endif
15585 /* We use char because int might match the return type of a gcc2
15586 builtin and then its argument prototype would still apply. */
15587 char mit_des_cbc_encrypt ();
15588 int
15589 main ()
15590 {
15591 mit_des_cbc_encrypt ();
15592 ;
15593 return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15614 fi
15615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15616 LIBS=$ac_check_lib_save_LIBS
15617 fi
15618 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15619 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15620 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15621 cat >>confdefs.h <<_ACEOF
15622 #define HAVE_LIBCRYPTO 1
15623 _ACEOF
15624
15625 LIBS="-lcrypto $LIBS"
15626
15627 fi
15628
15629
15630 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15631 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15632 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635 ac_check_lib_save_LIBS=$LIBS
15636 LIBS="-lkrb5 $LIBS"
15637 cat >conftest.$ac_ext <<_ACEOF
15638 #line $LINENO "configure"
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644
15645 /* Override any gcc2 internal prototype to avoid an error. */
15646 #ifdef __cplusplus
15647 extern "C"
15648 #endif
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15651 char krb5_init_context ();
15652 int
15653 main ()
15654 {
15655 krb5_init_context ();
15656 ;
15657 return 0;
15658 }
15659 _ACEOF
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662 (eval $ac_link) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -s conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_cv_lib_krb5_krb5_init_context=yes
15673 else
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ac_cv_lib_krb5_krb5_init_context=no
15678 fi
15679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15681 fi
15682 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15683 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15684 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_LIBKRB5 1
15687 _ACEOF
15688
15689 LIBS="-lkrb5 $LIBS"
15690
15691 fi
15692
15693 if test "${with_kerberos5+set}" != set; then
15694
15695 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15696 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15697 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 else
15700 ac_check_lib_save_LIBS=$LIBS
15701 LIBS="-ldes425 $LIBS"
15702 cat >conftest.$ac_ext <<_ACEOF
15703 #line $LINENO "configure"
15704 /* confdefs.h. */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709
15710 /* Override any gcc2 internal prototype to avoid an error. */
15711 #ifdef __cplusplus
15712 extern "C"
15713 #endif
15714 /* We use char because int might match the return type of a gcc2
15715 builtin and then its argument prototype would still apply. */
15716 char des_cbc_encrypt ();
15717 int
15718 main ()
15719 {
15720 des_cbc_encrypt ();
15721 ;
15722 return 0;
15723 }
15724 _ACEOF
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_des425_des_cbc_encrypt=yes
15738 else
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 ac_cv_lib_des425_des_cbc_encrypt=no
15743 fi
15744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15745 LIBS=$ac_check_lib_save_LIBS
15746 fi
15747 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15748 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15749 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15750 cat >>confdefs.h <<_ACEOF
15751 #define HAVE_LIBDES425 1
15752 _ACEOF
15753
15754 LIBS="-ldes425 $LIBS"
15755
15756 else
15757
15758 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15759 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15760 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-ldes $LIBS"
15765 cat >conftest.$ac_ext <<_ACEOF
15766 #line $LINENO "configure"
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772
15773 /* Override any gcc2 internal prototype to avoid an error. */
15774 #ifdef __cplusplus
15775 extern "C"
15776 #endif
15777 /* We use char because int might match the return type of a gcc2
15778 builtin and then its argument prototype would still apply. */
15779 char des_cbc_encrypt ();
15780 int
15781 main ()
15782 {
15783 des_cbc_encrypt ();
15784 ;
15785 return 0;
15786 }
15787 _ACEOF
15788 rm -f conftest.$ac_objext conftest$ac_exeext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790 (eval $ac_link) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_cv_lib_des_des_cbc_encrypt=yes
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_cv_lib_des_des_cbc_encrypt=no
15806 fi
15807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15808 LIBS=$ac_check_lib_save_LIBS
15809 fi
15810 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15811 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15812 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15813 cat >>confdefs.h <<_ACEOF
15814 #define HAVE_LIBDES 1
15815 _ACEOF
15816
15817 LIBS="-ldes $LIBS"
15818
15819 fi
15820
15821 fi
15822
15823
15824 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15825 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15826 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829 ac_check_lib_save_LIBS=$LIBS
15830 LIBS="-lkrb4 $LIBS"
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15833 /* confdefs.h. */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838
15839 /* Override any gcc2 internal prototype to avoid an error. */
15840 #ifdef __cplusplus
15841 extern "C"
15842 #endif
15843 /* We use char because int might match the return type of a gcc2
15844 builtin and then its argument prototype would still apply. */
15845 char krb_get_cred ();
15846 int
15847 main ()
15848 {
15849 krb_get_cred ();
15850 ;
15851 return 0;
15852 }
15853 _ACEOF
15854 rm -f conftest.$ac_objext conftest$ac_exeext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15856 (eval $ac_link) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try='test -s conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_lib_krb4_krb_get_cred=yes
15867 else
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 ac_cv_lib_krb4_krb_get_cred=no
15872 fi
15873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15874 LIBS=$ac_check_lib_save_LIBS
15875 fi
15876 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15877 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15878 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15879 cat >>confdefs.h <<_ACEOF
15880 #define HAVE_LIBKRB4 1
15881 _ACEOF
15882
15883 LIBS="-lkrb4 $LIBS"
15884
15885 else
15886
15887 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15888 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15889 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892 ac_check_lib_save_LIBS=$LIBS
15893 LIBS="-lkrb $LIBS"
15894 cat >conftest.$ac_ext <<_ACEOF
15895 #line $LINENO "configure"
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901
15902 /* Override any gcc2 internal prototype to avoid an error. */
15903 #ifdef __cplusplus
15904 extern "C"
15905 #endif
15906 /* We use char because int might match the return type of a gcc2
15907 builtin and then its argument prototype would still apply. */
15908 char krb_get_cred ();
15909 int
15910 main ()
15911 {
15912 krb_get_cred ();
15913 ;
15914 return 0;
15915 }
15916 _ACEOF
15917 rm -f conftest.$ac_objext conftest$ac_exeext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 ac_cv_lib_krb_krb_get_cred=yes
15930 else
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934 ac_cv_lib_krb_krb_get_cred=no
15935 fi
15936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15937 LIBS=$ac_check_lib_save_LIBS
15938 fi
15939 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15940 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15941 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943 #define HAVE_LIBKRB 1
15944 _ACEOF
15945
15946 LIBS="-lkrb $LIBS"
15947
15948 fi
15949
15950 fi
15951
15952 fi
15953
15954 if test "${with_kerberos5+set}" = set; then
15955
15956 for ac_header in krb5.h
15957 do
15958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15960 echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 fi
15965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15967 else
15968 # Is the header compilable?
15969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15971 cat >conftest.$ac_ext <<_ACEOF
15972 #line $LINENO "configure"
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15979 #include <$ac_header>
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -s conftest.$ac_objext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_header_compiler=yes
15994 else
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998 ac_header_compiler=no
15999 fi
16000 rm -f conftest.$ac_objext conftest.$ac_ext
16001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16002 echo "${ECHO_T}$ac_header_compiler" >&6
16003
16004 # Is the header present?
16005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16007 cat >conftest.$ac_ext <<_ACEOF
16008 #line $LINENO "configure"
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <$ac_header>
16015 _ACEOF
16016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16018 ac_status=$?
16019 grep -v '^ *+' conftest.er1 >conftest.err
16020 rm -f conftest.er1
16021 cat conftest.err >&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } >/dev/null; then
16024 if test -s conftest.err; then
16025 ac_cpp_err=$ac_c_preproc_warn_flag
16026 else
16027 ac_cpp_err=
16028 fi
16029 else
16030 ac_cpp_err=yes
16031 fi
16032 if test -z "$ac_cpp_err"; then
16033 ac_header_preproc=yes
16034 else
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 ac_header_preproc=no
16039 fi
16040 rm -f conftest.err conftest.$ac_ext
16041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16042 echo "${ECHO_T}$ac_header_preproc" >&6
16043
16044 # So? What about this header?
16045 case $ac_header_compiler:$ac_header_preproc in
16046 yes:no )
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16051 (
16052 cat <<\_ASBOX
16053 ## ------------------------------------ ##
16054 ## Report this to bug-autoconf@gnu.org. ##
16055 ## ------------------------------------ ##
16056 _ASBOX
16057 ) |
16058 sed "s/^/$as_me: WARNING: /" >&2
16059 ;;
16060 no:yes )
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16067 (
16068 cat <<\_ASBOX
16069 ## ------------------------------------ ##
16070 ## Report this to bug-autoconf@gnu.org. ##
16071 ## ------------------------------------ ##
16072 _ASBOX
16073 ) |
16074 sed "s/^/$as_me: WARNING: /" >&2
16075 ;;
16076 esac
16077 echo "$as_me:$LINENO: checking for $ac_header" >&5
16078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 else
16082 eval "$as_ac_Header=$ac_header_preproc"
16083 fi
16084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16086
16087 fi
16088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16089 cat >>confdefs.h <<_ACEOF
16090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16091 _ACEOF
16092
16093 fi
16094
16095 done
16096
16097 else
16098
16099 for ac_header in des.h
16100 do
16101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16103 echo "$as_me:$LINENO: checking for $ac_header" >&5
16104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 fi
16108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16110 else
16111 # Is the header compilable?
16112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16114 cat >conftest.$ac_ext <<_ACEOF
16115 #line $LINENO "configure"
16116 /* confdefs.h. */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 #include <$ac_header>
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16126 (eval $ac_compile) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -s conftest.$ac_objext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_header_compiler=yes
16137 else
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 ac_header_compiler=no
16142 fi
16143 rm -f conftest.$ac_objext conftest.$ac_ext
16144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6
16146
16147 # Is the header present?
16148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16150 cat >conftest.$ac_ext <<_ACEOF
16151 #line $LINENO "configure"
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <$ac_header>
16158 _ACEOF
16159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16161 ac_status=$?
16162 grep -v '^ *+' conftest.er1 >conftest.err
16163 rm -f conftest.er1
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } >/dev/null; then
16167 if test -s conftest.err; then
16168 ac_cpp_err=$ac_c_preproc_warn_flag
16169 else
16170 ac_cpp_err=
16171 fi
16172 else
16173 ac_cpp_err=yes
16174 fi
16175 if test -z "$ac_cpp_err"; then
16176 ac_header_preproc=yes
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 ac_header_preproc=no
16182 fi
16183 rm -f conftest.err conftest.$ac_ext
16184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185 echo "${ECHO_T}$ac_header_preproc" >&6
16186
16187 # So? What about this header?
16188 case $ac_header_compiler:$ac_header_preproc in
16189 yes:no )
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16194 (
16195 cat <<\_ASBOX
16196 ## ------------------------------------ ##
16197 ## Report this to bug-autoconf@gnu.org. ##
16198 ## ------------------------------------ ##
16199 _ASBOX
16200 ) |
16201 sed "s/^/$as_me: WARNING: /" >&2
16202 ;;
16203 no:yes )
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16210 (
16211 cat <<\_ASBOX
16212 ## ------------------------------------ ##
16213 ## Report this to bug-autoconf@gnu.org. ##
16214 ## ------------------------------------ ##
16215 _ASBOX
16216 ) |
16217 sed "s/^/$as_me: WARNING: /" >&2
16218 ;;
16219 esac
16220 echo "$as_me:$LINENO: checking for $ac_header" >&5
16221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 eval "$as_ac_Header=$ac_header_preproc"
16226 fi
16227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16229
16230 fi
16231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16234 _ACEOF
16235
16236 else
16237
16238 for ac_header in kerberosIV/des.h
16239 do
16240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16242 echo "$as_me:$LINENO: checking for $ac_header" >&5
16243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 fi
16247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16249 else
16250 # Is the header compilable?
16251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16253 cat >conftest.$ac_ext <<_ACEOF
16254 #line $LINENO "configure"
16255 /* confdefs.h. */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 $ac_includes_default
16261 #include <$ac_header>
16262 _ACEOF
16263 rm -f conftest.$ac_objext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_header_compiler=yes
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 ac_header_compiler=no
16281 fi
16282 rm -f conftest.$ac_objext conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16284 echo "${ECHO_T}$ac_header_compiler" >&6
16285
16286 # Is the header present?
16287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16289 cat >conftest.$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16291 /* confdefs.h. */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 #include <$ac_header>
16297 _ACEOF
16298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } >/dev/null; then
16306 if test -s conftest.err; then
16307 ac_cpp_err=$ac_c_preproc_warn_flag
16308 else
16309 ac_cpp_err=
16310 fi
16311 else
16312 ac_cpp_err=yes
16313 fi
16314 if test -z "$ac_cpp_err"; then
16315 ac_header_preproc=yes
16316 else
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16319
16320 ac_header_preproc=no
16321 fi
16322 rm -f conftest.err conftest.$ac_ext
16323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16324 echo "${ECHO_T}$ac_header_preproc" >&6
16325
16326 # So? What about this header?
16327 case $ac_header_compiler:$ac_header_preproc in
16328 yes:no )
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16333 (
16334 cat <<\_ASBOX
16335 ## ------------------------------------ ##
16336 ## Report this to bug-autoconf@gnu.org. ##
16337 ## ------------------------------------ ##
16338 _ASBOX
16339 ) |
16340 sed "s/^/$as_me: WARNING: /" >&2
16341 ;;
16342 no:yes )
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16349 (
16350 cat <<\_ASBOX
16351 ## ------------------------------------ ##
16352 ## Report this to bug-autoconf@gnu.org. ##
16353 ## ------------------------------------ ##
16354 _ASBOX
16355 ) |
16356 sed "s/^/$as_me: WARNING: /" >&2
16357 ;;
16358 esac
16359 echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364 eval "$as_ac_Header=$ac_header_preproc"
16365 fi
16366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16368
16369 fi
16370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16371 cat >>confdefs.h <<_ACEOF
16372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16373 _ACEOF
16374
16375 else
16376
16377 for ac_header in kerberos/des.h
16378 do
16379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16381 echo "$as_me:$LINENO: checking for $ac_header" >&5
16382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 fi
16386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16388 else
16389 # Is the header compilable?
16390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16392 cat >conftest.$ac_ext <<_ACEOF
16393 #line $LINENO "configure"
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 $ac_includes_default
16400 #include <$ac_header>
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_header_compiler=yes
16415 else
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ac_header_compiler=no
16420 fi
16421 rm -f conftest.$ac_objext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16423 echo "${ECHO_T}$ac_header_compiler" >&6
16424
16425 # Is the header present?
16426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16428 cat >conftest.$ac_ext <<_ACEOF
16429 #line $LINENO "configure"
16430 /* confdefs.h. */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 #include <$ac_header>
16436 _ACEOF
16437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } >/dev/null; then
16445 if test -s conftest.err; then
16446 ac_cpp_err=$ac_c_preproc_warn_flag
16447 else
16448 ac_cpp_err=
16449 fi
16450 else
16451 ac_cpp_err=yes
16452 fi
16453 if test -z "$ac_cpp_err"; then
16454 ac_header_preproc=yes
16455 else
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459 ac_header_preproc=no
16460 fi
16461 rm -f conftest.err conftest.$ac_ext
16462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463 echo "${ECHO_T}$ac_header_preproc" >&6
16464
16465 # So? What about this header?
16466 case $ac_header_compiler:$ac_header_preproc in
16467 yes:no )
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16472 (
16473 cat <<\_ASBOX
16474 ## ------------------------------------ ##
16475 ## Report this to bug-autoconf@gnu.org. ##
16476 ## ------------------------------------ ##
16477 _ASBOX
16478 ) |
16479 sed "s/^/$as_me: WARNING: /" >&2
16480 ;;
16481 no:yes )
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16488 (
16489 cat <<\_ASBOX
16490 ## ------------------------------------ ##
16491 ## Report this to bug-autoconf@gnu.org. ##
16492 ## ------------------------------------ ##
16493 _ASBOX
16494 ) |
16495 sed "s/^/$as_me: WARNING: /" >&2
16496 ;;
16497 esac
16498 echo "$as_me:$LINENO: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503 eval "$as_ac_Header=$ac_header_preproc"
16504 fi
16505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16507
16508 fi
16509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16512 _ACEOF
16513
16514 fi
16515
16516 done
16517
16518 fi
16519
16520 done
16521
16522 fi
16523
16524 done
16525
16526
16527 for ac_header in krb.h
16528 do
16529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16531 echo "$as_me:$LINENO: checking for $ac_header" >&5
16532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 fi
16536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16538 else
16539 # Is the header compilable?
16540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16542 cat >conftest.$ac_ext <<_ACEOF
16543 #line $LINENO "configure"
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 $ac_includes_default
16550 #include <$ac_header>
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_header_compiler=yes
16565 else
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ac_header_compiler=no
16570 fi
16571 rm -f conftest.$ac_objext conftest.$ac_ext
16572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16573 echo "${ECHO_T}$ac_header_compiler" >&6
16574
16575 # Is the header present?
16576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16578 cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 /* confdefs.h. */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #include <$ac_header>
16586 _ACEOF
16587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } >/dev/null; then
16595 if test -s conftest.err; then
16596 ac_cpp_err=$ac_c_preproc_warn_flag
16597 else
16598 ac_cpp_err=
16599 fi
16600 else
16601 ac_cpp_err=yes
16602 fi
16603 if test -z "$ac_cpp_err"; then
16604 ac_header_preproc=yes
16605 else
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 ac_header_preproc=no
16610 fi
16611 rm -f conftest.err conftest.$ac_ext
16612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16613 echo "${ECHO_T}$ac_header_preproc" >&6
16614
16615 # So? What about this header?
16616 case $ac_header_compiler:$ac_header_preproc in
16617 yes:no )
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16622 (
16623 cat <<\_ASBOX
16624 ## ------------------------------------ ##
16625 ## Report this to bug-autoconf@gnu.org. ##
16626 ## ------------------------------------ ##
16627 _ASBOX
16628 ) |
16629 sed "s/^/$as_me: WARNING: /" >&2
16630 ;;
16631 no:yes )
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16638 (
16639 cat <<\_ASBOX
16640 ## ------------------------------------ ##
16641 ## Report this to bug-autoconf@gnu.org. ##
16642 ## ------------------------------------ ##
16643 _ASBOX
16644 ) |
16645 sed "s/^/$as_me: WARNING: /" >&2
16646 ;;
16647 esac
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653 eval "$as_ac_Header=$ac_header_preproc"
16654 fi
16655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16657
16658 fi
16659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16660 cat >>confdefs.h <<_ACEOF
16661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16662 _ACEOF
16663
16664 else
16665
16666 for ac_header in kerberosIV/krb.h
16667 do
16668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16670 echo "$as_me:$LINENO: checking for $ac_header" >&5
16671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 fi
16675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16677 else
16678 # Is the header compilable?
16679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16681 cat >conftest.$ac_ext <<_ACEOF
16682 #line $LINENO "configure"
16683 /* confdefs.h. */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 $ac_includes_default
16689 #include <$ac_header>
16690 _ACEOF
16691 rm -f conftest.$ac_objext
16692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16693 (eval $ac_compile) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_header_compiler=yes
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 ac_header_compiler=no
16709 fi
16710 rm -f conftest.$ac_objext conftest.$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16712 echo "${ECHO_T}$ac_header_compiler" >&6
16713
16714 # Is the header present?
16715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16717 cat >conftest.$ac_ext <<_ACEOF
16718 #line $LINENO "configure"
16719 /* confdefs.h. */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #include <$ac_header>
16725 _ACEOF
16726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16728 ac_status=$?
16729 grep -v '^ *+' conftest.er1 >conftest.err
16730 rm -f conftest.er1
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } >/dev/null; then
16734 if test -s conftest.err; then
16735 ac_cpp_err=$ac_c_preproc_warn_flag
16736 else
16737 ac_cpp_err=
16738 fi
16739 else
16740 ac_cpp_err=yes
16741 fi
16742 if test -z "$ac_cpp_err"; then
16743 ac_header_preproc=yes
16744 else
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 ac_header_preproc=no
16749 fi
16750 rm -f conftest.err conftest.$ac_ext
16751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16752 echo "${ECHO_T}$ac_header_preproc" >&6
16753
16754 # So? What about this header?
16755 case $ac_header_compiler:$ac_header_preproc in
16756 yes:no )
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16761 (
16762 cat <<\_ASBOX
16763 ## ------------------------------------ ##
16764 ## Report this to bug-autoconf@gnu.org. ##
16765 ## ------------------------------------ ##
16766 _ASBOX
16767 ) |
16768 sed "s/^/$as_me: WARNING: /" >&2
16769 ;;
16770 no:yes )
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16777 (
16778 cat <<\_ASBOX
16779 ## ------------------------------------ ##
16780 ## Report this to bug-autoconf@gnu.org. ##
16781 ## ------------------------------------ ##
16782 _ASBOX
16783 ) |
16784 sed "s/^/$as_me: WARNING: /" >&2
16785 ;;
16786 esac
16787 echo "$as_me:$LINENO: checking for $ac_header" >&5
16788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792 eval "$as_ac_Header=$ac_header_preproc"
16793 fi
16794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16796
16797 fi
16798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16799 cat >>confdefs.h <<_ACEOF
16800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16801 _ACEOF
16802
16803 else
16804
16805 for ac_header in kerberos/krb.h
16806 do
16807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16809 echo "$as_me:$LINENO: checking for $ac_header" >&5
16810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 fi
16814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16816 else
16817 # Is the header compilable?
16818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16820 cat >conftest.$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16828 #include <$ac_header>
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 ac_header_compiler=yes
16843 else
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847 ac_header_compiler=no
16848 fi
16849 rm -f conftest.$ac_objext conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851 echo "${ECHO_T}$ac_header_compiler" >&6
16852
16853 # Is the header present?
16854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16857 #line $LINENO "configure"
16858 /* confdefs.h. */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 #include <$ac_header>
16864 _ACEOF
16865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev/null; then
16873 if test -s conftest.err; then
16874 ac_cpp_err=$ac_c_preproc_warn_flag
16875 else
16876 ac_cpp_err=
16877 fi
16878 else
16879 ac_cpp_err=yes
16880 fi
16881 if test -z "$ac_cpp_err"; then
16882 ac_header_preproc=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887 ac_header_preproc=no
16888 fi
16889 rm -f conftest.err conftest.$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16891 echo "${ECHO_T}$ac_header_preproc" >&6
16892
16893 # So? What about this header?
16894 case $ac_header_compiler:$ac_header_preproc in
16895 yes:no )
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16900 (
16901 cat <<\_ASBOX
16902 ## ------------------------------------ ##
16903 ## Report this to bug-autoconf@gnu.org. ##
16904 ## ------------------------------------ ##
16905 _ASBOX
16906 ) |
16907 sed "s/^/$as_me: WARNING: /" >&2
16908 ;;
16909 no:yes )
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16916 (
16917 cat <<\_ASBOX
16918 ## ------------------------------------ ##
16919 ## Report this to bug-autoconf@gnu.org. ##
16920 ## ------------------------------------ ##
16921 _ASBOX
16922 ) |
16923 sed "s/^/$as_me: WARNING: /" >&2
16924 ;;
16925 esac
16926 echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931 eval "$as_ac_Header=$ac_header_preproc"
16932 fi
16933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16935
16936 fi
16937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16940 _ACEOF
16941
16942 fi
16943
16944 done
16945
16946 fi
16947
16948 done
16949
16950 fi
16951
16952 done
16953
16954 fi
16955
16956 for ac_header in com_err.h
16957 do
16958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16960 echo "$as_me:$LINENO: checking for $ac_header" >&5
16961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 fi
16965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16967 else
16968 # Is the header compilable?
16969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16972 #line $LINENO "configure"
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 #include <$ac_header>
16980 _ACEOF
16981 rm -f conftest.$ac_objext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 ac_header_compiler=yes
16994 else
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16997
16998 ac_header_compiler=no
16999 fi
17000 rm -f conftest.$ac_objext conftest.$ac_ext
17001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17002 echo "${ECHO_T}$ac_header_compiler" >&6
17003
17004 # Is the header present?
17005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17007 cat >conftest.$ac_ext <<_ACEOF
17008 #line $LINENO "configure"
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 #include <$ac_header>
17015 _ACEOF
17016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } >/dev/null; then
17024 if test -s conftest.err; then
17025 ac_cpp_err=$ac_c_preproc_warn_flag
17026 else
17027 ac_cpp_err=
17028 fi
17029 else
17030 ac_cpp_err=yes
17031 fi
17032 if test -z "$ac_cpp_err"; then
17033 ac_header_preproc=yes
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 ac_header_preproc=no
17039 fi
17040 rm -f conftest.err conftest.$ac_ext
17041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17042 echo "${ECHO_T}$ac_header_preproc" >&6
17043
17044 # So? What about this header?
17045 case $ac_header_compiler:$ac_header_preproc in
17046 yes:no )
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17051 (
17052 cat <<\_ASBOX
17053 ## ------------------------------------ ##
17054 ## Report this to bug-autoconf@gnu.org. ##
17055 ## ------------------------------------ ##
17056 _ASBOX
17057 ) |
17058 sed "s/^/$as_me: WARNING: /" >&2
17059 ;;
17060 no:yes )
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17067 (
17068 cat <<\_ASBOX
17069 ## ------------------------------------ ##
17070 ## Report this to bug-autoconf@gnu.org. ##
17071 ## ------------------------------------ ##
17072 _ASBOX
17073 ) |
17074 sed "s/^/$as_me: WARNING: /" >&2
17075 ;;
17076 esac
17077 echo "$as_me:$LINENO: checking for $ac_header" >&5
17078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082 eval "$as_ac_Header=$ac_header_preproc"
17083 fi
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17086
17087 fi
17088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17089 cat >>confdefs.h <<_ACEOF
17090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17091 _ACEOF
17092
17093 fi
17094
17095 done
17096
17097 fi
17098
17099 # Solaris requires -lintl if you want strerror (which calls dgettext)
17100 # to return localized messages.
17101
17102 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
17103 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
17104 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107 ac_check_lib_save_LIBS=$LIBS
17108 LIBS="-lintl $LIBS"
17109 cat >conftest.$ac_ext <<_ACEOF
17110 #line $LINENO "configure"
17111 /* confdefs.h. */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116
17117 /* Override any gcc2 internal prototype to avoid an error. */
17118 #ifdef __cplusplus
17119 extern "C"
17120 #endif
17121 /* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17123 char dgettext ();
17124 int
17125 main ()
17126 {
17127 dgettext ();
17128 ;
17129 return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_lib_intl_dgettext=yes
17145 else
17146 echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17148
17149 ac_cv_lib_intl_dgettext=no
17150 fi
17151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17152 LIBS=$ac_check_lib_save_LIBS
17153 fi
17154 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
17155 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
17156 if test $ac_cv_lib_intl_dgettext = yes; then
17157 cat >>confdefs.h <<_ACEOF
17158 #define HAVE_LIBINTL 1
17159 _ACEOF
17160
17161 LIBS="-lintl $LIBS"
17162
17163 fi
17164
17165
17166 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
17167 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
17168 if test "${emacs_cv_localtime_cache+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171 if test x$ac_cv_func_tzset = xyes; then
17172 if test "$cross_compiling" = yes; then
17173 # If we have tzset, assume the worst when cross-compiling.
17174 emacs_cv_localtime_cache=yes
17175 else
17176 cat >conftest.$ac_ext <<_ACEOF
17177 #line $LINENO "configure"
17178 /* confdefs.h. */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 #include <time.h>
17184 extern char **environ;
17185 unset_TZ ()
17186 {
17187 char **from, **to;
17188 for (to = from = environ; (*to = *from); from++)
17189 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
17190 to++;
17191 }
17192 char TZ_GMT0[] = "TZ=GMT0";
17193 char TZ_PST8[] = "TZ=PST8";
17194 main()
17195 {
17196 time_t now = time ((time_t *) 0);
17197 int hour_GMT0, hour_unset;
17198 if (putenv (TZ_GMT0) != 0)
17199 exit (1);
17200 hour_GMT0 = localtime (&now)->tm_hour;
17201 unset_TZ ();
17202 hour_unset = localtime (&now)->tm_hour;
17203 if (putenv (TZ_PST8) != 0)
17204 exit (1);
17205 if (localtime (&now)->tm_hour == hour_GMT0)
17206 exit (1);
17207 unset_TZ ();
17208 if (localtime (&now)->tm_hour != hour_unset)
17209 exit (1);
17210 exit (0);
17211 }
17212 _ACEOF
17213 rm -f conftest$ac_exeext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17215 (eval $ac_link) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 emacs_cv_localtime_cache=no
17225 else
17226 echo "$as_me: program exited with status $ac_status" >&5
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230 ( exit $ac_status )
17231 emacs_cv_localtime_cache=yes
17232 fi
17233 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17234 fi
17235 else
17236 # If we lack tzset, report that localtime does not cache TZ,
17237 # since we can't invalidate the cache if we don't have tzset.
17238 emacs_cv_localtime_cache=no
17239 fi
17240 fi
17241 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
17242 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
17243 if test $emacs_cv_localtime_cache = yes; then
17244
17245 cat >>confdefs.h <<\_ACEOF
17246 #define LOCALTIME_CACHE 1
17247 _ACEOF
17248
17249 fi
17250
17251 if test "x$HAVE_TIMEVAL" = xyes; then
17252
17253 for ac_func in gettimeofday
17254 do
17255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17256 echo "$as_me:$LINENO: checking for $ac_func" >&5
17257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17258 if eval "test \"\${$as_ac_var+set}\" = set"; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261 cat >conftest.$ac_ext <<_ACEOF
17262 #line $LINENO "configure"
17263 /* confdefs.h. */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 /* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func (); below.
17270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271 <limits.h> exists even on freestanding compilers. */
17272 #ifdef __STDC__
17273 # include <limits.h>
17274 #else
17275 # include <assert.h>
17276 #endif
17277 /* Override any gcc2 internal prototype to avoid an error. */
17278 #ifdef __cplusplus
17279 extern "C"
17280 {
17281 #endif
17282 /* We use char because int might match the return type of a gcc2
17283 builtin and then its argument prototype would still apply. */
17284 char $ac_func ();
17285 /* The GNU C library defines this for functions which it implements
17286 to always fail with ENOSYS. Some functions are actually named
17287 something starting with __ and the normal name is an alias. */
17288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17289 choke me
17290 #else
17291 char (*f) () = $ac_func;
17292 #endif
17293 #ifdef __cplusplus
17294 }
17295 #endif
17296
17297 int
17298 main ()
17299 {
17300 return f != $ac_func;
17301 ;
17302 return 0;
17303 }
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17307 (eval $ac_link) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -s conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 eval "$as_ac_var=yes"
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322 eval "$as_ac_var=no"
17323 fi
17324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17325 fi
17326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17328 if test `eval echo '${'$as_ac_var'}'` = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17331 _ACEOF
17332
17333 fi
17334 done
17335
17336 if test $ac_cv_func_gettimeofday = yes; then
17337 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
17338 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
17339 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 else
17342 cat >conftest.$ac_ext <<_ACEOF
17343 #line $LINENO "configure"
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349
17350 #ifdef TIME_WITH_SYS_TIME
17351 #include <sys/time.h>
17352 #include <time.h>
17353 #else
17354 #ifdef HAVE_SYS_TIME_H
17355 #include <sys/time.h>
17356 #else
17357 #include <time.h>
17358 #endif
17359 #endif
17360 int
17361 main ()
17362 {
17363 struct timeval time;
17364 gettimeofday (&time, 0);
17365 ;
17366 return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17371 (eval $ac_compile) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try='test -s conftest.$ac_objext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 emacs_cv_gettimeofday_two_arguments=yes
17382 else
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 emacs_cv_gettimeofday_two_arguments=no
17387 fi
17388 rm -f conftest.$ac_objext conftest.$ac_ext
17389 fi
17390 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
17391 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
17392 if test $emacs_cv_gettimeofday_two_arguments = no; then
17393
17394 cat >>confdefs.h <<\_ACEOF
17395 #define GETTIMEOFDAY_ONE_ARGUMENT 1
17396 _ACEOF
17397
17398 fi
17399 fi
17400 fi
17401
17402 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17403 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17404 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17405 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408 cat >conftest.$ac_ext <<_ACEOF
17409 #line $LINENO "configure"
17410 /* confdefs.h. */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 #include <sys/types.h>
17416 #include <$ac_cv_struct_tm>
17417
17418
17419 int
17420 main ()
17421 {
17422 static struct tm ac_aggr;
17423 if (ac_aggr.tm_zone)
17424 return 0;
17425 ;
17426 return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_member_struct_tm_tm_zone=yes
17442 else
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 cat >conftest.$ac_ext <<_ACEOF
17447 #line $LINENO "configure"
17448 /* confdefs.h. */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453 #include <sys/types.h>
17454 #include <$ac_cv_struct_tm>
17455
17456
17457 int
17458 main ()
17459 {
17460 static struct tm ac_aggr;
17461 if (sizeof ac_aggr.tm_zone)
17462 return 0;
17463 ;
17464 return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try='test -s conftest.$ac_objext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_member_struct_tm_tm_zone=yes
17480 else
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_cv_member_struct_tm_tm_zone=no
17485 fi
17486 rm -f conftest.$ac_objext conftest.$ac_ext
17487 fi
17488 rm -f conftest.$ac_objext conftest.$ac_ext
17489 fi
17490 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17491 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17492 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17493
17494 cat >>confdefs.h <<_ACEOF
17495 #define HAVE_STRUCT_TM_TM_ZONE 1
17496 _ACEOF
17497
17498
17499 fi
17500
17501 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17502
17503 cat >>confdefs.h <<\_ACEOF
17504 #define HAVE_TM_ZONE 1
17505 _ACEOF
17506
17507 else
17508 echo "$as_me:$LINENO: checking for tzname" >&5
17509 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17510 if test "${ac_cv_var_tzname+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 cat >conftest.$ac_ext <<_ACEOF
17514 #line $LINENO "configure"
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 #include <time.h>
17521 #ifndef tzname /* For SGI. */
17522 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17523 #endif
17524
17525 int
17526 main ()
17527 {
17528 atoi(*tzname);
17529 ;
17530 return 0;
17531 }
17532 _ACEOF
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 (eval $ac_link) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_var_tzname=yes
17546 else
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 ac_cv_var_tzname=no
17551 fi
17552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17553 fi
17554 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17555 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17556 if test $ac_cv_var_tzname = yes; then
17557
17558 cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_TZNAME 1
17560 _ACEOF
17561
17562 fi
17563 fi
17564
17565
17566 if test "$ac_cv_func_gettimeofday" = yes; then
17567 echo "$as_me:$LINENO: checking for struct timezone" >&5
17568 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17569 if test "${emacs_cv_struct_timezone+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 else
17572 cat >conftest.$ac_ext <<_ACEOF
17573 #line $LINENO "configure"
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 #include <sys/time.h>
17580 int
17581 main ()
17582 {
17583 struct timezone tz;
17584 ;
17585 return 0;
17586 }
17587 _ACEOF
17588 rm -f conftest.$ac_objext
17589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17590 (eval $ac_compile) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 if test "$cross_compiling" = yes; then
17601 emacs_cv_struct_timezone=yes
17602 else
17603 cat >conftest.$ac_ext <<_ACEOF
17604 #line $LINENO "configure"
17605 /* confdefs.h. */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17610
17611 #ifdef TIME_WITH_SYS_TIME
17612 #include <sys/time.h>
17613 #include <time.h>
17614 #else
17615 #ifdef HAVE_SYS_TIME_H
17616 #include <sys/time.h>
17617 #else
17618 #include <time.h>
17619 #endif
17620 #endif
17621 main () {
17622 struct timeval time;
17623 struct timezone dummy;
17624 exit (gettimeofday (&time, &dummy));
17625 }
17626 _ACEOF
17627 rm -f conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 emacs_cv_struct_timezone=yes
17639 else
17640 echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ( exit $ac_status )
17645 emacs_cv_struct_timezone=no
17646 fi
17647 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17648 fi
17649 else
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 emacs_cv_struct_timezone=no
17654 fi
17655 rm -f conftest.$ac_objext conftest.$ac_ext
17656 fi
17657 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17658 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17659 fi
17660
17661 ok_so_far=yes
17662 echo "$as_me:$LINENO: checking for socket" >&5
17663 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17664 if test "${ac_cv_func_socket+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667 cat >conftest.$ac_ext <<_ACEOF
17668 #line $LINENO "configure"
17669 /* confdefs.h. */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 /* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char socket (); below.
17676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677 <limits.h> exists even on freestanding compilers. */
17678 #ifdef __STDC__
17679 # include <limits.h>
17680 #else
17681 # include <assert.h>
17682 #endif
17683 /* Override any gcc2 internal prototype to avoid an error. */
17684 #ifdef __cplusplus
17685 extern "C"
17686 {
17687 #endif
17688 /* We use char because int might match the return type of a gcc2
17689 builtin and then its argument prototype would still apply. */
17690 char socket ();
17691 /* The GNU C library defines this for functions which it implements
17692 to always fail with ENOSYS. Some functions are actually named
17693 something starting with __ and the normal name is an alias. */
17694 #if defined (__stub_socket) || defined (__stub___socket)
17695 choke me
17696 #else
17697 char (*f) () = socket;
17698 #endif
17699 #ifdef __cplusplus
17700 }
17701 #endif
17702
17703 int
17704 main ()
17705 {
17706 return f != socket;
17707 ;
17708 return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713 (eval $ac_link) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_func_socket=yes
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 ac_cv_func_socket=no
17729 fi
17730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17731 fi
17732 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17733 echo "${ECHO_T}$ac_cv_func_socket" >&6
17734 if test $ac_cv_func_socket = yes; then
17735 :
17736 else
17737 ok_so_far=no
17738 fi
17739
17740 if test $ok_so_far = yes; then
17741 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17742 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17743 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17744 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 fi
17747 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17748 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17749 else
17750 # Is the header compilable?
17751 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17752 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17753 cat >conftest.$ac_ext <<_ACEOF
17754 #line $LINENO "configure"
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 $ac_includes_default
17761 #include <netinet/in.h>
17762 _ACEOF
17763 rm -f conftest.$ac_objext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17765 (eval $ac_compile) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_header_compiler=yes
17776 else
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780 ac_header_compiler=no
17781 fi
17782 rm -f conftest.$ac_objext conftest.$ac_ext
17783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17784 echo "${ECHO_T}$ac_header_compiler" >&6
17785
17786 # Is the header present?
17787 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17788 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17789 cat >conftest.$ac_ext <<_ACEOF
17790 #line $LINENO "configure"
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 #include <netinet/in.h>
17797 _ACEOF
17798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } >/dev/null; then
17806 if test -s conftest.err; then
17807 ac_cpp_err=$ac_c_preproc_warn_flag
17808 else
17809 ac_cpp_err=
17810 fi
17811 else
17812 ac_cpp_err=yes
17813 fi
17814 if test -z "$ac_cpp_err"; then
17815 ac_header_preproc=yes
17816 else
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820 ac_header_preproc=no
17821 fi
17822 rm -f conftest.err conftest.$ac_ext
17823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17824 echo "${ECHO_T}$ac_header_preproc" >&6
17825
17826 # So? What about this header?
17827 case $ac_header_compiler:$ac_header_preproc in
17828 yes:no )
17829 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17830 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17832 echo "$as_me: WARNING: netinet/in.h: 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 no:yes )
17843 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17844 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17846 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17848 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17849 (
17850 cat <<\_ASBOX
17851 ## ------------------------------------ ##
17852 ## Report this to bug-autoconf@gnu.org. ##
17853 ## ------------------------------------ ##
17854 _ASBOX
17855 ) |
17856 sed "s/^/$as_me: WARNING: /" >&2
17857 ;;
17858 esac
17859 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17860 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17861 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864 ac_cv_header_netinet_in_h=$ac_header_preproc
17865 fi
17866 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17867 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17868
17869 fi
17870 if test $ac_cv_header_netinet_in_h = yes; then
17871 :
17872 else
17873 ok_so_far=no
17874 fi
17875
17876
17877 fi
17878 if test $ok_so_far = yes; then
17879 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17880 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17881 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17882 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 fi
17885 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17886 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17887 else
17888 # Is the header compilable?
17889 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17890 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17891 cat >conftest.$ac_ext <<_ACEOF
17892 #line $LINENO "configure"
17893 /* confdefs.h. */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 $ac_includes_default
17899 #include <arpa/inet.h>
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_header_compiler=yes
17914 else
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918 ac_header_compiler=no
17919 fi
17920 rm -f conftest.$ac_objext conftest.$ac_ext
17921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17922 echo "${ECHO_T}$ac_header_compiler" >&6
17923
17924 # Is the header present?
17925 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17926 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17927 cat >conftest.$ac_ext <<_ACEOF
17928 #line $LINENO "configure"
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 #include <arpa/inet.h>
17935 _ACEOF
17936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } >/dev/null; then
17944 if test -s conftest.err; then
17945 ac_cpp_err=$ac_c_preproc_warn_flag
17946 else
17947 ac_cpp_err=
17948 fi
17949 else
17950 ac_cpp_err=yes
17951 fi
17952 if test -z "$ac_cpp_err"; then
17953 ac_header_preproc=yes
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17957
17958 ac_header_preproc=no
17959 fi
17960 rm -f conftest.err conftest.$ac_ext
17961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17962 echo "${ECHO_T}$ac_header_preproc" >&6
17963
17964 # So? What about this header?
17965 case $ac_header_compiler:$ac_header_preproc in
17966 yes:no )
17967 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17968 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17970 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17971 (
17972 cat <<\_ASBOX
17973 ## ------------------------------------ ##
17974 ## Report this to bug-autoconf@gnu.org. ##
17975 ## ------------------------------------ ##
17976 _ASBOX
17977 ) |
17978 sed "s/^/$as_me: WARNING: /" >&2
17979 ;;
17980 no:yes )
17981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17982 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17984 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17986 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17987 (
17988 cat <<\_ASBOX
17989 ## ------------------------------------ ##
17990 ## Report this to bug-autoconf@gnu.org. ##
17991 ## ------------------------------------ ##
17992 _ASBOX
17993 ) |
17994 sed "s/^/$as_me: WARNING: /" >&2
17995 ;;
17996 esac
17997 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17998 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17999 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002 ac_cv_header_arpa_inet_h=$ac_header_preproc
18003 fi
18004 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18005 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18006
18007 fi
18008 if test $ac_cv_header_arpa_inet_h = yes; then
18009 :
18010 else
18011 ok_so_far=no
18012 fi
18013
18014
18015 fi
18016 if test $ok_so_far = yes; then
18017
18018 cat >>confdefs.h <<\_ACEOF
18019 #define HAVE_INET_SOCKETS 1
18020 _ACEOF
18021
18022 fi
18023
18024
18025
18026 for ac_header in sys/ioctl.h net/if.h
18027 do
18028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18030 echo "$as_me:$LINENO: checking for $ac_header" >&5
18031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 fi
18035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18037 else
18038 # Is the header compilable?
18039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18041 cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $ac_includes_default
18049 #include <$ac_header>
18050 _ACEOF
18051 rm -f conftest.$ac_objext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18053 (eval $ac_compile) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -s conftest.$ac_objext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 ac_header_compiler=yes
18064 else
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18067
18068 ac_header_compiler=no
18069 fi
18070 rm -f conftest.$ac_objext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6
18073
18074 # Is the header present?
18075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18077 cat >conftest.$ac_ext <<_ACEOF
18078 #line $LINENO "configure"
18079 /* confdefs.h. */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 #include <$ac_header>
18085 _ACEOF
18086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18088 ac_status=$?
18089 grep -v '^ *+' conftest.er1 >conftest.err
18090 rm -f conftest.er1
18091 cat conftest.err >&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } >/dev/null; then
18094 if test -s conftest.err; then
18095 ac_cpp_err=$ac_c_preproc_warn_flag
18096 else
18097 ac_cpp_err=
18098 fi
18099 else
18100 ac_cpp_err=yes
18101 fi
18102 if test -z "$ac_cpp_err"; then
18103 ac_header_preproc=yes
18104 else
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 ac_header_preproc=no
18109 fi
18110 rm -f conftest.err conftest.$ac_ext
18111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6
18113
18114 # So? What about this header?
18115 case $ac_header_compiler:$ac_header_preproc in
18116 yes:no )
18117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18121 (
18122 cat <<\_ASBOX
18123 ## ------------------------------------ ##
18124 ## Report this to bug-autoconf@gnu.org. ##
18125 ## ------------------------------------ ##
18126 _ASBOX
18127 ) |
18128 sed "s/^/$as_me: WARNING: /" >&2
18129 ;;
18130 no:yes )
18131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18137 (
18138 cat <<\_ASBOX
18139 ## ------------------------------------ ##
18140 ## Report this to bug-autoconf@gnu.org. ##
18141 ## ------------------------------------ ##
18142 _ASBOX
18143 ) |
18144 sed "s/^/$as_me: WARNING: /" >&2
18145 ;;
18146 esac
18147 echo "$as_me:$LINENO: checking for $ac_header" >&5
18148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152 eval "$as_ac_Header=$ac_header_preproc"
18153 fi
18154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18156
18157 fi
18158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18159 cat >>confdefs.h <<_ACEOF
18160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18161 _ACEOF
18162
18163 fi
18164
18165 done
18166
18167
18168 if test -f /usr/lpp/X11/bin/smt.exp; then
18169
18170 cat >>confdefs.h <<\_ACEOF
18171 #define HAVE_AIX_SMT_EXP 1
18172 _ACEOF
18173
18174 fi
18175
18176 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
18177 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
18178 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18179 echo "$as_me:$LINENO: result: yes" >&5
18180 echo "${ECHO_T}yes" >&6
18181
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE_DEV_PTMX 1
18184 _ACEOF
18185
18186 else
18187 echo "$as_me:$LINENO: result: no" >&5
18188 echo "${ECHO_T}no" >&6
18189 fi
18190
18191 echo "$as_me:$LINENO: checking for pid_t" >&5
18192 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18193 if test "${ac_cv_type_pid_t+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196 cat >conftest.$ac_ext <<_ACEOF
18197 #line $LINENO "configure"
18198 /* confdefs.h. */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $ac_includes_default
18204 int
18205 main ()
18206 {
18207 if ((pid_t *) 0)
18208 return 0;
18209 if (sizeof (pid_t))
18210 return 0;
18211 ;
18212 return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -s conftest.$ac_objext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_cv_type_pid_t=yes
18228 else
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18231
18232 ac_cv_type_pid_t=no
18233 fi
18234 rm -f conftest.$ac_objext conftest.$ac_ext
18235 fi
18236 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18237 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18238 if test $ac_cv_type_pid_t = yes; then
18239 :
18240 else
18241
18242 cat >>confdefs.h <<_ACEOF
18243 #define pid_t int
18244 _ACEOF
18245
18246 fi
18247
18248
18249
18250 for ac_header in unistd.h vfork.h
18251 do
18252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18254 echo "$as_me:$LINENO: checking for $ac_header" >&5
18255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 fi
18259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18261 else
18262 # Is the header compilable?
18263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18265 cat >conftest.$ac_ext <<_ACEOF
18266 #line $LINENO "configure"
18267 /* confdefs.h. */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 $ac_includes_default
18273 #include <$ac_header>
18274 _ACEOF
18275 rm -f conftest.$ac_objext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18277 (eval $ac_compile) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try='test -s conftest.$ac_objext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 ac_header_compiler=yes
18288 else
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292 ac_header_compiler=no
18293 fi
18294 rm -f conftest.$ac_objext conftest.$ac_ext
18295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18296 echo "${ECHO_T}$ac_header_compiler" >&6
18297
18298 # Is the header present?
18299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18301 cat >conftest.$ac_ext <<_ACEOF
18302 #line $LINENO "configure"
18303 /* confdefs.h. */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 #include <$ac_header>
18309 _ACEOF
18310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18312 ac_status=$?
18313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } >/dev/null; then
18318 if test -s conftest.err; then
18319 ac_cpp_err=$ac_c_preproc_warn_flag
18320 else
18321 ac_cpp_err=
18322 fi
18323 else
18324 ac_cpp_err=yes
18325 fi
18326 if test -z "$ac_cpp_err"; then
18327 ac_header_preproc=yes
18328 else
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18331
18332 ac_header_preproc=no
18333 fi
18334 rm -f conftest.err conftest.$ac_ext
18335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18336 echo "${ECHO_T}$ac_header_preproc" >&6
18337
18338 # So? What about this header?
18339 case $ac_header_compiler:$ac_header_preproc in
18340 yes:no )
18341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18345 (
18346 cat <<\_ASBOX
18347 ## ------------------------------------ ##
18348 ## Report this to bug-autoconf@gnu.org. ##
18349 ## ------------------------------------ ##
18350 _ASBOX
18351 ) |
18352 sed "s/^/$as_me: WARNING: /" >&2
18353 ;;
18354 no:yes )
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18361 (
18362 cat <<\_ASBOX
18363 ## ------------------------------------ ##
18364 ## Report this to bug-autoconf@gnu.org. ##
18365 ## ------------------------------------ ##
18366 _ASBOX
18367 ) |
18368 sed "s/^/$as_me: WARNING: /" >&2
18369 ;;
18370 esac
18371 echo "$as_me:$LINENO: checking for $ac_header" >&5
18372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376 eval "$as_ac_Header=$ac_header_preproc"
18377 fi
18378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18380
18381 fi
18382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18383 cat >>confdefs.h <<_ACEOF
18384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18385 _ACEOF
18386
18387 fi
18388
18389 done
18390
18391
18392
18393 for ac_func in fork vfork
18394 do
18395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18396 echo "$as_me:$LINENO: checking for $ac_func" >&5
18397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18398 if eval "test \"\${$as_ac_var+set}\" = set"; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401 cat >conftest.$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 /* System header to define __stub macros and hopefully few prototypes,
18409 which can conflict with char $ac_func (); below.
18410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411 <limits.h> exists even on freestanding compilers. */
18412 #ifdef __STDC__
18413 # include <limits.h>
18414 #else
18415 # include <assert.h>
18416 #endif
18417 /* Override any gcc2 internal prototype to avoid an error. */
18418 #ifdef __cplusplus
18419 extern "C"
18420 {
18421 #endif
18422 /* We use char because int might match the return type of a gcc2
18423 builtin and then its argument prototype would still apply. */
18424 char $ac_func ();
18425 /* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18429 choke me
18430 #else
18431 char (*f) () = $ac_func;
18432 #endif
18433 #ifdef __cplusplus
18434 }
18435 #endif
18436
18437 int
18438 main ()
18439 {
18440 return f != $ac_func;
18441 ;
18442 return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447 (eval $ac_link) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 eval "$as_ac_var=yes"
18458 else
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18461
18462 eval "$as_ac_var=no"
18463 fi
18464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18465 fi
18466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18468 if test `eval echo '${'$as_ac_var'}'` = yes; then
18469 cat >>confdefs.h <<_ACEOF
18470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18471 _ACEOF
18472
18473 fi
18474 done
18475
18476 if test "x$ac_cv_func_fork" = xyes; then
18477 echo "$as_me:$LINENO: checking for working fork" >&5
18478 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18479 if test "${ac_cv_func_fork_works+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482 if test "$cross_compiling" = yes; then
18483 ac_cv_func_fork_works=cross
18484 else
18485 cat >conftest.$ac_ext <<_ACEOF
18486 /* By Ruediger Kuhlmann. */
18487 #include <sys/types.h>
18488 #if HAVE_UNISTD_H
18489 # include <unistd.h>
18490 #endif
18491 /* Some systems only have a dummy stub for fork() */
18492 int main ()
18493 {
18494 if (fork() < 0)
18495 exit (1);
18496 exit (0);
18497 }
18498 _ACEOF
18499 rm -f conftest$ac_exeext
18500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18501 (eval $ac_link) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_cv_func_fork_works=yes
18511 else
18512 echo "$as_me: program exited with status $ac_status" >&5
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18515
18516 ( exit $ac_status )
18517 ac_cv_func_fork_works=no
18518 fi
18519 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18520 fi
18521 fi
18522 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18523 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18524
18525 else
18526 ac_cv_func_fork_works=$ac_cv_func_fork
18527 fi
18528 if test "x$ac_cv_func_fork_works" = xcross; then
18529 case $host in
18530 *-*-amigaos* | *-*-msdosdjgpp*)
18531 # Override, as these systems have only a dummy fork() stub
18532 ac_cv_func_fork_works=no
18533 ;;
18534 *)
18535 ac_cv_func_fork_works=yes
18536 ;;
18537 esac
18538 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18539 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18540 fi
18541 ac_cv_func_vfork_works=$ac_cv_func_vfork
18542 if test "x$ac_cv_func_vfork" = xyes; then
18543 echo "$as_me:$LINENO: checking for working vfork" >&5
18544 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18545 if test "${ac_cv_func_vfork_works+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548 if test "$cross_compiling" = yes; then
18549 ac_cv_func_vfork_works=cross
18550 else
18551 cat >conftest.$ac_ext <<_ACEOF
18552 #line $LINENO "configure"
18553 /* confdefs.h. */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 /* Thanks to Paul Eggert for this test. */
18559 #include <stdio.h>
18560 #include <stdlib.h>
18561 #include <sys/types.h>
18562 #include <sys/stat.h>
18563 #include <sys/wait.h>
18564 #if HAVE_UNISTD_H
18565 # include <unistd.h>
18566 #endif
18567 #if HAVE_VFORK_H
18568 # include <vfork.h>
18569 #endif
18570 /* On some sparc systems, changes by the child to local and incoming
18571 argument registers are propagated back to the parent. The compiler
18572 is told about this with #include <vfork.h>, but some compilers
18573 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18574 static variable whose address is put into a register that is
18575 clobbered by the vfork. */
18576 static void
18577 #ifdef __cplusplus
18578 sparc_address_test (int arg)
18579 # else
18580 sparc_address_test (arg) int arg;
18581 #endif
18582 {
18583 static pid_t child;
18584 if (!child) {
18585 child = vfork ();
18586 if (child < 0) {
18587 perror ("vfork");
18588 _exit(2);
18589 }
18590 if (!child) {
18591 arg = getpid();
18592 write(-1, "", 0);
18593 _exit (arg);
18594 }
18595 }
18596 }
18597
18598 int
18599 main ()
18600 {
18601 pid_t parent = getpid ();
18602 pid_t child;
18603
18604 sparc_address_test (0);
18605
18606 child = vfork ();
18607
18608 if (child == 0) {
18609 /* Here is another test for sparc vfork register problems. This
18610 test uses lots of local variables, at least as many local
18611 variables as main has allocated so far including compiler
18612 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18613 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18614 reuse the register of parent for one of the local variables,
18615 since it will think that parent can't possibly be used any more
18616 in this routine. Assigning to the local variable will thus
18617 munge parent in the parent process. */
18618 pid_t
18619 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18620 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18621 /* Convince the compiler that p..p7 are live; otherwise, it might
18622 use the same hardware register for all 8 local variables. */
18623 if (p != p1 || p != p2 || p != p3 || p != p4
18624 || p != p5 || p != p6 || p != p7)
18625 _exit(1);
18626
18627 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18628 from child file descriptors. If the child closes a descriptor
18629 before it execs or exits, this munges the parent's descriptor
18630 as well. Test for this by closing stdout in the child. */
18631 _exit(close(fileno(stdout)) != 0);
18632 } else {
18633 int status;
18634 struct stat st;
18635
18636 while (wait(&status) != child)
18637 ;
18638 exit(
18639 /* Was there some problem with vforking? */
18640 child < 0
18641
18642 /* Did the child fail? (This shouldn't happen.) */
18643 || status
18644
18645 /* Did the vfork/compiler bug occur? */
18646 || parent != getpid()
18647
18648 /* Did the file descriptor bug occur? */
18649 || fstat(fileno(stdout), &st) != 0
18650 );
18651 }
18652 }
18653 _ACEOF
18654 rm -f conftest$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_func_vfork_works=yes
18666 else
18667 echo "$as_me: program exited with status $ac_status" >&5
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ( exit $ac_status )
18672 ac_cv_func_vfork_works=no
18673 fi
18674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18675 fi
18676 fi
18677 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18678 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18679
18680 fi;
18681 if test "x$ac_cv_func_fork_works" = xcross; then
18682 ac_cv_func_vfork_works=ac_cv_func_vfork
18683 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18684 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18685 fi
18686
18687 if test "x$ac_cv_func_vfork_works" = xyes; then
18688
18689 cat >>confdefs.h <<\_ACEOF
18690 #define HAVE_WORKING_VFORK 1
18691 _ACEOF
18692
18693 else
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define vfork fork
18697 _ACEOF
18698
18699 fi
18700 if test "x$ac_cv_func_fork_works" = xyes; then
18701
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_WORKING_FORK 1
18704 _ACEOF
18705
18706 fi
18707
18708
18709 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18710 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18711 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714 cat >conftest.$ac_ext <<_ACEOF
18715 #line $LINENO "configure"
18716 /* confdefs.h. */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 #include <langinfo.h>
18722 int
18723 main ()
18724 {
18725 char* cs = nl_langinfo(CODESET);
18726 ;
18727 return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18732 (eval $ac_link) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 emacs_cv_langinfo_codeset=yes
18743 else
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746
18747 emacs_cv_langinfo_codeset=no
18748 fi
18749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18750
18751 fi
18752 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18753 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18754 if test $emacs_cv_langinfo_codeset = yes; then
18755
18756 cat >>confdefs.h <<\_ACEOF
18757 #define HAVE_LANGINFO_CODESET 1
18758 _ACEOF
18759
18760 fi
18761
18762 echo "$as_me:$LINENO: checking for size_t" >&5
18763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18764 if test "${ac_cv_type_size_t+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767 cat >conftest.$ac_ext <<_ACEOF
18768 #line $LINENO "configure"
18769 /* confdefs.h. */
18770 _ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 $ac_includes_default
18775 int
18776 main ()
18777 {
18778 if ((size_t *) 0)
18779 return 0;
18780 if (sizeof (size_t))
18781 return 0;
18782 ;
18783 return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -s conftest.$ac_objext'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 ac_cv_type_size_t=yes
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803 ac_cv_type_size_t=no
18804 fi
18805 rm -f conftest.$ac_objext conftest.$ac_ext
18806 fi
18807 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18808 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18809 if test $ac_cv_type_size_t = yes; then
18810
18811 cat >>confdefs.h <<_ACEOF
18812 #define HAVE_SIZE_T 1
18813 _ACEOF
18814
18815
18816 fi
18817
18818
18819 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18820 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18821 if test "${ac_cv_type_mbstate_t+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824 cat >conftest.$ac_ext <<_ACEOF
18825 #line $LINENO "configure"
18826 /* confdefs.h. */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 $ac_includes_default
18832 # include <wchar.h>
18833 int
18834 main ()
18835 {
18836 mbstate_t x; return sizeof x;
18837 ;
18838 return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_type_mbstate_t=yes
18854 else
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858 ac_cv_type_mbstate_t=no
18859 fi
18860 rm -f conftest.$ac_objext conftest.$ac_ext
18861 fi
18862 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18863 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18864 if test $ac_cv_type_mbstate_t = yes; then
18865
18866 cat >>confdefs.h <<\_ACEOF
18867 #define HAVE_MBSTATE_T 1
18868 _ACEOF
18869
18870 else
18871
18872 cat >>confdefs.h <<\_ACEOF
18873 #define mbstate_t int
18874 _ACEOF
18875
18876 fi
18877
18878 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18879 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18880 if test "${emacs_cv_c_restrict+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883 cat >conftest.$ac_ext <<_ACEOF
18884 #line $LINENO "configure"
18885 /* confdefs.h. */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 void fred (int *restrict x);
18891 int
18892 main ()
18893 {
18894
18895 ;
18896 return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -s conftest.$ac_objext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 emacs_cv_c_restrict=yes
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 cat >conftest.$ac_ext <<_ACEOF
18917 #line $LINENO "configure"
18918 /* confdefs.h. */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18923 void fred (int *__restrict x);
18924 int
18925 main ()
18926 {
18927
18928 ;
18929 return 0;
18930 }
18931 _ACEOF
18932 rm -f conftest.$ac_objext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18934 (eval $ac_compile) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 emacs_cv_c_restrict=__restrict
18945 else
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 emacs_cv_c_restrict=no
18950 fi
18951 rm -f conftest.$ac_objext conftest.$ac_ext
18952 fi
18953 rm -f conftest.$ac_objext conftest.$ac_ext
18954 fi
18955 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18956 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18957 case "$emacs_cv_c_restrict" in
18958 yes) emacs_restrict=restrict;;
18959 no) emacs_restrict="";;
18960 *) emacs_restrict="$emacs_cv_c_restrict";;
18961 esac
18962 if test "$emacs_restrict" != __restrict; then
18963
18964 cat >>confdefs.h <<_ACEOF
18965 #define __restrict $emacs_restrict
18966 _ACEOF
18967
18968 fi
18969
18970 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18971 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18972 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975 cat >conftest.$ac_ext <<_ACEOF
18976 #line $LINENO "configure"
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 void fred (int x[__restrict]);
18983 int
18984 main ()
18985 {
18986
18987 ;
18988 return 0;
18989 }
18990 _ACEOF
18991 rm -f conftest.$ac_objext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993 (eval $ac_compile) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -s conftest.$ac_objext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 emacs_cv_c_restrict_arr=yes
19004 else
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 emacs_cv_c_restrict_arr=no
19009 fi
19010 rm -f conftest.$ac_objext conftest.$ac_ext
19011 fi
19012 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
19013 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
19014 if test "$emacs_cv_c_restrict_arr" = yes; then
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define __restrict_arr __restrict
19018 _ACEOF
19019
19020 fi
19021
19022
19023
19024 # Set up the CFLAGS for real compilation, so we can substitute it.
19025 CFLAGS="$REAL_CFLAGS"
19026 CPPFLAGS="$REAL_CPPFLAGS"
19027
19028 #### Find out which version of Emacs this is.
19029 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
19030 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
19031 if test x"${version}" = x; then
19032 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
19033 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
19034 { (exit 1); exit 1; }; }
19035 fi
19036
19037 ### Specify what sort of things we'll be editing into Makefile and config.h.
19038 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074 cat >>confdefs.h <<_ACEOF
19075 #define EMACS_CONFIGURATION "${canonical}"
19076 _ACEOF
19077
19078
19079 cat >>confdefs.h <<_ACEOF
19080 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19081 _ACEOF
19082
19083
19084 cat >>confdefs.h <<_ACEOF
19085 #define config_machfile "${machfile}"
19086 _ACEOF
19087
19088
19089 cat >>confdefs.h <<_ACEOF
19090 #define config_opsysfile "${opsysfile}"
19091 _ACEOF
19092
19093
19094 cat >>confdefs.h <<_ACEOF
19095 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
19096 _ACEOF
19097
19098
19099 cat >>confdefs.h <<_ACEOF
19100 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
19101 _ACEOF
19102
19103
19104 cat >>confdefs.h <<_ACEOF
19105 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
19106 _ACEOF
19107
19108
19109 cat >>confdefs.h <<_ACEOF
19110 #define UNEXEC_SRC ${UNEXEC_SRC}
19111 _ACEOF
19112
19113
19114 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19115
19116 cat >>confdefs.h <<\_ACEOF
19117 #define HAVE_X_WINDOWS 1
19118 _ACEOF
19119
19120 fi
19121 if test "${USE_X_TOOLKIT}" != "none" ; then
19122
19123 cat >>confdefs.h <<\_ACEOF
19124 #define USE_X_TOOLKIT 1
19125 _ACEOF
19126
19127 fi
19128 if test "${HAVE_X11}" = "yes" ; then
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_X11 1
19132 _ACEOF
19133
19134 fi
19135 if test "${HAVE_XFREE386}" = "yes" ; then
19136
19137 cat >>confdefs.h <<\_ACEOF
19138 #define HAVE_XFREE386 1
19139 _ACEOF
19140
19141 fi
19142 if test "${HAVE_MENUS}" = "yes" ; then
19143
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE_MENUS 1
19146 _ACEOF
19147
19148 fi
19149 if test "${GNU_MALLOC}" = "yes" ; then
19150
19151 cat >>confdefs.h <<\_ACEOF
19152 #define GNU_MALLOC 1
19153 _ACEOF
19154
19155 fi
19156 if test "${REL_ALLOC}" = "yes" ; then
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define REL_ALLOC 1
19160 _ACEOF
19161
19162 fi
19163
19164
19165
19166
19167
19168 #### Report on what we decided to do.
19169 #### Report GTK as a toolkit, even if it doesn't use Xt.
19170 #### It makes printing result more understandable as using GTK sets
19171 #### toolkit_scroll_bars to yes by default.
19172 if test "${HAVE_GTK}" = "yes"; then
19173 USE_X_TOOLKIT=GTK
19174 fi
19175
19176 echo "
19177 Configured for \`${canonical}'.
19178
19179 Where should the build process find the source code? ${srcdir}
19180 What operating system and machine description files should Emacs use?
19181 \`${opsysfile}' and \`${machfile}'
19182 What compiler should emacs be built with? ${CC} ${CFLAGS}
19183 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19184 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19185 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19186 What window system should Emacs use? ${window_system}
19187 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19188
19189 if test -n "${x_includes}"; then
19190 echo " Where do we find X Windows header files? ${x_includes}"
19191 else
19192 echo " Where do we find X Windows header files? Standard dirs"
19193 fi
19194 if test -n "${x_libraries}"; then
19195 echo " Where do we find X Windows libraries? ${x_libraries}"
19196 else
19197 echo " Where do we find X Windows libraries? Standard dirs"
19198 fi
19199
19200 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19201 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19202 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19203 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19204 echo " Does Emacs use -lungif? ${HAVE_GIF}"
19205 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19206 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19207 echo
19208
19209 # Remove any trailing slashes in these variables.
19210 test "${prefix}" != NONE &&
19211 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19212 test "${exec_prefix}" != NONE &&
19213 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19214
19215 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
19216 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
19217 ## from Makefile.c can correctly provide the arg `-traditional' to the
19218 ## C preprocessor.
19219
19220 cat >conftest.$ac_ext <<_ACEOF
19221 #line $LINENO "configure"
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 yes..yes
19228 _ACEOF
19229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19230 $EGREP "yes..yes" >/dev/null 2>&1; then
19231 CPP_NEED_TRADITIONAL=no
19232 else
19233 CPP_NEED_TRADITIONAL=yes
19234 fi
19235 rm -f conftest*
19236
19237
19238 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"
19239 ac_config_commands="$ac_config_commands default"
19240 cat >confcache <<\_ACEOF
19241 # This file is a shell script that caches the results of configure
19242 # tests run on this system so they can be shared between configure
19243 # scripts and configure runs, see configure's option --config-cache.
19244 # It is not useful on other systems. If it contains results you don't
19245 # want to keep, you may remove or edit it.
19246 #
19247 # config.status only pays attention to the cache file if you give it
19248 # the --recheck option to rerun configure.
19249 #
19250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19252 # following values.
19253
19254 _ACEOF
19255
19256 # The following way of writing the cache mishandles newlines in values,
19257 # but we know of no workaround that is simple, portable, and efficient.
19258 # So, don't put newlines in cache variables' values.
19259 # Ultrix sh set writes to stderr and can't be redirected directly,
19260 # and sets the high bit in the cache file unless we assign to the vars.
19261 {
19262 (set) 2>&1 |
19263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19264 *ac_space=\ *)
19265 # `set' does not quote correctly, so add quotes (double-quote
19266 # substitution turns \\\\ into \\, and sed turns \\ into \).
19267 sed -n \
19268 "s/'/'\\\\''/g;
19269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19270 ;;
19271 *)
19272 # `set' quotes correctly as required by POSIX, so do not add quotes.
19273 sed -n \
19274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19275 ;;
19276 esac;
19277 } |
19278 sed '
19279 t clear
19280 : clear
19281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19282 t end
19283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19284 : end' >>confcache
19285 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19286 if test -w $cache_file; then
19287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19288 cat confcache >$cache_file
19289 else
19290 echo "not updating unwritable cache $cache_file"
19291 fi
19292 fi
19293 rm -f confcache
19294
19295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19296 # Let make expand exec_prefix.
19297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19298
19299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19301 # trailing colons and then remove the whole line if VPATH becomes empty
19302 # (actually we leave an empty line to preserve line numbers).
19303 if test "x$srcdir" = x.; then
19304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19305 s/:*\$(srcdir):*/:/;
19306 s/:*\${srcdir}:*/:/;
19307 s/:*@srcdir@:*/:/;
19308 s/^\([^=]*=[ ]*\):*/\1/;
19309 s/:*$//;
19310 s/^[^=]*=[ ]*$//;
19311 }'
19312 fi
19313
19314 DEFS=-DHAVE_CONFIG_H
19315
19316 ac_libobjs=
19317 ac_ltlibobjs=
19318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19319 # 1. Remove the extension, and $U if already installed.
19320 ac_i=`echo "$ac_i" |
19321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19322 # 2. Add them.
19323 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19324 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19325 done
19326 LIBOBJS=$ac_libobjs
19327
19328 LTLIBOBJS=$ac_ltlibobjs
19329
19330
19331
19332 : ${CONFIG_STATUS=./config.status}
19333 ac_clean_files_save=$ac_clean_files
19334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19337 cat >$CONFIG_STATUS <<_ACEOF
19338 #! $SHELL
19339 # Generated by $as_me.
19340 # Run this file to recreate the current configuration.
19341 # Compiler output produced by configure, useful for debugging
19342 # configure, is in config.log if it exists.
19343
19344 debug=false
19345 ac_cs_recheck=false
19346 ac_cs_silent=false
19347 SHELL=\${CONFIG_SHELL-$SHELL}
19348 _ACEOF
19349
19350 cat >>$CONFIG_STATUS <<\_ACEOF
19351 ## --------------------- ##
19352 ## M4sh Initialization. ##
19353 ## --------------------- ##
19354
19355 # Be Bourne compatible
19356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19357 emulate sh
19358 NULLCMD=:
19359 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19360 # is contrary to our usage. Disable this feature.
19361 alias -g '${1+"$@"}'='"$@"'
19362 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19363 set -o posix
19364 fi
19365
19366 # Support unset when possible.
19367 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19368 as_unset=unset
19369 else
19370 as_unset=false
19371 fi
19372
19373
19374 # Work around bugs in pre-3.0 UWIN ksh.
19375 $as_unset ENV MAIL MAILPATH
19376 PS1='$ '
19377 PS2='> '
19378 PS4='+ '
19379
19380 # NLS nuisances.
19381 for as_var in \
19382 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19383 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19384 LC_TELEPHONE LC_TIME
19385 do
19386 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19387 eval $as_var=C; export $as_var
19388 else
19389 $as_unset $as_var
19390 fi
19391 done
19392
19393 # Required to use basename.
19394 if expr a : '\(a\)' >/dev/null 2>&1; then
19395 as_expr=expr
19396 else
19397 as_expr=false
19398 fi
19399
19400 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19401 as_basename=basename
19402 else
19403 as_basename=false
19404 fi
19405
19406
19407 # Name of the executable.
19408 as_me=`$as_basename "$0" ||
19409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19410 X"$0" : 'X\(//\)$' \| \
19411 X"$0" : 'X\(/\)$' \| \
19412 . : '\(.\)' 2>/dev/null ||
19413 echo X/"$0" |
19414 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19415 /^X\/\(\/\/\)$/{ s//\1/; q; }
19416 /^X\/\(\/\).*/{ s//\1/; q; }
19417 s/.*/./; q'`
19418
19419
19420 # PATH needs CR, and LINENO needs CR and PATH.
19421 # Avoid depending upon Character Ranges.
19422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19425 as_cr_digits='0123456789'
19426 as_cr_alnum=$as_cr_Letters$as_cr_digits
19427
19428 # The user is always right.
19429 if test "${PATH_SEPARATOR+set}" != set; then
19430 echo "#! /bin/sh" >conf$$.sh
19431 echo "exit 0" >>conf$$.sh
19432 chmod +x conf$$.sh
19433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19434 PATH_SEPARATOR=';'
19435 else
19436 PATH_SEPARATOR=:
19437 fi
19438 rm -f conf$$.sh
19439 fi
19440
19441
19442 as_lineno_1=$LINENO
19443 as_lineno_2=$LINENO
19444 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19445 test "x$as_lineno_1" != "x$as_lineno_2" &&
19446 test "x$as_lineno_3" = "x$as_lineno_2" || {
19447 # Find who we are. Look in the path if we contain no path at all
19448 # relative or not.
19449 case $0 in
19450 *[\\/]* ) as_myself=$0 ;;
19451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19452 for as_dir in $PATH
19453 do
19454 IFS=$as_save_IFS
19455 test -z "$as_dir" && as_dir=.
19456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19457 done
19458
19459 ;;
19460 esac
19461 # We did not find ourselves, most probably we were run as `sh COMMAND'
19462 # in which case we are not to be found in the path.
19463 if test "x$as_myself" = x; then
19464 as_myself=$0
19465 fi
19466 if test ! -f "$as_myself"; then
19467 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19468 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19469 { (exit 1); exit 1; }; }
19470 fi
19471 case $CONFIG_SHELL in
19472 '')
19473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19475 do
19476 IFS=$as_save_IFS
19477 test -z "$as_dir" && as_dir=.
19478 for as_base in sh bash ksh sh5; do
19479 case $as_dir in
19480 /*)
19481 if ("$as_dir/$as_base" -c '
19482 as_lineno_1=$LINENO
19483 as_lineno_2=$LINENO
19484 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19485 test "x$as_lineno_1" != "x$as_lineno_2" &&
19486 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19487 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19488 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19489 CONFIG_SHELL=$as_dir/$as_base
19490 export CONFIG_SHELL
19491 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19492 fi;;
19493 esac
19494 done
19495 done
19496 ;;
19497 esac
19498
19499 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19500 # uniformly replaced by the line number. The first 'sed' inserts a
19501 # line-number line before each line; the second 'sed' does the real
19502 # work. The second script uses 'N' to pair each line-number line
19503 # with the numbered line, and appends trailing '-' during
19504 # substitution so that $LINENO is not a special case at line end.
19505 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19506 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19507 sed '=' <$as_myself |
19508 sed '
19509 N
19510 s,$,-,
19511 : loop
19512 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19513 t loop
19514 s,-$,,
19515 s,^['$as_cr_digits']*\n,,
19516 ' >$as_me.lineno &&
19517 chmod +x $as_me.lineno ||
19518 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19519 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19520 { (exit 1); exit 1; }; }
19521
19522 # Don't try to exec as it changes $[0], causing all sort of problems
19523 # (the dirname of $[0] is not the place where we might find the
19524 # original and so on. Autoconf is especially sensible to this).
19525 . ./$as_me.lineno
19526 # Exit status is that of the last command.
19527 exit
19528 }
19529
19530
19531 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19532 *c*,-n*) ECHO_N= ECHO_C='
19533 ' ECHO_T=' ' ;;
19534 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19535 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19536 esac
19537
19538 if expr a : '\(a\)' >/dev/null 2>&1; then
19539 as_expr=expr
19540 else
19541 as_expr=false
19542 fi
19543
19544 rm -f conf$$ conf$$.exe conf$$.file
19545 echo >conf$$.file
19546 if ln -s conf$$.file conf$$ 2>/dev/null; then
19547 # We could just check for DJGPP; but this test a) works b) is more generic
19548 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19549 if test -f conf$$.exe; then
19550 # Don't use ln at all; we don't have any links
19551 as_ln_s='cp -p'
19552 else
19553 as_ln_s='ln -s'
19554 fi
19555 elif ln conf$$.file conf$$ 2>/dev/null; then
19556 as_ln_s=ln
19557 else
19558 as_ln_s='cp -p'
19559 fi
19560 rm -f conf$$ conf$$.exe conf$$.file
19561
19562 if mkdir -p . 2>/dev/null; then
19563 as_mkdir_p=:
19564 else
19565 as_mkdir_p=false
19566 fi
19567
19568 as_executable_p="test -f"
19569
19570 # Sed expression to map a string onto a valid CPP name.
19571 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19572
19573 # Sed expression to map a string onto a valid variable name.
19574 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19575
19576
19577 # IFS
19578 # We need space, tab and new line, in precisely that order.
19579 as_nl='
19580 '
19581 IFS=" $as_nl"
19582
19583 # CDPATH.
19584 $as_unset CDPATH
19585
19586 exec 6>&1
19587
19588 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19589 # report actual input values of CONFIG_FILES etc. instead of their
19590 # values after options handling. Logging --version etc. is OK.
19591 exec 5>>config.log
19592 {
19593 echo
19594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19595 ## Running $as_me. ##
19596 _ASBOX
19597 } >&5
19598 cat >&5 <<_CSEOF
19599
19600 This file was extended by $as_me, which was
19601 generated by GNU Autoconf 2.57. Invocation command line was
19602
19603 CONFIG_FILES = $CONFIG_FILES
19604 CONFIG_HEADERS = $CONFIG_HEADERS
19605 CONFIG_LINKS = $CONFIG_LINKS
19606 CONFIG_COMMANDS = $CONFIG_COMMANDS
19607 $ $0 $@
19608
19609 _CSEOF
19610 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19611 echo >&5
19612 _ACEOF
19613
19614 # Files that config.status was made for.
19615 if test -n "$ac_config_files"; then
19616 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19617 fi
19618
19619 if test -n "$ac_config_headers"; then
19620 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19621 fi
19622
19623 if test -n "$ac_config_links"; then
19624 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19625 fi
19626
19627 if test -n "$ac_config_commands"; then
19628 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19629 fi
19630
19631 cat >>$CONFIG_STATUS <<\_ACEOF
19632
19633 ac_cs_usage="\
19634 \`$as_me' instantiates files from templates according to the
19635 current configuration.
19636
19637 Usage: $0 [OPTIONS] [FILE]...
19638
19639 -h, --help print this help, then exit
19640 -V, --version print version number, then exit
19641 -q, --quiet do not print progress messages
19642 -d, --debug don't remove temporary files
19643 --recheck update $as_me by reconfiguring in the same conditions
19644 --file=FILE[:TEMPLATE]
19645 instantiate the configuration file FILE
19646 --header=FILE[:TEMPLATE]
19647 instantiate the configuration header FILE
19648
19649 Configuration files:
19650 $config_files
19651
19652 Configuration headers:
19653 $config_headers
19654
19655 Configuration commands:
19656 $config_commands
19657
19658 Report bugs to <bug-autoconf@gnu.org>."
19659 _ACEOF
19660
19661 cat >>$CONFIG_STATUS <<_ACEOF
19662 ac_cs_version="\\
19663 config.status
19664 configured by $0, generated by GNU Autoconf 2.57,
19665 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19666
19667 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19668 Free Software Foundation, Inc.
19669 This config.status script is free software; the Free Software Foundation
19670 gives unlimited permission to copy, distribute and modify it."
19671 srcdir=$srcdir
19672 INSTALL="$INSTALL"
19673 _ACEOF
19674
19675 cat >>$CONFIG_STATUS <<\_ACEOF
19676 # If no file are specified by the user, then we need to provide default
19677 # value. By we need to know if files were specified by the user.
19678 ac_need_defaults=:
19679 while test $# != 0
19680 do
19681 case $1 in
19682 --*=*)
19683 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19684 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19685 ac_shift=:
19686 ;;
19687 -*)
19688 ac_option=$1
19689 ac_optarg=$2
19690 ac_shift=shift
19691 ;;
19692 *) # This is not an option, so the user has probably given explicit
19693 # arguments.
19694 ac_option=$1
19695 ac_need_defaults=false;;
19696 esac
19697
19698 case $ac_option in
19699 # Handling of the options.
19700 _ACEOF
19701 cat >>$CONFIG_STATUS <<\_ACEOF
19702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19703 ac_cs_recheck=: ;;
19704 --version | --vers* | -V )
19705 echo "$ac_cs_version"; exit 0 ;;
19706 --he | --h)
19707 # Conflict between --help and --header
19708 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19709 Try \`$0 --help' for more information." >&5
19710 echo "$as_me: error: ambiguous option: $1
19711 Try \`$0 --help' for more information." >&2;}
19712 { (exit 1); exit 1; }; };;
19713 --help | --hel | -h )
19714 echo "$ac_cs_usage"; exit 0 ;;
19715 --debug | --d* | -d )
19716 debug=: ;;
19717 --file | --fil | --fi | --f )
19718 $ac_shift
19719 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19720 ac_need_defaults=false;;
19721 --header | --heade | --head | --hea )
19722 $ac_shift
19723 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19724 ac_need_defaults=false;;
19725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19726 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19727 ac_cs_silent=: ;;
19728
19729 # This is an error.
19730 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19731 Try \`$0 --help' for more information." >&5
19732 echo "$as_me: error: unrecognized option: $1
19733 Try \`$0 --help' for more information." >&2;}
19734 { (exit 1); exit 1; }; } ;;
19735
19736 *) ac_config_targets="$ac_config_targets $1" ;;
19737
19738 esac
19739 shift
19740 done
19741
19742 ac_configure_extra_args=
19743
19744 if $ac_cs_silent; then
19745 exec 6>/dev/null
19746 ac_configure_extra_args="$ac_configure_extra_args --silent"
19747 fi
19748
19749 _ACEOF
19750 cat >>$CONFIG_STATUS <<_ACEOF
19751 if \$ac_cs_recheck; then
19752 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19753 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19754 fi
19755
19756 _ACEOF
19757
19758 cat >>$CONFIG_STATUS <<_ACEOF
19759 #
19760 # INIT-COMMANDS section.
19761 #
19762
19763 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19764
19765 _ACEOF
19766
19767
19768
19769 cat >>$CONFIG_STATUS <<\_ACEOF
19770 for ac_config_target in $ac_config_targets
19771 do
19772 case "$ac_config_target" in
19773 # Handling of arguments.
19774 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19775 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19776 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
19777 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19778 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
19779 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19780 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
19781 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
19782 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
19783 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
19784 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19785 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19786 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19787 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19788 { (exit 1); exit 1; }; };;
19789 esac
19790 done
19791
19792 # If the user did not use the arguments to specify the items to instantiate,
19793 # then the envvar interface is used. Set only those that are not.
19794 # We use the long form for the default assignment because of an extremely
19795 # bizarre bug on SunOS 4.1.3.
19796 if $ac_need_defaults; then
19797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19800 fi
19801
19802 # Have a temporary directory for convenience. Make it in the build tree
19803 # simply because there is no reason to put it here, and in addition,
19804 # creating and moving files from /tmp can sometimes cause problems.
19805 # Create a temporary directory, and hook for its removal unless debugging.
19806 $debug ||
19807 {
19808 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19809 trap '{ (exit 1); exit 1; }' 1 2 13 15
19810 }
19811
19812 # Create a (secure) tmp directory for tmp files.
19813
19814 {
19815 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19816 test -n "$tmp" && test -d "$tmp"
19817 } ||
19818 {
19819 tmp=./confstat$$-$RANDOM
19820 (umask 077 && mkdir $tmp)
19821 } ||
19822 {
19823 echo "$me: cannot create a temporary directory in ." >&2
19824 { (exit 1); exit 1; }
19825 }
19826
19827 _ACEOF
19828
19829 cat >>$CONFIG_STATUS <<_ACEOF
19830
19831 #
19832 # CONFIG_FILES section.
19833 #
19834
19835 # No need to generate the scripts if there are no CONFIG_FILES.
19836 # This happens for instance when ./config.status config.h
19837 if test -n "\$CONFIG_FILES"; then
19838 # Protect against being on the right side of a sed subst in config.status.
19839 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19840 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19841 s,@SHELL@,$SHELL,;t t
19842 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19843 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19844 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19845 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19846 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19847 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19848 s,@exec_prefix@,$exec_prefix,;t t
19849 s,@prefix@,$prefix,;t t
19850 s,@program_transform_name@,$program_transform_name,;t t
19851 s,@bindir@,$bindir,;t t
19852 s,@sbindir@,$sbindir,;t t
19853 s,@libexecdir@,$libexecdir,;t t
19854 s,@datadir@,$datadir,;t t
19855 s,@sysconfdir@,$sysconfdir,;t t
19856 s,@sharedstatedir@,$sharedstatedir,;t t
19857 s,@localstatedir@,$localstatedir,;t t
19858 s,@libdir@,$libdir,;t t
19859 s,@includedir@,$includedir,;t t
19860 s,@oldincludedir@,$oldincludedir,;t t
19861 s,@infodir@,$infodir,;t t
19862 s,@mandir@,$mandir,;t t
19863 s,@build_alias@,$build_alias,;t t
19864 s,@host_alias@,$host_alias,;t t
19865 s,@target_alias@,$target_alias,;t t
19866 s,@DEFS@,$DEFS,;t t
19867 s,@ECHO_C@,$ECHO_C,;t t
19868 s,@ECHO_N@,$ECHO_N,;t t
19869 s,@ECHO_T@,$ECHO_T,;t t
19870 s,@LIBS@,$LIBS,;t t
19871 s,@MAINT@,$MAINT,;t t
19872 s,@build@,$build,;t t
19873 s,@build_cpu@,$build_cpu,;t t
19874 s,@build_vendor@,$build_vendor,;t t
19875 s,@build_os@,$build_os,;t t
19876 s,@host@,$host,;t t
19877 s,@host_cpu@,$host_cpu,;t t
19878 s,@host_vendor@,$host_vendor,;t t
19879 s,@host_os@,$host_os,;t t
19880 s,@CC@,$CC,;t t
19881 s,@CFLAGS@,$CFLAGS,;t t
19882 s,@LDFLAGS@,$LDFLAGS,;t t
19883 s,@CPPFLAGS@,$CPPFLAGS,;t t
19884 s,@ac_ct_CC@,$ac_ct_CC,;t t
19885 s,@EXEEXT@,$EXEEXT,;t t
19886 s,@OBJEXT@,$OBJEXT,;t t
19887 s,@LN_S@,$LN_S,;t t
19888 s,@CPP@,$CPP,;t t
19889 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19890 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19891 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19892 s,@RANLIB@,$RANLIB,;t t
19893 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19894 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19895 s,@EGREP@,$EGREP,;t t
19896 s,@LIBSOUND@,$LIBSOUND,;t t
19897 s,@SET_MAKE@,$SET_MAKE,;t t
19898 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19899 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19900 s,@GTK_LIBS@,$GTK_LIBS,;t t
19901 s,@ALLOCA@,$ALLOCA,;t t
19902 s,@liblockfile@,$liblockfile,;t t
19903 s,@LIBOBJS@,$LIBOBJS,;t t
19904 s,@NEED_SETGID@,$NEED_SETGID,;t t
19905 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19906 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19907 s,@version@,$version,;t t
19908 s,@configuration@,$configuration,;t t
19909 s,@canonical@,$canonical,;t t
19910 s,@srcdir@,$srcdir,;t t
19911 s,@lispdir@,$lispdir,;t t
19912 s,@locallisppath@,$locallisppath,;t t
19913 s,@lisppath@,$lisppath,;t t
19914 s,@x_default_search_path@,$x_default_search_path,;t t
19915 s,@etcdir@,$etcdir,;t t
19916 s,@archlibdir@,$archlibdir,;t t
19917 s,@docdir@,$docdir,;t t
19918 s,@bitmapdir@,$bitmapdir,;t t
19919 s,@gamedir@,$gamedir,;t t
19920 s,@gameuser@,$gameuser,;t t
19921 s,@c_switch_system@,$c_switch_system,;t t
19922 s,@c_switch_machine@,$c_switch_machine,;t t
19923 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19924 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19925 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19926 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19927 s,@machfile@,$machfile,;t t
19928 s,@opsysfile@,$opsysfile,;t t
19929 s,@carbon_appdir@,$carbon_appdir,;t t
19930 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19931 CEOF
19932
19933 _ACEOF
19934
19935 cat >>$CONFIG_STATUS <<\_ACEOF
19936 # Split the substitutions into bite-sized pieces for seds with
19937 # small command number limits, like on Digital OSF/1 and HP-UX.
19938 ac_max_sed_lines=48
19939 ac_sed_frag=1 # Number of current file.
19940 ac_beg=1 # First line for current file.
19941 ac_end=$ac_max_sed_lines # Line after last line for current file.
19942 ac_more_lines=:
19943 ac_sed_cmds=
19944 while $ac_more_lines; do
19945 if test $ac_beg -gt 1; then
19946 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19947 else
19948 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19949 fi
19950 if test ! -s $tmp/subs.frag; then
19951 ac_more_lines=false
19952 else
19953 # The purpose of the label and of the branching condition is to
19954 # speed up the sed processing (if there are no `@' at all, there
19955 # is no need to browse any of the substitutions).
19956 # These are the two extra sed commands mentioned above.
19957 (echo ':t
19958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19959 if test -z "$ac_sed_cmds"; then
19960 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19961 else
19962 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19963 fi
19964 ac_sed_frag=`expr $ac_sed_frag + 1`
19965 ac_beg=$ac_end
19966 ac_end=`expr $ac_end + $ac_max_sed_lines`
19967 fi
19968 done
19969 if test -z "$ac_sed_cmds"; then
19970 ac_sed_cmds=cat
19971 fi
19972 fi # test -n "$CONFIG_FILES"
19973
19974 _ACEOF
19975 cat >>$CONFIG_STATUS <<\_ACEOF
19976 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19978 case $ac_file in
19979 - | *:- | *:-:* ) # input from stdin
19980 cat >$tmp/stdin
19981 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19982 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19983 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19985 * ) ac_file_in=$ac_file.in ;;
19986 esac
19987
19988 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19989 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19991 X"$ac_file" : 'X\(//\)[^/]' \| \
19992 X"$ac_file" : 'X\(//\)$' \| \
19993 X"$ac_file" : 'X\(/\)' \| \
19994 . : '\(.\)' 2>/dev/null ||
19995 echo X"$ac_file" |
19996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19998 /^X\(\/\/\)$/{ s//\1/; q; }
19999 /^X\(\/\).*/{ s//\1/; q; }
20000 s/.*/./; q'`
20001 { if $as_mkdir_p; then
20002 mkdir -p "$ac_dir"
20003 else
20004 as_dir="$ac_dir"
20005 as_dirs=
20006 while test ! -d "$as_dir"; do
20007 as_dirs="$as_dir $as_dirs"
20008 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20010 X"$as_dir" : 'X\(//\)[^/]' \| \
20011 X"$as_dir" : 'X\(//\)$' \| \
20012 X"$as_dir" : 'X\(/\)' \| \
20013 . : '\(.\)' 2>/dev/null ||
20014 echo X"$as_dir" |
20015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20017 /^X\(\/\/\)$/{ s//\1/; q; }
20018 /^X\(\/\).*/{ s//\1/; q; }
20019 s/.*/./; q'`
20020 done
20021 test ! -n "$as_dirs" || mkdir $as_dirs
20022 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20023 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20024 { (exit 1); exit 1; }; }; }
20025
20026 ac_builddir=.
20027
20028 if test "$ac_dir" != .; then
20029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20030 # A "../" for each directory in $ac_dir_suffix.
20031 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20032 else
20033 ac_dir_suffix= ac_top_builddir=
20034 fi
20035
20036 case $srcdir in
20037 .) # No --srcdir option. We are building in place.
20038 ac_srcdir=.
20039 if test -z "$ac_top_builddir"; then
20040 ac_top_srcdir=.
20041 else
20042 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20043 fi ;;
20044 [\\/]* | ?:[\\/]* ) # Absolute path.
20045 ac_srcdir=$srcdir$ac_dir_suffix;
20046 ac_top_srcdir=$srcdir ;;
20047 *) # Relative path.
20048 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20049 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20050 esac
20051 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20052 # absolute.
20053 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20054 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20055 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20056 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20057
20058
20059 case $INSTALL in
20060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20061 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20062 esac
20063
20064 if test x"$ac_file" != x-; then
20065 { echo "$as_me:$LINENO: creating $ac_file" >&5
20066 echo "$as_me: creating $ac_file" >&6;}
20067 rm -f "$ac_file"
20068 fi
20069 # Let's still pretend it is `configure' which instantiates (i.e., don't
20070 # use $as_me), people would be surprised to read:
20071 # /* config.h. Generated by config.status. */
20072 if test x"$ac_file" = x-; then
20073 configure_input=
20074 else
20075 configure_input="$ac_file. "
20076 fi
20077 configure_input=$configure_input"Generated from `echo $ac_file_in |
20078 sed 's,.*/,,'` by configure."
20079
20080 # First look for the input files in the build tree, otherwise in the
20081 # src tree.
20082 ac_file_inputs=`IFS=:
20083 for f in $ac_file_in; do
20084 case $f in
20085 -) echo $tmp/stdin ;;
20086 [\\/$]*)
20087 # Absolute (can't be DOS-style, as IFS=:)
20088 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20089 echo "$as_me: error: cannot find input file: $f" >&2;}
20090 { (exit 1); exit 1; }; }
20091 echo $f;;
20092 *) # Relative
20093 if test -f "$f"; then
20094 # Build tree
20095 echo $f
20096 elif test -f "$srcdir/$f"; then
20097 # Source tree
20098 echo $srcdir/$f
20099 else
20100 # /dev/null tree
20101 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20102 echo "$as_me: error: cannot find input file: $f" >&2;}
20103 { (exit 1); exit 1; }; }
20104 fi;;
20105 esac
20106 done` || { (exit 1); exit 1; }
20107 _ACEOF
20108 cat >>$CONFIG_STATUS <<_ACEOF
20109 sed "$ac_vpsub
20110 $extrasub
20111 _ACEOF
20112 cat >>$CONFIG_STATUS <<\_ACEOF
20113 :t
20114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20115 s,@configure_input@,$configure_input,;t t
20116 s,@srcdir@,$ac_srcdir,;t t
20117 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20118 s,@top_srcdir@,$ac_top_srcdir,;t t
20119 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20120 s,@builddir@,$ac_builddir,;t t
20121 s,@abs_builddir@,$ac_abs_builddir,;t t
20122 s,@top_builddir@,$ac_top_builddir,;t t
20123 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20124 s,@INSTALL@,$ac_INSTALL,;t t
20125 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20126 rm -f $tmp/stdin
20127 if test x"$ac_file" != x-; then
20128 mv $tmp/out $ac_file
20129 else
20130 cat $tmp/out
20131 rm -f $tmp/out
20132 fi
20133
20134 done
20135 _ACEOF
20136 cat >>$CONFIG_STATUS <<\_ACEOF
20137
20138 #
20139 # CONFIG_HEADER section.
20140 #
20141
20142 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20143 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20144 #
20145 # ac_d sets the value in "#define NAME VALUE" lines.
20146 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20147 ac_dB='[ ].*$,\1#\2'
20148 ac_dC=' '
20149 ac_dD=',;t'
20150 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20151 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20152 ac_uB='$,\1#\2define\3'
20153 ac_uC=' '
20154 ac_uD=',;t'
20155
20156 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20158 case $ac_file in
20159 - | *:- | *:-:* ) # input from stdin
20160 cat >$tmp/stdin
20161 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20162 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20163 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20165 * ) ac_file_in=$ac_file.in ;;
20166 esac
20167
20168 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20169 echo "$as_me: creating $ac_file" >&6;}
20170
20171 # First look for the input files in the build tree, otherwise in the
20172 # src tree.
20173 ac_file_inputs=`IFS=:
20174 for f in $ac_file_in; do
20175 case $f in
20176 -) echo $tmp/stdin ;;
20177 [\\/$]*)
20178 # Absolute (can't be DOS-style, as IFS=:)
20179 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20180 echo "$as_me: error: cannot find input file: $f" >&2;}
20181 { (exit 1); exit 1; }; }
20182 echo $f;;
20183 *) # Relative
20184 if test -f "$f"; then
20185 # Build tree
20186 echo $f
20187 elif test -f "$srcdir/$f"; then
20188 # Source tree
20189 echo $srcdir/$f
20190 else
20191 # /dev/null tree
20192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20193 echo "$as_me: error: cannot find input file: $f" >&2;}
20194 { (exit 1); exit 1; }; }
20195 fi;;
20196 esac
20197 done` || { (exit 1); exit 1; }
20198 # Remove the trailing spaces.
20199 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20200
20201 _ACEOF
20202
20203 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20204 # `conftest.undefs', that substitutes the proper values into
20205 # config.h.in to produce config.h. The first handles `#define'
20206 # templates, and the second `#undef' templates.
20207 # And first: Protect against being on the right side of a sed subst in
20208 # config.status. Protect against being in an unquoted here document
20209 # in config.status.
20210 rm -f conftest.defines conftest.undefs
20211 # Using a here document instead of a string reduces the quoting nightmare.
20212 # Putting comments in sed scripts is not portable.
20213 #
20214 # `end' is used to avoid that the second main sed command (meant for
20215 # 0-ary CPP macros) applies to n-ary macro definitions.
20216 # See the Autoconf documentation for `clear'.
20217 cat >confdef2sed.sed <<\_ACEOF
20218 s/[\\&,]/\\&/g
20219 s,[\\$`],\\&,g
20220 t clear
20221 : clear
20222 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20223 t end
20224 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20225 : end
20226 _ACEOF
20227 # If some macros were called several times there might be several times
20228 # the same #defines, which is useless. Nevertheless, we may not want to
20229 # sort them, since we want the *last* AC-DEFINE to be honored.
20230 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20231 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20232 rm -f confdef2sed.sed
20233
20234 # This sed command replaces #undef with comments. This is necessary, for
20235 # example, in the case of _POSIX_SOURCE, which is predefined and required
20236 # on some systems where configure will not decide to define it.
20237 cat >>conftest.undefs <<\_ACEOF
20238 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20239 _ACEOF
20240
20241 # Break up conftest.defines because some shells have a limit on the size
20242 # of here documents, and old seds have small limits too (100 cmds).
20243 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20244 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20245 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20246 echo ' :' >>$CONFIG_STATUS
20247 rm -f conftest.tail
20248 while grep . conftest.defines >/dev/null
20249 do
20250 # Write a limited-size here document to $tmp/defines.sed.
20251 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20252 # Speed up: don't consider the non `#define' lines.
20253 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20254 # Work around the forget-to-reset-the-flag bug.
20255 echo 't clr' >>$CONFIG_STATUS
20256 echo ': clr' >>$CONFIG_STATUS
20257 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20258 echo 'CEOF
20259 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20260 rm -f $tmp/in
20261 mv $tmp/out $tmp/in
20262 ' >>$CONFIG_STATUS
20263 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20264 rm -f conftest.defines
20265 mv conftest.tail conftest.defines
20266 done
20267 rm -f conftest.defines
20268 echo ' fi # grep' >>$CONFIG_STATUS
20269 echo >>$CONFIG_STATUS
20270
20271 # Break up conftest.undefs because some shells have a limit on the size
20272 # of here documents, and old seds have small limits too (100 cmds).
20273 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20274 rm -f conftest.tail
20275 while grep . conftest.undefs >/dev/null
20276 do
20277 # Write a limited-size here document to $tmp/undefs.sed.
20278 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20279 # Speed up: don't consider the non `#undef'
20280 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20281 # Work around the forget-to-reset-the-flag bug.
20282 echo 't clr' >>$CONFIG_STATUS
20283 echo ': clr' >>$CONFIG_STATUS
20284 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20285 echo 'CEOF
20286 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20287 rm -f $tmp/in
20288 mv $tmp/out $tmp/in
20289 ' >>$CONFIG_STATUS
20290 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20291 rm -f conftest.undefs
20292 mv conftest.tail conftest.undefs
20293 done
20294 rm -f conftest.undefs
20295
20296 cat >>$CONFIG_STATUS <<\_ACEOF
20297 # Let's still pretend it is `configure' which instantiates (i.e., don't
20298 # use $as_me), people would be surprised to read:
20299 # /* config.h. Generated by config.status. */
20300 if test x"$ac_file" = x-; then
20301 echo "/* Generated by configure. */" >$tmp/config.h
20302 else
20303 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20304 fi
20305 cat $tmp/in >>$tmp/config.h
20306 rm -f $tmp/in
20307 if test x"$ac_file" != x-; then
20308 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20310 echo "$as_me: $ac_file is unchanged" >&6;}
20311 else
20312 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20314 X"$ac_file" : 'X\(//\)[^/]' \| \
20315 X"$ac_file" : 'X\(//\)$' \| \
20316 X"$ac_file" : 'X\(/\)' \| \
20317 . : '\(.\)' 2>/dev/null ||
20318 echo X"$ac_file" |
20319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20321 /^X\(\/\/\)$/{ s//\1/; q; }
20322 /^X\(\/\).*/{ s//\1/; q; }
20323 s/.*/./; q'`
20324 { if $as_mkdir_p; then
20325 mkdir -p "$ac_dir"
20326 else
20327 as_dir="$ac_dir"
20328 as_dirs=
20329 while test ! -d "$as_dir"; do
20330 as_dirs="$as_dir $as_dirs"
20331 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20333 X"$as_dir" : 'X\(//\)[^/]' \| \
20334 X"$as_dir" : 'X\(//\)$' \| \
20335 X"$as_dir" : 'X\(/\)' \| \
20336 . : '\(.\)' 2>/dev/null ||
20337 echo X"$as_dir" |
20338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20340 /^X\(\/\/\)$/{ s//\1/; q; }
20341 /^X\(\/\).*/{ s//\1/; q; }
20342 s/.*/./; q'`
20343 done
20344 test ! -n "$as_dirs" || mkdir $as_dirs
20345 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20347 { (exit 1); exit 1; }; }; }
20348
20349 rm -f $ac_file
20350 mv $tmp/config.h $ac_file
20351 fi
20352 else
20353 cat $tmp/config.h
20354 rm -f $tmp/config.h
20355 fi
20356 done
20357 _ACEOF
20358 cat >>$CONFIG_STATUS <<\_ACEOF
20359
20360 #
20361 # CONFIG_COMMANDS section.
20362 #
20363 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20364 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20365 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20366 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20367 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20368 X"$ac_dest" : 'X\(//\)[^/]' \| \
20369 X"$ac_dest" : 'X\(//\)$' \| \
20370 X"$ac_dest" : 'X\(/\)' \| \
20371 . : '\(.\)' 2>/dev/null ||
20372 echo X"$ac_dest" |
20373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20375 /^X\(\/\/\)$/{ s//\1/; q; }
20376 /^X\(\/\).*/{ s//\1/; q; }
20377 s/.*/./; q'`
20378 ac_builddir=.
20379
20380 if test "$ac_dir" != .; then
20381 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20382 # A "../" for each directory in $ac_dir_suffix.
20383 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20384 else
20385 ac_dir_suffix= ac_top_builddir=
20386 fi
20387
20388 case $srcdir in
20389 .) # No --srcdir option. We are building in place.
20390 ac_srcdir=.
20391 if test -z "$ac_top_builddir"; then
20392 ac_top_srcdir=.
20393 else
20394 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20395 fi ;;
20396 [\\/]* | ?:[\\/]* ) # Absolute path.
20397 ac_srcdir=$srcdir$ac_dir_suffix;
20398 ac_top_srcdir=$srcdir ;;
20399 *) # Relative path.
20400 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20401 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20402 esac
20403 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20404 # absolute.
20405 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20406 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20407 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20408 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20409
20410
20411 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20412 echo "$as_me: executing $ac_dest commands" >&6;}
20413 case $ac_dest in
20414 default )
20415
20416 ### Make the necessary directories, if they don't exist.
20417 for dir in etc lisp ; do
20418 test -d ${dir} || mkdir ${dir}
20419 done
20420
20421 # Build src/Makefile from ${srcdir}/src/Makefile.c
20422 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
20423 # This must be done after src/config.h is built, since we rely on that file.
20424
20425 # Now get this: Some word that is part of the ${srcdir} directory name
20426 # or the ${configuration} value might, just might, happen to be an
20427 # identifier like `sun4' or `i386' or something, and be predefined by
20428 # the C preprocessor to some helpful value like 1, or maybe the empty
20429 # string. Needless to say consequent macro substitutions are less
20430 # than conducive to the makefile finding the correct directory.
20431 undefs="`echo $top_srcdir $configuration $canonical |
20432 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
20433 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
20434 `"
20435
20436 echo creating src/epaths.h
20437 ${MAKE-make} epaths-force
20438
20439 # As of 2000-11-19, newest development versions of GNU cpp preprocess
20440 # `..' to `. .' unless invoked with -traditional
20441
20442 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
20443 CPPFLAGS="$CPPFLAGS -traditional"
20444 fi
20445
20446 echo creating lib-src/Makefile
20447 ( cd lib-src
20448 rm -f junk.c junk1.c junk2.c
20449 sed -e '/start of cpp stuff/q' \
20450 < Makefile.c > junk1.c
20451 sed -e '1,/start of cpp stuff/d'\
20452 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20453 < Makefile.c > junk.c
20454 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
20455 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20456 cat junk1.c junk2.c > Makefile.new
20457 rm -f junk.c junk1.c junk2.c
20458 chmod 444 Makefile.new
20459 mv -f Makefile.new Makefile
20460 )
20461
20462 echo creating src/Makefile
20463 ( cd src
20464 rm -f junk.c junk1.c junk2.c
20465 sed -e '/start of cpp stuff/q' \
20466 < Makefile.c > junk1.c
20467 sed -e '1,/start of cpp stuff/d'\
20468 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20469 < Makefile.c > junk.c
20470 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
20471 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20472 cat junk1.c junk2.c > Makefile.new
20473 rm -f junk.c junk1.c junk2.c
20474 chmod 444 Makefile.new
20475 mv -f Makefile.new Makefile
20476 )
20477
20478 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20479 echo creating src/.gdbinit
20480 echo source $srcdir/src/.gdbinit > src/.gdbinit
20481 fi
20482
20483 # This is how we know whether to re-run configure in certain cases.
20484 touch src/config.stamp
20485
20486 ;;
20487 esac
20488 done
20489 _ACEOF
20490
20491 cat >>$CONFIG_STATUS <<\_ACEOF
20492
20493 { (exit 0); exit 0; }
20494 _ACEOF
20495 chmod +x $CONFIG_STATUS
20496 ac_clean_files=$ac_clean_files_save
20497
20498
20499 # configure is writing to config.log, and then calls config.status.
20500 # config.status does its own redirection, appending to config.log.
20501 # Unfortunately, on DOS this fails, as config.log is still kept open
20502 # by configure, so config.status won't be able to write to it; its
20503 # output is simply discarded. So we exec the FD to /dev/null,
20504 # effectively closing config.log, so it can be properly (re)opened and
20505 # appended to by config.status. When coming back to configure, we
20506 # need to make the FD available again.
20507 if test "$no_create" != yes; then
20508 ac_cs_success=:
20509 ac_config_status_args=
20510 test "$silent" = yes &&
20511 ac_config_status_args="$ac_config_status_args --quiet"
20512 exec 5>/dev/null
20513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20514 exec 5>>config.log
20515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20516 # would make configure fail if this is the last instruction.
20517 $ac_cs_success || { (exit 1); exit 1; }
20518 fi
20519
20520