Clear up the last paragraph.
[emacs.git] / configure
blob01833eeab3b1491ed38e856e7005fe484f41726d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## --------------------- ##
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
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"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
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`
248 exec 6>&1
251 # Initializations.
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}
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}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
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"
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=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
775 # Report the --help message.
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.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
788 Defaults for the options are specified in brackets.
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 \`..']
801 _ACEOF
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]
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'.
815 For better control, use the options below.
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
832 cat <<\_ACEOF
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
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
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
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
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
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
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
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.
898 _ACEOF
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=.
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=
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`
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
953 cd $ac_popdir
954 done
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959 cat <<\_ACEOF
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
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.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
976 $ $0 $@
978 _ACEOF
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
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`
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`
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`
1002 _ASUNAME
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1007 IFS=$as_save_IFS
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1010 done
1012 } >&5
1014 cat >&5 <<_ACEOF
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1021 _ACEOF
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
1036 for ac_arg
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'" ;;
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
1062 -* ) ac_must_keep_next=true ;;
1063 esac
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1067 ac_sep=" "
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; }
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.
1083 echo
1085 cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090 echo
1091 # The following way of writing the cache mishandles newlines in values,
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"
1101 sed -n \
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104 esac;
1106 echo
1108 cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113 echo
1114 for ac_var in $ac_subst_vars
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
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
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
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
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
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
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
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
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"
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"
1207 done
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
1220 else
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223 >$cache_file
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 ,);;
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
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; }; }
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
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
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
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'
1327 gameuser=games
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1332 withval="$with_gcc"
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
1344 else :
1346 else
1347 cat >>confdefs.h <<\_ACEOF
1348 #define MAIL_USE_POP 1
1349 _ACEOF
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
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
1377 cat >>confdefs.h <<\_ACEOF
1378 #define KERBEROS5 1
1379 _ACEOF
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval="$with_hesiod"
1387 cat >>confdefs.h <<\_ACEOF
1388 #define HESIOD 1
1389 _ACEOF
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval="$with_sound"
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 ;;
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; }; }
1420 esac
1421 with_x_toolkit=$val
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1427 withval="$with_xpm"
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval="$with_jpeg"
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval="$with_tiff"
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1445 withval="$with_gif"
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1451 withval="$with_png"
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1457 withval="$with_gtk"
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"
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"
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1475 withval="$with_xim"
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval="$with_carbon"
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}
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
1497 if test $USE_MAINTAINER_MODE = yes; then
1498 MAINT=
1499 else
1500 MAINT=#
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 /* ) ;;
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)`"
1525 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1526 esac
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;}
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)'
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1557 ### Canonicalize the configuration name.
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
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; }; }
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.
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; }; }
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; }; }
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/'`
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; }; }
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/'`
1638 canonical=$host
1639 configuration=${host_alias-$host}
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.
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.
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.
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'."
1666 machine='' opsys='' unported=no
1667 case "${canonical}" in
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
1678 ## NetBSD ports
1679 *-*-netbsd* )
1680 opsys=netbsd
1681 if test -f /usr/lib/crti.o; then
1683 cat >>confdefs.h <<\_ACEOF
1684 #define HAVE_CRTIN
1685 _ACEOF
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
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
1721 ## Acorn RISCiX:
1722 arm-acorn-riscix1.1* )
1723 machine=acorn opsys=riscix1-1
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
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
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
1757 i860-alliant-* )
1758 machine=alliant-2800 opsys=bsd4-3
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
1778 alpha*-*-linux-gnu* )
1779 machine=alpha opsys=gnu-linux
1782 arm*-*-linux-gnu* )
1783 machine=arm opsys=gnu-linux
1786 ppc-*-linux | \
1787 powerpc-*-linux* )
1788 machine=macppc opsys=gnu-linux
1791 ## Altos 3068
1792 m68*-altos-sysv* )
1793 machine=altos opsys=usg5-2
1796 ## Amdahl UTS
1797 580-amdahl-sysv* )
1798 machine=amdahl opsys=usg5-2-2
1801 ## Apollo, Domain/OS
1802 m68*-apollo-* )
1803 machine=apollo opsys=bsd4-3
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1807 we32k-att-sysv* )
1808 machine=att3b opsys=usg5-2-2
1811 ## AT&T 3b1 - The Mighty Unix PC!
1812 m68*-att-sysv* )
1813 machine=7300 opsys=usg5-2-2
1816 ## Bull dpx20
1817 rs6000-bull-bosx* )
1818 machine=ibmrs6000 opsys=aix3-2
1821 ## Bull dpx2
1822 m68*-bull-sysv3* )
1823 machine=dpx2 opsys=usg5-3
1826 ## Bull sps7
1827 m68*-bull-sysv2* )
1828 machine=sps7 opsys=usg5-2
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
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
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.
1850 ## Compaq Nonstop
1851 mips-compaq-nonstopux* )
1852 machine=nonstopux opsys=nonstopux
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"
1862 ## Cubix QBx/386
1863 i[3456]86-cubix-sysv* )
1864 machine=intel386 opsys=usg5-3
1867 ## Cydra 5
1868 cydra*-cydrome-sysv* )
1869 machine=cydra5 opsys=usg5-3
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
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
1886 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1887 machine=aviion opsys=dgux5-4r2
1889 m88k-dg-dgux* )
1890 machine=aviion opsys=dgux
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
1900 ## DECstations
1901 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1902 machine=pmax opsys=bsd4-2
1904 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1905 machine=pmax opsys=bsd4-3
1907 mips-dec-ultrix* )
1908 machine=pmax opsys=ultrix4-3
1910 mips-dec-osf* )
1911 machine=pmax opsys=osf1
1913 mips-dec-mach_bsd4.3* )
1914 machine=pmax opsys=mach-bsd4-3
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"
1926 else
1927 if test -z "`type gcc | grep 'not found'`"
1928 then CC=gcc
1929 else CC=cc
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
1940 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1941 machine=delta88k opsys=usg5-3
1944 ## Dual machines
1945 m68*-dual-sysv* )
1946 machine=dual opsys=usg5-2
1948 m68*-dual-uniplus* )
1949 machine=dual opsys=unipl5-2
1952 ## Elxsi 6400
1953 elxsi-elxsi-sysv* )
1954 machine=elxsi opsys=usg5-2
1957 ## Encore machines
1958 ns16k-encore-bsd* )
1959 machine=ns16000 opsys=umax
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
1965 ## Gould Power Node and NP1
1966 pn-gould-bsd4.2* )
1967 machine=gould opsys=bsd4-2
1969 pn-gould-bsd4.3* )
1970 machine=gould opsys=bsd4-3
1972 np1-gould-bsd* )
1973 machine=gould-np1 opsys=bsd4-3
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"
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1987 m68k-harris-cxux* )
1988 machine=nh3000 opsys=cxux
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"
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1-hitachi-hiuxmpp* )
1997 machine=sr2k opsys=hiuxmpp
1999 hppa1.1-hitachi-hiuxwe2* )
2000 machine=sr2k opsys=hiuxwe2
2002 ## Honeywell XPS100
2003 xps*-honeywell-sysv* )
2004 machine=xps100 opsys=usg5-2
2007 ## HP 9000 series 200 or 300
2008 m68*-hp-bsd* )
2009 machine=hp9000s300 opsys=bsd4-3
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
2024 ## HP 9000 series 700 and 800, running HP/UX
2025 hppa*-hp-hpux7* )
2026 machine=hp800 opsys=hpux
2028 hppa*-hp-hpux8* )
2029 machine=hp800 opsys=hpux8
2031 hppa*-hp-hpux9shr* )
2032 machine=hp800 opsys=hpux9shr
2034 hppa*-hp-hpux9* )
2035 machine=hp800 opsys=hpux9
2037 hppa*-hp-hpux10.2* )
2038 machine=hp800 opsys=hpux10-20
2040 hppa*-hp-hpux10* )
2041 machine=hp800 opsys=hpux10
2043 hppa*-hp-hpux1[1-9]* )
2044 machine=hp800 opsys=hpux11
2047 hppa*-*-linux-gnu* )
2048 machine=hp800 opsys=gnu-linux
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
2063 hppa*-*-nextstep* )
2064 machine=hp800 opsys=nextstep
2067 ## Orion machines
2068 orion-orion-bsd* )
2069 machine=orion opsys=bsd4-2
2071 clipper-orion-bsd* )
2072 machine=orion105 opsys=bsd4-2
2075 ## IBM machines
2076 i[3456]86-ibm-aix1.1* )
2077 machine=ibmps2-aix opsys=usg5-2-2
2079 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2080 machine=ibmps2-aix opsys=usg5-3
2082 i370-ibm-aix*)
2083 machine=ibm370aix opsys=usg5-3
2085 s390-*-linux-gnu* )
2086 machine=ibms390 opsys=gnu-linux
2088 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2089 machine=ibmrs6000 opsys=aix3-1
2091 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2092 machine=ibmrs6000 opsys=aix3-2-5
2094 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2095 machine=ibmrs6000 opsys=aix4-1
2097 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2098 machine=ibmrs6000 opsys=aix4-2
2100 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2101 machine=ibmrs6000 opsys=aix4-2
2103 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2104 machine=ibmrs6000 opsys=aix4
2106 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2107 machine=ibmrs6000 opsys=aix4-1
2109 rs6000-ibm-aix* | powerpc-ibm-aix* )
2110 machine=ibmrs6000 opsys=aix3-2
2112 romp-ibm-bsd4.3* )
2113 machine=ibmrt opsys=bsd4-3
2115 romp-ibm-bsd4.2* )
2116 machine=ibmrt opsys=bsd4-2
2118 romp-ibm-aos4.3* )
2119 machine=ibmrt opsys=bsd4-3
2121 romp-ibm-aos4.2* )
2122 machine=ibmrt opsys=bsd4-2
2124 romp-ibm-aos* )
2125 machine=ibmrt opsys=bsd4-3
2127 romp-ibm-bsd* )
2128 machine=ibmrt opsys=bsd4-3
2130 romp-ibm-aix* )
2131 machine=ibmrt-aix opsys=usg5-2-2
2134 ## Integrated Solutions `Optimum V'
2135 m68*-isi-bsd4.2* )
2136 machine=isi-ov opsys=bsd4-2
2138 m68*-isi-bsd4.3* )
2139 machine=isi-ov opsys=bsd4-3
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i[3456]86-intsys-sysv* )
2144 machine=is386 opsys=usg5-2-2
2147 ## Prime EXL
2148 i[3456]86-prime-sysv* )
2149 machine=i386 opsys=usg5-3
2152 ## Sequent Symmetry running Dynix
2153 i[3456]86-sequent-bsd* )
2154 machine=symmetry opsys=bsd4-3
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
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"
2170 ## ncr machine running svr4.3.
2171 i[3456]86-ncr-sysv4.3 )
2172 machine=ncr386 opsys=usg5-4-3
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
2181 ## Intel Paragon OSF/1
2182 i860-intel-osf1* )
2183 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
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.
2193 ## Macintosh PowerPC
2194 powerpc*-*-linux-gnu* )
2195 machine=macppc opsys=gnu-linux
2198 ## Masscomp machines
2199 m68*-masscomp-rtu* )
2200 machine=masscomp opsys=rtu
2203 ## Megatest machines
2204 m68*-megatest-bsd* )
2205 machine=mega68 opsys=bsd4-2
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.
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.
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"
2228 mips-mips-riscos5* )
2229 machine=mips4 opsys=riscos5
2230 NON_GNU_CC="cc -systype bsd43"
2231 NON_GNU_CPP="cc -systype bsd43 -E"
2233 mips-mips-bsd* )
2234 machine=mips opsys=bsd4-3
2236 mips-mips-* )
2237 machine=mips opsys=usg5-2-2
2240 ## NeXT
2241 m68*-next-* | m68k-*-nextstep* )
2242 machine=m68k opsys=nextstep
2245 ## The complete machine from National Semiconductor
2246 ns32k-ns-genix* )
2247 machine=ns32000 opsys=usg5-2
2250 ## NCR machines
2251 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2252 machine=tower32 opsys=usg5-2-2
2254 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2255 machine=tower32v3 opsys=usg5-3
2258 ## NEC EWS4800
2259 mips-nec-sysv4*)
2260 machine=ews4800 opsys=ux4800
2263 ## Nixdorf Targon 31
2264 m68*-nixdorf-sysv* )
2265 machine=targon31 opsys=usg5-2-2
2268 ## Nu (TI or LMI)
2269 m68*-nu-sysv* )
2270 machine=nu opsys=usg5-2
2273 ## Plexus
2274 m68*-plexus-sysv* )
2275 machine=plexus opsys=usg5-2
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
2285 ## Sequent Balance
2286 ns32k-sequent-bsd4.2* )
2287 machine=sequent opsys=bsd4-2
2289 ns32k-sequent-bsd4.3* )
2290 machine=sequent opsys=bsd4-3
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
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
2305 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2306 machine=irist opsys=iris3-6
2308 ## Iris 4D
2309 mips-sgi-irix3* )
2310 machine=iris4d opsys=irix3-3
2312 mips-sgi-irix4* )
2313 machine=iris4d opsys=irix4-0
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"
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
2331 mips-sgi-irix5.[01]* )
2332 machine=iris4d opsys=irix5-0
2334 mips-sgi-irix5* | mips-sgi-irix* )
2335 machine=iris4d opsys=irix5-2
2338 ## SONY machines
2339 m68*-sony-bsd4.2* )
2340 machine=news opsys=bsd4-2
2342 m68*-sony-bsd4.3* )
2343 machine=news opsys=bsd4-3
2345 m68*-sony-newsos3* | m68*-sony-news3*)
2346 machine=news opsys=bsd4-3
2348 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2349 machine=news-risc opsys=bsd4-3
2351 mips-sony-newsos6* )
2352 machine=news-r6 opsys=newsos6
2354 mips-sony-news* )
2355 machine=news-risc opsys=newsos5
2358 ## Stride
2359 m68*-stride-sysv* )
2360 machine=stride opsys=usg5-2
2363 ## Suns
2364 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2365 machine=sparc opsys=gnu-linux
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
2394 *-sunos4.1.[3-9]* | *-sunos4shr*)
2395 opsys=sunos4shr
2396 NON_GNU_CPP=/usr/lib/cpp
2398 *-sunos4* | *-sunos )
2399 opsys=sunos4-1
2400 NON_GCC_TEST_OPTIONS=-Bstatic
2401 GCC_TEST_OPTIONS=-static
2403 *-sunos5.3* | *-solaris2.3* )
2404 opsys=sol2-3
2405 NON_GNU_CPP=/usr/ccs/lib/cpp
2407 *-sunos5.4* | *-solaris2.4* )
2408 opsys=sol2-4
2409 NON_GNU_CPP=/usr/ccs/lib/cpp
2410 RANLIB="ar -ts"
2412 *-sunos5.5* | *-solaris2.5* )
2413 opsys=sol2-5
2414 NON_GNU_CPP=/usr/ccs/lib/cpp
2415 RANLIB="ar -ts"
2417 *-sunos5.6* | *-solaris2.6* )
2418 opsys=sol2-6
2419 NON_GNU_CPP=/usr/ccs/lib/cpp
2420 RANLIB="ar -ts"
2422 *-sunos5* | *-solaris* )
2423 opsys=sol2-6
2424 NON_GNU_CPP=/usr/ccs/lib/cpp
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
2437 *) ;;
2438 esac
2440 sparc-*-nextstep* )
2441 machine=sparc opsys=nextstep
2444 ## Tadpole 68k
2445 m68*-tadpole-sysv* )
2446 machine=tad68k opsys=usg5-3
2449 ## Tahoe machines
2450 tahoe-tahoe-bsd4.2* )
2451 machine=tahoe opsys=bsd4-2
2453 tahoe-tahoe-bsd4.3* )
2454 machine=tahoe opsys=bsd4-3
2457 ## Tandem Integrity S2
2458 mips-tandem-sysv* )
2459 machine=tandem-s2 opsys=usg5-3
2462 ## Tektronix XD88
2463 m88k-tektronix-sysv3* )
2464 machine=tekxd88 opsys=usg5-3
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd* )
2469 machine=ns16000 opsys=bsd4-2
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
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
2483 ## Ustation E30 (SS5E)
2484 m68*-unisys-uniplus* )
2485 machine=ustation opsystem=unipl5-2
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
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.
2509 ## Wicat
2510 m68*-wicat-sysv* )
2511 machine=wicat opsys=usg5-2
2514 ## IA-64
2515 ia64*-*-linux* )
2516 machine=ia64 opsys=gnu-linux
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
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=" "
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
2553 ## m68k Linux-based GNU system
2554 m68k-*-linux-gnu* )
2555 machine=m68k opsys=gnu-linux
2558 ## Mips Linux-based GNU system
2559 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2560 machine=mips opsys=gnu-linux
2563 ## UXP/DS
2564 sparc-fujitsu-sysv4* )
2565 machine=sparc opsys=uxpds
2566 NON_GNU_CPP=/usr/ccs/lib/cpp
2567 RANLIB="ar -ts"
2570 ## UXP/V
2571 f301-fujitsu-uxpv4.1)
2572 machine=f301 opsys=uxpv
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="gcc -E -no-cpp-precomp"
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-*-linux-gnu* )
2584 machine=amdx86-64 opsys=gnu-linux
2588 unported=yes
2590 esac
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
2622 opsys=usg5-4-2 ;;
2623 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2625 unported=yes
2627 esac
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; }; }
2640 machfile="m/${machine}.h"
2641 opsysfile="s/${opsys}.h"
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified=yes
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS="$CFLAGS"
2650 case ${with_gcc} in
2651 "yes" ) CC="gcc" GCC=yes ;;
2652 "no" ) : ${CC=cc} ;;
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
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
2682 done
2683 done
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
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
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
2720 done
2721 done
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
2734 CC=$ac_ct_CC
2735 else
2736 CC="$ac_cv_prog_CC"
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
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
2762 done
2763 done
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
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
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
2800 done
2801 done
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
2814 CC=$ac_ct_CC
2815 else
2816 CC="$ac_cv_prog_CC"
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
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
2843 ac_cv_prog_CC="cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
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+' '}$@"
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
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in cl
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
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
2899 done
2900 done
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
2913 test -n "$CC" && break
2914 done
2916 if test -z "$CC"; then
2917 ac_ct_CC=$CC
2918 for ac_prog in cl
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
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
2941 done
2942 done
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
2955 test -n "$ac_ct_CC" && break
2956 done
2958 CC=$ac_ct_CC
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; }; }
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); }
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. */
2999 main ()
3003 return 0;
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.
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
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3033 conftest.$ac_ext )
3034 # This is the source file.
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;;
3048 break;;
3049 esac
3050 done
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
3062 ac_exeext=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
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; }; }
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
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
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; }; }
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
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. */
3156 main ()
3160 return 0;
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
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; }; }
3187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
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. */
3207 main ()
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3214 return 0;
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
3234 ac_compiler_gnu=no
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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. */
3260 main ()
3264 return 0;
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
3284 ac_cv_prog_cc_g=no
3286 rm -f conftest.$ac_objext conftest.$ac_ext
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"
3298 else
3299 if test "$GCC" = yes; then
3300 CFLAGS="-O2"
3301 else
3302 CFLAGS=
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;
3330 return p[i];
3332 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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;
3348 main ()
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3352 return 0;
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__"
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
3384 rm -f conftest.$ac_objext
3385 done
3386 rm -f conftest.$ac_ext conftest.$ac_objext
3387 CC=$ac_save_CC
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 ;;
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
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 \
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);'
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
3441 main ()
3443 exit (42);
3445 return 0;
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
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 continue
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
3477 main ()
3479 exit (42);
3481 return 0;
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
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
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
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
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3526 CPP=
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"
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"
3546 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3547 then
3548 CC="$CC $GCC_TEST_OPTIONS"
3551 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3552 then
3553 CC="$CC $NON_GCC_TEST_OPTIONS"
3556 #### Some other nice autoconf tests.
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
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=
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"
3587 ac_preproc_ok=false
3588 for ac_c_preproc_warn_flag in '' yes
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=
3623 else
3624 ac_cpp_err=yes
3626 if test -z "$ac_cpp_err"; then
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 # Broken: fails on valid input.
3633 continue
3635 rm -f conftest.err conftest.$ac_ext
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=
3661 else
3662 ac_cpp_err=yes
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
3671 # Passes both tests.
3672 ac_preproc_ok=:
3673 break
3675 rm -f conftest.err conftest.$ac_ext
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
3684 done
3685 ac_cv_prog_CPP=$CPP
3688 CPP=$ac_cv_prog_CPP
3689 else
3690 ac_cv_prog_CPP=$CPP
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
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=
3730 else
3731 ac_cpp_err=yes
3733 if test -z "$ac_cpp_err"; then
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Broken: fails on valid input.
3740 continue
3742 rm -f conftest.err conftest.$ac_ext
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=
3768 else
3769 ac_cpp_err=yes
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
3778 # Passes both tests.
3779 ac_preproc_ok=:
3780 break
3782 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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/* ) ;;
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.
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.
3846 else
3847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848 break 3
3851 done
3852 done
3854 esac
3855 done
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
3869 echo "$as_me:$LINENO: result: $INSTALL" >&5
3870 echo "${ECHO_T}$INSTALL" >&6
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}'
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
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
3903 done
3904 done
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
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
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
3941 done
3942 done
3944 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
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
3956 RANLIB=$ac_ct_RANLIB
3957 else
3958 RANLIB="$ac_cv_prog_RANLIB"
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.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
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
3985 done
3986 done
3989 esac
3991 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
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
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.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in /usr/sbin
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
4024 done
4025 done
4028 esac
4030 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
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
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.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in /sbin
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
4063 done
4064 done
4066 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4068 esac
4070 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
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
4082 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4083 then
4084 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
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"
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'
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
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
4121 #endif
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
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4136 rm -f conftest*
4140 #### Extract some information from the operating system and machine files.
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;}
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.
4156 ### If the CFLAGS env var is specified, we use that value
4157 ### instead of the default.
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"
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
4183 #ifndef LIB_X11_LIB
4184 #define LIB_X11_LIB -lX11
4185 #endif
4187 #ifndef LIBX11_MACHINE
4188 #define LIBX11_MACHINE
4189 #endif
4191 #ifndef LIBX11_SYSTEM
4192 #define LIBX11_SYSTEM
4193 #endif
4194 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4196 #ifdef UNEXEC
4197 configure___ unexec=UNEXEC
4198 #else
4199 configure___ unexec=unexec.o
4200 #endif
4202 #ifdef SYSTEM_MALLOC
4203 configure___ system_malloc=yes
4204 #else
4205 configure___ system_malloc=no
4206 #endif
4208 #ifdef USE_MMAP_FOR_BUFFERS
4209 configure___ use_mmap_for_buffers=yes
4210 #else
4211 configure___ use_mmap_for_buffers=no
4212 #endif
4214 #ifndef C_DEBUG_SWITCH
4215 #define C_DEBUG_SWITCH -g
4216 #endif
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
4226 #ifndef LD_SWITCH_MACHINE
4227 #define LD_SWITCH_MACHINE
4228 #endif
4230 #ifndef LD_SWITCH_SYSTEM
4231 #define LD_SWITCH_SYSTEM
4232 #endif
4234 #ifndef LD_SWITCH_X_SITE_AUX
4235 #define LD_SWITCH_X_SITE_AUX
4236 #endif
4238 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4239 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4241 #ifdef THIS_IS_CONFIGURE
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
4250 #else /* not THIS_IS_CONFIGURE */
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
4259 #endif /* not THIS_IS_CONFIGURE */
4260 ' > ${tempcname}
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"
4273 rm ${tempcname}
4275 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4277 ### Make sure subsequent tests use flags consistent with the build flags.
4279 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4280 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4281 else
4282 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4288 cat >>confdefs.h <<\_ACEOF
4289 #define _GNU_SOURCE 1
4290 _ACEOF
4294 # Check whether --enable-largefile or --disable-largefile was given.
4295 if test "${enable_largefile+set}" = set; then
4296 enableval="$enable_largefile"
4299 if test "$enable_largefile" != no; then
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];
4329 main ()
4333 return 0;
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
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
4374 rm -f conftest.$ac_objext
4375 break
4376 done
4377 CC=$ac_save_CC
4378 rm -f conftest.$ac_ext
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
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];
4411 main ()
4415 return 0;
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
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];
4455 main ()
4459 return 0;
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
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4481 break
4482 done
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
4488 cat >>confdefs.h <<_ACEOF
4489 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4490 _ACEOF
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];
4518 main ()
4522 return 0;
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
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];
4562 main ()
4566 return 0;
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
4587 rm -f conftest.$ac_objext conftest.$ac_ext
4588 break
4589 done
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
4595 cat >>confdefs.h <<_ACEOF
4596 #define _LARGE_FILES $ac_cv_sys_large_files
4597 _ACEOF
4600 rm -f conftest*
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>
4624 main ()
4628 return 0;
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
4648 ac_cv_header_stdc=no
4650 rm -f conftest.$ac_objext conftest.$ac_ext
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>
4663 _ACEOF
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "memchr" >/dev/null 2>&1; then
4667 else
4668 ac_cv_header_stdc=no
4670 rm -f conftest*
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>
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "free" >/dev/null 2>&1; then
4689 else
4690 ac_cv_header_stdc=no
4692 rm -f conftest*
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
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
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4722 main ()
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);
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
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
4749 ( exit $ac_status )
4750 ac_cv_header_stdc=no
4752 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
4760 cat >>confdefs.h <<\_ACEOF
4761 #define STDC_HEADERS 1
4762 _ACEOF
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
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
4813 eval "$as_ac_Header=no"
4815 rm -f conftest.$ac_objext conftest.$ac_ext
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
4826 done
4832 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
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
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
4874 ac_header_compiler=no
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
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=
4905 else
4906 ac_cpp_err=yes
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
4914 ac_header_preproc=no
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
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;}
4928 cat <<\_ASBOX
4929 ## ------------------------------------ ##
4930 ## Report this to bug-autoconf@gnu.org. ##
4931 ## ------------------------------------ ##
4932 _ASBOX
4934 sed "s/^/$as_me: WARNING: /" >&2
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;}
4944 cat <<\_ASBOX
4945 ## ------------------------------------ ##
4946 ## Report this to bug-autoconf@gnu.org. ##
4947 ## ------------------------------------ ##
4948 _ASBOX
4950 sed "s/^/$as_me: WARNING: /" >&2
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"
4960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
4971 done
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. */
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 ();
4997 main ()
4999 _oss_ioctl ();
5001 return 0;
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
5021 ac_cv_lib_ossaudio__oss_ioctl=no
5023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5024 LIBS=$ac_check_lib_save_LIBS
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=
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
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
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
5105 ac_header_compiler=no
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
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=
5136 else
5137 ac_cpp_err=yes
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
5145 ac_header_preproc=no
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
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;}
5159 cat <<\_ASBOX
5160 ## ------------------------------------ ##
5161 ## Report this to bug-autoconf@gnu.org. ##
5162 ## ------------------------------------ ##
5163 _ASBOX
5165 sed "s/^/$as_me: WARNING: /" >&2
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;}
5175 cat <<\_ASBOX
5176 ## ------------------------------------ ##
5177 ## Report this to bug-autoconf@gnu.org. ##
5178 ## ------------------------------------ ##
5179 _ASBOX
5181 sed "s/^/$as_me: WARNING: /" >&2
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"
5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
5202 done
5205 for ac_header in term.h
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=
5235 else
5236 ac_cpp_err=yes
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
5244 eval "$as_ac_Header=no"
5246 rm -f conftest.err conftest.$ac_ext
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
5257 done
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>
5277 main ()
5281 return 0;
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
5301 ac_cv_header_stdc=no
5303 rm -f conftest.$ac_objext conftest.$ac_ext
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>
5316 _ACEOF
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "memchr" >/dev/null 2>&1; then
5320 else
5321 ac_cv_header_stdc=no
5323 rm -f conftest*
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>
5338 _ACEOF
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 $EGREP "free" >/dev/null 2>&1; then
5342 else
5343 ac_cv_header_stdc=no
5345 rm -f conftest*
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
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
5373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5375 main ()
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);
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
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
5402 ( exit $ac_status )
5403 ac_cv_header_stdc=no
5405 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
5413 cat >>confdefs.h <<\_ACEOF
5414 #define STDC_HEADERS 1
5415 _ACEOF
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>
5436 main ()
5438 if ((struct tm *) 0)
5439 return 0;
5441 return 0;
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
5461 ac_cv_header_time=no
5463 rm -f conftest.$ac_objext conftest.$ac_ext
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
5469 cat >>confdefs.h <<\_ACEOF
5470 #define TIME_WITH_SYS_TIME 1
5471 _ACEOF
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
5489 main ()
5491 #ifndef sys_siglist
5492 char *p = (char *) sys_siglist;
5493 #endif
5496 return 0;
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
5516 ac_cv_have_decl_sys_siglist=no
5518 rm -f conftest.$ac_objext conftest.$ac_ext
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
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_DECL_SYS_SIGLIST 1
5526 _ACEOF
5529 else
5530 cat >>confdefs.h <<_ACEOF
5531 #define HAVE_DECL_SYS_SIGLIST 0
5532 _ACEOF
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
5554 main ()
5556 #ifndef __sys_siglist
5557 char *p = (char *) __sys_siglist;
5558 #endif
5561 return 0;
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
5581 ac_cv_have_decl___sys_siglist=no
5583 rm -f conftest.$ac_objext conftest.$ac_ext
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
5589 cat >>confdefs.h <<_ACEOF
5590 #define HAVE_DECL___SYS_SIGLIST 1
5591 _ACEOF
5594 else
5595 cat >>confdefs.h <<_ACEOF
5596 #define HAVE_DECL___SYS_SIGLIST 0
5597 _ACEOF
5603 if test $ac_cv_have_decl___sys_siglist = yes; then
5605 cat >>confdefs.h <<\_ACEOF
5606 #define sys_siglist __sys_siglist
5607 _ACEOF
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
5633 main ()
5635 int s;
5636 wait (&s);
5637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5639 return 0;
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
5659 ac_cv_header_sys_wait_h=no
5661 rm -f conftest.$ac_objext conftest.$ac_ext
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
5667 cat >>confdefs.h <<\_ACEOF
5668 #define HAVE_SYS_WAIT_H 1
5669 _ACEOF
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
5700 main ()
5702 static struct utimbuf x; x.actime = x.modtime;
5704 return 0;
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
5724 emacs_cv_struct_utimbuf=no
5726 rm -f conftest.$ac_objext conftest.$ac_ext
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
5732 cat >>confdefs.h <<\_ACEOF
5733 #define HAVE_STRUCT_UTIMBUF 1
5734 _ACEOF
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
5762 main ()
5764 int i;
5766 return 0;
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
5786 ac_cv_type_signal=int
5788 rm -f conftest.$ac_objext conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5791 echo "${ECHO_T}$ac_cv_type_signal" >&6
5793 cat >>confdefs.h <<_ACEOF
5794 #define RETSIGTYPE $ac_cv_type_signal
5795 _ACEOF
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>
5813 main ()
5815 speed_t x = 1;
5817 return 0;
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
5837 emacs_cv_speed_t=no
5839 rm -f conftest.$ac_objext conftest.$ac_ext
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
5845 cat >>confdefs.h <<\_ACEOF
5846 #define HAVE_SPEED_T 1
5847 _ACEOF
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
5874 main ()
5876 static struct timeval x; x.tv_sec = x.tv_usec;
5878 return 0;
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
5898 emacs_cv_struct_timeval=no
5900 rm -f conftest.$ac_objext conftest.$ac_ext
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
5907 cat >>confdefs.h <<\_ACEOF
5908 #define HAVE_TIMEVAL 1
5909 _ACEOF
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>
5927 main ()
5929 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5931 return 0;
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
5951 emacs_cv_struct_exception=no
5953 rm -f conftest.$ac_objext conftest.$ac_ext
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
5960 cat >>confdefs.h <<\_ACEOF
5961 #define NO_MATHERR 1
5962 _ACEOF
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>
5982 main ()
5984 struct tm *tp; tp->tm_sec;
5986 return 0;
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
6006 ac_cv_struct_tm=sys/time.h
6008 rm -f conftest.$ac_objext conftest.$ac_ext
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
6014 cat >>confdefs.h <<\_ACEOF
6015 #define TM_IN_SYS_TIME 1
6016 _ACEOF
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>
6037 main ()
6039 static struct tm ac_aggr;
6040 if (ac_aggr.tm_zone)
6041 return 0;
6043 return 0;
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
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>
6075 main ()
6077 static struct tm ac_aggr;
6078 if (sizeof ac_aggr.tm_zone)
6079 return 0;
6081 return 0;
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
6101 ac_cv_member_struct_tm_tm_zone=no
6103 rm -f conftest.$ac_objext conftest.$ac_ext
6105 rm -f conftest.$ac_objext conftest.$ac_ext
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
6111 cat >>confdefs.h <<_ACEOF
6112 #define HAVE_STRUCT_TM_TM_ZONE 1
6113 _ACEOF
6118 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6120 cat >>confdefs.h <<\_ACEOF
6121 #define HAVE_TM_ZONE 1
6122 _ACEOF
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
6143 main ()
6145 atoi(*tzname);
6147 return 0;
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
6167 ac_cv_var_tzname=no
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
6175 cat >>confdefs.h <<\_ACEOF
6176 #define HAVE_TZNAME 1
6177 _ACEOF
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>
6197 main ()
6199 static struct tm ac_aggr;
6200 if (ac_aggr.tm_gmtoff)
6201 return 0;
6203 return 0;
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
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>
6233 main ()
6235 static struct tm ac_aggr;
6236 if (sizeof ac_aggr.tm_gmtoff)
6237 return 0;
6239 return 0;
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
6259 ac_cv_member_struct_tm_tm_gmtoff=no
6261 rm -f conftest.$ac_objext conftest.$ac_ext
6263 rm -f conftest.$ac_objext conftest.$ac_ext
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
6269 cat >>confdefs.h <<\_ACEOF
6270 #define HAVE_TM_GMTOFF 1
6271 _ACEOF
6277 echo "$as_me:$LINENO: checking for function prototypes" >&5
6278 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6279 if test "$ac_cv_prog_cc_stdc" != no; then
6280 echo "$as_me:$LINENO: result: yes" >&5
6281 echo "${ECHO_T}yes" >&6
6283 cat >>confdefs.h <<\_ACEOF
6284 #define PROTOTYPES 1
6285 _ACEOF
6288 cat >>confdefs.h <<\_ACEOF
6289 #define __PROTOTYPES 1
6290 _ACEOF
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6
6297 echo "$as_me:$LINENO: checking for working volatile" >&5
6298 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6299 if test "${ac_cv_c_volatile+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 cat >conftest.$ac_ext <<_ACEOF
6303 #line $LINENO "configure"
6304 /* confdefs.h. */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6311 main ()
6314 volatile int x;
6315 int * volatile y;
6317 return 0;
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_cv_c_volatile=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_cv_c_volatile=no
6339 rm -f conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6342 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6343 if test $ac_cv_c_volatile = no; then
6345 cat >>confdefs.h <<\_ACEOF
6346 #define volatile
6347 _ACEOF
6351 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6352 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6353 if test "${ac_cv_c_const+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 cat >conftest.$ac_ext <<_ACEOF
6357 #line $LINENO "configure"
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6365 main ()
6367 /* FIXME: Include the comments suggested by Paul. */
6368 #ifndef __cplusplus
6369 /* Ultrix mips cc rejects this. */
6370 typedef int charset[2];
6371 const charset x;
6372 /* SunOS 4.1.1 cc rejects this. */
6373 char const *const *ccp;
6374 char **p;
6375 /* NEC SVR4.0.2 mips cc rejects this. */
6376 struct point {int x, y;};
6377 static struct point const zero = {0,0};
6378 /* AIX XL C 1.02.0.0 rejects this.
6379 It does not let you subtract one const X* pointer from another in
6380 an arm of an if-expression whose if-part is not a constant
6381 expression */
6382 const char *g = "string";
6383 ccp = &g + (g ? g-g : 0);
6384 /* HPUX 7.0 cc rejects these. */
6385 ++ccp;
6386 p = (char**) ccp;
6387 ccp = (char const *const *) p;
6388 { /* SCO 3.2v4 cc rejects this. */
6389 char *t;
6390 char const *s = 0 ? (char *) 0 : (char const *) 0;
6392 *t++ = 0;
6394 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6395 int x[] = {25, 17};
6396 const int *foo = &x[0];
6397 ++foo;
6399 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6400 typedef const int *iptr;
6401 iptr p = 0;
6402 ++p;
6404 { /* AIX XL C 1.02.0.0 rejects this saying
6405 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6406 struct s { int j; const int *ap[3]; };
6407 struct s *b; b->j = 5;
6409 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6410 const int foo = 10;
6412 #endif
6415 return 0;
6417 _ACEOF
6418 rm -f conftest.$ac_objext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420 (eval $ac_compile) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_c_const=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_cv_c_const=no
6437 rm -f conftest.$ac_objext conftest.$ac_ext
6439 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6440 echo "${ECHO_T}$ac_cv_c_const" >&6
6441 if test $ac_cv_c_const = no; then
6443 cat >>confdefs.h <<\_ACEOF
6444 #define const
6445 _ACEOF
6449 echo "$as_me:$LINENO: checking for void * support" >&5
6450 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6451 if test "${emacs_cv_void_star+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6463 main ()
6465 void * foo;
6467 return 0;
6469 _ACEOF
6470 rm -f conftest.$ac_objext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472 (eval $ac_compile) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -s conftest.$ac_objext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 emacs_cv_void_star=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 emacs_cv_void_star=no
6489 rm -f conftest.$ac_objext conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6492 echo "${ECHO_T}$emacs_cv_void_star" >&6
6493 if test $emacs_cv_void_star = yes; then
6494 cat >>confdefs.h <<\_ACEOF
6495 #define POINTER_TYPE void
6496 _ACEOF
6498 else
6499 cat >>confdefs.h <<\_ACEOF
6500 #define POINTER_TYPE char
6501 _ACEOF
6507 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6508 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6509 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6510 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 cat >conftest.make <<\_ACEOF
6514 all:
6515 @echo 'ac_maketemp="$(MAKE)"'
6516 _ACEOF
6517 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6518 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6519 if test -n "$ac_maketemp"; then
6520 eval ac_cv_prog_make_${ac_make}_set=yes
6521 else
6522 eval ac_cv_prog_make_${ac_make}_set=no
6524 rm -f conftest.make
6526 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6527 echo "$as_me:$LINENO: result: yes" >&5
6528 echo "${ECHO_T}yes" >&6
6529 SET_MAKE=
6530 else
6531 echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6533 SET_MAKE="MAKE=${MAKE-make}"
6537 echo "$as_me:$LINENO: checking for long file names" >&5
6538 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6539 if test "${ac_cv_sys_long_file_names+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 ac_cv_sys_long_file_names=yes
6543 # Test for long file names in all the places we know might matter:
6544 # . the current directory, where building will happen
6545 # $prefix/lib where we will be installing things
6546 # $exec_prefix/lib likewise
6547 # eval it to expand exec_prefix.
6548 # $TMPDIR if set, where it might want to write temporary files
6549 # if $TMPDIR is not set:
6550 # /tmp where it might want to write temporary files
6551 # /var/tmp likewise
6552 # /usr/tmp likewise
6553 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6554 ac_tmpdirs=$TMPDIR
6555 else
6556 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6558 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6559 test -d $ac_dir || continue
6560 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6561 ac_xdir=$ac_dir/cf$$
6562 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6563 ac_tf1=$ac_xdir/conftest9012345
6564 ac_tf2=$ac_xdir/conftest9012346
6565 (echo 1 >$ac_tf1) 2>/dev/null
6566 (echo 2 >$ac_tf2) 2>/dev/null
6567 ac_val=`cat $ac_tf1 2>/dev/null`
6568 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6569 ac_cv_sys_long_file_names=no
6570 rm -rf $ac_xdir 2>/dev/null
6571 break
6573 rm -rf $ac_xdir 2>/dev/null
6574 done
6576 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6577 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6578 if test $ac_cv_sys_long_file_names = yes; then
6580 cat >>confdefs.h <<\_ACEOF
6581 #define HAVE_LONG_FILE_NAMES 1
6582 _ACEOF
6587 #### Choose a window system.
6589 echo "$as_me:$LINENO: checking for X" >&5
6590 echo $ECHO_N "checking for X... $ECHO_C" >&6
6593 # Check whether --with-x or --without-x was given.
6594 if test "${with_x+set}" = set; then
6595 withval="$with_x"
6598 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6599 if test "x$with_x" = xno; then
6600 # The user explicitly disabled X.
6601 have_x=disabled
6602 else
6603 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6604 # Both variables are already set.
6605 have_x=yes
6606 else
6607 if test "${ac_cv_have_x+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610 # One or both of the vars are not set, and there is no cached value.
6611 ac_x_includes=no ac_x_libraries=no
6612 rm -fr conftest.dir
6613 if mkdir conftest.dir; then
6614 cd conftest.dir
6615 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6616 cat >Imakefile <<'_ACEOF'
6617 acfindx:
6618 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6619 _ACEOF
6620 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6621 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6622 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6623 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6624 for ac_extension in a so sl; do
6625 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6626 test -f $ac_im_libdir/libX11.$ac_extension; then
6627 ac_im_usrlibdir=$ac_im_libdir; break
6629 done
6630 # Screen out bogus values from the imake configuration. They are
6631 # bogus both because they are the default anyway, and because
6632 # using them would break gcc on systems where it needs fixed includes.
6633 case $ac_im_incroot in
6634 /usr/include) ;;
6635 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6636 esac
6637 case $ac_im_usrlibdir in
6638 /usr/lib | /lib) ;;
6639 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6640 esac
6642 cd ..
6643 rm -fr conftest.dir
6646 # Standard set of common directories for X headers.
6647 # Check X11 before X11Rn because it is often a symlink to the current release.
6648 ac_x_header_dirs='
6649 /usr/X11/include
6650 /usr/X11R6/include
6651 /usr/X11R5/include
6652 /usr/X11R4/include
6654 /usr/include/X11
6655 /usr/include/X11R6
6656 /usr/include/X11R5
6657 /usr/include/X11R4
6659 /usr/local/X11/include
6660 /usr/local/X11R6/include
6661 /usr/local/X11R5/include
6662 /usr/local/X11R4/include
6664 /usr/local/include/X11
6665 /usr/local/include/X11R6
6666 /usr/local/include/X11R5
6667 /usr/local/include/X11R4
6669 /usr/X386/include
6670 /usr/x386/include
6671 /usr/XFree86/include/X11
6673 /usr/include
6674 /usr/local/include
6675 /usr/unsupported/include
6676 /usr/athena/include
6677 /usr/local/x11r5/include
6678 /usr/lpp/Xamples/include
6680 /usr/openwin/include
6681 /usr/openwin/share/include'
6683 if test "$ac_x_includes" = no; then
6684 # Guess where to find include files, by looking for Intrinsic.h.
6685 # First, try using that file with no special directory specified.
6686 cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 #include <X11/Intrinsic.h>
6694 _ACEOF
6695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } >/dev/null; then
6703 if test -s conftest.err; then
6704 ac_cpp_err=$ac_c_preproc_warn_flag
6705 else
6706 ac_cpp_err=
6708 else
6709 ac_cpp_err=yes
6711 if test -z "$ac_cpp_err"; then
6712 # We can compile using X headers with no special include directory.
6713 ac_x_includes=
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 for ac_dir in $ac_x_header_dirs; do
6719 if test -r "$ac_dir/X11/Intrinsic.h"; then
6720 ac_x_includes=$ac_dir
6721 break
6723 done
6725 rm -f conftest.err conftest.$ac_ext
6726 fi # $ac_x_includes = no
6728 if test "$ac_x_libraries" = no; then
6729 # Check for the libraries.
6730 # See if we find them without any special options.
6731 # Don't add to $LIBS permanently.
6732 ac_save_LIBS=$LIBS
6733 LIBS="-lXt $LIBS"
6734 cat >conftest.$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <X11/Intrinsic.h>
6743 main ()
6745 XtMalloc (0)
6747 return 0;
6749 _ACEOF
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6752 (eval $ac_link) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 LIBS=$ac_save_LIBS
6763 # We can link X programs with no special library path.
6764 ac_x_libraries=
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 LIBS=$ac_save_LIBS
6770 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6772 # Don't even attempt the hair of trying to link an X program!
6773 for ac_extension in a so sl; do
6774 if test -r $ac_dir/libXt.$ac_extension; then
6775 ac_x_libraries=$ac_dir
6776 break 2
6778 done
6779 done
6781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6782 fi # $ac_x_libraries = no
6784 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6785 # Didn't find X anywhere. Cache the known absence of X.
6786 ac_cv_have_x="have_x=no"
6787 else
6788 # Record where we found X for the cache.
6789 ac_cv_have_x="have_x=yes \
6790 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6795 eval "$ac_cv_have_x"
6796 fi # $with_x != no
6798 if test "$have_x" != yes; then
6799 echo "$as_me:$LINENO: result: $have_x" >&5
6800 echo "${ECHO_T}$have_x" >&6
6801 no_x=yes
6802 else
6803 # If each of the values was on the command line, it overrides each guess.
6804 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6805 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6806 # Update the cache value to reflect the command line values.
6807 ac_cv_have_x="have_x=yes \
6808 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6809 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6810 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6813 if test "$no_x" = yes; then
6814 window_system=none
6815 else
6816 window_system=x11
6819 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6820 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6821 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6822 x_default_search_path=""
6823 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6824 x_search_path="\
6825 ${x_library}/X11/%L/%T/%N%C%S:\
6826 ${x_library}/X11/%l/%T/%N%C%S:\
6827 ${x_library}/X11/%T/%N%C%S:\
6828 ${x_library}/X11/%L/%T/%N%S:\
6829 ${x_library}/X11/%l/%T/%N%S:\
6830 ${x_library}/X11/%T/%N%S"
6831 if test x"${x_default_search_path}" = x; then
6832 x_default_search_path=${x_search_path}
6833 else
6834 x_default_search_path="${x_search_path}:${x_default_search_path}"
6836 done
6838 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6839 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6842 if test x"${x_includes}" = x; then
6843 bitmapdir=/usr/include/X11/bitmaps
6844 else
6845 # accumulate include directories that have X11 bitmap subdirectories
6846 bmd_acc="dummyval"
6847 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6848 if test -d "${bmd}/X11/bitmaps"; then
6849 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6851 if test -d "${bmd}/bitmaps"; then
6852 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6854 done
6855 if test ${bmd_acc} != "dummyval"; then
6856 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6860 case "${window_system}" in
6861 x11 )
6862 HAVE_X_WINDOWS=yes
6863 HAVE_X11=yes
6864 case "${with_x_toolkit}" in
6865 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6866 motif ) USE_X_TOOLKIT=MOTIF ;;
6867 gtk ) with_gtk=yes
6868 USE_X_TOOLKIT=none ;;
6869 no ) USE_X_TOOLKIT=none ;;
6870 * ) USE_X_TOOLKIT=maybe ;;
6871 esac
6873 none )
6874 HAVE_X_WINDOWS=no
6875 HAVE_X11=no
6876 USE_X_TOOLKIT=none
6878 esac
6880 ### If we're using X11, we should use the X menu package.
6881 HAVE_MENUS=no
6882 case ${HAVE_X11} in
6883 yes ) HAVE_MENUS=yes ;;
6884 esac
6886 if test "${opsys}" = "hpux9"; then
6887 case "${x_libraries}" in
6888 *X11R4* )
6889 opsysfile="s/hpux9-x11r4.h"
6891 esac
6894 if test "${opsys}" = "hpux9shr"; then
6895 case "${x_libraries}" in
6896 *X11R4* )
6897 opsysfile="s/hpux9shxr4.h"
6899 esac
6902 ### Compute the unexec source name from the object name.
6903 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6905 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6906 # Assume not, until told otherwise.
6907 GNU_MALLOC=yes
6908 doug_lea_malloc=yes
6909 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6910 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6911 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line $LINENO "configure"
6916 /* confdefs.h. */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char malloc_get_state (); below.
6923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6924 <limits.h> exists even on freestanding compilers. */
6925 #ifdef __STDC__
6926 # include <limits.h>
6927 #else
6928 # include <assert.h>
6929 #endif
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 #ifdef __cplusplus
6932 extern "C"
6934 #endif
6935 /* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6937 char malloc_get_state ();
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6942 choke me
6943 #else
6944 char (*f) () = malloc_get_state;
6945 #endif
6946 #ifdef __cplusplus
6948 #endif
6951 main ()
6953 return f != malloc_get_state;
6955 return 0;
6957 _ACEOF
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960 (eval $ac_link) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -s conftest$ac_exeext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_cv_func_malloc_get_state=yes
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_func_malloc_get_state=no
6977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6979 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6980 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6981 if test $ac_cv_func_malloc_get_state = yes; then
6983 else
6984 doug_lea_malloc=no
6987 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6988 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6989 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 #line $LINENO "configure"
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 /* System header to define __stub macros and hopefully few prototypes,
7000 which can conflict with char malloc_set_state (); below.
7001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7002 <limits.h> exists even on freestanding compilers. */
7003 #ifdef __STDC__
7004 # include <limits.h>
7005 #else
7006 # include <assert.h>
7007 #endif
7008 /* Override any gcc2 internal prototype to avoid an error. */
7009 #ifdef __cplusplus
7010 extern "C"
7012 #endif
7013 /* We use char because int might match the return type of a gcc2
7014 builtin and then its argument prototype would still apply. */
7015 char malloc_set_state ();
7016 /* The GNU C library defines this for functions which it implements
7017 to always fail with ENOSYS. Some functions are actually named
7018 something starting with __ and the normal name is an alias. */
7019 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7020 choke me
7021 #else
7022 char (*f) () = malloc_set_state;
7023 #endif
7024 #ifdef __cplusplus
7026 #endif
7029 main ()
7031 return f != malloc_set_state;
7033 return 0;
7035 _ACEOF
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -s conftest$ac_exeext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_func_malloc_set_state=yes
7049 else
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 ac_cv_func_malloc_set_state=no
7055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7057 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7058 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7059 if test $ac_cv_func_malloc_set_state = yes; then
7061 else
7062 doug_lea_malloc=no
7065 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7066 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7067 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 cat >conftest.$ac_ext <<_ACEOF
7071 #line $LINENO "configure"
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 extern void (* __after_morecore_hook)();
7079 main ()
7081 __after_morecore_hook = 0
7083 return 0;
7085 _ACEOF
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088 (eval $ac_link) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
7092 { ac_try='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 emacs_cv_var___after_morecore_hook=yes
7099 else
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7103 emacs_cv_var___after_morecore_hook=no
7105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7107 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7108 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7109 if test $emacs_cv_var___after_morecore_hook = no; then
7110 doug_lea_malloc=no
7112 if test "${system_malloc}" = "yes"; then
7113 GNU_MALLOC=no
7114 GNU_MALLOC_reason="
7115 (The GNU allocators don't work with this system configuration.)"
7117 if test "$doug_lea_malloc" = "yes" ; then
7118 if test "$GNU_MALLOC" = yes ; then
7119 GNU_MALLOC_reason="
7120 (Using Doug Lea's new malloc from the GNU C Library.)"
7123 cat >>confdefs.h <<\_ACEOF
7124 #define DOUG_LEA_MALLOC 1
7125 _ACEOF
7129 if test x"${REL_ALLOC}" = x; then
7130 REL_ALLOC=${GNU_MALLOC}
7136 for ac_header in stdlib.h unistd.h
7138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140 echo "$as_me:$LINENO: checking for $ac_header" >&5
7141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7147 else
7148 # Is the header compilable?
7149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7159 #include <$ac_header>
7160 _ACEOF
7161 rm -f conftest.$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_header_compiler=yes
7174 else
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7178 ac_header_compiler=no
7180 rm -f conftest.$ac_objext conftest.$ac_ext
7181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182 echo "${ECHO_T}$ac_header_compiler" >&6
7184 # Is the header present?
7185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7187 cat >conftest.$ac_ext <<_ACEOF
7188 #line $LINENO "configure"
7189 /* confdefs.h. */
7190 _ACEOF
7191 cat confdefs.h >>conftest.$ac_ext
7192 cat >>conftest.$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7194 #include <$ac_header>
7195 _ACEOF
7196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } >/dev/null; then
7204 if test -s conftest.err; then
7205 ac_cpp_err=$ac_c_preproc_warn_flag
7206 else
7207 ac_cpp_err=
7209 else
7210 ac_cpp_err=yes
7212 if test -z "$ac_cpp_err"; then
7213 ac_header_preproc=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_header_preproc=no
7220 rm -f conftest.err conftest.$ac_ext
7221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7222 echo "${ECHO_T}$ac_header_preproc" >&6
7224 # So? What about this header?
7225 case $ac_header_compiler:$ac_header_preproc in
7226 yes:no )
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232 cat <<\_ASBOX
7233 ## ------------------------------------ ##
7234 ## Report this to bug-autoconf@gnu.org. ##
7235 ## ------------------------------------ ##
7236 _ASBOX
7238 sed "s/^/$as_me: WARNING: /" >&2
7240 no:yes )
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7248 cat <<\_ASBOX
7249 ## ------------------------------------ ##
7250 ## Report this to bug-autoconf@gnu.org. ##
7251 ## ------------------------------------ ##
7252 _ASBOX
7254 sed "s/^/$as_me: WARNING: /" >&2
7256 esac
7257 echo "$as_me:$LINENO: checking for $ac_header" >&5
7258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 eval "$as_ac_Header=$ac_header_preproc"
7264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271 _ACEOF
7275 done
7278 for ac_func in getpagesize
7280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7281 echo "$as_me:$LINENO: checking for $ac_func" >&5
7282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7283 if eval "test \"\${$as_ac_var+set}\" = set"; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 /* System header to define __stub macros and hopefully few prototypes,
7294 which can conflict with char $ac_func (); below.
7295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296 <limits.h> exists even on freestanding compilers. */
7297 #ifdef __STDC__
7298 # include <limits.h>
7299 #else
7300 # include <assert.h>
7301 #endif
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 #ifdef __cplusplus
7304 extern "C"
7306 #endif
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7309 char $ac_func ();
7310 /* The GNU C library defines this for functions which it implements
7311 to always fail with ENOSYS. Some functions are actually named
7312 something starting with __ and the normal name is an alias. */
7313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7314 choke me
7315 #else
7316 char (*f) () = $ac_func;
7317 #endif
7318 #ifdef __cplusplus
7320 #endif
7323 main ()
7325 return f != $ac_func;
7327 return 0;
7329 _ACEOF
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7332 (eval $ac_link) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -s conftest$ac_exeext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 eval "$as_ac_var=yes"
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 eval "$as_ac_var=no"
7349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7353 if test `eval echo '${'$as_ac_var'}'` = yes; then
7354 cat >>confdefs.h <<_ACEOF
7355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7356 _ACEOF
7359 done
7361 echo "$as_me:$LINENO: checking for working mmap" >&5
7362 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7363 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 if test "$cross_compiling" = yes; then
7367 ac_cv_func_mmap_fixed_mapped=no
7368 else
7369 cat >conftest.$ac_ext <<_ACEOF
7370 #line $LINENO "configure"
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 $ac_includes_default
7377 /* malloc might have been renamed as rpl_malloc. */
7378 #undef malloc
7380 /* Thanks to Mike Haertel and Jim Avera for this test.
7381 Here is a matrix of mmap possibilities:
7382 mmap private not fixed
7383 mmap private fixed at somewhere currently unmapped
7384 mmap private fixed at somewhere already mapped
7385 mmap shared not fixed
7386 mmap shared fixed at somewhere currently unmapped
7387 mmap shared fixed at somewhere already mapped
7388 For private mappings, we should verify that changes cannot be read()
7389 back from the file, nor mmap's back from the file at a different
7390 address. (There have been systems where private was not correctly
7391 implemented like the infamous i386 svr4.0, and systems where the
7392 VM page cache was not coherent with the file system buffer cache
7393 like early versions of FreeBSD and possibly contemporary NetBSD.)
7394 For shared mappings, we should conversely verify that changes get
7395 propagated back to all the places they're supposed to be.
7397 Grep wants private fixed already mapped.
7398 The main things grep needs to know about mmap are:
7399 * does it exist and is it safe to write into the mmap'd area
7400 * how to use it (BSD variants) */
7402 #include <fcntl.h>
7403 #include <sys/mman.h>
7405 #if !STDC_HEADERS && !HAVE_STDLIB_H
7406 char *malloc ();
7407 #endif
7409 /* This mess was copied from the GNU getpagesize.h. */
7410 #if !HAVE_GETPAGESIZE
7411 /* Assume that all systems that can run configure have sys/param.h. */
7412 # if !HAVE_SYS_PARAM_H
7413 # define HAVE_SYS_PARAM_H 1
7414 # endif
7416 # ifdef _SC_PAGESIZE
7417 # define getpagesize() sysconf(_SC_PAGESIZE)
7418 # else /* no _SC_PAGESIZE */
7419 # if HAVE_SYS_PARAM_H
7420 # include <sys/param.h>
7421 # ifdef EXEC_PAGESIZE
7422 # define getpagesize() EXEC_PAGESIZE
7423 # else /* no EXEC_PAGESIZE */
7424 # ifdef NBPG
7425 # define getpagesize() NBPG * CLSIZE
7426 # ifndef CLSIZE
7427 # define CLSIZE 1
7428 # endif /* no CLSIZE */
7429 # else /* no NBPG */
7430 # ifdef NBPC
7431 # define getpagesize() NBPC
7432 # else /* no NBPC */
7433 # ifdef PAGESIZE
7434 # define getpagesize() PAGESIZE
7435 # endif /* PAGESIZE */
7436 # endif /* no NBPC */
7437 # endif /* no NBPG */
7438 # endif /* no EXEC_PAGESIZE */
7439 # else /* no HAVE_SYS_PARAM_H */
7440 # define getpagesize() 8192 /* punt totally */
7441 # endif /* no HAVE_SYS_PARAM_H */
7442 # endif /* no _SC_PAGESIZE */
7444 #endif /* no HAVE_GETPAGESIZE */
7447 main ()
7449 char *data, *data2, *data3;
7450 int i, pagesize;
7451 int fd;
7453 pagesize = getpagesize ();
7455 /* First, make a file with some known garbage in it. */
7456 data = (char *) malloc (pagesize);
7457 if (!data)
7458 exit (1);
7459 for (i = 0; i < pagesize; ++i)
7460 *(data + i) = rand ();
7461 umask (0);
7462 fd = creat ("conftest.mmap", 0600);
7463 if (fd < 0)
7464 exit (1);
7465 if (write (fd, data, pagesize) != pagesize)
7466 exit (1);
7467 close (fd);
7469 /* Next, try to mmap the file at a fixed address which already has
7470 something else allocated at it. If we can, also make sure that
7471 we see the same garbage. */
7472 fd = open ("conftest.mmap", O_RDWR);
7473 if (fd < 0)
7474 exit (1);
7475 data2 = (char *) malloc (2 * pagesize);
7476 if (!data2)
7477 exit (1);
7478 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7479 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7480 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7481 exit (1);
7482 for (i = 0; i < pagesize; ++i)
7483 if (*(data + i) != *(data2 + i))
7484 exit (1);
7486 /* Finally, make sure that changes to the mapped area do not
7487 percolate back to the file as seen by read(). (This is a bug on
7488 some variants of i386 svr4.0.) */
7489 for (i = 0; i < pagesize; ++i)
7490 *(data2 + i) = *(data2 + i) + 1;
7491 data3 = (char *) malloc (pagesize);
7492 if (!data3)
7493 exit (1);
7494 if (read (fd, data3, pagesize) != pagesize)
7495 exit (1);
7496 for (i = 0; i < pagesize; ++i)
7497 if (*(data + i) != *(data3 + i))
7498 exit (1);
7499 close (fd);
7500 exit (0);
7502 _ACEOF
7503 rm -f conftest$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && { ac_try='./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_mmap_fixed_mapped=yes
7515 else
7516 echo "$as_me: program exited with status $ac_status" >&5
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ( exit $ac_status )
7521 ac_cv_func_mmap_fixed_mapped=no
7523 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7526 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7527 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7528 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7530 cat >>confdefs.h <<\_ACEOF
7531 #define HAVE_MMAP 1
7532 _ACEOF
7535 rm -f conftest.mmap
7537 if test $use_mmap_for_buffers = yes; then
7538 REL_ALLOC=no
7541 LIBS="$libsrc_libs $LIBS"
7544 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7545 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7546 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 ac_check_lib_save_LIBS=$LIBS
7550 LIBS="-ldnet $LIBS"
7551 cat >conftest.$ac_ext <<_ACEOF
7552 #line $LINENO "configure"
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7559 /* Override any gcc2 internal prototype to avoid an error. */
7560 #ifdef __cplusplus
7561 extern "C"
7562 #endif
7563 /* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7565 char dnet_ntoa ();
7567 main ()
7569 dnet_ntoa ();
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576 (eval $ac_link) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -s conftest$ac_exeext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_lib_dnet_dnet_ntoa=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_cv_lib_dnet_dnet_ntoa=no
7593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7594 LIBS=$ac_check_lib_save_LIBS
7596 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7597 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7598 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7599 cat >>confdefs.h <<_ACEOF
7600 #define HAVE_LIBDNET 1
7601 _ACEOF
7603 LIBS="-ldnet $LIBS"
7608 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7609 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7610 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 ac_check_lib_save_LIBS=$LIBS
7614 LIBS="-lXbsd $LIBS"
7615 cat >conftest.$ac_ext <<_ACEOF
7616 #line $LINENO "configure"
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7625 main ()
7627 main ();
7629 return 0;
7631 _ACEOF
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_lib_Xbsd_main=yes
7645 else
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_cv_lib_Xbsd_main=no
7651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7654 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7655 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7656 if test $ac_cv_lib_Xbsd_main = yes; then
7657 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7662 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7663 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7664 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 ac_check_lib_save_LIBS=$LIBS
7668 LIBS="-lpthreads $LIBS"
7669 cat >conftest.$ac_ext <<_ACEOF
7670 #line $LINENO "configure"
7671 /* confdefs.h. */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 #ifdef __cplusplus
7679 extern "C"
7680 #endif
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7683 char cma_open ();
7685 main ()
7687 cma_open ();
7689 return 0;
7691 _ACEOF
7692 rm -f conftest.$ac_objext conftest$ac_exeext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694 (eval $ac_link) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -s conftest$ac_exeext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 (eval $ac_try) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_cv_lib_pthreads_cma_open=yes
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 ac_cv_lib_pthreads_cma_open=no
7711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7712 LIBS=$ac_check_lib_save_LIBS
7714 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7715 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7716 if test $ac_cv_lib_pthreads_cma_open = yes; then
7717 cat >>confdefs.h <<_ACEOF
7718 #define HAVE_LIBPTHREADS 1
7719 _ACEOF
7721 LIBS="-lpthreads $LIBS"
7726 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7727 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7728 if test -d /usr/X386/include; then
7729 HAVE_XFREE386=yes
7730 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7731 else
7732 HAVE_XFREE386=no
7734 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7735 echo "${ECHO_T}$HAVE_XFREE386" >&6
7738 case ${host_os} in
7739 aix*)
7740 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7741 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7742 if test "${gdb_cv_bigtoc+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7746 case $GCC in
7747 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7748 *) gdb_cv_bigtoc=-bbigtoc ;;
7749 esac
7751 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
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. */
7761 main ()
7763 int i;
7765 return 0;
7767 _ACEOF
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770 (eval $ac_link) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } &&
7774 { ac_try='test -s conftest$ac_exeext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 gdb_cv_bigtoc=
7787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7791 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7793 esac
7795 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7796 # used for the tests that follow. We set them back to REAL_CFLAGS and
7797 # REAL_CPPFLAGS later on.
7799 REAL_CPPFLAGS="$CPPFLAGS"
7801 if test "${HAVE_X11}" = "yes"; then
7802 DEFS="$C_SWITCH_X_SITE $DEFS"
7803 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7804 LIBS="$LIBX $LIBS"
7805 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7806 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7808 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7809 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7810 # but it's more convenient here to set LD_RUN_PATH
7811 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7812 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7813 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7814 export LD_RUN_PATH
7817 if test "${opsys}" = "gnu-linux"; then
7818 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7819 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7820 cat >conftest.$ac_ext <<_ACEOF
7821 #line $LINENO "configure"
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7829 main ()
7831 XOpenDisplay ("foo");
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 xlinux_first_failure=no
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 xlinux_first_failure=yes
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 if test "${xlinux_first_failure}" = "yes"; then
7857 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7858 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7859 OLD_CPPFLAGS="$CPPFLAGS"
7860 OLD_LIBS="$LIBS"
7861 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7862 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7863 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7864 LIBS="$LIBS -b i486-linuxaout"
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7874 main ()
7876 XOpenDisplay ("foo");
7878 return 0;
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 xlinux_second_failure=no
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 xlinux_second_failure=yes
7900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 if test "${xlinux_second_failure}" = "yes"; then
7902 # If we get the same failure with -b, there is no use adding -b.
7903 # So take it out. This plays safe.
7904 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7905 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7906 CPPFLAGS="$OLD_CPPFLAGS"
7907 LIBS="$OLD_LIBS"
7908 echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7910 else
7911 echo "$as_me:$LINENO: result: yes" >&5
7912 echo "${ECHO_T}yes" >&6
7914 else
7915 echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6
7920 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7921 # header files included from there.
7922 echo "$as_me:$LINENO: checking for Xkb" >&5
7923 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 #include <X11/Xlib.h>
7932 #include <X11/XKBlib.h>
7934 main ()
7936 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 emacs_xkb=yes
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 emacs_xkb=no
7960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7961 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7962 echo "${ECHO_T}$emacs_xkb" >&6
7963 if test $emacs_xkb = yes; then
7965 cat >>confdefs.h <<\_ACEOF
7966 #define HAVE_XKBGETKEYBOARD 1
7967 _ACEOF
7975 for ac_func in XrmSetDatabase XScreenResourceString \
7976 XScreenNumberOfScreen XSetWMProtocols
7978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7979 echo "$as_me:$LINENO: checking for $ac_func" >&5
7980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7981 if eval "test \"\${$as_ac_var+set}\" = set"; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 /* System header to define __stub macros and hopefully few prototypes,
7992 which can conflict with char $ac_func (); below.
7993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7994 <limits.h> exists even on freestanding compilers. */
7995 #ifdef __STDC__
7996 # include <limits.h>
7997 #else
7998 # include <assert.h>
7999 #endif
8000 /* Override any gcc2 internal prototype to avoid an error. */
8001 #ifdef __cplusplus
8002 extern "C"
8004 #endif
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8007 char $ac_func ();
8008 /* The GNU C library defines this for functions which it implements
8009 to always fail with ENOSYS. Some functions are actually named
8010 something starting with __ and the normal name is an alias. */
8011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8012 choke me
8013 #else
8014 char (*f) () = $ac_func;
8015 #endif
8016 #ifdef __cplusplus
8018 #endif
8021 main ()
8023 return f != $ac_func;
8025 return 0;
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest$ac_exeext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 eval "$as_ac_var=yes"
8041 else
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 eval "$as_ac_var=no"
8047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8051 if test `eval echo '${'$as_ac_var'}'` = yes; then
8052 cat >>confdefs.h <<_ACEOF
8053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8054 _ACEOF
8057 done
8061 if test "${window_system}" = "x11"; then
8062 echo "$as_me:$LINENO: checking X11 version 6" >&5
8063 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8064 if test "${emacs_cv_x11_version_6+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067 cat >conftest.$ac_ext <<_ACEOF
8068 #line $LINENO "configure"
8069 /* confdefs.h. */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 #include <X11/Xlib.h>
8076 main ()
8078 #if XlibSpecificationRelease < 6
8079 fail;
8080 #endif
8083 return 0;
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -s conftest$ac_exeext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 emacs_cv_x11_version_6=yes
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 emacs_cv_x11_version_6=no
8105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8108 if test $emacs_cv_x11_version_6 = yes; then
8109 echo "$as_me:$LINENO: result: 6 or newer" >&5
8110 echo "${ECHO_T}6 or newer" >&6
8112 cat >>confdefs.h <<\_ACEOF
8113 #define HAVE_X11R6 1
8114 _ACEOF
8116 else
8117 echo "$as_me:$LINENO: result: before 6" >&5
8118 echo "${ECHO_T}before 6" >&6
8122 if test "${window_system}" = "x11"; then
8123 echo "$as_me:$LINENO: checking X11 version 5" >&5
8124 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8125 if test "${emacs_cv_x11_version_5+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128 cat >conftest.$ac_ext <<_ACEOF
8129 #line $LINENO "configure"
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <X11/Xlib.h>
8137 main ()
8139 #if XlibSpecificationRelease < 5
8140 fail;
8141 #endif
8144 return 0;
8146 _ACEOF
8147 rm -f conftest.$ac_objext conftest$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149 (eval $ac_link) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -s conftest$ac_exeext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 emacs_cv_x11_version_5=yes
8160 else
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 emacs_cv_x11_version_5=no
8166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8169 if test $emacs_cv_x11_version_5 = yes; then
8170 echo "$as_me:$LINENO: result: 5 or newer" >&5
8171 echo "${ECHO_T}5 or newer" >&6
8172 HAVE_X11R5=yes
8174 cat >>confdefs.h <<\_ACEOF
8175 #define HAVE_X11R5 1
8176 _ACEOF
8178 else
8179 HAVE_X11R5=no
8180 echo "$as_me:$LINENO: result: before 5" >&5
8181 echo "${ECHO_T}before 5" >&6
8187 HAVE_GTK=no
8188 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8189 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8190 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8191 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8192 { (exit 1); exit 1; }; };
8194 GLIB_REQUIRED=2.0.1
8195 GTK_REQUIRED=2.0.1
8196 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8198 if test "X${with_pkg_config_prog}" != X; then
8199 PKG_CONFIG="${with_pkg_config_prog}"
8202 succeeded=no
8204 if test -z "$PKG_CONFIG"; then
8205 # Extract the first word of "pkg-config", so it can be a program name with args.
8206 set dummy pkg-config; ac_word=$2
8207 echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 case $PKG_CONFIG in
8213 [\\/]* | ?:[\\/]*)
8214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8228 done
8229 done
8231 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8233 esac
8235 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8237 if test -n "$PKG_CONFIG"; then
8238 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8239 echo "${ECHO_T}$PKG_CONFIG" >&6
8240 else
8241 echo "$as_me:$LINENO: result: no" >&5
8242 echo "${ECHO_T}no" >&6
8247 if test "$PKG_CONFIG" = "no" ; then
8248 echo "*** The pkg-config script could not be found. Make sure it is"
8249 echo "*** in your path, or give the full path to pkg-config with"
8250 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8251 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8252 else
8253 PKG_CONFIG_MIN_VERSION=0.9.0
8254 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8255 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8256 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8258 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8259 echo "$as_me:$LINENO: result: yes" >&5
8260 echo "${ECHO_T}yes" >&6
8261 succeeded=yes
8263 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8264 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8265 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8266 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8267 echo "${ECHO_T}$GTK_CFLAGS" >&6
8269 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8270 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8271 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8272 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8273 echo "${ECHO_T}$GTK_LIBS" >&6
8274 else
8275 GTK_CFLAGS=""
8276 GTK_LIBS=""
8277 ## If we have a custom action on failure, don't print errors, but
8278 ## do set a variable so people can do so.
8279 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8280 echo $GTK_PKG_ERRORS
8285 else
8286 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8287 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8291 if test $succeeded = yes; then
8293 else
8294 { { 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
8295 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;}
8296 { (exit 1); exit 1; }; }
8301 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8302 HAVE_GTK=yes
8304 cat >>confdefs.h <<\_ACEOF
8305 #define HAVE_GTK 1
8306 _ACEOF
8308 USE_X_TOOLKIT=none
8310 with_toolkit_scroll_bars=yes
8313 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8314 if test x"${HAVE_X11R5}" = xyes; then
8315 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8316 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8317 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8328 #include <X11/Intrinsic.h>
8329 #include <X11/Xaw/Simple.h>
8331 main ()
8335 return 0;
8337 _ACEOF
8338 rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8340 (eval $ac_link) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 emacs_cv_x11_version_5_with_xaw=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 emacs_cv_x11_version_5_with_xaw=no
8357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8361 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8362 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8363 USE_X_TOOLKIT=LUCID
8364 else
8365 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8366 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8367 USE_X_TOOLKIT=none
8369 else
8370 USE_X_TOOLKIT=none
8374 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8376 if test "${USE_X_TOOLKIT}" != "none"; then
8377 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8378 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8379 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 #include <X11/Intrinsic.h>
8391 main ()
8393 #if XtSpecificationRelease < 6
8394 fail;
8395 #endif
8398 return 0;
8400 _ACEOF
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403 (eval $ac_link) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 emacs_cv_x11_toolkit_version_6=yes
8414 else
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 emacs_cv_x11_toolkit_version_6=no
8420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8423 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8424 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8425 echo "$as_me:$LINENO: result: 6 or newer" >&5
8426 echo "${ECHO_T}6 or newer" >&6
8428 cat >>confdefs.h <<\_ACEOF
8429 #define HAVE_X11XTR6 1
8430 _ACEOF
8432 else
8433 echo "$as_me:$LINENO: result: before 6" >&5
8434 echo "${ECHO_T}before 6" >&6
8437 OLDLIBS="$LIBS"
8438 if test x$HAVE_X11XTR6 = xyes; then
8439 LIBS="-lXt -lSM -lICE $LIBS"
8440 else
8441 LIBS="-lXt $LIBS"
8444 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8445 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8446 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 ac_check_lib_save_LIBS=$LIBS
8450 LIBS="-lXmu $LIBS"
8451 cat >conftest.$ac_ext <<_ACEOF
8452 #line $LINENO "configure"
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 /* Override any gcc2 internal prototype to avoid an error. */
8460 #ifdef __cplusplus
8461 extern "C"
8462 #endif
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8465 char XmuConvertStandardSelection ();
8467 main ()
8469 XmuConvertStandardSelection ();
8471 return 0;
8473 _ACEOF
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8494 LIBS=$ac_check_lib_save_LIBS
8496 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8497 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8498 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8499 cat >>confdefs.h <<_ACEOF
8500 #define HAVE_LIBXMU 1
8501 _ACEOF
8503 LIBS="-lXmu $LIBS"
8507 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8510 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8511 if test "${HAVE_X11}" = "yes"; then
8512 if test "${USE_X_TOOLKIT}" != "none"; then
8514 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8515 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8516 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519 ac_check_lib_save_LIBS=$LIBS
8520 LIBS="-lXext $LIBS"
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char XShapeQueryExtension ();
8537 main ()
8539 XShapeQueryExtension ();
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_lib_Xext_XShapeQueryExtension=yes
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_cv_lib_Xext_XShapeQueryExtension=no
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8567 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8568 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570 #define HAVE_LIBXEXT 1
8571 _ACEOF
8573 LIBS="-lXext $LIBS"
8580 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8581 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8582 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8583 if test "${emacs_cv_lesstif+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 # We put this in CFLAGS temporarily to precede other -I options
8587 # that might be in CFLAGS temporarily.
8588 # We put this in CPPFLAGS where it precedes the other -I options.
8589 OLD_CPPFLAGS=$CPPFLAGS
8590 OLD_CFLAGS=$CFLAGS
8591 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8592 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8593 cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8602 main ()
8604 int x = 5;
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8611 (eval $ac_compile) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 emacs_cv_lesstif=yes
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 emacs_cv_lesstif=no
8628 rm -f conftest.$ac_objext conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8631 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8632 if test $emacs_cv_lesstif = yes; then
8633 # Make sure this -I option remains in CPPFLAGS after it is set
8634 # back to REAL_CPPFLAGS.
8635 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8636 # have those other -I options anyway. Ultimately, having this
8637 # directory ultimately in CPPFLAGS will be enough.
8638 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8639 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8640 else
8641 CFLAGS=$OLD_CFLAGS
8642 CPPFLAGS=$OLD_CPPFLAGS
8644 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8645 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8646 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <Xm/Xm.h>
8658 main ()
8660 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8661 int x = 5;
8662 #else
8663 Motif version prior to 2.1.
8664 #endif
8666 return 0;
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 emacs_cv_motif_version_2_1=yes
8682 else
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 emacs_cv_motif_version_2_1=no
8688 rm -f conftest.$ac_objext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8691 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8692 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8693 if test $emacs_cv_motif_version_2_1 = yes; then
8694 HAVE_LIBXP=no
8696 cat >>confdefs.h <<\_ACEOF
8697 #define HAVE_MOTIF_2_1 1
8698 _ACEOF
8700 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8701 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8702 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705 ac_check_lib_save_LIBS=$LIBS
8706 LIBS="-lXp $LIBS"
8707 cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8709 /* confdefs.h. */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8715 /* Override any gcc2 internal prototype to avoid an error. */
8716 #ifdef __cplusplus
8717 extern "C"
8718 #endif
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8721 char XpCreateContext ();
8723 main ()
8725 XpCreateContext ();
8727 return 0;
8729 _ACEOF
8730 rm -f conftest.$ac_objext conftest$ac_exeext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 (eval $ac_try) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_lib_Xp_XpCreateContext=yes
8743 else
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_lib_Xp_XpCreateContext=no
8749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8750 LIBS=$ac_check_lib_save_LIBS
8752 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8753 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8754 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8755 HAVE_LIBXP=yes
8758 if test ${HAVE_LIBXP} = yes; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_LIBXP 1
8762 _ACEOF
8768 ### Is -lXaw3d available?
8769 HAVE_XAW3D=no
8770 if test "${HAVE_X11}" = "yes"; then
8771 if test "${USE_X_TOOLKIT}" != "none"; then
8772 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8773 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8774 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 #line $LINENO "configure"
8779 /* confdefs.h. */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 #include <X11/Xaw3d/Scrollbar.h>
8785 _ACEOF
8786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } >/dev/null; then
8794 if test -s conftest.err; then
8795 ac_cpp_err=$ac_c_preproc_warn_flag
8796 else
8797 ac_cpp_err=
8799 else
8800 ac_cpp_err=yes
8802 if test -z "$ac_cpp_err"; then
8803 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8810 rm -f conftest.err conftest.$ac_ext
8812 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8813 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8814 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8815 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8816 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8817 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lXaw3d $LIBS"
8822 cat >conftest.$ac_ext <<_ACEOF
8823 #line $LINENO "configure"
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 /* Override any gcc2 internal prototype to avoid an error. */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8836 char XawScrollbarSetThumb ();
8838 main ()
8840 XawScrollbarSetThumb ();
8842 return 0;
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest$ac_exeext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8858 else
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8867 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8868 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8869 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8870 HAVE_XAW3D=yes
8876 if test "${HAVE_XAW3D}" = "yes"; then
8878 cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_XAW3D 1
8880 _ACEOF
8888 USE_TOOLKIT_SCROLL_BARS=no
8889 if test "${with_toolkit_scroll_bars}" != "no"; then
8890 if test "${USE_X_TOOLKIT}" != "none"; then
8891 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8892 cat >>confdefs.h <<\_ACEOF
8893 #define USE_TOOLKIT_SCROLL_BARS 1
8894 _ACEOF
8896 HAVE_XAW3D=no
8897 USE_TOOLKIT_SCROLL_BARS=yes
8898 elif test "${HAVE_XAW3D}" = "yes"; then
8899 cat >>confdefs.h <<\_ACEOF
8900 #define USE_TOOLKIT_SCROLL_BARS 1
8901 _ACEOF
8903 USE_TOOLKIT_SCROLL_BARS=yes
8905 elif test "${HAVE_GTK}" = "yes"; then
8906 cat >>confdefs.h <<\_ACEOF
8907 #define USE_TOOLKIT_SCROLL_BARS 1
8908 _ACEOF
8910 USE_TOOLKIT_SCROLL_BARS=yes
8914 cat >conftest.$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8916 /* confdefs.h. */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 #include <X11/Xlib.h>
8923 #include <X11/Xresource.h>
8925 main ()
8927 XIMProc callback;
8929 return 0;
8931 _ACEOF
8932 rm -f conftest.$ac_objext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -s conftest.$ac_objext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 HAVE_XIM=yes
8946 cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_XIM 1
8948 _ACEOF
8950 else
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 HAVE_XIM=no
8956 rm -f conftest.$ac_objext conftest.$ac_ext
8959 if test "${with_xim}" != "no"; then
8961 cat >>confdefs.h <<\_ACEOF
8962 #define USE_XIM 1
8963 _ACEOF
8968 if test "${HAVE_XIM}" != "no"; then
8969 late_CFLAGS=$CFLAGS
8970 if test "$GCC" = yes; then
8971 CFLAGS="$CFLAGS --pedantic-errors"
8973 cat >conftest.$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 #include <X11/Xlib.h>
8982 #include <X11/Xresource.h>
8984 main ()
8986 Display *display;
8987 XrmDatabase db;
8988 char *res_name;
8989 char *res_class;
8990 XIMProc callback;
8991 XPointer *client_data;
8992 #ifndef __GNUC__
8993 /* If we're not using GCC, it's probably not XFree86, and this is
8994 probably right, but we can't use something like --pedantic-errors. */
8995 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8996 char*, XIMProc, XPointer*);
8997 #endif
8998 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8999 client_data);
9001 return 0;
9003 _ACEOF
9004 rm -f conftest.$ac_objext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 (eval $ac_compile) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -s conftest.$ac_objext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 emacs_cv_arg6_star=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9022 rm -f conftest.$ac_objext conftest.$ac_ext
9024 if test "$emacs_cv_arg6_star" = yes; then
9025 cat >>confdefs.h <<\_ACEOF
9026 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9027 _ACEOF
9029 else
9030 cat >>confdefs.h <<\_ACEOF
9031 #define XRegisterIMInstantiateCallback_arg6 XPointer
9032 _ACEOF
9035 CFLAGS=$late_CFLAGS
9038 ### Use -lXpm if available, unless `--with-xpm=no'.
9039 HAVE_XPM=no
9040 if test "${HAVE_X11}" = "yes"; then
9041 if test "${with_xpm}" != "no"; then
9042 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9043 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9044 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9045 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9049 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9050 else
9051 # Is the header compilable?
9052 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9053 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9055 #line $LINENO "configure"
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 $ac_includes_default
9062 #include <X11/xpm.h>
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_header_compiler=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_header_compiler=no
9083 rm -f conftest.$ac_objext conftest.$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9085 echo "${ECHO_T}$ac_header_compiler" >&6
9087 # Is the header present?
9088 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9089 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <X11/xpm.h>
9098 _ACEOF
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev/null; then
9107 if test -s conftest.err; then
9108 ac_cpp_err=$ac_c_preproc_warn_flag
9109 else
9110 ac_cpp_err=
9112 else
9113 ac_cpp_err=yes
9115 if test -z "$ac_cpp_err"; then
9116 ac_header_preproc=yes
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 ac_header_preproc=no
9123 rm -f conftest.err conftest.$ac_ext
9124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9125 echo "${ECHO_T}$ac_header_preproc" >&6
9127 # So? What about this header?
9128 case $ac_header_compiler:$ac_header_preproc in
9129 yes:no )
9130 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9131 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9135 cat <<\_ASBOX
9136 ## ------------------------------------ ##
9137 ## Report this to bug-autoconf@gnu.org. ##
9138 ## ------------------------------------ ##
9139 _ASBOX
9141 sed "s/^/$as_me: WARNING: /" >&2
9143 no:yes )
9144 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9145 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9147 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9149 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9151 cat <<\_ASBOX
9152 ## ------------------------------------ ##
9153 ## Report this to bug-autoconf@gnu.org. ##
9154 ## ------------------------------------ ##
9155 _ASBOX
9157 sed "s/^/$as_me: WARNING: /" >&2
9159 esac
9160 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9161 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9162 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 ac_cv_header_X11_xpm_h=$ac_header_preproc
9167 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9168 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9171 if test $ac_cv_header_X11_xpm_h = yes; then
9172 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9173 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9174 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177 ac_check_lib_save_LIBS=$LIBS
9178 LIBS="-lXpm -lX11 $LIBS"
9179 cat >conftest.$ac_ext <<_ACEOF
9180 #line $LINENO "configure"
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9187 /* Override any gcc2 internal prototype to avoid an error. */
9188 #ifdef __cplusplus
9189 extern "C"
9190 #endif
9191 /* We use char because int might match the return type of a gcc2
9192 builtin and then its argument prototype would still apply. */
9193 char XpmReadFileToPixmap ();
9195 main ()
9197 XpmReadFileToPixmap ();
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9222 LIBS=$ac_check_lib_save_LIBS
9224 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9225 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9226 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9227 HAVE_XPM=yes
9233 if test "${HAVE_XPM}" = "yes"; then
9234 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9235 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line $LINENO "configure"
9238 /* confdefs.h. */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 #include "X11/xpm.h"
9244 #ifndef XpmReturnAllocPixels
9245 no_return_alloc_pixels
9246 #endif
9248 _ACEOF
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9251 HAVE_XPM=no
9252 else
9253 HAVE_XPM=yes
9255 rm -f conftest*
9258 if test "${HAVE_XPM}" = "yes"; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260 echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263 echo "${ECHO_T}no" >&6
9268 if test "${HAVE_XPM}" = "yes"; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_XPM 1
9272 _ACEOF
9277 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9278 HAVE_JPEG=no
9279 if test "${HAVE_X11}" = "yes"; then
9280 if test "${with_jpeg}" != "no"; then
9281 if test "${ac_cv_header_jerror_h+set}" = set; then
9282 echo "$as_me:$LINENO: checking for jerror.h" >&5
9283 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9284 if test "${ac_cv_header_jerror_h+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9288 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9289 else
9290 # Is the header compilable?
9291 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9292 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9293 cat >conftest.$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 $ac_includes_default
9301 #include <jerror.h>
9302 _ACEOF
9303 rm -f conftest.$ac_objext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9305 (eval $ac_compile) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -s conftest.$ac_objext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_header_compiler=yes
9316 else
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_header_compiler=no
9322 rm -f conftest.$ac_objext conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324 echo "${ECHO_T}$ac_header_compiler" >&6
9326 # Is the header present?
9327 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9328 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #include <jerror.h>
9337 _ACEOF
9338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } >/dev/null; then
9346 if test -s conftest.err; then
9347 ac_cpp_err=$ac_c_preproc_warn_flag
9348 else
9349 ac_cpp_err=
9351 else
9352 ac_cpp_err=yes
9354 if test -z "$ac_cpp_err"; then
9355 ac_header_preproc=yes
9356 else
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_header_preproc=no
9362 rm -f conftest.err conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9364 echo "${ECHO_T}$ac_header_preproc" >&6
9366 # So? What about this header?
9367 case $ac_header_compiler:$ac_header_preproc in
9368 yes:no )
9369 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9370 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9372 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9374 cat <<\_ASBOX
9375 ## ------------------------------------ ##
9376 ## Report this to bug-autoconf@gnu.org. ##
9377 ## ------------------------------------ ##
9378 _ASBOX
9380 sed "s/^/$as_me: WARNING: /" >&2
9382 no:yes )
9383 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9384 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9386 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9388 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9390 cat <<\_ASBOX
9391 ## ------------------------------------ ##
9392 ## Report this to bug-autoconf@gnu.org. ##
9393 ## ------------------------------------ ##
9394 _ASBOX
9396 sed "s/^/$as_me: WARNING: /" >&2
9398 esac
9399 echo "$as_me:$LINENO: checking for jerror.h" >&5
9400 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9401 if test "${ac_cv_header_jerror_h+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 ac_cv_header_jerror_h=$ac_header_preproc
9406 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9407 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9410 if test $ac_cv_header_jerror_h = yes; then
9411 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9412 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9413 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416 ac_check_lib_save_LIBS=$LIBS
9417 LIBS="-ljpeg $LIBS"
9418 cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9426 /* Override any gcc2 internal prototype to avoid an error. */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 /* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */
9432 char jpeg_destroy_compress ();
9434 main ()
9436 jpeg_destroy_compress ();
9438 return 0;
9440 _ACEOF
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9461 LIBS=$ac_check_lib_save_LIBS
9463 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9464 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9465 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9466 HAVE_JPEG=yes
9475 if test "${HAVE_JPEG}" = "yes"; then
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_JPEG 1
9478 _ACEOF
9480 cat >conftest.$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 #include <jpeglib.h>
9488 version=JPEG_LIB_VERSION
9490 _ACEOF
9491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9492 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9493 cat >>confdefs.h <<\_ACEOF
9494 #define HAVE_JPEG 1
9495 _ACEOF
9497 else
9498 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9499 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9500 HAVE_JPEG=no
9502 rm -f conftest*
9507 ### Use -lpng if available, unless `--with-png=no'.
9508 HAVE_PNG=no
9509 if test "${HAVE_X11}" = "yes"; then
9510 if test "${with_png}" != "no"; then
9511 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9512 # in /usr/include/libpng.
9515 for ac_header in png.h libpng/png.h
9517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519 echo "$as_me:$LINENO: checking for $ac_header" >&5
9520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9526 else
9527 # Is the header compilable?
9528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9531 #line $LINENO "configure"
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 $ac_includes_default
9538 #include <$ac_header>
9539 _ACEOF
9540 rm -f conftest.$ac_objext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542 (eval $ac_compile) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_header_compiler=yes
9553 else
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9557 ac_header_compiler=no
9559 rm -f conftest.$ac_objext conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9561 echo "${ECHO_T}$ac_header_compiler" >&6
9563 # Is the header present?
9564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #include <$ac_header>
9574 _ACEOF
9575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } >/dev/null; then
9583 if test -s conftest.err; then
9584 ac_cpp_err=$ac_c_preproc_warn_flag
9585 else
9586 ac_cpp_err=
9588 else
9589 ac_cpp_err=yes
9591 if test -z "$ac_cpp_err"; then
9592 ac_header_preproc=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_header_preproc=no
9599 rm -f conftest.err conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9601 echo "${ECHO_T}$ac_header_preproc" >&6
9603 # So? What about this header?
9604 case $ac_header_compiler:$ac_header_preproc in
9605 yes:no )
9606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9611 cat <<\_ASBOX
9612 ## ------------------------------------ ##
9613 ## Report this to bug-autoconf@gnu.org. ##
9614 ## ------------------------------------ ##
9615 _ASBOX
9617 sed "s/^/$as_me: WARNING: /" >&2
9619 no:yes )
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9627 cat <<\_ASBOX
9628 ## ------------------------------------ ##
9629 ## Report this to bug-autoconf@gnu.org. ##
9630 ## ------------------------------------ ##
9631 _ASBOX
9633 sed "s/^/$as_me: WARNING: /" >&2
9635 esac
9636 echo "$as_me:$LINENO: checking for $ac_header" >&5
9637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 eval "$as_ac_Header=$ac_header_preproc"
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9648 cat >>confdefs.h <<_ACEOF
9649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9650 _ACEOF
9654 done
9656 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9657 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9658 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9659 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 ac_check_lib_save_LIBS=$LIBS
9663 LIBS="-lpng -lz -lm $LIBS"
9664 cat >conftest.$ac_ext <<_ACEOF
9665 #line $LINENO "configure"
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9672 /* Override any gcc2 internal prototype to avoid an error. */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678 char png_get_channels ();
9680 main ()
9682 png_get_channels ();
9684 return 0;
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_lib_png_png_get_channels=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_lib_png_png_get_channels=no
9706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9707 LIBS=$ac_check_lib_save_LIBS
9709 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9710 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9711 if test $ac_cv_lib_png_png_get_channels = yes; then
9712 HAVE_PNG=yes
9718 if test "${HAVE_PNG}" = "yes"; then
9720 cat >>confdefs.h <<\_ACEOF
9721 #define HAVE_PNG 1
9722 _ACEOF
9727 ### Use -ltiff if available, unless `--with-tiff=no'.
9728 HAVE_TIFF=no
9729 if test "${HAVE_X11}" = "yes"; then
9730 if test "${with_tiff}" != "no"; then
9731 if test "${ac_cv_header_tiffio_h+set}" = set; then
9732 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9733 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9734 if test "${ac_cv_header_tiffio_h+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9738 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9739 else
9740 # Is the header compilable?
9741 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9742 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9743 cat >conftest.$ac_ext <<_ACEOF
9744 #line $LINENO "configure"
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 #include <tiffio.h>
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_header_compiler=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9772 rm -f conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9778 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <tiffio.h>
9787 _ACEOF
9788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } >/dev/null; then
9796 if test -s conftest.err; then
9797 ac_cpp_err=$ac_c_preproc_warn_flag
9798 else
9799 ac_cpp_err=
9801 else
9802 ac_cpp_err=yes
9804 if test -z "$ac_cpp_err"; then
9805 ac_header_preproc=yes
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_header_preproc=no
9812 rm -f conftest.err conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc in
9818 yes:no )
9819 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9822 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9824 cat <<\_ASBOX
9825 ## ------------------------------------ ##
9826 ## Report this to bug-autoconf@gnu.org. ##
9827 ## ------------------------------------ ##
9828 _ASBOX
9830 sed "s/^/$as_me: WARNING: /" >&2
9832 no:yes )
9833 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9834 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9836 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9838 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9840 cat <<\_ASBOX
9841 ## ------------------------------------ ##
9842 ## Report this to bug-autoconf@gnu.org. ##
9843 ## ------------------------------------ ##
9844 _ASBOX
9846 sed "s/^/$as_me: WARNING: /" >&2
9848 esac
9849 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9850 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9851 if test "${ac_cv_header_tiffio_h+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 else
9854 ac_cv_header_tiffio_h=$ac_header_preproc
9856 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9857 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9860 if test $ac_cv_header_tiffio_h = yes; then
9861 tifflibs="-lz -lm"
9862 # At least one tiff package requires the jpeg library.
9863 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9864 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9865 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9866 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-ltiff $tifflibs $LIBS"
9871 cat >conftest.$ac_ext <<_ACEOF
9872 #line $LINENO "configure"
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9879 /* Override any gcc2 internal prototype to avoid an error. */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9885 char TIFFGetVersion ();
9887 main ()
9889 TIFFGetVersion ();
9891 return 0;
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_lib_tiff_TIFFGetVersion=yes
9907 else
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_cv_lib_tiff_TIFFGetVersion=no
9913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9916 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9917 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9918 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9919 HAVE_TIFF=yes
9927 if test "${HAVE_TIFF}" = "yes"; then
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_TIFF 1
9931 _ACEOF
9936 ### Use -lgif if available, unless `--with-gif=no'.
9937 HAVE_GIF=no
9938 if test "${HAVE_X11}" = "yes"; then
9939 if test "${with_gif}" != "no"; then
9940 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9941 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9942 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9943 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9947 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9948 else
9949 # Is the header compilable?
9950 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9951 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9952 cat >conftest.$ac_ext <<_ACEOF
9953 #line $LINENO "configure"
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 #include <gif_lib.h>
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -s conftest.$ac_objext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_header_compiler=yes
9975 else
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_header_compiler=no
9981 rm -f conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9987 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9989 #line $LINENO "configure"
9990 /* confdefs.h. */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 #include <gif_lib.h>
9996 _ACEOF
9997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } >/dev/null; then
10005 if test -s conftest.err; then
10006 ac_cpp_err=$ac_c_preproc_warn_flag
10007 else
10008 ac_cpp_err=
10010 else
10011 ac_cpp_err=yes
10013 if test -z "$ac_cpp_err"; then
10014 ac_header_preproc=yes
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_header_preproc=no
10021 rm -f conftest.err conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10023 echo "${ECHO_T}$ac_header_preproc" >&6
10025 # So? What about this header?
10026 case $ac_header_compiler:$ac_header_preproc in
10027 yes:no )
10028 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10029 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10030 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10031 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10033 cat <<\_ASBOX
10034 ## ------------------------------------ ##
10035 ## Report this to bug-autoconf@gnu.org. ##
10036 ## ------------------------------------ ##
10037 _ASBOX
10039 sed "s/^/$as_me: WARNING: /" >&2
10041 no:yes )
10042 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10043 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10045 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10047 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10049 cat <<\_ASBOX
10050 ## ------------------------------------ ##
10051 ## Report this to bug-autoconf@gnu.org. ##
10052 ## ------------------------------------ ##
10053 _ASBOX
10055 sed "s/^/$as_me: WARNING: /" >&2
10057 esac
10058 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10059 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10060 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063 ac_cv_header_gif_lib_h=$ac_header_preproc
10065 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10069 if test $ac_cv_header_gif_lib_h = yes; then
10070 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10071 # Earlier versions can crash Emacs.
10072 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10073 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10074 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 ac_check_lib_save_LIBS=$LIBS
10078 LIBS="-lungif $LIBS"
10079 cat >conftest.$ac_ext <<_ACEOF
10080 #line $LINENO "configure"
10081 /* confdefs.h. */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char EGifPutExtensionLast ();
10095 main ()
10097 EGifPutExtensionLast ();
10099 return 0;
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_lib_ungif_EGifPutExtensionLast=no
10121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10124 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10125 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10126 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10127 HAVE_GIF=yes
10135 if test "${HAVE_GIF}" = "yes"; then
10137 cat >>confdefs.h <<\_ACEOF
10138 #define HAVE_GIF 1
10139 _ACEOF
10144 ### Use Mac OS X Carbon API to implement GUI.
10145 HAVE_CARBON=no
10146 if test "${with_carbon}" != "no"; then
10147 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10148 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10149 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10150 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10154 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10155 else
10156 # Is the header compilable?
10157 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10158 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10167 #include <Carbon/Carbon.h>
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_header_compiler=yes
10182 else
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_header_compiler=no
10188 rm -f conftest.$ac_objext conftest.$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10190 echo "${ECHO_T}$ac_header_compiler" >&6
10192 # Is the header present?
10193 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10194 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 #include <Carbon/Carbon.h>
10203 _ACEOF
10204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } >/dev/null; then
10212 if test -s conftest.err; then
10213 ac_cpp_err=$ac_c_preproc_warn_flag
10214 else
10215 ac_cpp_err=
10217 else
10218 ac_cpp_err=yes
10220 if test -z "$ac_cpp_err"; then
10221 ac_header_preproc=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_header_preproc=no
10228 rm -f conftest.err conftest.$ac_ext
10229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10230 echo "${ECHO_T}$ac_header_preproc" >&6
10232 # So? What about this header?
10233 case $ac_header_compiler:$ac_header_preproc in
10234 yes:no )
10235 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10236 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10238 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10240 cat <<\_ASBOX
10241 ## ------------------------------------ ##
10242 ## Report this to bug-autoconf@gnu.org. ##
10243 ## ------------------------------------ ##
10244 _ASBOX
10246 sed "s/^/$as_me: WARNING: /" >&2
10248 no:yes )
10249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10250 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10252 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10254 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10256 cat <<\_ASBOX
10257 ## ------------------------------------ ##
10258 ## Report this to bug-autoconf@gnu.org. ##
10259 ## ------------------------------------ ##
10260 _ASBOX
10262 sed "s/^/$as_me: WARNING: /" >&2
10264 esac
10265 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10266 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10267 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10272 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10273 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10276 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10277 HAVE_CARBON=yes
10283 if test "${HAVE_CARBON}" = "yes"; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_CARBON 1
10287 _ACEOF
10289 window_system=mac
10290 ## Specify the install directory
10291 carbon_appdir=
10292 if test "${carbon_appdir_x}" != ""; then
10293 case ${carbon_appdir_x} in
10294 y | ye | yes) carbon_appdir=/Applications ;;
10295 * ) carbon_appdir=${carbon_appdir_x} ;;
10296 esac
10298 # We also have mouse menus.
10299 HAVE_MENUS=yes
10302 ### Use session management (-lSM -lICE) if available
10303 HAVE_X_SM=no
10304 if test "${HAVE_X11}" = "yes"; then
10305 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10306 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10307 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10308 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10312 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10313 else
10314 # Is the header compilable?
10315 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10316 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 #include <X11/SM/SMlib.h>
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_header_compiler=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_header_compiler=no
10346 rm -f conftest.$ac_objext conftest.$ac_ext
10347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 echo "${ECHO_T}$ac_header_compiler" >&6
10350 # Is the header present?
10351 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10352 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10354 #line $LINENO "configure"
10355 /* confdefs.h. */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360 #include <X11/SM/SMlib.h>
10361 _ACEOF
10362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } >/dev/null; then
10370 if test -s conftest.err; then
10371 ac_cpp_err=$ac_c_preproc_warn_flag
10372 else
10373 ac_cpp_err=
10375 else
10376 ac_cpp_err=yes
10378 if test -z "$ac_cpp_err"; then
10379 ac_header_preproc=yes
10380 else
10381 echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 ac_header_preproc=no
10386 rm -f conftest.err conftest.$ac_ext
10387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388 echo "${ECHO_T}$ac_header_preproc" >&6
10390 # So? What about this header?
10391 case $ac_header_compiler:$ac_header_preproc in
10392 yes:no )
10393 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10394 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10396 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10398 cat <<\_ASBOX
10399 ## ------------------------------------ ##
10400 ## Report this to bug-autoconf@gnu.org. ##
10401 ## ------------------------------------ ##
10402 _ASBOX
10404 sed "s/^/$as_me: WARNING: /" >&2
10406 no:yes )
10407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10408 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10410 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10412 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10414 cat <<\_ASBOX
10415 ## ------------------------------------ ##
10416 ## Report this to bug-autoconf@gnu.org. ##
10417 ## ------------------------------------ ##
10418 _ASBOX
10420 sed "s/^/$as_me: WARNING: /" >&2
10422 esac
10423 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10424 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10425 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10430 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10431 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10434 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10435 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10436 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10437 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lSM $LIBS"
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10450 /* Override any gcc2 internal prototype to avoid an error. */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456 char SmcOpenConnection ();
10458 main ()
10460 SmcOpenConnection ();
10462 return 0;
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467 (eval $ac_link) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -s conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_lib_SM_SmcOpenConnection=yes
10478 else
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ac_cv_lib_SM_SmcOpenConnection=no
10484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10485 LIBS=$ac_check_lib_save_LIBS
10487 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10488 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10489 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10490 HAVE_X_SM=yes
10491 else
10492 -lICE
10499 if test "${HAVE_X_SM}" = "yes"; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_X_SM 1
10503 _ACEOF
10505 case "$LIBS" in
10506 *-lSM*) ;;
10507 *) LIBS="-lSM -lICE $LIBS" ;;
10508 esac
10512 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10513 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10514 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10515 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 #include <netdb.h>
10527 main ()
10529 return h_errno;
10531 return 0;
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 emacs_cv_netdb_declares_h_errno=yes
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10551 emacs_cv_netdb_declares_h_errno=no
10553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10555 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10556 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10557 if test $emacs_cv_netdb_declares_h_errno = yes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define HAVE_H_ERRNO 1
10561 _ACEOF
10565 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10566 # for constant arguments. Useless!
10567 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10568 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10569 if test "${ac_cv_working_alloca_h+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572 cat >conftest.$ac_ext <<_ACEOF
10573 #line $LINENO "configure"
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <alloca.h>
10581 main ()
10583 char *p = (char *) alloca (2 * sizeof (int));
10585 return 0;
10587 _ACEOF
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 (eval $ac_link) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } &&
10594 { ac_try='test -s conftest$ac_exeext'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 ac_cv_working_alloca_h=yes
10601 else
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10605 ac_cv_working_alloca_h=no
10607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10609 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10610 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10611 if test $ac_cv_working_alloca_h = yes; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_ALLOCA_H 1
10615 _ACEOF
10619 echo "$as_me:$LINENO: checking for alloca" >&5
10620 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10621 if test "${ac_cv_func_alloca_works+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 cat >conftest.$ac_ext <<_ACEOF
10625 #line $LINENO "configure"
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #ifdef __GNUC__
10632 # define alloca __builtin_alloca
10633 #else
10634 # ifdef _MSC_VER
10635 # include <malloc.h>
10636 # define alloca _alloca
10637 # else
10638 # if HAVE_ALLOCA_H
10639 # include <alloca.h>
10640 # else
10641 # ifdef _AIX
10642 #pragma alloca
10643 # else
10644 # ifndef alloca /* predefined by HP cc +Olibcalls */
10645 char *alloca ();
10646 # endif
10647 # endif
10648 # endif
10649 # endif
10650 #endif
10653 main ()
10655 char *p = (char *) alloca (1);
10657 return 0;
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_func_alloca_works=yes
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 ac_cv_func_alloca_works=no
10679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10681 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10682 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10684 if test $ac_cv_func_alloca_works = yes; then
10686 cat >>confdefs.h <<\_ACEOF
10687 #define HAVE_ALLOCA 1
10688 _ACEOF
10690 else
10691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10692 # that cause trouble. Some versions do not even contain alloca or
10693 # contain a buggy version. If you still want to use their alloca,
10694 # use ar to extract alloca.o from them instead of compiling alloca.c.
10696 ALLOCA=alloca.$ac_objext
10698 cat >>confdefs.h <<\_ACEOF
10699 #define C_ALLOCA 1
10700 _ACEOF
10703 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10704 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10705 if test "${ac_cv_os_cray+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708 cat >conftest.$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #if defined(CRAY) && ! defined(CRAY2)
10716 webecray
10717 #else
10718 wenotbecray
10719 #endif
10721 _ACEOF
10722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10723 $EGREP "webecray" >/dev/null 2>&1; then
10724 ac_cv_os_cray=yes
10725 else
10726 ac_cv_os_cray=no
10728 rm -f conftest*
10731 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10732 echo "${ECHO_T}$ac_cv_os_cray" >&6
10733 if test $ac_cv_os_cray = yes; then
10734 for ac_func in _getb67 GETB67 getb67; do
10735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 echo "$as_me:$LINENO: checking for $ac_func" >&5
10737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10738 if eval "test \"\${$as_ac_var+set}\" = set"; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 cat >conftest.$ac_ext <<_ACEOF
10742 #line $LINENO "configure"
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 /* System header to define __stub macros and hopefully few prototypes,
10749 which can conflict with char $ac_func (); below.
10750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10751 <limits.h> exists even on freestanding compilers. */
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10757 /* Override any gcc2 internal prototype to avoid an error. */
10758 #ifdef __cplusplus
10759 extern "C"
10761 #endif
10762 /* We use char because int might match the return type of a gcc2
10763 builtin and then its argument prototype would still apply. */
10764 char $ac_func ();
10765 /* The GNU C library defines this for functions which it implements
10766 to always fail with ENOSYS. Some functions are actually named
10767 something starting with __ and the normal name is an alias. */
10768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10769 choke me
10770 #else
10771 char (*f) () = $ac_func;
10772 #endif
10773 #ifdef __cplusplus
10775 #endif
10778 main ()
10780 return f != $ac_func;
10782 return 0;
10784 _ACEOF
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10787 (eval $ac_link) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try='test -s conftest$ac_exeext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 eval "$as_ac_var=yes"
10798 else
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 eval "$as_ac_var=no"
10804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10808 if test `eval echo '${'$as_ac_var'}'` = yes; then
10810 cat >>confdefs.h <<_ACEOF
10811 #define CRAY_STACKSEG_END $ac_func
10812 _ACEOF
10814 break
10817 done
10820 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10821 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10822 if test "${ac_cv_c_stack_direction+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 if test "$cross_compiling" = yes; then
10826 ac_cv_c_stack_direction=0
10827 else
10828 cat >conftest.$ac_ext <<_ACEOF
10829 #line $LINENO "configure"
10830 /* confdefs.h. */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10836 find_stack_direction ()
10838 static char *addr = 0;
10839 auto char dummy;
10840 if (addr == 0)
10842 addr = &dummy;
10843 return find_stack_direction ();
10845 else
10846 return (&dummy > addr) ? 1 : -1;
10850 main ()
10852 exit (find_stack_direction () < 0);
10854 _ACEOF
10855 rm -f conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_c_stack_direction=1
10867 else
10868 echo "$as_me: program exited with status $ac_status" >&5
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ( exit $ac_status )
10873 ac_cv_c_stack_direction=-1
10875 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10878 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10879 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10881 cat >>confdefs.h <<_ACEOF
10882 #define STACK_DIRECTION $ac_cv_c_stack_direction
10883 _ACEOF
10889 # fmod, logb, and frexp are found in -lm on most systems.
10890 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10892 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10893 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10894 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897 ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-lm $LIBS"
10899 cat >conftest.$ac_ext <<_ACEOF
10900 #line $LINENO "configure"
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10907 /* Override any gcc2 internal prototype to avoid an error. */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 /* We use char because int might match the return type of a gcc2
10912 builtin and then its argument prototype would still apply. */
10913 char sqrt ();
10915 main ()
10917 sqrt ();
10919 return 0;
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_cv_lib_m_sqrt=yes
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_lib_m_sqrt=no
10941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10945 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10946 if test $ac_cv_lib_m_sqrt = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define HAVE_LIBM 1
10949 _ACEOF
10951 LIBS="-lm $LIBS"
10956 # Check for mail-locking functions in a "mail" library. Probably this should
10957 # have the same check as for liblockfile below.
10959 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10960 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10961 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 ac_check_lib_save_LIBS=$LIBS
10965 LIBS="-lmail $LIBS"
10966 cat >conftest.$ac_ext <<_ACEOF
10967 #line $LINENO "configure"
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 /* Override any gcc2 internal prototype to avoid an error. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 /* We use char because int might match the return type of a gcc2
10979 builtin and then its argument prototype would still apply. */
10980 char maillock ();
10982 main ()
10984 maillock ();
10986 return 0;
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -s conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_lib_mail_maillock=yes
11002 else
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_cv_lib_mail_maillock=no
11008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11011 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11012 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11013 if test $ac_cv_lib_mail_maillock = yes; then
11014 cat >>confdefs.h <<_ACEOF
11015 #define HAVE_LIBMAIL 1
11016 _ACEOF
11018 LIBS="-lmail $LIBS"
11023 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11024 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11025 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-llockfile $LIBS"
11030 cat >conftest.$ac_ext <<_ACEOF
11031 #line $LINENO "configure"
11032 /* confdefs.h. */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11038 /* Override any gcc2 internal prototype to avoid an error. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 /* We use char because int might match the return type of a gcc2
11043 builtin and then its argument prototype would still apply. */
11044 char maillock ();
11046 main ()
11048 maillock ();
11050 return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -s conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_lib_lockfile_maillock=yes
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_cv_lib_lockfile_maillock=no
11072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11073 LIBS=$ac_check_lib_save_LIBS
11075 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11076 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11077 if test $ac_cv_lib_lockfile_maillock = yes; then
11078 cat >>confdefs.h <<_ACEOF
11079 #define HAVE_LIBLOCKFILE 1
11080 _ACEOF
11082 LIBS="-llockfile $LIBS"
11086 # If we have the shared liblockfile, assume we must use it for mail
11087 # locking (e.g. Debian). If we couldn't link against liblockfile
11088 # (no liblockfile.a installed), ensure that we don't need to.
11089 if test "$ac_cv_lib_lockfile_maillock" = no; then
11090 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11091 set dummy liblockfile.so; ac_word=$2
11092 echo "$as_me:$LINENO: checking for $ac_word" >&5
11093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11094 if test "${ac_cv_prog_liblockfile+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 else
11097 if test -n "$liblockfile"; then
11098 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11102 for as_dir in $as_dummy
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11108 ac_cv_prog_liblockfile="yes"
11109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 break 2
11112 done
11113 done
11115 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11118 liblockfile=$ac_cv_prog_liblockfile
11119 if test -n "$liblockfile"; then
11120 echo "$as_me:$LINENO: result: $liblockfile" >&5
11121 echo "${ECHO_T}$liblockfile" >&6
11122 else
11123 echo "$as_me:$LINENO: result: no" >&5
11124 echo "${ECHO_T}no" >&6
11127 if test $ac_cv_prog_liblockfile = yes; then
11128 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11129 This probably means that movemail could lose mail.
11130 There may be a \`development' package to install containing liblockfile." >&5
11131 echo "$as_me: error: Shared liblockfile found but can't link against it.
11132 This probably means that movemail could lose mail.
11133 There may be a \`development' package to install containing liblockfile." >&2;}
11134 { (exit 1); exit 1; }; }
11135 else :
11139 for ac_func in touchlock
11141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11142 echo "$as_me:$LINENO: checking for $ac_func" >&5
11143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11144 if eval "test \"\${$as_ac_var+set}\" = set"; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 cat >conftest.$ac_ext <<_ACEOF
11148 #line $LINENO "configure"
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 /* System header to define __stub macros and hopefully few prototypes,
11155 which can conflict with char $ac_func (); below.
11156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11157 <limits.h> exists even on freestanding compilers. */
11158 #ifdef __STDC__
11159 # include <limits.h>
11160 #else
11161 # include <assert.h>
11162 #endif
11163 /* Override any gcc2 internal prototype to avoid an error. */
11164 #ifdef __cplusplus
11165 extern "C"
11167 #endif
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11170 char $ac_func ();
11171 /* The GNU C library defines this for functions which it implements
11172 to always fail with ENOSYS. Some functions are actually named
11173 something starting with __ and the normal name is an alias. */
11174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11175 choke me
11176 #else
11177 char (*f) () = $ac_func;
11178 #endif
11179 #ifdef __cplusplus
11181 #endif
11184 main ()
11186 return f != $ac_func;
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193 (eval $ac_link) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
11197 { ac_try='test -s conftest$ac_exeext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 eval "$as_ac_var=yes"
11204 else
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208 eval "$as_ac_var=no"
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11214 if test `eval echo '${'$as_ac_var'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11217 _ACEOF
11220 done
11223 for ac_header in maillock.h
11225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11227 echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11234 else
11235 # Is the header compilable?
11236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11238 cat >conftest.$ac_ext <<_ACEOF
11239 #line $LINENO "configure"
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11246 #include <$ac_header>
11247 _ACEOF
11248 rm -f conftest.$ac_objext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11250 (eval $ac_compile) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_header_compiler=yes
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_header_compiler=no
11267 rm -f conftest.$ac_objext conftest.$ac_ext
11268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11269 echo "${ECHO_T}$ac_header_compiler" >&6
11271 # Is the header present?
11272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11274 cat >conftest.$ac_ext <<_ACEOF
11275 #line $LINENO "configure"
11276 /* confdefs.h. */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <$ac_header>
11282 _ACEOF
11283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } >/dev/null; then
11291 if test -s conftest.err; then
11292 ac_cpp_err=$ac_c_preproc_warn_flag
11293 else
11294 ac_cpp_err=
11296 else
11297 ac_cpp_err=yes
11299 if test -z "$ac_cpp_err"; then
11300 ac_header_preproc=yes
11301 else
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_header_preproc=no
11307 rm -f conftest.err conftest.$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6
11311 # So? What about this header?
11312 case $ac_header_compiler:$ac_header_preproc in
11313 yes:no )
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11319 cat <<\_ASBOX
11320 ## ------------------------------------ ##
11321 ## Report this to bug-autoconf@gnu.org. ##
11322 ## ------------------------------------ ##
11323 _ASBOX
11325 sed "s/^/$as_me: WARNING: /" >&2
11327 no:yes )
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11335 cat <<\_ASBOX
11336 ## ------------------------------------ ##
11337 ## Report this to bug-autoconf@gnu.org. ##
11338 ## ------------------------------------ ##
11339 _ASBOX
11341 sed "s/^/$as_me: WARNING: /" >&2
11343 esac
11344 echo "$as_me:$LINENO: checking for $ac_header" >&5
11345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 eval "$as_ac_Header=$ac_header_preproc"
11351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11356 cat >>confdefs.h <<_ACEOF
11357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11358 _ACEOF
11362 done
11432 for ac_func in gethostname getdomainname dup2 \
11433 rename closedir mkdir rmdir sysinfo \
11434 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11435 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11436 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11437 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11438 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11439 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11440 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11443 echo "$as_me:$LINENO: checking for $ac_func" >&5
11444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11445 if eval "test \"\${$as_ac_var+set}\" = set"; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448 cat >conftest.$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11450 /* confdefs.h. */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char $ac_func (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11459 #ifdef __STDC__
11460 # include <limits.h>
11461 #else
11462 # include <assert.h>
11463 #endif
11464 /* Override any gcc2 internal prototype to avoid an error. */
11465 #ifdef __cplusplus
11466 extern "C"
11468 #endif
11469 /* We use char because int might match the return type of a gcc2
11470 builtin and then its argument prototype would still apply. */
11471 char $ac_func ();
11472 /* The GNU C library defines this for functions which it implements
11473 to always fail with ENOSYS. Some functions are actually named
11474 something starting with __ and the normal name is an alias. */
11475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11476 choke me
11477 #else
11478 char (*f) () = $ac_func;
11479 #endif
11480 #ifdef __cplusplus
11482 #endif
11485 main ()
11487 return f != $ac_func;
11489 return 0;
11491 _ACEOF
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494 (eval $ac_link) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 eval "$as_ac_var=yes"
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 eval "$as_ac_var=no"
11511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11515 if test `eval echo '${'$as_ac_var'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518 _ACEOF
11521 done
11525 for ac_header in sys/un.h
11527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11529 echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11536 else
11537 # Is the header compilable?
11538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11542 /* confdefs.h. */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11548 #include <$ac_header>
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -s conftest.$ac_objext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 ac_header_compiler=yes
11563 else
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 ac_header_compiler=no
11569 rm -f conftest.$ac_objext conftest.$ac_ext
11570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6
11573 # Is the header present?
11574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11576 cat >conftest.$ac_ext <<_ACEOF
11577 #line $LINENO "configure"
11578 /* confdefs.h. */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11583 #include <$ac_header>
11584 _ACEOF
11585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11587 ac_status=$?
11588 grep -v '^ *+' conftest.er1 >conftest.err
11589 rm -f conftest.er1
11590 cat conftest.err >&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } >/dev/null; then
11593 if test -s conftest.err; then
11594 ac_cpp_err=$ac_c_preproc_warn_flag
11595 else
11596 ac_cpp_err=
11598 else
11599 ac_cpp_err=yes
11601 if test -z "$ac_cpp_err"; then
11602 ac_header_preproc=yes
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_header_preproc=no
11609 rm -f conftest.err conftest.$ac_ext
11610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611 echo "${ECHO_T}$ac_header_preproc" >&6
11613 # So? What about this header?
11614 case $ac_header_compiler:$ac_header_preproc in
11615 yes:no )
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11621 cat <<\_ASBOX
11622 ## ------------------------------------ ##
11623 ## Report this to bug-autoconf@gnu.org. ##
11624 ## ------------------------------------ ##
11625 _ASBOX
11627 sed "s/^/$as_me: WARNING: /" >&2
11629 no:yes )
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11637 cat <<\_ASBOX
11638 ## ------------------------------------ ##
11639 ## Report this to bug-autoconf@gnu.org. ##
11640 ## ------------------------------------ ##
11641 _ASBOX
11643 sed "s/^/$as_me: WARNING: /" >&2
11645 esac
11646 echo "$as_me:$LINENO: checking for $ac_header" >&5
11647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651 eval "$as_ac_Header=$ac_header_preproc"
11653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11658 cat >>confdefs.h <<_ACEOF
11659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11660 _ACEOF
11664 done
11669 for ac_header in sys/time.h unistd.h
11671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11673 echo "$as_me:$LINENO: checking for $ac_header" >&5
11674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11680 else
11681 # Is the header compilable?
11682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11684 cat >conftest.$ac_ext <<_ACEOF
11685 #line $LINENO "configure"
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 $ac_includes_default
11692 #include <$ac_header>
11693 _ACEOF
11694 rm -f conftest.$ac_objext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696 (eval $ac_compile) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_header_compiler=yes
11707 else
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_header_compiler=no
11713 rm -f conftest.$ac_objext conftest.$ac_ext
11714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11715 echo "${ECHO_T}$ac_header_compiler" >&6
11717 # Is the header present?
11718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11720 cat >conftest.$ac_ext <<_ACEOF
11721 #line $LINENO "configure"
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 #include <$ac_header>
11728 _ACEOF
11729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null; then
11737 if test -s conftest.err; then
11738 ac_cpp_err=$ac_c_preproc_warn_flag
11739 else
11740 ac_cpp_err=
11742 else
11743 ac_cpp_err=yes
11745 if test -z "$ac_cpp_err"; then
11746 ac_header_preproc=yes
11747 else
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11751 ac_header_preproc=no
11753 rm -f conftest.err conftest.$ac_ext
11754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11755 echo "${ECHO_T}$ac_header_preproc" >&6
11757 # So? What about this header?
11758 case $ac_header_compiler:$ac_header_preproc in
11759 yes:no )
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 cat <<\_ASBOX
11766 ## ------------------------------------ ##
11767 ## Report this to bug-autoconf@gnu.org. ##
11768 ## ------------------------------------ ##
11769 _ASBOX
11771 sed "s/^/$as_me: WARNING: /" >&2
11773 no:yes )
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11781 cat <<\_ASBOX
11782 ## ------------------------------------ ##
11783 ## Report this to bug-autoconf@gnu.org. ##
11784 ## ------------------------------------ ##
11785 _ASBOX
11787 sed "s/^/$as_me: WARNING: /" >&2
11789 esac
11790 echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 eval "$as_ac_Header=$ac_header_preproc"
11797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11804 _ACEOF
11808 done
11811 for ac_func in alarm
11813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11814 echo "$as_me:$LINENO: checking for $ac_func" >&5
11815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11816 if eval "test \"\${$as_ac_var+set}\" = set"; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819 cat >conftest.$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11821 /* confdefs.h. */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 /* System header to define __stub macros and hopefully few prototypes,
11827 which can conflict with char $ac_func (); below.
11828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829 <limits.h> exists even on freestanding compilers. */
11830 #ifdef __STDC__
11831 # include <limits.h>
11832 #else
11833 # include <assert.h>
11834 #endif
11835 /* Override any gcc2 internal prototype to avoid an error. */
11836 #ifdef __cplusplus
11837 extern "C"
11839 #endif
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11842 char $ac_func ();
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11847 choke me
11848 #else
11849 char (*f) () = $ac_func;
11850 #endif
11851 #ifdef __cplusplus
11853 #endif
11856 main ()
11858 return f != $ac_func;
11860 return 0;
11862 _ACEOF
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 eval "$as_ac_var=yes"
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 eval "$as_ac_var=no"
11882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11886 if test `eval echo '${'$as_ac_var'}'` = yes; then
11887 cat >>confdefs.h <<_ACEOF
11888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11889 _ACEOF
11892 done
11894 echo "$as_me:$LINENO: checking for working mktime" >&5
11895 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11896 if test "${ac_cv_func_working_mktime+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899 if test "$cross_compiling" = yes; then
11900 ac_cv_func_working_mktime=no
11901 else
11902 cat >conftest.$ac_ext <<_ACEOF
11903 #line $LINENO "configure"
11904 /* confdefs.h. */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 /* Test program from Paul Eggert and Tony Leneis. */
11910 #if TIME_WITH_SYS_TIME
11911 # include <sys/time.h>
11912 # include <time.h>
11913 #else
11914 # if HAVE_SYS_TIME_H
11915 # include <sys/time.h>
11916 # else
11917 # include <time.h>
11918 # endif
11919 #endif
11921 #if HAVE_UNISTD_H
11922 # include <unistd.h>
11923 #endif
11925 #if !HAVE_ALARM
11926 # define alarm(X) /* empty */
11927 #endif
11929 /* Work around redefinition to rpl_putenv by other config tests. */
11930 #undef putenv
11932 static time_t time_t_max;
11934 /* Values we'll use to set the TZ environment variable. */
11935 static const char *const tz_strings[] = {
11936 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11937 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11939 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11941 /* Fail if mktime fails to convert a date in the spring-forward gap.
11942 Based on a problem report from Andreas Jaeger. */
11943 static void
11944 spring_forward_gap ()
11946 /* glibc (up to about 1998-10-07) failed this test. */
11947 struct tm tm;
11949 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11950 instead of "TZ=America/Vancouver" in order to detect the bug even
11951 on systems that don't support the Olson extension, or don't have the
11952 full zoneinfo tables installed. */
11953 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11955 tm.tm_year = 98;
11956 tm.tm_mon = 3;
11957 tm.tm_mday = 5;
11958 tm.tm_hour = 2;
11959 tm.tm_min = 0;
11960 tm.tm_sec = 0;
11961 tm.tm_isdst = -1;
11962 if (mktime (&tm) == (time_t)-1)
11963 exit (1);
11966 static void
11967 mktime_test (now)
11968 time_t now;
11970 struct tm *lt;
11971 if ((lt = localtime (&now)) && mktime (lt) != now)
11972 exit (1);
11973 now = time_t_max - now;
11974 if ((lt = localtime (&now)) && mktime (lt) != now)
11975 exit (1);
11978 static void
11979 irix_6_4_bug ()
11981 /* Based on code from Ariel Faigon. */
11982 struct tm tm;
11983 tm.tm_year = 96;
11984 tm.tm_mon = 3;
11985 tm.tm_mday = 0;
11986 tm.tm_hour = 0;
11987 tm.tm_min = 0;
11988 tm.tm_sec = 0;
11989 tm.tm_isdst = -1;
11990 mktime (&tm);
11991 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11992 exit (1);
11995 static void
11996 bigtime_test (j)
11997 int j;
11999 struct tm tm;
12000 time_t now;
12001 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12002 now = mktime (&tm);
12003 if (now != (time_t) -1)
12005 struct tm *lt = localtime (&now);
12006 if (! (lt
12007 && lt->tm_year == tm.tm_year
12008 && lt->tm_mon == tm.tm_mon
12009 && lt->tm_mday == tm.tm_mday
12010 && lt->tm_hour == tm.tm_hour
12011 && lt->tm_min == tm.tm_min
12012 && lt->tm_sec == tm.tm_sec
12013 && lt->tm_yday == tm.tm_yday
12014 && lt->tm_wday == tm.tm_wday
12015 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12016 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12017 exit (1);
12022 main ()
12024 time_t t, delta;
12025 int i, j;
12027 /* This test makes some buggy mktime implementations loop.
12028 Give up after 60 seconds; a mktime slower than that
12029 isn't worth using anyway. */
12030 alarm (60);
12032 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12033 continue;
12034 time_t_max--;
12035 delta = time_t_max / 997; /* a suitable prime number */
12036 for (i = 0; i < N_STRINGS; i++)
12038 if (tz_strings[i])
12039 putenv (tz_strings[i]);
12041 for (t = 0; t <= time_t_max - delta; t += delta)
12042 mktime_test (t);
12043 mktime_test ((time_t) 60 * 60);
12044 mktime_test ((time_t) 60 * 60 * 24);
12046 for (j = 1; 0 < j; j *= 2)
12047 bigtime_test (j);
12048 bigtime_test (j - 1);
12050 irix_6_4_bug ();
12051 spring_forward_gap ();
12052 exit (0);
12054 _ACEOF
12055 rm -f conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057 (eval $ac_link) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_func_working_mktime=yes
12067 else
12068 echo "$as_me: program exited with status $ac_status" >&5
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ( exit $ac_status )
12073 ac_cv_func_working_mktime=no
12075 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12079 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12080 if test $ac_cv_func_working_mktime = no; then
12081 LIBOBJS="$LIBOBJS mktime.$ac_objext"
12084 if test "$ac_cv_func_working_mktime" = no; then
12086 cat >>confdefs.h <<\_ACEOF
12087 #define BROKEN_MKTIME 1
12088 _ACEOF
12092 ac_have_func=no # yes means we've found a way to get the load average.
12094 # Make sure getloadavg.c is where it belongs, at configure-time.
12095 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12096 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12097 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12098 { (exit 1); exit 1; }; }
12100 ac_save_LIBS=$LIBS
12102 # Check for getloadavg, but be sure not to touch the cache variable.
12103 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12104 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12105 if test "${ac_cv_func_getloadavg+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 cat >conftest.$ac_ext <<_ACEOF
12109 #line $LINENO "configure"
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char getloadavg (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12119 #ifdef __STDC__
12120 # include <limits.h>
12121 #else
12122 # include <assert.h>
12123 #endif
12124 /* Override any gcc2 internal prototype to avoid an error. */
12125 #ifdef __cplusplus
12126 extern "C"
12128 #endif
12129 /* We use char because int might match the return type of a gcc2
12130 builtin and then its argument prototype would still apply. */
12131 char getloadavg ();
12132 /* The GNU C library defines this for functions which it implements
12133 to always fail with ENOSYS. Some functions are actually named
12134 something starting with __ and the normal name is an alias. */
12135 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12136 choke me
12137 #else
12138 char (*f) () = getloadavg;
12139 #endif
12140 #ifdef __cplusplus
12142 #endif
12145 main ()
12147 return f != getloadavg;
12149 return 0;
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -s conftest$ac_exeext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 ac_cv_func_getloadavg=yes
12165 else
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 ac_cv_func_getloadavg=no
12171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12173 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12174 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12175 if test $ac_cv_func_getloadavg = yes; then
12176 exit 0
12177 else
12178 exit 1
12180 ) && ac_have_func=yes
12182 # On HPUX9, an unprivileged user can get load averages through this function.
12184 for ac_func in pstat_getdynamic
12186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12187 echo "$as_me:$LINENO: checking for $ac_func" >&5
12188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12189 if eval "test \"\${$as_ac_var+set}\" = set"; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 cat >conftest.$ac_ext <<_ACEOF
12193 #line $LINENO "configure"
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 /* System header to define __stub macros and hopefully few prototypes,
12200 which can conflict with char $ac_func (); below.
12201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12202 <limits.h> exists even on freestanding compilers. */
12203 #ifdef __STDC__
12204 # include <limits.h>
12205 #else
12206 # include <assert.h>
12207 #endif
12208 /* Override any gcc2 internal prototype to avoid an error. */
12209 #ifdef __cplusplus
12210 extern "C"
12212 #endif
12213 /* We use char because int might match the return type of a gcc2
12214 builtin and then its argument prototype would still apply. */
12215 char $ac_func ();
12216 /* The GNU C library defines this for functions which it implements
12217 to always fail with ENOSYS. Some functions are actually named
12218 something starting with __ and the normal name is an alias. */
12219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12220 choke me
12221 #else
12222 char (*f) () = $ac_func;
12223 #endif
12224 #ifdef __cplusplus
12226 #endif
12229 main ()
12231 return f != $ac_func;
12233 return 0;
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238 (eval $ac_link) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 eval "$as_ac_var=yes"
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 eval "$as_ac_var=no"
12255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12259 if test `eval echo '${'$as_ac_var'}'` = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12262 _ACEOF
12265 done
12268 # Solaris has libkstat which does not require root.
12270 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12271 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12272 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lkstat $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12285 /* Override any gcc2 internal prototype to avoid an error. */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 /* We use char because int might match the return type of a gcc2
12290 builtin and then its argument prototype would still apply. */
12291 char kstat_open ();
12293 main ()
12295 kstat_open ();
12297 return 0;
12299 _ACEOF
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302 (eval $ac_link) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -s conftest$ac_exeext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_cv_lib_kstat_kstat_open=yes
12313 else
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_lib_kstat_kstat_open=no
12319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12322 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12323 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12324 if test $ac_cv_lib_kstat_kstat_open = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_LIBKSTAT 1
12327 _ACEOF
12329 LIBS="-lkstat $LIBS"
12333 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12335 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12336 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12337 # to get the right answer into the cache.
12338 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12339 if test $ac_have_func = no; then
12340 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12341 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12342 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345 ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-lelf $LIBS"
12347 cat >conftest.$ac_ext <<_ACEOF
12348 #line $LINENO "configure"
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12355 /* Override any gcc2 internal prototype to avoid an error. */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12361 char elf_begin ();
12363 main ()
12365 elf_begin ();
12367 return 0;
12369 _ACEOF
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -s conftest$ac_exeext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_lib_elf_elf_begin=yes
12383 else
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ac_cv_lib_elf_elf_begin=no
12389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12392 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12393 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12394 if test $ac_cv_lib_elf_elf_begin = yes; then
12395 LIBS="-lelf $LIBS"
12399 if test $ac_have_func = no; then
12400 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12401 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12402 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lkvm $LIBS"
12407 cat >conftest.$ac_ext <<_ACEOF
12408 #line $LINENO "configure"
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any gcc2 internal prototype to avoid an error. */
12416 #ifdef __cplusplus
12417 extern "C"
12418 #endif
12419 /* We use char because int might match the return type of a gcc2
12420 builtin and then its argument prototype would still apply. */
12421 char kvm_open ();
12423 main ()
12425 kvm_open ();
12427 return 0;
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_lib_kvm_kvm_open=yes
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_lib_kvm_kvm_open=no
12449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12453 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12454 if test $ac_cv_lib_kvm_kvm_open = yes; then
12455 LIBS="-lkvm $LIBS"
12458 # Check for the 4.4BSD definition of getloadavg.
12459 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12460 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12461 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-lutil $LIBS"
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12468 /* confdefs.h. */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12474 /* Override any gcc2 internal prototype to avoid an error. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12480 char getloadavg ();
12482 main ()
12484 getloadavg ();
12486 return 0;
12488 _ACEOF
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -s conftest$ac_exeext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_cv_lib_util_getloadavg=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_cv_lib_util_getloadavg=no
12508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12511 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12512 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12513 if test $ac_cv_lib_util_getloadavg = yes; then
12514 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12519 if test $ac_have_func = no; then
12520 # There is a commonly available library for RS/6000 AIX.
12521 # Since it is not a standard part of AIX, it might be installed locally.
12522 ac_getloadavg_LIBS=$LIBS
12523 LIBS="-L/usr/local/lib $LIBS"
12524 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12525 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12526 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529 ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-lgetloadavg $LIBS"
12531 cat >conftest.$ac_ext <<_ACEOF
12532 #line $LINENO "configure"
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12545 char getloadavg ();
12547 main ()
12549 getloadavg ();
12551 return 0;
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -s conftest$ac_exeext'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_cv_lib_getloadavg_getloadavg=yes
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_cv_lib_getloadavg_getloadavg=no
12573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12576 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12577 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12578 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12579 LIBS="-lgetloadavg $LIBS"
12580 else
12581 LIBS=$ac_getloadavg_LIBS
12586 # Make sure it is really in the library, if we think we found it,
12587 # otherwise set up the replacement function.
12589 for ac_func in getloadavg
12591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12592 echo "$as_me:$LINENO: checking for $ac_func" >&5
12593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12594 if eval "test \"\${$as_ac_var+set}\" = set"; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 /* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char $ac_func (); below.
12606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12607 <limits.h> exists even on freestanding compilers. */
12608 #ifdef __STDC__
12609 # include <limits.h>
12610 #else
12611 # include <assert.h>
12612 #endif
12613 /* Override any gcc2 internal prototype to avoid an error. */
12614 #ifdef __cplusplus
12615 extern "C"
12617 #endif
12618 /* We use char because int might match the return type of a gcc2
12619 builtin and then its argument prototype would still apply. */
12620 char $ac_func ();
12621 /* The GNU C library defines this for functions which it implements
12622 to always fail with ENOSYS. Some functions are actually named
12623 something starting with __ and the normal name is an alias. */
12624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12625 choke me
12626 #else
12627 char (*f) () = $ac_func;
12628 #endif
12629 #ifdef __cplusplus
12631 #endif
12634 main ()
12636 return f != $ac_func;
12638 return 0;
12640 _ACEOF
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12643 (eval $ac_link) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 eval "$as_ac_var=yes"
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 eval "$as_ac_var=no"
12660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665 cat >>confdefs.h <<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 _ACEOF
12669 else
12670 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12672 cat >>confdefs.h <<\_ACEOF
12673 #define C_GETLOADAVG 1
12674 _ACEOF
12676 # Figure out what our getloadavg.c needs.
12677 ac_have_func=no
12678 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12679 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12680 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12681 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12685 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12686 else
12687 # Is the header compilable?
12688 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12689 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12690 cat >conftest.$ac_ext <<_ACEOF
12691 #line $LINENO "configure"
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 $ac_includes_default
12698 #include <sys/dg_sys_info.h>
12699 _ACEOF
12700 rm -f conftest.$ac_objext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12702 (eval $ac_compile) 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -s conftest.$ac_objext'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ac_header_compiler=yes
12713 else
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 ac_header_compiler=no
12719 rm -f conftest.$ac_objext conftest.$ac_ext
12720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12721 echo "${ECHO_T}$ac_header_compiler" >&6
12723 # Is the header present?
12724 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12725 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12726 cat >conftest.$ac_ext <<_ACEOF
12727 #line $LINENO "configure"
12728 /* confdefs.h. */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <sys/dg_sys_info.h>
12734 _ACEOF
12735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } >/dev/null; then
12743 if test -s conftest.err; then
12744 ac_cpp_err=$ac_c_preproc_warn_flag
12745 else
12746 ac_cpp_err=
12748 else
12749 ac_cpp_err=yes
12751 if test -z "$ac_cpp_err"; then
12752 ac_header_preproc=yes
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ac_header_preproc=no
12759 rm -f conftest.err conftest.$ac_ext
12760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12761 echo "${ECHO_T}$ac_header_preproc" >&6
12763 # So? What about this header?
12764 case $ac_header_compiler:$ac_header_preproc in
12765 yes:no )
12766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12767 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12769 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12771 cat <<\_ASBOX
12772 ## ------------------------------------ ##
12773 ## Report this to bug-autoconf@gnu.org. ##
12774 ## ------------------------------------ ##
12775 _ASBOX
12777 sed "s/^/$as_me: WARNING: /" >&2
12779 no:yes )
12780 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12781 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12782 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12783 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12785 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12787 cat <<\_ASBOX
12788 ## ------------------------------------ ##
12789 ## Report this to bug-autoconf@gnu.org. ##
12790 ## ------------------------------------ ##
12791 _ASBOX
12793 sed "s/^/$as_me: WARNING: /" >&2
12795 esac
12796 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12797 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12798 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12804 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12807 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12808 ac_have_func=yes
12810 cat >>confdefs.h <<\_ACEOF
12811 #define DGUX 1
12812 _ACEOF
12815 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12816 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12817 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820 ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-ldgc $LIBS"
12822 cat >conftest.$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12830 /* Override any gcc2 internal prototype to avoid an error. */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 /* We use char because int might match the return type of a gcc2
12835 builtin and then its argument prototype would still apply. */
12836 char dg_sys_info ();
12838 main ()
12840 dg_sys_info ();
12842 return 0;
12844 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_lib_dgc_dg_sys_info=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_cv_lib_dgc_dg_sys_info=no
12864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12867 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12868 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12869 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12870 cat >>confdefs.h <<_ACEOF
12871 #define HAVE_LIBDGC 1
12872 _ACEOF
12874 LIBS="-ldgc $LIBS"
12882 if test "${ac_cv_header_locale_h+set}" = set; then
12883 echo "$as_me:$LINENO: checking for locale.h" >&5
12884 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12885 if test "${ac_cv_header_locale_h+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12889 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12890 else
12891 # Is the header compilable?
12892 echo "$as_me:$LINENO: checking locale.h usability" >&5
12893 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12894 cat >conftest.$ac_ext <<_ACEOF
12895 #line $LINENO "configure"
12896 /* confdefs.h. */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901 $ac_includes_default
12902 #include <locale.h>
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_header_compiler=yes
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_header_compiler=no
12923 rm -f conftest.$ac_objext conftest.$ac_ext
12924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 echo "${ECHO_T}$ac_header_compiler" >&6
12927 # Is the header present?
12928 echo "$as_me:$LINENO: checking locale.h presence" >&5
12929 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12931 #line $LINENO "configure"
12932 /* confdefs.h. */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 #include <locale.h>
12938 _ACEOF
12939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } >/dev/null; then
12947 if test -s conftest.err; then
12948 ac_cpp_err=$ac_c_preproc_warn_flag
12949 else
12950 ac_cpp_err=
12952 else
12953 ac_cpp_err=yes
12955 if test -z "$ac_cpp_err"; then
12956 ac_header_preproc=yes
12957 else
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 ac_header_preproc=no
12963 rm -f conftest.err conftest.$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965 echo "${ECHO_T}$ac_header_preproc" >&6
12967 # So? What about this header?
12968 case $ac_header_compiler:$ac_header_preproc in
12969 yes:no )
12970 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12971 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12973 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12975 cat <<\_ASBOX
12976 ## ------------------------------------ ##
12977 ## Report this to bug-autoconf@gnu.org. ##
12978 ## ------------------------------------ ##
12979 _ASBOX
12981 sed "s/^/$as_me: WARNING: /" >&2
12983 no:yes )
12984 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12985 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12987 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12989 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12991 cat <<\_ASBOX
12992 ## ------------------------------------ ##
12993 ## Report this to bug-autoconf@gnu.org. ##
12994 ## ------------------------------------ ##
12995 _ASBOX
12997 sed "s/^/$as_me: WARNING: /" >&2
12999 esac
13000 echo "$as_me:$LINENO: checking for locale.h" >&5
13001 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13002 if test "${ac_cv_header_locale_h+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005 ac_cv_header_locale_h=$ac_header_preproc
13007 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13008 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13014 for ac_func in setlocale
13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13017 echo "$as_me:$LINENO: checking for $ac_func" >&5
13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13019 if eval "test \"\${$as_ac_var+set}\" = set"; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 /* confdefs.h. */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 /* System header to define __stub macros and hopefully few prototypes,
13030 which can conflict with char $ac_func (); below.
13031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13032 <limits.h> exists even on freestanding compilers. */
13033 #ifdef __STDC__
13034 # include <limits.h>
13035 #else
13036 # include <assert.h>
13037 #endif
13038 /* Override any gcc2 internal prototype to avoid an error. */
13039 #ifdef __cplusplus
13040 extern "C"
13042 #endif
13043 /* We use char because int might match the return type of a gcc2
13044 builtin and then its argument prototype would still apply. */
13045 char $ac_func ();
13046 /* The GNU C library defines this for functions which it implements
13047 to always fail with ENOSYS. Some functions are actually named
13048 something starting with __ and the normal name is an alias. */
13049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13050 choke me
13051 #else
13052 char (*f) () = $ac_func;
13053 #endif
13054 #ifdef __cplusplus
13056 #endif
13059 main ()
13061 return f != $ac_func;
13063 return 0;
13065 _ACEOF
13066 rm -f conftest.$ac_objext conftest$ac_exeext
13067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13068 (eval $ac_link) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -s conftest$ac_exeext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 eval "$as_ac_var=yes"
13079 else
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 eval "$as_ac_var=no"
13085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13089 if test `eval echo '${'$as_ac_var'}'` = yes; then
13090 cat >>confdefs.h <<_ACEOF
13091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13092 _ACEOF
13095 done
13098 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13099 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13100 # Irix 4.0.5F has the header but not the library.
13101 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13102 ac_have_func=yes
13104 cat >>confdefs.h <<\_ACEOF
13105 #define SVR4 1
13106 _ACEOF
13110 if test $ac_have_func = no; then
13111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13112 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13113 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13114 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13118 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13119 else
13120 # Is the header compilable?
13121 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13122 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13123 cat >conftest.$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 $ac_includes_default
13131 #include <inq_stats/cpustats.h>
13132 _ACEOF
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 ac_header_compiler=yes
13146 else
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ac_header_compiler=no
13152 rm -f conftest.$ac_objext conftest.$ac_ext
13153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13154 echo "${ECHO_T}$ac_header_compiler" >&6
13156 # Is the header present?
13157 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13158 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13159 cat >conftest.$ac_ext <<_ACEOF
13160 #line $LINENO "configure"
13161 /* confdefs.h. */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 #include <inq_stats/cpustats.h>
13167 _ACEOF
13168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13170 ac_status=$?
13171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } >/dev/null; then
13176 if test -s conftest.err; then
13177 ac_cpp_err=$ac_c_preproc_warn_flag
13178 else
13179 ac_cpp_err=
13181 else
13182 ac_cpp_err=yes
13184 if test -z "$ac_cpp_err"; then
13185 ac_header_preproc=yes
13186 else
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 ac_header_preproc=no
13192 rm -f conftest.err conftest.$ac_ext
13193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13194 echo "${ECHO_T}$ac_header_preproc" >&6
13196 # So? What about this header?
13197 case $ac_header_compiler:$ac_header_preproc in
13198 yes:no )
13199 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13200 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13201 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13202 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13204 cat <<\_ASBOX
13205 ## ------------------------------------ ##
13206 ## Report this to bug-autoconf@gnu.org. ##
13207 ## ------------------------------------ ##
13208 _ASBOX
13210 sed "s/^/$as_me: WARNING: /" >&2
13212 no:yes )
13213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13214 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13216 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13218 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13220 cat <<\_ASBOX
13221 ## ------------------------------------ ##
13222 ## Report this to bug-autoconf@gnu.org. ##
13223 ## ------------------------------------ ##
13224 _ASBOX
13226 sed "s/^/$as_me: WARNING: /" >&2
13228 esac
13229 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13230 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13231 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13236 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13237 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13240 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13241 ac_have_func=yes
13243 cat >>confdefs.h <<\_ACEOF
13244 #define UMAX 1
13245 _ACEOF
13248 cat >>confdefs.h <<\_ACEOF
13249 #define UMAX4_3 1
13250 _ACEOF
13257 if test $ac_have_func = no; then
13258 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13259 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13260 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13261 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13265 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13266 else
13267 # Is the header compilable?
13268 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13269 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13270 cat >conftest.$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 $ac_includes_default
13278 #include <sys/cpustats.h>
13279 _ACEOF
13280 rm -f conftest.$ac_objext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13282 (eval $ac_compile) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try='test -s conftest.$ac_objext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13289 ac_status=$?
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_header_compiler=yes
13293 else
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_header_compiler=no
13299 rm -f conftest.$ac_objext conftest.$ac_ext
13300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13301 echo "${ECHO_T}$ac_header_compiler" >&6
13303 # Is the header present?
13304 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13305 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13306 cat >conftest.$ac_ext <<_ACEOF
13307 #line $LINENO "configure"
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <sys/cpustats.h>
13314 _ACEOF
13315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } >/dev/null; then
13323 if test -s conftest.err; then
13324 ac_cpp_err=$ac_c_preproc_warn_flag
13325 else
13326 ac_cpp_err=
13328 else
13329 ac_cpp_err=yes
13331 if test -z "$ac_cpp_err"; then
13332 ac_header_preproc=yes
13333 else
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13337 ac_header_preproc=no
13339 rm -f conftest.err conftest.$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 echo "${ECHO_T}$ac_header_preproc" >&6
13343 # So? What about this header?
13344 case $ac_header_compiler:$ac_header_preproc in
13345 yes:no )
13346 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13347 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13349 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13351 cat <<\_ASBOX
13352 ## ------------------------------------ ##
13353 ## Report this to bug-autoconf@gnu.org. ##
13354 ## ------------------------------------ ##
13355 _ASBOX
13357 sed "s/^/$as_me: WARNING: /" >&2
13359 no:yes )
13360 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13361 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13362 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13363 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13364 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13365 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13367 cat <<\_ASBOX
13368 ## ------------------------------------ ##
13369 ## Report this to bug-autoconf@gnu.org. ##
13370 ## ------------------------------------ ##
13371 _ASBOX
13373 sed "s/^/$as_me: WARNING: /" >&2
13375 esac
13376 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13377 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13378 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13383 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13384 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13387 if test $ac_cv_header_sys_cpustats_h = yes; then
13388 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13389 #define UMAX 1
13390 _ACEOF
13397 if test $ac_have_func = no; then
13399 for ac_header in mach/mach.h
13401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo "$as_me:$LINENO: checking for $ac_header" >&5
13404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13410 else
13411 # Is the header compilable?
13412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13422 #include <$ac_header>
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426 (eval $ac_compile) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_header_compiler=yes
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_header_compiler=no
13443 rm -f conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13445 echo "${ECHO_T}$ac_header_compiler" >&6
13447 # Is the header present?
13448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13450 cat >conftest.$ac_ext <<_ACEOF
13451 #line $LINENO "configure"
13452 /* confdefs.h. */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 #include <$ac_header>
13458 _ACEOF
13459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } >/dev/null; then
13467 if test -s conftest.err; then
13468 ac_cpp_err=$ac_c_preproc_warn_flag
13469 else
13470 ac_cpp_err=
13472 else
13473 ac_cpp_err=yes
13475 if test -z "$ac_cpp_err"; then
13476 ac_header_preproc=yes
13477 else
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_header_preproc=no
13483 rm -f conftest.err conftest.$ac_ext
13484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13485 echo "${ECHO_T}$ac_header_preproc" >&6
13487 # So? What about this header?
13488 case $ac_header_compiler:$ac_header_preproc in
13489 yes:no )
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13495 cat <<\_ASBOX
13496 ## ------------------------------------ ##
13497 ## Report this to bug-autoconf@gnu.org. ##
13498 ## ------------------------------------ ##
13499 _ASBOX
13501 sed "s/^/$as_me: WARNING: /" >&2
13503 no:yes )
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13511 cat <<\_ASBOX
13512 ## ------------------------------------ ##
13513 ## Report this to bug-autoconf@gnu.org. ##
13514 ## ------------------------------------ ##
13515 _ASBOX
13517 sed "s/^/$as_me: WARNING: /" >&2
13519 esac
13520 echo "$as_me:$LINENO: checking for $ac_header" >&5
13521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525 eval "$as_ac_Header=$ac_header_preproc"
13527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13534 _ACEOF
13538 done
13543 for ac_header in nlist.h
13545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13547 echo "$as_me:$LINENO: checking for $ac_header" >&5
13548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13554 else
13555 # Is the header compilable?
13556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13558 cat >conftest.$ac_ext <<_ACEOF
13559 #line $LINENO "configure"
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13566 #include <$ac_header>
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -s conftest.$ac_objext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_header_compiler=yes
13581 else
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 ac_header_compiler=no
13587 rm -f conftest.$ac_objext conftest.$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6
13591 # Is the header present?
13592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13594 cat >conftest.$ac_ext <<_ACEOF
13595 #line $LINENO "configure"
13596 /* confdefs.h. */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <$ac_header>
13602 _ACEOF
13603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } >/dev/null; then
13611 if test -s conftest.err; then
13612 ac_cpp_err=$ac_c_preproc_warn_flag
13613 else
13614 ac_cpp_err=
13616 else
13617 ac_cpp_err=yes
13619 if test -z "$ac_cpp_err"; then
13620 ac_header_preproc=yes
13621 else
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13625 ac_header_preproc=no
13627 rm -f conftest.err conftest.$ac_ext
13628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6
13631 # So? What about this header?
13632 case $ac_header_compiler:$ac_header_preproc in
13633 yes:no )
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13639 cat <<\_ASBOX
13640 ## ------------------------------------ ##
13641 ## Report this to bug-autoconf@gnu.org. ##
13642 ## ------------------------------------ ##
13643 _ASBOX
13645 sed "s/^/$as_me: WARNING: /" >&2
13647 no:yes )
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655 cat <<\_ASBOX
13656 ## ------------------------------------ ##
13657 ## Report this to bug-autoconf@gnu.org. ##
13658 ## ------------------------------------ ##
13659 _ASBOX
13661 sed "s/^/$as_me: WARNING: /" >&2
13663 esac
13664 echo "$as_me:$LINENO: checking for $ac_header" >&5
13665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 eval "$as_ac_Header=$ac_header_preproc"
13671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13676 cat >>confdefs.h <<_ACEOF
13677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13678 _ACEOF
13679 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13680 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13681 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 #include <nlist.h>
13694 main ()
13696 static struct nlist ac_aggr;
13697 if (ac_aggr.n_un.n_name)
13698 return 0;
13700 return 0;
13702 _ACEOF
13703 rm -f conftest.$ac_objext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -s conftest.$ac_objext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_cv_member_struct_nlist_n_un_n_name=yes
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 #include <nlist.h>
13730 main ()
13732 static struct nlist ac_aggr;
13733 if (sizeof ac_aggr.n_un.n_name)
13734 return 0;
13736 return 0;
13738 _ACEOF
13739 rm -f conftest.$ac_objext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } &&
13745 { ac_try='test -s conftest.$ac_objext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_member_struct_nlist_n_un_n_name=yes
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_cv_member_struct_nlist_n_un_n_name=no
13758 rm -f conftest.$ac_objext conftest.$ac_ext
13760 rm -f conftest.$ac_objext conftest.$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13763 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13764 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13766 cat >>confdefs.h <<_ACEOF
13767 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13768 _ACEOF
13771 cat >>confdefs.h <<\_ACEOF
13772 #define NLIST_NAME_UNION 1
13773 _ACEOF
13780 done
13783 done
13786 # Some definitions of getloadavg require that the program be installed setgid.
13787 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13788 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13789 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 else
13792 cat >conftest.$ac_ext <<_ACEOF
13793 #line $LINENO "configure"
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13800 #ifdef LDAV_PRIVILEGED
13801 Yowza Am I SETGID yet
13802 #endif
13803 _ACEOF
13804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13805 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13806 ac_cv_func_getloadavg_setgid=yes
13807 else
13808 ac_cv_func_getloadavg_setgid=no
13810 rm -f conftest*
13813 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13814 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13815 if test $ac_cv_func_getloadavg_setgid = yes; then
13816 NEED_SETGID=true
13818 cat >>confdefs.h <<\_ACEOF
13819 #define GETLOADAVG_PRIVILEGED 1
13820 _ACEOF
13822 else
13823 NEED_SETGID=false
13826 if test $ac_cv_func_getloadavg_setgid = yes; then
13827 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13828 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13829 if test "${ac_cv_group_kmem+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13833 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13834 # If we got an error (system does not support symlinks), try without -L.
13835 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13836 ac_cv_group_kmem=`echo $ac_ls_output \
13837 | sed -ne 's/[ ][ ]*/ /g;
13838 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13839 / /s/.* //;p;'`
13842 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13843 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13844 KMEM_GROUP=$ac_cv_group_kmem
13846 if test "x$ac_save_LIBS" = x; then
13847 GETLOADAVG_LIBS=$LIBS
13848 else
13849 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13851 LIBS=$ac_save_LIBS
13855 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13856 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13857 if test "${ac_cv_sys_largefile_source+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 while :; do
13861 ac_cv_sys_largefile_source=no
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13864 /* confdefs.h. */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13869 #include <stdio.h>
13871 main ()
13873 return !fseeko;
13875 return 0;
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -s conftest.$ac_objext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 break
13891 else
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13896 rm -f conftest.$ac_objext conftest.$ac_ext
13897 cat >conftest.$ac_ext <<_ACEOF
13898 #line $LINENO "configure"
13899 /* confdefs.h. */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #define _LARGEFILE_SOURCE 1
13905 #include <stdio.h>
13907 main ()
13909 return !fseeko;
13911 return 0;
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916 (eval $ac_compile) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_sys_largefile_source=1; break
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13932 rm -f conftest.$ac_objext conftest.$ac_ext
13933 break
13934 done
13936 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13937 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13938 if test "$ac_cv_sys_largefile_source" != no; then
13940 cat >>confdefs.h <<_ACEOF
13941 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13942 _ACEOF
13945 rm -f conftest*
13947 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13948 # in glibc 2.1.3, but that breaks too many other things.
13949 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13950 echo "$as_me:$LINENO: checking for fseeko" >&5
13951 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13952 if test "${ac_cv_func_fseeko+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 cat >conftest.$ac_ext <<_ACEOF
13956 #line $LINENO "configure"
13957 /* confdefs.h. */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13962 #include <stdio.h>
13964 main ()
13966 return fseeko && fseeko (stdin, 0, 0);
13968 return 0;
13970 _ACEOF
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13973 (eval $ac_link) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -s conftest$ac_exeext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 ac_cv_func_fseeko=yes
13984 else
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ac_cv_func_fseeko=no
13990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13992 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13993 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13994 if test $ac_cv_func_fseeko = yes; then
13996 cat >>confdefs.h <<\_ACEOF
13997 #define HAVE_FSEEKO 1
13998 _ACEOF
14003 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14004 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14005 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008 # Use it with a single arg.
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 $ac_includes_default
14018 main ()
14020 getpgrp (0);
14022 return 0;
14024 _ACEOF
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_func_getpgrp_void=no
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_func_getpgrp_void=yes
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14048 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14049 if test $ac_cv_func_getpgrp_void = yes; then
14051 cat >>confdefs.h <<\_ACEOF
14052 #define GETPGRP_VOID 1
14053 _ACEOF
14059 for ac_func in strftime
14061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14064 if eval "test \"\${$as_ac_var+set}\" = set"; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 /* System header to define __stub macros and hopefully few prototypes,
14075 which can conflict with char $ac_func (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
14078 #ifdef __STDC__
14079 # include <limits.h>
14080 #else
14081 # include <assert.h>
14082 #endif
14083 /* Override any gcc2 internal prototype to avoid an error. */
14084 #ifdef __cplusplus
14085 extern "C"
14087 #endif
14088 /* We use char because int might match the return type of a gcc2
14089 builtin and then its argument prototype would still apply. */
14090 char $ac_func ();
14091 /* The GNU C library defines this for functions which it implements
14092 to always fail with ENOSYS. Some functions are actually named
14093 something starting with __ and the normal name is an alias. */
14094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14095 choke me
14096 #else
14097 char (*f) () = $ac_func;
14098 #endif
14099 #ifdef __cplusplus
14101 #endif
14104 main ()
14106 return f != $ac_func;
14108 return 0;
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 eval "$as_ac_var=yes"
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 eval "$as_ac_var=no"
14130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14134 if test `eval echo '${'$as_ac_var'}'` = yes; then
14135 cat >>confdefs.h <<_ACEOF
14136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14137 _ACEOF
14139 else
14140 # strftime is in -lintl on SCO UNIX.
14141 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14142 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14143 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 ac_check_lib_save_LIBS=$LIBS
14147 LIBS="-lintl $LIBS"
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14156 /* Override any gcc2 internal prototype to avoid an error. */
14157 #ifdef __cplusplus
14158 extern "C"
14159 #endif
14160 /* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14162 char strftime ();
14164 main ()
14166 strftime ();
14168 return 0;
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_lib_intl_strftime=yes
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_cv_lib_intl_strftime=no
14190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14193 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14194 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14195 if test $ac_cv_lib_intl_strftime = yes; then
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_STRFTIME 1
14198 _ACEOF
14200 LIBS="-lintl $LIBS"
14204 done
14207 # UNIX98 PTYs.
14209 for ac_func in grantpt
14211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14214 if eval "test \"\${$as_ac_var+set}\" = set"; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 cat >conftest.$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* System header to define __stub macros and hopefully few prototypes,
14225 which can conflict with char $ac_func (); below.
14226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14227 <limits.h> exists even on freestanding compilers. */
14228 #ifdef __STDC__
14229 # include <limits.h>
14230 #else
14231 # include <assert.h>
14232 #endif
14233 /* Override any gcc2 internal prototype to avoid an error. */
14234 #ifdef __cplusplus
14235 extern "C"
14237 #endif
14238 /* We use char because int might match the return type of a gcc2
14239 builtin and then its argument prototype would still apply. */
14240 char $ac_func ();
14241 /* The GNU C library defines this for functions which it implements
14242 to always fail with ENOSYS. Some functions are actually named
14243 something starting with __ and the normal name is an alias. */
14244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14245 choke me
14246 #else
14247 char (*f) () = $ac_func;
14248 #endif
14249 #ifdef __cplusplus
14251 #endif
14254 main ()
14256 return f != $ac_func;
14258 return 0;
14260 _ACEOF
14261 rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14263 (eval $ac_link) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -s conftest$ac_exeext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 eval "$as_ac_var=yes"
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 eval "$as_ac_var=no"
14280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14284 if test `eval echo '${'$as_ac_var'}'` = yes; then
14285 cat >>confdefs.h <<_ACEOF
14286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14287 _ACEOF
14290 done
14293 # PTY-related GNU extensions.
14295 for ac_func in getpt
14297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14298 echo "$as_me:$LINENO: checking for $ac_func" >&5
14299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14300 if eval "test \"\${$as_ac_var+set}\" = set"; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 cat >conftest.$ac_ext <<_ACEOF
14304 #line $LINENO "configure"
14305 /* confdefs.h. */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 /* System header to define __stub macros and hopefully few prototypes,
14311 which can conflict with char $ac_func (); below.
14312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14313 <limits.h> exists even on freestanding compilers. */
14314 #ifdef __STDC__
14315 # include <limits.h>
14316 #else
14317 # include <assert.h>
14318 #endif
14319 /* Override any gcc2 internal prototype to avoid an error. */
14320 #ifdef __cplusplus
14321 extern "C"
14323 #endif
14324 /* We use char because int might match the return type of a gcc2
14325 builtin and then its argument prototype would still apply. */
14326 char $ac_func ();
14327 /* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14331 choke me
14332 #else
14333 char (*f) () = $ac_func;
14334 #endif
14335 #ifdef __cplusplus
14337 #endif
14340 main ()
14342 return f != $ac_func;
14344 return 0;
14346 _ACEOF
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -s conftest$ac_exeext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 eval "$as_ac_var=yes"
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 eval "$as_ac_var=no"
14366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14370 if test `eval echo '${'$as_ac_var'}'` = yes; then
14371 cat >>confdefs.h <<_ACEOF
14372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14373 _ACEOF
14376 done
14379 # Check this now, so that we will NOT find the above functions in ncurses.
14380 # That is because we have not set up to link ncurses in lib-src.
14381 # It's better to believe a function is not available
14382 # than to expect to find it in ncurses.
14384 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14385 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14386 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389 ac_check_lib_save_LIBS=$LIBS
14390 LIBS="-lncurses $LIBS"
14391 cat >conftest.$ac_ext <<_ACEOF
14392 #line $LINENO "configure"
14393 /* confdefs.h. */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14399 /* Override any gcc2 internal prototype to avoid an error. */
14400 #ifdef __cplusplus
14401 extern "C"
14402 #endif
14403 /* We use char because int might match the return type of a gcc2
14404 builtin and then its argument prototype would still apply. */
14405 char tparm ();
14407 main ()
14409 tparm ();
14411 return 0;
14413 _ACEOF
14414 rm -f conftest.$ac_objext conftest$ac_exeext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14416 (eval $ac_link) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -s conftest$ac_exeext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_lib_ncurses_tparm=yes
14427 else
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 ac_cv_lib_ncurses_tparm=no
14433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14434 LIBS=$ac_check_lib_save_LIBS
14436 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14437 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14438 if test $ac_cv_lib_ncurses_tparm = yes; then
14439 cat >>confdefs.h <<_ACEOF
14440 #define HAVE_LIBNCURSES 1
14441 _ACEOF
14443 LIBS="-lncurses $LIBS"
14448 # Do we need the Hesiod library to provide the support routines?
14449 if test "$with_hesiod" = yes ; then
14450 # Don't set $LIBS here -- see comments above.
14451 resolv=no
14452 echo "$as_me:$LINENO: checking for res_send" >&5
14453 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14454 if test "${ac_cv_func_res_send+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457 cat >conftest.$ac_ext <<_ACEOF
14458 #line $LINENO "configure"
14459 /* confdefs.h. */
14460 _ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 /* System header to define __stub macros and hopefully few prototypes,
14465 which can conflict with char res_send (); below.
14466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14467 <limits.h> exists even on freestanding compilers. */
14468 #ifdef __STDC__
14469 # include <limits.h>
14470 #else
14471 # include <assert.h>
14472 #endif
14473 /* Override any gcc2 internal prototype to avoid an error. */
14474 #ifdef __cplusplus
14475 extern "C"
14477 #endif
14478 /* We use char because int might match the return type of a gcc2
14479 builtin and then its argument prototype would still apply. */
14480 char res_send ();
14481 /* The GNU C library defines this for functions which it implements
14482 to always fail with ENOSYS. Some functions are actually named
14483 something starting with __ and the normal name is an alias. */
14484 #if defined (__stub_res_send) || defined (__stub___res_send)
14485 choke me
14486 #else
14487 char (*f) () = res_send;
14488 #endif
14489 #ifdef __cplusplus
14491 #endif
14494 main ()
14496 return f != res_send;
14498 return 0;
14500 _ACEOF
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14503 (eval $ac_link) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try='test -s conftest$ac_exeext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_cv_func_res_send=yes
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_cv_func_res_send=no
14520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14522 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14523 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14524 if test $ac_cv_func_res_send = yes; then
14526 else
14527 echo "$as_me:$LINENO: checking for __res_send" >&5
14528 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14529 if test "${ac_cv_func___res_send+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532 cat >conftest.$ac_ext <<_ACEOF
14533 #line $LINENO "configure"
14534 /* confdefs.h. */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char __res_send (); below.
14541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542 <limits.h> exists even on freestanding compilers. */
14543 #ifdef __STDC__
14544 # include <limits.h>
14545 #else
14546 # include <assert.h>
14547 #endif
14548 /* Override any gcc2 internal prototype to avoid an error. */
14549 #ifdef __cplusplus
14550 extern "C"
14552 #endif
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14555 char __res_send ();
14556 /* The GNU C library defines this for functions which it implements
14557 to always fail with ENOSYS. Some functions are actually named
14558 something starting with __ and the normal name is an alias. */
14559 #if defined (__stub___res_send) || defined (__stub_____res_send)
14560 choke me
14561 #else
14562 char (*f) () = __res_send;
14563 #endif
14564 #ifdef __cplusplus
14566 #endif
14569 main ()
14571 return f != __res_send;
14573 return 0;
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try='test -s conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_func___res_send=yes
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 ac_cv_func___res_send=no
14595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14597 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14598 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14599 if test $ac_cv_func___res_send = yes; then
14601 else
14602 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14603 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14604 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607 ac_check_lib_save_LIBS=$LIBS
14608 LIBS="-lresolv $LIBS"
14609 cat >conftest.$ac_ext <<_ACEOF
14610 #line $LINENO "configure"
14611 /* confdefs.h. */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14617 /* Override any gcc2 internal prototype to avoid an error. */
14618 #ifdef __cplusplus
14619 extern "C"
14620 #endif
14621 /* We use char because int might match the return type of a gcc2
14622 builtin and then its argument prototype would still apply. */
14623 char res_send ();
14625 main ()
14627 res_send ();
14629 return 0;
14631 _ACEOF
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14634 (eval $ac_link) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_lib_resolv_res_send=yes
14645 else
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ac_cv_lib_resolv_res_send=no
14651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_check_lib_save_LIBS
14654 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14655 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14656 if test $ac_cv_lib_resolv_res_send = yes; then
14657 resolv=yes
14658 else
14659 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14660 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14661 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664 ac_check_lib_save_LIBS=$LIBS
14665 LIBS="-lresolv $LIBS"
14666 cat >conftest.$ac_ext <<_ACEOF
14667 #line $LINENO "configure"
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14674 /* Override any gcc2 internal prototype to avoid an error. */
14675 #ifdef __cplusplus
14676 extern "C"
14677 #endif
14678 /* We use char because int might match the return type of a gcc2
14679 builtin and then its argument prototype would still apply. */
14680 char __res_send ();
14682 main ()
14684 __res_send ();
14686 return 0;
14688 _ACEOF
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14691 (eval $ac_link) 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -s conftest$ac_exeext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_lib_resolv___res_send=yes
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_cv_lib_resolv___res_send=no
14708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14709 LIBS=$ac_check_lib_save_LIBS
14711 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14712 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14713 if test $ac_cv_lib_resolv___res_send = yes; then
14714 resolv=yes
14723 if test "$resolv" = yes ; then
14724 RESOLVLIB=-lresolv
14726 cat >>confdefs.h <<\_ACEOF
14727 #define HAVE_LIBRESOLV 1
14728 _ACEOF
14730 else
14731 RESOLVLIB=
14733 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14734 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14735 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738 cat >conftest.$ac_ext <<_ACEOF
14739 #line $LINENO "configure"
14740 /* confdefs.h. */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char hes_getmailhost (); below.
14747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 <limits.h> exists even on freestanding compilers. */
14749 #ifdef __STDC__
14750 # include <limits.h>
14751 #else
14752 # include <assert.h>
14753 #endif
14754 /* Override any gcc2 internal prototype to avoid an error. */
14755 #ifdef __cplusplus
14756 extern "C"
14758 #endif
14759 /* We use char because int might match the return type of a gcc2
14760 builtin and then its argument prototype would still apply. */
14761 char hes_getmailhost ();
14762 /* The GNU C library defines this for functions which it implements
14763 to always fail with ENOSYS. Some functions are actually named
14764 something starting with __ and the normal name is an alias. */
14765 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14766 choke me
14767 #else
14768 char (*f) () = hes_getmailhost;
14769 #endif
14770 #ifdef __cplusplus
14772 #endif
14775 main ()
14777 return f != hes_getmailhost;
14779 return 0;
14781 _ACEOF
14782 rm -f conftest.$ac_objext conftest$ac_exeext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14784 (eval $ac_link) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } &&
14788 { ac_try='test -s conftest$ac_exeext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_cv_func_hes_getmailhost=yes
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_cv_func_hes_getmailhost=no
14801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14803 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14804 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14805 if test $ac_cv_func_hes_getmailhost = yes; then
14807 else
14808 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14809 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14810 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813 ac_check_lib_save_LIBS=$LIBS
14814 LIBS="-lhesiod $RESOLVLIB $LIBS"
14815 cat >conftest.$ac_ext <<_ACEOF
14816 #line $LINENO "configure"
14817 /* confdefs.h. */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14823 /* Override any gcc2 internal prototype to avoid an error. */
14824 #ifdef __cplusplus
14825 extern "C"
14826 #endif
14827 /* We use char because int might match the return type of a gcc2
14828 builtin and then its argument prototype would still apply. */
14829 char hes_getmailhost ();
14831 main ()
14833 hes_getmailhost ();
14835 return 0;
14837 _ACEOF
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840 (eval $ac_link) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -s conftest$ac_exeext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_cv_lib_hesiod_hes_getmailhost=yes
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_cv_lib_hesiod_hes_getmailhost=no
14857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14860 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14861 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14862 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14864 cat >>confdefs.h <<\_ACEOF
14865 #define HAVE_LIBHESIOD 1
14866 _ACEOF
14868 else
14876 # These tell us which Kerberos-related libraries to use.
14877 if test "${with_kerberos+set}" = set; then
14879 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14880 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14881 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 else
14884 ac_check_lib_save_LIBS=$LIBS
14885 LIBS="-lcom_err $LIBS"
14886 cat >conftest.$ac_ext <<_ACEOF
14887 #line $LINENO "configure"
14888 /* confdefs.h. */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 /* Override any gcc2 internal prototype to avoid an error. */
14895 #ifdef __cplusplus
14896 extern "C"
14897 #endif
14898 /* We use char because int might match the return type of a gcc2
14899 builtin and then its argument prototype would still apply. */
14900 char com_err ();
14902 main ()
14904 com_err ();
14906 return 0;
14908 _ACEOF
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -s conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_lib_com_err_com_err=yes
14922 else
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ac_cv_lib_com_err_com_err=no
14928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14929 LIBS=$ac_check_lib_save_LIBS
14931 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14932 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14933 if test $ac_cv_lib_com_err_com_err = yes; then
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_LIBCOM_ERR 1
14936 _ACEOF
14938 LIBS="-lcom_err $LIBS"
14943 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14944 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14945 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948 ac_check_lib_save_LIBS=$LIBS
14949 LIBS="-lk5crypto $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. */
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 mit_des_cbc_encrypt ();
14966 main ()
14968 mit_des_cbc_encrypt ();
14970 return 0;
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_k5crypto_mit_des_cbc_encrypt=yes
14986 else
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14996 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14997 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define HAVE_LIBK5CRYPTO 1
15000 _ACEOF
15002 LIBS="-lk5crypto $LIBS"
15007 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15008 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15009 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012 ac_check_lib_save_LIBS=$LIBS
15013 LIBS="-lcrypto $LIBS"
15014 cat >conftest.$ac_ext <<_ACEOF
15015 #line $LINENO "configure"
15016 /* confdefs.h. */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15023 #ifdef __cplusplus
15024 extern "C"
15025 #endif
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15028 char mit_des_cbc_encrypt ();
15030 main ()
15032 mit_des_cbc_encrypt ();
15034 return 0;
15036 _ACEOF
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -s conftest$ac_exeext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15057 LIBS=$ac_check_lib_save_LIBS
15059 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15060 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15061 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15062 cat >>confdefs.h <<_ACEOF
15063 #define HAVE_LIBCRYPTO 1
15064 _ACEOF
15066 LIBS="-lcrypto $LIBS"
15071 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15072 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15073 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076 ac_check_lib_save_LIBS=$LIBS
15077 LIBS="-lkrb5 $LIBS"
15078 cat >conftest.$ac_ext <<_ACEOF
15079 #line $LINENO "configure"
15080 /* confdefs.h. */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15086 /* Override any gcc2 internal prototype to avoid an error. */
15087 #ifdef __cplusplus
15088 extern "C"
15089 #endif
15090 /* We use char because int might match the return type of a gcc2
15091 builtin and then its argument prototype would still apply. */
15092 char krb5_init_context ();
15094 main ()
15096 krb5_init_context ();
15098 return 0;
15100 _ACEOF
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103 (eval $ac_link) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -s conftest$ac_exeext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_cv_lib_krb5_krb5_init_context=yes
15114 else
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_cv_lib_krb5_krb5_init_context=no
15120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS
15123 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15124 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15125 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15126 cat >>confdefs.h <<_ACEOF
15127 #define HAVE_LIBKRB5 1
15128 _ACEOF
15130 LIBS="-lkrb5 $LIBS"
15134 if test "${with_kerberos5+set}" != set; then
15136 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15137 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15138 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141 ac_check_lib_save_LIBS=$LIBS
15142 LIBS="-ldes425 $LIBS"
15143 cat >conftest.$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15145 /* confdefs.h. */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 /* Override any gcc2 internal prototype to avoid an error. */
15152 #ifdef __cplusplus
15153 extern "C"
15154 #endif
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char des_cbc_encrypt ();
15159 main ()
15161 des_cbc_encrypt ();
15163 return 0;
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
15172 { ac_try='test -s conftest$ac_exeext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_cv_lib_des425_des_cbc_encrypt=yes
15179 else
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_cv_lib_des425_des_cbc_encrypt=no
15185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15186 LIBS=$ac_check_lib_save_LIBS
15188 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15189 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15190 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15191 cat >>confdefs.h <<_ACEOF
15192 #define HAVE_LIBDES425 1
15193 _ACEOF
15195 LIBS="-ldes425 $LIBS"
15197 else
15199 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15200 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15201 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204 ac_check_lib_save_LIBS=$LIBS
15205 LIBS="-ldes $LIBS"
15206 cat >conftest.$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15214 /* Override any gcc2 internal prototype to avoid an error. */
15215 #ifdef __cplusplus
15216 extern "C"
15217 #endif
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15220 char des_cbc_encrypt ();
15222 main ()
15224 des_cbc_encrypt ();
15226 return 0;
15228 _ACEOF
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15231 (eval $ac_link) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_lib_des_des_cbc_encrypt=yes
15242 else
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_cv_lib_des_des_cbc_encrypt=no
15248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15252 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15253 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_LIBDES 1
15256 _ACEOF
15258 LIBS="-ldes $LIBS"
15265 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15266 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15267 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270 ac_check_lib_save_LIBS=$LIBS
15271 LIBS="-lkrb4 $LIBS"
15272 cat >conftest.$ac_ext <<_ACEOF
15273 #line $LINENO "configure"
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15280 /* Override any gcc2 internal prototype to avoid an error. */
15281 #ifdef __cplusplus
15282 extern "C"
15283 #endif
15284 /* We use char because int might match the return type of a gcc2
15285 builtin and then its argument prototype would still apply. */
15286 char krb_get_cred ();
15288 main ()
15290 krb_get_cred ();
15292 return 0;
15294 _ACEOF
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15297 (eval $ac_link) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try='test -s conftest$ac_exeext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_lib_krb4_krb_get_cred=yes
15308 else
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_cv_lib_krb4_krb_get_cred=no
15314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15315 LIBS=$ac_check_lib_save_LIBS
15317 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15318 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15319 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15320 cat >>confdefs.h <<_ACEOF
15321 #define HAVE_LIBKRB4 1
15322 _ACEOF
15324 LIBS="-lkrb4 $LIBS"
15326 else
15328 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15329 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15330 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333 ac_check_lib_save_LIBS=$LIBS
15334 LIBS="-lkrb $LIBS"
15335 cat >conftest.$ac_ext <<_ACEOF
15336 #line $LINENO "configure"
15337 /* confdefs.h. */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15343 /* Override any gcc2 internal prototype to avoid an error. */
15344 #ifdef __cplusplus
15345 extern "C"
15346 #endif
15347 /* We use char because int might match the return type of a gcc2
15348 builtin and then its argument prototype would still apply. */
15349 char krb_get_cred ();
15351 main ()
15353 krb_get_cred ();
15355 return 0;
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15360 (eval $ac_link) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_lib_krb_krb_get_cred=yes
15371 else
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 ac_cv_lib_krb_krb_get_cred=no
15377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15378 LIBS=$ac_check_lib_save_LIBS
15380 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15381 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15382 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_LIBKRB 1
15385 _ACEOF
15387 LIBS="-lkrb $LIBS"
15395 if test "${with_kerberos5+set}" = set; then
15397 for ac_header in krb5.h
15399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15401 echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15408 else
15409 # Is the header compilable?
15410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15412 cat >conftest.$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15414 /* confdefs.h. */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 $ac_includes_default
15420 #include <$ac_header>
15421 _ACEOF
15422 rm -f conftest.$ac_objext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15424 (eval $ac_compile) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -s conftest.$ac_objext'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_header_compiler=yes
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 ac_header_compiler=no
15441 rm -f conftest.$ac_objext conftest.$ac_ext
15442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15443 echo "${ECHO_T}$ac_header_compiler" >&6
15445 # Is the header present?
15446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15448 cat >conftest.$ac_ext <<_ACEOF
15449 #line $LINENO "configure"
15450 /* confdefs.h. */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 #include <$ac_header>
15456 _ACEOF
15457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15459 ac_status=$?
15460 grep -v '^ *+' conftest.er1 >conftest.err
15461 rm -f conftest.er1
15462 cat conftest.err >&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } >/dev/null; then
15465 if test -s conftest.err; then
15466 ac_cpp_err=$ac_c_preproc_warn_flag
15467 else
15468 ac_cpp_err=
15470 else
15471 ac_cpp_err=yes
15473 if test -z "$ac_cpp_err"; then
15474 ac_header_preproc=yes
15475 else
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_header_preproc=no
15481 rm -f conftest.err conftest.$ac_ext
15482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15483 echo "${ECHO_T}$ac_header_preproc" >&6
15485 # So? What about this header?
15486 case $ac_header_compiler:$ac_header_preproc in
15487 yes:no )
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15493 cat <<\_ASBOX
15494 ## ------------------------------------ ##
15495 ## Report this to bug-autoconf@gnu.org. ##
15496 ## ------------------------------------ ##
15497 _ASBOX
15499 sed "s/^/$as_me: WARNING: /" >&2
15501 no:yes )
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15509 cat <<\_ASBOX
15510 ## ------------------------------------ ##
15511 ## Report this to bug-autoconf@gnu.org. ##
15512 ## ------------------------------------ ##
15513 _ASBOX
15515 sed "s/^/$as_me: WARNING: /" >&2
15517 esac
15518 echo "$as_me:$LINENO: checking for $ac_header" >&5
15519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 else
15523 eval "$as_ac_Header=$ac_header_preproc"
15525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15532 _ACEOF
15536 done
15538 else
15540 for ac_header in des.h
15542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15544 echo "$as_me:$LINENO: checking for $ac_header" >&5
15545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15551 else
15552 # Is the header compilable?
15553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15555 cat >conftest.$ac_ext <<_ACEOF
15556 #line $LINENO "configure"
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 $ac_includes_default
15563 #include <$ac_header>
15564 _ACEOF
15565 rm -f conftest.$ac_objext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15567 (eval $ac_compile) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15584 rm -f conftest.$ac_objext conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6
15588 # Is the header present?
15589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15591 cat >conftest.$ac_ext <<_ACEOF
15592 #line $LINENO "configure"
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15599 _ACEOF
15600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } >/dev/null; then
15608 if test -s conftest.err; then
15609 ac_cpp_err=$ac_c_preproc_warn_flag
15610 else
15611 ac_cpp_err=
15613 else
15614 ac_cpp_err=yes
15616 if test -z "$ac_cpp_err"; then
15617 ac_header_preproc=yes
15618 else
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 ac_header_preproc=no
15624 rm -f conftest.err conftest.$ac_ext
15625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc in
15630 yes:no )
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15636 cat <<\_ASBOX
15637 ## ------------------------------------ ##
15638 ## Report this to bug-autoconf@gnu.org. ##
15639 ## ------------------------------------ ##
15640 _ASBOX
15642 sed "s/^/$as_me: WARNING: /" >&2
15644 no:yes )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15652 cat <<\_ASBOX
15653 ## ------------------------------------ ##
15654 ## Report this to bug-autoconf@gnu.org. ##
15655 ## ------------------------------------ ##
15656 _ASBOX
15658 sed "s/^/$as_me: WARNING: /" >&2
15660 esac
15661 echo "$as_me:$LINENO: checking for $ac_header" >&5
15662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666 eval "$as_ac_Header=$ac_header_preproc"
15668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15673 cat >>confdefs.h <<_ACEOF
15674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15675 _ACEOF
15677 else
15679 for ac_header in kerberosIV/des.h
15681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15683 echo "$as_me:$LINENO: checking for $ac_header" >&5
15684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15690 else
15691 # Is the header compilable?
15692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15694 cat >conftest.$ac_ext <<_ACEOF
15695 #line $LINENO "configure"
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 $ac_includes_default
15702 #include <$ac_header>
15703 _ACEOF
15704 rm -f conftest.$ac_objext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706 (eval $ac_compile) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_header_compiler=yes
15717 else
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_header_compiler=no
15723 rm -f conftest.$ac_objext conftest.$ac_ext
15724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15725 echo "${ECHO_T}$ac_header_compiler" >&6
15727 # Is the header present?
15728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15730 cat >conftest.$ac_ext <<_ACEOF
15731 #line $LINENO "configure"
15732 /* confdefs.h. */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 #include <$ac_header>
15738 _ACEOF
15739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15741 ac_status=$?
15742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } >/dev/null; then
15747 if test -s conftest.err; then
15748 ac_cpp_err=$ac_c_preproc_warn_flag
15749 else
15750 ac_cpp_err=
15752 else
15753 ac_cpp_err=yes
15755 if test -z "$ac_cpp_err"; then
15756 ac_header_preproc=yes
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 ac_header_preproc=no
15763 rm -f conftest.err conftest.$ac_ext
15764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15765 echo "${ECHO_T}$ac_header_preproc" >&6
15767 # So? What about this header?
15768 case $ac_header_compiler:$ac_header_preproc in
15769 yes:no )
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775 cat <<\_ASBOX
15776 ## ------------------------------------ ##
15777 ## Report this to bug-autoconf@gnu.org. ##
15778 ## ------------------------------------ ##
15779 _ASBOX
15781 sed "s/^/$as_me: WARNING: /" >&2
15783 no:yes )
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15791 cat <<\_ASBOX
15792 ## ------------------------------------ ##
15793 ## Report this to bug-autoconf@gnu.org. ##
15794 ## ------------------------------------ ##
15795 _ASBOX
15797 sed "s/^/$as_me: WARNING: /" >&2
15799 esac
15800 echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805 eval "$as_ac_Header=$ac_header_preproc"
15807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15812 cat >>confdefs.h <<_ACEOF
15813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15814 _ACEOF
15816 else
15818 for ac_header in kerberos/des.h
15820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15822 echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15829 else
15830 # Is the header compilable?
15831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15833 cat >conftest.$ac_ext <<_ACEOF
15834 #line $LINENO "configure"
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 $ac_includes_default
15841 #include <$ac_header>
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_header_compiler=yes
15856 else
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_header_compiler=no
15862 rm -f conftest.$ac_objext conftest.$ac_ext
15863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15864 echo "${ECHO_T}$ac_header_compiler" >&6
15866 # Is the header present?
15867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15869 cat >conftest.$ac_ext <<_ACEOF
15870 #line $LINENO "configure"
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <$ac_header>
15877 _ACEOF
15878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } >/dev/null; then
15886 if test -s conftest.err; then
15887 ac_cpp_err=$ac_c_preproc_warn_flag
15888 else
15889 ac_cpp_err=
15891 else
15892 ac_cpp_err=yes
15894 if test -z "$ac_cpp_err"; then
15895 ac_header_preproc=yes
15896 else
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 ac_header_preproc=no
15902 rm -f conftest.err conftest.$ac_ext
15903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15904 echo "${ECHO_T}$ac_header_preproc" >&6
15906 # So? What about this header?
15907 case $ac_header_compiler:$ac_header_preproc in
15908 yes:no )
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15914 cat <<\_ASBOX
15915 ## ------------------------------------ ##
15916 ## Report this to bug-autoconf@gnu.org. ##
15917 ## ------------------------------------ ##
15918 _ASBOX
15920 sed "s/^/$as_me: WARNING: /" >&2
15922 no:yes )
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15930 cat <<\_ASBOX
15931 ## ------------------------------------ ##
15932 ## Report this to bug-autoconf@gnu.org. ##
15933 ## ------------------------------------ ##
15934 _ASBOX
15936 sed "s/^/$as_me: WARNING: /" >&2
15938 esac
15939 echo "$as_me:$LINENO: checking for $ac_header" >&5
15940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944 eval "$as_ac_Header=$ac_header_preproc"
15946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15953 _ACEOF
15957 done
15961 done
15965 done
15968 for ac_header in krb.h
15970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15972 echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15979 else
15980 # Is the header compilable?
15981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <$ac_header>
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_header_compiler=yes
16006 else
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_header_compiler=no
16012 rm -f conftest.$ac_objext conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16014 echo "${ECHO_T}$ac_header_compiler" >&6
16016 # Is the header present?
16017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16019 cat >conftest.$ac_ext <<_ACEOF
16020 #line $LINENO "configure"
16021 /* confdefs.h. */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 #include <$ac_header>
16027 _ACEOF
16028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16030 ac_status=$?
16031 grep -v '^ *+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } >/dev/null; then
16036 if test -s conftest.err; then
16037 ac_cpp_err=$ac_c_preproc_warn_flag
16038 else
16039 ac_cpp_err=
16041 else
16042 ac_cpp_err=yes
16044 if test -z "$ac_cpp_err"; then
16045 ac_header_preproc=yes
16046 else
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 ac_header_preproc=no
16052 rm -f conftest.err conftest.$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16054 echo "${ECHO_T}$ac_header_preproc" >&6
16056 # So? What about this header?
16057 case $ac_header_compiler:$ac_header_preproc in
16058 yes:no )
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16064 cat <<\_ASBOX
16065 ## ------------------------------------ ##
16066 ## Report this to bug-autoconf@gnu.org. ##
16067 ## ------------------------------------ ##
16068 _ASBOX
16070 sed "s/^/$as_me: WARNING: /" >&2
16072 no:yes )
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16080 cat <<\_ASBOX
16081 ## ------------------------------------ ##
16082 ## Report this to bug-autoconf@gnu.org. ##
16083 ## ------------------------------------ ##
16084 _ASBOX
16086 sed "s/^/$as_me: WARNING: /" >&2
16088 esac
16089 echo "$as_me:$LINENO: checking for $ac_header" >&5
16090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094 eval "$as_ac_Header=$ac_header_preproc"
16096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16101 cat >>confdefs.h <<_ACEOF
16102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16103 _ACEOF
16105 else
16107 for ac_header in kerberosIV/krb.h
16109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16111 echo "$as_me:$LINENO: checking for $ac_header" >&5
16112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16118 else
16119 # Is the header compilable?
16120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16122 cat >conftest.$ac_ext <<_ACEOF
16123 #line $LINENO "configure"
16124 /* confdefs.h. */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 #include <$ac_header>
16131 _ACEOF
16132 rm -f conftest.$ac_objext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_header_compiler=yes
16145 else
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ac_header_compiler=no
16151 rm -f conftest.$ac_objext conftest.$ac_ext
16152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16153 echo "${ECHO_T}$ac_header_compiler" >&6
16155 # Is the header present?
16156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16158 cat >conftest.$ac_ext <<_ACEOF
16159 #line $LINENO "configure"
16160 /* confdefs.h. */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h. */
16165 #include <$ac_header>
16166 _ACEOF
16167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16169 ac_status=$?
16170 grep -v '^ *+' conftest.er1 >conftest.err
16171 rm -f conftest.er1
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } >/dev/null; then
16175 if test -s conftest.err; then
16176 ac_cpp_err=$ac_c_preproc_warn_flag
16177 else
16178 ac_cpp_err=
16180 else
16181 ac_cpp_err=yes
16183 if test -z "$ac_cpp_err"; then
16184 ac_header_preproc=yes
16185 else
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16189 ac_header_preproc=no
16191 rm -f conftest.err conftest.$ac_ext
16192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16193 echo "${ECHO_T}$ac_header_preproc" >&6
16195 # So? What about this header?
16196 case $ac_header_compiler:$ac_header_preproc in
16197 yes:no )
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16203 cat <<\_ASBOX
16204 ## ------------------------------------ ##
16205 ## Report this to bug-autoconf@gnu.org. ##
16206 ## ------------------------------------ ##
16207 _ASBOX
16209 sed "s/^/$as_me: WARNING: /" >&2
16211 no:yes )
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 cat <<\_ASBOX
16220 ## ------------------------------------ ##
16221 ## Report this to bug-autoconf@gnu.org. ##
16222 ## ------------------------------------ ##
16223 _ASBOX
16225 sed "s/^/$as_me: WARNING: /" >&2
16227 esac
16228 echo "$as_me:$LINENO: checking for $ac_header" >&5
16229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233 eval "$as_ac_Header=$ac_header_preproc"
16235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16240 cat >>confdefs.h <<_ACEOF
16241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16242 _ACEOF
16244 else
16246 for ac_header in kerberos/krb.h
16248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16250 echo "$as_me:$LINENO: checking for $ac_header" >&5
16251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16257 else
16258 # Is the header compilable?
16259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16261 cat >conftest.$ac_ext <<_ACEOF
16262 #line $LINENO "configure"
16263 /* confdefs.h. */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 $ac_includes_default
16269 #include <$ac_header>
16270 _ACEOF
16271 rm -f conftest.$ac_objext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16273 (eval $ac_compile) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_header_compiler=yes
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_header_compiler=no
16290 rm -f conftest.$ac_objext conftest.$ac_ext
16291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16292 echo "${ECHO_T}$ac_header_compiler" >&6
16294 # Is the header present?
16295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16297 cat >conftest.$ac_ext <<_ACEOF
16298 #line $LINENO "configure"
16299 /* confdefs.h. */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 #include <$ac_header>
16305 _ACEOF
16306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16308 ac_status=$?
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } >/dev/null; then
16314 if test -s conftest.err; then
16315 ac_cpp_err=$ac_c_preproc_warn_flag
16316 else
16317 ac_cpp_err=
16319 else
16320 ac_cpp_err=yes
16322 if test -z "$ac_cpp_err"; then
16323 ac_header_preproc=yes
16324 else
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16328 ac_header_preproc=no
16330 rm -f conftest.err conftest.$ac_ext
16331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16332 echo "${ECHO_T}$ac_header_preproc" >&6
16334 # So? What about this header?
16335 case $ac_header_compiler:$ac_header_preproc in
16336 yes:no )
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16342 cat <<\_ASBOX
16343 ## ------------------------------------ ##
16344 ## Report this to bug-autoconf@gnu.org. ##
16345 ## ------------------------------------ ##
16346 _ASBOX
16348 sed "s/^/$as_me: WARNING: /" >&2
16350 no:yes )
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16358 cat <<\_ASBOX
16359 ## ------------------------------------ ##
16360 ## Report this to bug-autoconf@gnu.org. ##
16361 ## ------------------------------------ ##
16362 _ASBOX
16364 sed "s/^/$as_me: WARNING: /" >&2
16366 esac
16367 echo "$as_me:$LINENO: checking for $ac_header" >&5
16368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372 eval "$as_ac_Header=$ac_header_preproc"
16374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16379 cat >>confdefs.h <<_ACEOF
16380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16381 _ACEOF
16385 done
16389 done
16393 done
16397 for ac_header in com_err.h
16399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16401 echo "$as_me:$LINENO: checking for $ac_header" >&5
16402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16408 else
16409 # Is the header compilable?
16410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16413 #line $LINENO "configure"
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 $ac_includes_default
16420 #include <$ac_header>
16421 _ACEOF
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_header_compiler=yes
16435 else
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_compiler=no
16441 rm -f conftest.$ac_objext conftest.$ac_ext
16442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6
16445 # Is the header present?
16446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16450 /* confdefs.h. */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <$ac_header>
16456 _ACEOF
16457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16459 ac_status=$?
16460 grep -v '^ *+' conftest.er1 >conftest.err
16461 rm -f conftest.er1
16462 cat conftest.err >&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } >/dev/null; then
16465 if test -s conftest.err; then
16466 ac_cpp_err=$ac_c_preproc_warn_flag
16467 else
16468 ac_cpp_err=
16470 else
16471 ac_cpp_err=yes
16473 if test -z "$ac_cpp_err"; then
16474 ac_header_preproc=yes
16475 else
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 ac_header_preproc=no
16481 rm -f conftest.err conftest.$ac_ext
16482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16483 echo "${ECHO_T}$ac_header_preproc" >&6
16485 # So? What about this header?
16486 case $ac_header_compiler:$ac_header_preproc in
16487 yes:no )
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16493 cat <<\_ASBOX
16494 ## ------------------------------------ ##
16495 ## Report this to bug-autoconf@gnu.org. ##
16496 ## ------------------------------------ ##
16497 _ASBOX
16499 sed "s/^/$as_me: WARNING: /" >&2
16501 no:yes )
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16509 cat <<\_ASBOX
16510 ## ------------------------------------ ##
16511 ## Report this to bug-autoconf@gnu.org. ##
16512 ## ------------------------------------ ##
16513 _ASBOX
16515 sed "s/^/$as_me: WARNING: /" >&2
16517 esac
16518 echo "$as_me:$LINENO: checking for $ac_header" >&5
16519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523 eval "$as_ac_Header=$ac_header_preproc"
16525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16530 cat >>confdefs.h <<_ACEOF
16531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16532 _ACEOF
16536 done
16540 # Solaris requires -lintl if you want strerror (which calls dgettext)
16541 # to return localized messages.
16543 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16544 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16545 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 ac_check_lib_save_LIBS=$LIBS
16549 LIBS="-lintl $LIBS"
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 /* confdefs.h. */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16558 /* Override any gcc2 internal prototype to avoid an error. */
16559 #ifdef __cplusplus
16560 extern "C"
16561 #endif
16562 /* We use char because int might match the return type of a gcc2
16563 builtin and then its argument prototype would still apply. */
16564 char dgettext ();
16566 main ()
16568 dgettext ();
16570 return 0;
16572 _ACEOF
16573 rm -f conftest.$ac_objext conftest$ac_exeext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575 (eval $ac_link) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -s conftest$ac_exeext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_lib_intl_dgettext=yes
16586 else
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590 ac_cv_lib_intl_dgettext=no
16592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16595 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16596 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16597 if test $ac_cv_lib_intl_dgettext = yes; then
16598 cat >>confdefs.h <<_ACEOF
16599 #define HAVE_LIBINTL 1
16600 _ACEOF
16602 LIBS="-lintl $LIBS"
16607 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16608 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16609 if test "${emacs_cv_localtime_cache+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 if test x$ac_cv_func_tzset = xyes; then
16613 if test "$cross_compiling" = yes; then
16614 # If we have tzset, assume the worst when cross-compiling.
16615 emacs_cv_localtime_cache=yes
16616 else
16617 cat >conftest.$ac_ext <<_ACEOF
16618 #line $LINENO "configure"
16619 /* confdefs.h. */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 #include <time.h>
16625 extern char **environ;
16626 unset_TZ ()
16628 char **from, **to;
16629 for (to = from = environ; (*to = *from); from++)
16630 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16631 to++;
16633 char TZ_GMT0[] = "TZ=GMT0";
16634 char TZ_PST8[] = "TZ=PST8";
16635 main()
16637 time_t now = time ((time_t *) 0);
16638 int hour_GMT0, hour_unset;
16639 if (putenv (TZ_GMT0) != 0)
16640 exit (1);
16641 hour_GMT0 = localtime (&now)->tm_hour;
16642 unset_TZ ();
16643 hour_unset = localtime (&now)->tm_hour;
16644 if (putenv (TZ_PST8) != 0)
16645 exit (1);
16646 if (localtime (&now)->tm_hour == hour_GMT0)
16647 exit (1);
16648 unset_TZ ();
16649 if (localtime (&now)->tm_hour != hour_unset)
16650 exit (1);
16651 exit (0);
16653 _ACEOF
16654 rm -f conftest$ac_exeext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16656 (eval $ac_link) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 emacs_cv_localtime_cache=no
16666 else
16667 echo "$as_me: program exited with status $ac_status" >&5
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ( exit $ac_status )
16672 emacs_cv_localtime_cache=yes
16674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16676 else
16677 # If we lack tzset, report that localtime does not cache TZ,
16678 # since we can't invalidate the cache if we don't have tzset.
16679 emacs_cv_localtime_cache=no
16682 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16683 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16684 if test $emacs_cv_localtime_cache = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define LOCALTIME_CACHE 1
16688 _ACEOF
16692 if test "x$HAVE_TIMEVAL" = xyes; then
16694 for ac_func in gettimeofday
16696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16697 echo "$as_me:$LINENO: checking for $ac_func" >&5
16698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16699 if eval "test \"\${$as_ac_var+set}\" = set"; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702 cat >conftest.$ac_ext <<_ACEOF
16703 #line $LINENO "configure"
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char $ac_func (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16713 #ifdef __STDC__
16714 # include <limits.h>
16715 #else
16716 # include <assert.h>
16717 #endif
16718 /* Override any gcc2 internal prototype to avoid an error. */
16719 #ifdef __cplusplus
16720 extern "C"
16722 #endif
16723 /* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16725 char $ac_func ();
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16730 choke me
16731 #else
16732 char (*f) () = $ac_func;
16733 #endif
16734 #ifdef __cplusplus
16736 #endif
16739 main ()
16741 return f != $ac_func;
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -s conftest$ac_exeext'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 eval "$as_ac_var=yes"
16759 else
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 eval "$as_ac_var=no"
16765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16769 if test `eval echo '${'$as_ac_var'}'` = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16772 _ACEOF
16775 done
16777 if test $ac_cv_func_gettimeofday = yes; then
16778 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16779 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16780 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783 cat >conftest.$ac_ext <<_ACEOF
16784 #line $LINENO "configure"
16785 /* confdefs.h. */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16791 #ifdef TIME_WITH_SYS_TIME
16792 #include <sys/time.h>
16793 #include <time.h>
16794 #else
16795 #ifdef HAVE_SYS_TIME_H
16796 #include <sys/time.h>
16797 #else
16798 #include <time.h>
16799 #endif
16800 #endif
16802 main ()
16804 struct timeval time;
16805 gettimeofday (&time, 0);
16807 return 0;
16809 _ACEOF
16810 rm -f conftest.$ac_objext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 emacs_cv_gettimeofday_two_arguments=yes
16823 else
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 emacs_cv_gettimeofday_two_arguments=no
16829 rm -f conftest.$ac_objext conftest.$ac_ext
16831 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16832 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16833 if test $emacs_cv_gettimeofday_two_arguments = no; then
16835 cat >>confdefs.h <<\_ACEOF
16836 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16837 _ACEOF
16843 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16844 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16845 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16846 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849 cat >conftest.$ac_ext <<_ACEOF
16850 #line $LINENO "configure"
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <sys/types.h>
16857 #include <$ac_cv_struct_tm>
16861 main ()
16863 static struct tm ac_aggr;
16864 if (ac_aggr.tm_zone)
16865 return 0;
16867 return 0;
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_cv_member_struct_tm_tm_zone=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 cat >conftest.$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16889 /* confdefs.h. */
16890 _ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 #include <sys/types.h>
16895 #include <$ac_cv_struct_tm>
16899 main ()
16901 static struct tm ac_aggr;
16902 if (sizeof ac_aggr.tm_zone)
16903 return 0;
16905 return 0;
16907 _ACEOF
16908 rm -f conftest.$ac_objext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16910 (eval $ac_compile) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -s conftest.$ac_objext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_cv_member_struct_tm_tm_zone=yes
16921 else
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_member_struct_tm_tm_zone=no
16927 rm -f conftest.$ac_objext conftest.$ac_ext
16929 rm -f conftest.$ac_objext conftest.$ac_ext
16931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16933 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_STRUCT_TM_TM_ZONE 1
16937 _ACEOF
16942 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE_TM_ZONE 1
16946 _ACEOF
16948 else
16949 echo "$as_me:$LINENO: checking for tzname" >&5
16950 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16951 if test "${ac_cv_var_tzname+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 #include <time.h>
16962 #ifndef tzname /* For SGI. */
16963 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16964 #endif
16967 main ()
16969 atoi(*tzname);
16971 return 0;
16973 _ACEOF
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976 (eval $ac_link) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_var_tzname=yes
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_cv_var_tzname=no
16993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16995 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16996 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16997 if test $ac_cv_var_tzname = yes; then
16999 cat >>confdefs.h <<\_ACEOF
17000 #define HAVE_TZNAME 1
17001 _ACEOF
17007 if test "$ac_cv_func_gettimeofday" = yes; then
17008 echo "$as_me:$LINENO: checking for struct timezone" >&5
17009 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17010 if test "${emacs_cv_struct_timezone+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013 cat >conftest.$ac_ext <<_ACEOF
17014 #line $LINENO "configure"
17015 /* confdefs.h. */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 #include <sys/time.h>
17022 main ()
17024 struct timezone tz;
17026 return 0;
17028 _ACEOF
17029 rm -f conftest.$ac_objext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17031 (eval $ac_compile) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -s conftest.$ac_objext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 if test "$cross_compiling" = yes; then
17042 emacs_cv_struct_timezone=yes
17043 else
17044 cat >conftest.$ac_ext <<_ACEOF
17045 #line $LINENO "configure"
17046 /* confdefs.h. */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17052 #ifdef TIME_WITH_SYS_TIME
17053 #include <sys/time.h>
17054 #include <time.h>
17055 #else
17056 #ifdef HAVE_SYS_TIME_H
17057 #include <sys/time.h>
17058 #else
17059 #include <time.h>
17060 #endif
17061 #endif
17062 main () {
17063 struct timeval time;
17064 struct timezone dummy;
17065 exit (gettimeofday (&time, &dummy));
17067 _ACEOF
17068 rm -f conftest$ac_exeext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070 (eval $ac_link) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 emacs_cv_struct_timezone=yes
17080 else
17081 echo "$as_me: program exited with status $ac_status" >&5
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ( exit $ac_status )
17086 emacs_cv_struct_timezone=no
17088 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17090 else
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 emacs_cv_struct_timezone=no
17096 rm -f conftest.$ac_objext conftest.$ac_ext
17098 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17099 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17102 ok_so_far=yes
17103 echo "$as_me:$LINENO: checking for socket" >&5
17104 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17105 if test "${ac_cv_func_socket+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108 cat >conftest.$ac_ext <<_ACEOF
17109 #line $LINENO "configure"
17110 /* confdefs.h. */
17111 _ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 /* System header to define __stub macros and hopefully few prototypes,
17116 which can conflict with char socket (); below.
17117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118 <limits.h> exists even on freestanding compilers. */
17119 #ifdef __STDC__
17120 # include <limits.h>
17121 #else
17122 # include <assert.h>
17123 #endif
17124 /* Override any gcc2 internal prototype to avoid an error. */
17125 #ifdef __cplusplus
17126 extern "C"
17128 #endif
17129 /* We use char because int might match the return type of a gcc2
17130 builtin and then its argument prototype would still apply. */
17131 char socket ();
17132 /* The GNU C library defines this for functions which it implements
17133 to always fail with ENOSYS. Some functions are actually named
17134 something starting with __ and the normal name is an alias. */
17135 #if defined (__stub_socket) || defined (__stub___socket)
17136 choke me
17137 #else
17138 char (*f) () = socket;
17139 #endif
17140 #ifdef __cplusplus
17142 #endif
17145 main ()
17147 return f != socket;
17149 return 0;
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_func_socket=yes
17165 else
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 ac_cv_func_socket=no
17171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17173 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17174 echo "${ECHO_T}$ac_cv_func_socket" >&6
17175 if test $ac_cv_func_socket = yes; then
17177 else
17178 ok_so_far=no
17181 if test $ok_so_far = yes; then
17182 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17183 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17184 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17185 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17189 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17190 else
17191 # Is the header compilable?
17192 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17193 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17194 cat >conftest.$ac_ext <<_ACEOF
17195 #line $LINENO "configure"
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 $ac_includes_default
17202 #include <netinet/in.h>
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_header_compiler=yes
17217 else
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_header_compiler=no
17223 rm -f conftest.$ac_objext conftest.$ac_ext
17224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17225 echo "${ECHO_T}$ac_header_compiler" >&6
17227 # Is the header present?
17228 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17229 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17230 cat >conftest.$ac_ext <<_ACEOF
17231 #line $LINENO "configure"
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 #include <netinet/in.h>
17238 _ACEOF
17239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } >/dev/null; then
17247 if test -s conftest.err; then
17248 ac_cpp_err=$ac_c_preproc_warn_flag
17249 else
17250 ac_cpp_err=
17252 else
17253 ac_cpp_err=yes
17255 if test -z "$ac_cpp_err"; then
17256 ac_header_preproc=yes
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ac_header_preproc=no
17263 rm -f conftest.err conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17265 echo "${ECHO_T}$ac_header_preproc" >&6
17267 # So? What about this header?
17268 case $ac_header_compiler:$ac_header_preproc in
17269 yes:no )
17270 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17271 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17273 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17275 cat <<\_ASBOX
17276 ## ------------------------------------ ##
17277 ## Report this to bug-autoconf@gnu.org. ##
17278 ## ------------------------------------ ##
17279 _ASBOX
17281 sed "s/^/$as_me: WARNING: /" >&2
17283 no:yes )
17284 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17285 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17287 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17289 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17291 cat <<\_ASBOX
17292 ## ------------------------------------ ##
17293 ## Report this to bug-autoconf@gnu.org. ##
17294 ## ------------------------------------ ##
17295 _ASBOX
17297 sed "s/^/$as_me: WARNING: /" >&2
17299 esac
17300 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17301 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17302 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 ac_cv_header_netinet_in_h=$ac_header_preproc
17307 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17308 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17311 if test $ac_cv_header_netinet_in_h = yes; then
17313 else
17314 ok_so_far=no
17319 if test $ok_so_far = yes; then
17320 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17321 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17322 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17323 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17327 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17328 else
17329 # Is the header compilable?
17330 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17331 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17332 cat >conftest.$ac_ext <<_ACEOF
17333 #line $LINENO "configure"
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 $ac_includes_default
17340 #include <arpa/inet.h>
17341 _ACEOF
17342 rm -f conftest.$ac_objext
17343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17344 (eval $ac_compile) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -s conftest.$ac_objext'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_header_compiler=yes
17355 else
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ac_header_compiler=no
17361 rm -f conftest.$ac_objext conftest.$ac_ext
17362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17363 echo "${ECHO_T}$ac_header_compiler" >&6
17365 # Is the header present?
17366 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17367 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17368 cat >conftest.$ac_ext <<_ACEOF
17369 #line $LINENO "configure"
17370 /* confdefs.h. */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17375 #include <arpa/inet.h>
17376 _ACEOF
17377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } >/dev/null; then
17385 if test -s conftest.err; then
17386 ac_cpp_err=$ac_c_preproc_warn_flag
17387 else
17388 ac_cpp_err=
17390 else
17391 ac_cpp_err=yes
17393 if test -z "$ac_cpp_err"; then
17394 ac_header_preproc=yes
17395 else
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_header_preproc=no
17401 rm -f conftest.err conftest.$ac_ext
17402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17403 echo "${ECHO_T}$ac_header_preproc" >&6
17405 # So? What about this header?
17406 case $ac_header_compiler:$ac_header_preproc in
17407 yes:no )
17408 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17409 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17410 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17411 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17413 cat <<\_ASBOX
17414 ## ------------------------------------ ##
17415 ## Report this to bug-autoconf@gnu.org. ##
17416 ## ------------------------------------ ##
17417 _ASBOX
17419 sed "s/^/$as_me: WARNING: /" >&2
17421 no:yes )
17422 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17423 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17425 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17426 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17427 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17429 cat <<\_ASBOX
17430 ## ------------------------------------ ##
17431 ## Report this to bug-autoconf@gnu.org. ##
17432 ## ------------------------------------ ##
17433 _ASBOX
17435 sed "s/^/$as_me: WARNING: /" >&2
17437 esac
17438 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17439 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17440 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443 ac_cv_header_arpa_inet_h=$ac_header_preproc
17445 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17446 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17449 if test $ac_cv_header_arpa_inet_h = yes; then
17451 else
17452 ok_so_far=no
17457 if test $ok_so_far = yes; then
17459 cat >>confdefs.h <<\_ACEOF
17460 #define HAVE_INET_SOCKETS 1
17461 _ACEOF
17467 for ac_header in sys/ioctl.h net/if.h
17469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17471 echo "$as_me:$LINENO: checking for $ac_header" >&5
17472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17478 else
17479 # Is the header compilable?
17480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17482 cat >conftest.$ac_ext <<_ACEOF
17483 #line $LINENO "configure"
17484 /* confdefs.h. */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17489 $ac_includes_default
17490 #include <$ac_header>
17491 _ACEOF
17492 rm -f conftest.$ac_objext
17493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17494 (eval $ac_compile) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
17498 { ac_try='test -s conftest.$ac_objext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_header_compiler=yes
17505 else
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 ac_header_compiler=no
17511 rm -f conftest.$ac_objext conftest.$ac_ext
17512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17513 echo "${ECHO_T}$ac_header_compiler" >&6
17515 # Is the header present?
17516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17518 cat >conftest.$ac_ext <<_ACEOF
17519 #line $LINENO "configure"
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 #include <$ac_header>
17526 _ACEOF
17527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } >/dev/null; then
17535 if test -s conftest.err; then
17536 ac_cpp_err=$ac_c_preproc_warn_flag
17537 else
17538 ac_cpp_err=
17540 else
17541 ac_cpp_err=yes
17543 if test -z "$ac_cpp_err"; then
17544 ac_header_preproc=yes
17545 else
17546 echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17549 ac_header_preproc=no
17551 rm -f conftest.err conftest.$ac_ext
17552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17553 echo "${ECHO_T}$ac_header_preproc" >&6
17555 # So? What about this header?
17556 case $ac_header_compiler:$ac_header_preproc in
17557 yes:no )
17558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17563 cat <<\_ASBOX
17564 ## ------------------------------------ ##
17565 ## Report this to bug-autoconf@gnu.org. ##
17566 ## ------------------------------------ ##
17567 _ASBOX
17569 sed "s/^/$as_me: WARNING: /" >&2
17571 no:yes )
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17579 cat <<\_ASBOX
17580 ## ------------------------------------ ##
17581 ## Report this to bug-autoconf@gnu.org. ##
17582 ## ------------------------------------ ##
17583 _ASBOX
17585 sed "s/^/$as_me: WARNING: /" >&2
17587 esac
17588 echo "$as_me:$LINENO: checking for $ac_header" >&5
17589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593 eval "$as_ac_Header=$ac_header_preproc"
17595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17600 cat >>confdefs.h <<_ACEOF
17601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17602 _ACEOF
17606 done
17609 if test -f /usr/lpp/X11/bin/smt.exp; then
17611 cat >>confdefs.h <<\_ACEOF
17612 #define HAVE_AIX_SMT_EXP 1
17613 _ACEOF
17617 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17618 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17619 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17620 echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17623 cat >>confdefs.h <<\_ACEOF
17624 #define HAVE_DEV_PTMX 1
17625 _ACEOF
17627 else
17628 echo "$as_me:$LINENO: result: no" >&5
17629 echo "${ECHO_T}no" >&6
17632 echo "$as_me:$LINENO: checking for pid_t" >&5
17633 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17634 if test "${ac_cv_type_pid_t+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637 cat >conftest.$ac_ext <<_ACEOF
17638 #line $LINENO "configure"
17639 /* confdefs.h. */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 $ac_includes_default
17646 main ()
17648 if ((pid_t *) 0)
17649 return 0;
17650 if (sizeof (pid_t))
17651 return 0;
17653 return 0;
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17658 (eval $ac_compile) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -s conftest.$ac_objext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 ac_cv_type_pid_t=yes
17669 else
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 ac_cv_type_pid_t=no
17675 rm -f conftest.$ac_objext conftest.$ac_ext
17677 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17678 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17679 if test $ac_cv_type_pid_t = yes; then
17681 else
17683 cat >>confdefs.h <<_ACEOF
17684 #define pid_t int
17685 _ACEOF
17691 for ac_header in unistd.h vfork.h
17693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17695 echo "$as_me:$LINENO: checking for $ac_header" >&5
17696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17702 else
17703 # Is the header compilable?
17704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17707 #line $LINENO "configure"
17708 /* confdefs.h. */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 $ac_includes_default
17714 #include <$ac_header>
17715 _ACEOF
17716 rm -f conftest.$ac_objext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17718 (eval $ac_compile) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_header_compiler=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_header_compiler=no
17735 rm -f conftest.$ac_objext conftest.$ac_ext
17736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17737 echo "${ECHO_T}$ac_header_compiler" >&6
17739 # Is the header present?
17740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17742 cat >conftest.$ac_ext <<_ACEOF
17743 #line $LINENO "configure"
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <$ac_header>
17750 _ACEOF
17751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } >/dev/null; then
17759 if test -s conftest.err; then
17760 ac_cpp_err=$ac_c_preproc_warn_flag
17761 else
17762 ac_cpp_err=
17764 else
17765 ac_cpp_err=yes
17767 if test -z "$ac_cpp_err"; then
17768 ac_header_preproc=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ac_header_preproc=no
17775 rm -f conftest.err conftest.$ac_ext
17776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17777 echo "${ECHO_T}$ac_header_preproc" >&6
17779 # So? What about this header?
17780 case $ac_header_compiler:$ac_header_preproc in
17781 yes:no )
17782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17787 cat <<\_ASBOX
17788 ## ------------------------------------ ##
17789 ## Report this to bug-autoconf@gnu.org. ##
17790 ## ------------------------------------ ##
17791 _ASBOX
17793 sed "s/^/$as_me: WARNING: /" >&2
17795 no:yes )
17796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17803 cat <<\_ASBOX
17804 ## ------------------------------------ ##
17805 ## Report this to bug-autoconf@gnu.org. ##
17806 ## ------------------------------------ ##
17807 _ASBOX
17809 sed "s/^/$as_me: WARNING: /" >&2
17811 esac
17812 echo "$as_me:$LINENO: checking for $ac_header" >&5
17813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817 eval "$as_ac_Header=$ac_header_preproc"
17819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17824 cat >>confdefs.h <<_ACEOF
17825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17826 _ACEOF
17830 done
17834 for ac_func in fork vfork
17836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17837 echo "$as_me:$LINENO: checking for $ac_func" >&5
17838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17839 if eval "test \"\${$as_ac_var+set}\" = set"; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 else
17842 cat >conftest.$ac_ext <<_ACEOF
17843 #line $LINENO "configure"
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 /* System header to define __stub macros and hopefully few prototypes,
17850 which can conflict with char $ac_func (); below.
17851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17852 <limits.h> exists even on freestanding compilers. */
17853 #ifdef __STDC__
17854 # include <limits.h>
17855 #else
17856 # include <assert.h>
17857 #endif
17858 /* Override any gcc2 internal prototype to avoid an error. */
17859 #ifdef __cplusplus
17860 extern "C"
17862 #endif
17863 /* We use char because int might match the return type of a gcc2
17864 builtin and then its argument prototype would still apply. */
17865 char $ac_func ();
17866 /* The GNU C library defines this for functions which it implements
17867 to always fail with ENOSYS. Some functions are actually named
17868 something starting with __ and the normal name is an alias. */
17869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17870 choke me
17871 #else
17872 char (*f) () = $ac_func;
17873 #endif
17874 #ifdef __cplusplus
17876 #endif
17879 main ()
17881 return f != $ac_func;
17883 return 0;
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 eval "$as_ac_var=yes"
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 eval "$as_ac_var=no"
17905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17909 if test `eval echo '${'$as_ac_var'}'` = yes; then
17910 cat >>confdefs.h <<_ACEOF
17911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17912 _ACEOF
17915 done
17917 if test "x$ac_cv_func_fork" = xyes; then
17918 echo "$as_me:$LINENO: checking for working fork" >&5
17919 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17920 if test "${ac_cv_func_fork_works+set}" = set; then
17921 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923 if test "$cross_compiling" = yes; then
17924 ac_cv_func_fork_works=cross
17925 else
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* By Ruediger Kuhlmann. */
17928 #include <sys/types.h>
17929 #if HAVE_UNISTD_H
17930 # include <unistd.h>
17931 #endif
17932 /* Some systems only have a dummy stub for fork() */
17933 int main ()
17935 if (fork() < 0)
17936 exit (1);
17937 exit (0);
17939 _ACEOF
17940 rm -f conftest$ac_exeext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17942 (eval $ac_link) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_func_fork_works=yes
17952 else
17953 echo "$as_me: program exited with status $ac_status" >&5
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ( exit $ac_status )
17958 ac_cv_func_fork_works=no
17960 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17963 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17964 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17966 else
17967 ac_cv_func_fork_works=$ac_cv_func_fork
17969 if test "x$ac_cv_func_fork_works" = xcross; then
17970 case $host in
17971 *-*-amigaos* | *-*-msdosdjgpp*)
17972 # Override, as these systems have only a dummy fork() stub
17973 ac_cv_func_fork_works=no
17976 ac_cv_func_fork_works=yes
17978 esac
17979 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17980 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17982 ac_cv_func_vfork_works=$ac_cv_func_vfork
17983 if test "x$ac_cv_func_vfork" = xyes; then
17984 echo "$as_me:$LINENO: checking for working vfork" >&5
17985 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17986 if test "${ac_cv_func_vfork_works+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989 if test "$cross_compiling" = yes; then
17990 ac_cv_func_vfork_works=cross
17991 else
17992 cat >conftest.$ac_ext <<_ACEOF
17993 #line $LINENO "configure"
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 /* Thanks to Paul Eggert for this test. */
18000 #include <stdio.h>
18001 #include <stdlib.h>
18002 #include <sys/types.h>
18003 #include <sys/stat.h>
18004 #include <sys/wait.h>
18005 #if HAVE_UNISTD_H
18006 # include <unistd.h>
18007 #endif
18008 #if HAVE_VFORK_H
18009 # include <vfork.h>
18010 #endif
18011 /* On some sparc systems, changes by the child to local and incoming
18012 argument registers are propagated back to the parent. The compiler
18013 is told about this with #include <vfork.h>, but some compilers
18014 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18015 static variable whose address is put into a register that is
18016 clobbered by the vfork. */
18017 static void
18018 #ifdef __cplusplus
18019 sparc_address_test (int arg)
18020 # else
18021 sparc_address_test (arg) int arg;
18022 #endif
18024 static pid_t child;
18025 if (!child) {
18026 child = vfork ();
18027 if (child < 0) {
18028 perror ("vfork");
18029 _exit(2);
18031 if (!child) {
18032 arg = getpid();
18033 write(-1, "", 0);
18034 _exit (arg);
18040 main ()
18042 pid_t parent = getpid ();
18043 pid_t child;
18045 sparc_address_test (0);
18047 child = vfork ();
18049 if (child == 0) {
18050 /* Here is another test for sparc vfork register problems. This
18051 test uses lots of local variables, at least as many local
18052 variables as main has allocated so far including compiler
18053 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18054 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18055 reuse the register of parent for one of the local variables,
18056 since it will think that parent can't possibly be used any more
18057 in this routine. Assigning to the local variable will thus
18058 munge parent in the parent process. */
18059 pid_t
18060 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18061 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18062 /* Convince the compiler that p..p7 are live; otherwise, it might
18063 use the same hardware register for all 8 local variables. */
18064 if (p != p1 || p != p2 || p != p3 || p != p4
18065 || p != p5 || p != p6 || p != p7)
18066 _exit(1);
18068 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18069 from child file descriptors. If the child closes a descriptor
18070 before it execs or exits, this munges the parent's descriptor
18071 as well. Test for this by closing stdout in the child. */
18072 _exit(close(fileno(stdout)) != 0);
18073 } else {
18074 int status;
18075 struct stat st;
18077 while (wait(&status) != child)
18079 exit(
18080 /* Was there some problem with vforking? */
18081 child < 0
18083 /* Did the child fail? (This shouldn't happen.) */
18084 || status
18086 /* Did the vfork/compiler bug occur? */
18087 || parent != getpid()
18089 /* Did the file descriptor bug occur? */
18090 || fstat(fileno(stdout), &st) != 0
18094 _ACEOF
18095 rm -f conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097 (eval $ac_link) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_func_vfork_works=yes
18107 else
18108 echo "$as_me: program exited with status $ac_status" >&5
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ( exit $ac_status )
18113 ac_cv_func_vfork_works=no
18115 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18118 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18119 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18122 if test "x$ac_cv_func_fork_works" = xcross; then
18123 ac_cv_func_vfork_works=ac_cv_func_vfork
18124 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18125 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18128 if test "x$ac_cv_func_vfork_works" = xyes; then
18130 cat >>confdefs.h <<\_ACEOF
18131 #define HAVE_WORKING_VFORK 1
18132 _ACEOF
18134 else
18136 cat >>confdefs.h <<\_ACEOF
18137 #define vfork fork
18138 _ACEOF
18141 if test "x$ac_cv_func_fork_works" = xyes; then
18143 cat >>confdefs.h <<\_ACEOF
18144 #define HAVE_WORKING_FORK 1
18145 _ACEOF
18150 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18151 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18152 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 else
18155 cat >conftest.$ac_ext <<_ACEOF
18156 #line $LINENO "configure"
18157 /* confdefs.h. */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 #include <langinfo.h>
18164 main ()
18166 char* cs = nl_langinfo(CODESET);
18168 return 0;
18170 _ACEOF
18171 rm -f conftest.$ac_objext conftest$ac_exeext
18172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18173 (eval $ac_link) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
18177 { ac_try='test -s conftest$ac_exeext'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 emacs_cv_langinfo_codeset=yes
18184 else
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 emacs_cv_langinfo_codeset=no
18190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18193 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18194 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18195 if test $emacs_cv_langinfo_codeset = yes; then
18197 cat >>confdefs.h <<\_ACEOF
18198 #define HAVE_LANGINFO_CODESET 1
18199 _ACEOF
18203 echo "$as_me:$LINENO: checking for size_t" >&5
18204 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18205 if test "${ac_cv_type_size_t+set}" = set; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208 cat >conftest.$ac_ext <<_ACEOF
18209 #line $LINENO "configure"
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18217 main ()
18219 if ((size_t *) 0)
18220 return 0;
18221 if (sizeof (size_t))
18222 return 0;
18224 return 0;
18226 _ACEOF
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
18233 { ac_try='test -s conftest.$ac_objext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 ac_cv_type_size_t=yes
18240 else
18241 echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18244 ac_cv_type_size_t=no
18246 rm -f conftest.$ac_objext conftest.$ac_ext
18248 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18249 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18250 if test $ac_cv_type_size_t = yes; then
18252 cat >>confdefs.h <<_ACEOF
18253 #define HAVE_SIZE_T 1
18254 _ACEOF
18260 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18261 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18262 if test "${ac_cv_type_mbstate_t+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
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 <wchar.h>
18275 main ()
18277 mbstate_t x; return sizeof x;
18279 return 0;
18281 _ACEOF
18282 rm -f conftest.$ac_objext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18284 (eval $ac_compile) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
18288 { ac_try='test -s conftest.$ac_objext'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_type_mbstate_t=yes
18295 else
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_cv_type_mbstate_t=no
18301 rm -f conftest.$ac_objext conftest.$ac_ext
18303 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18304 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18305 if test $ac_cv_type_mbstate_t = yes; then
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_MBSTATE_T 1
18309 _ACEOF
18311 else
18313 cat >>confdefs.h <<\_ACEOF
18314 #define mbstate_t int
18315 _ACEOF
18319 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18320 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18321 if test "${emacs_cv_c_restrict+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324 cat >conftest.$ac_ext <<_ACEOF
18325 #line $LINENO "configure"
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 void fred (int *restrict x);
18333 main ()
18337 return 0;
18339 _ACEOF
18340 rm -f conftest.$ac_objext
18341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18342 (eval $ac_compile) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 emacs_cv_c_restrict=yes
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 cat >conftest.$ac_ext <<_ACEOF
18358 #line $LINENO "configure"
18359 /* confdefs.h. */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 void fred (int *__restrict x);
18366 main ()
18370 return 0;
18372 _ACEOF
18373 rm -f conftest.$ac_objext
18374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18375 (eval $ac_compile) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
18379 { ac_try='test -s conftest.$ac_objext'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
18385 emacs_cv_c_restrict=__restrict
18386 else
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 emacs_cv_c_restrict=no
18392 rm -f conftest.$ac_objext conftest.$ac_ext
18394 rm -f conftest.$ac_objext conftest.$ac_ext
18396 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18397 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18398 case "$emacs_cv_c_restrict" in
18399 yes) emacs_restrict=restrict;;
18400 no) emacs_restrict="";;
18401 *) emacs_restrict="$emacs_cv_c_restrict";;
18402 esac
18403 if test "$emacs_restrict" != __restrict; then
18405 cat >>confdefs.h <<_ACEOF
18406 #define __restrict $emacs_restrict
18407 _ACEOF
18411 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18412 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18413 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416 cat >conftest.$ac_ext <<_ACEOF
18417 #line $LINENO "configure"
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 void fred (int x[__restrict]);
18425 main ()
18429 return 0;
18431 _ACEOF
18432 rm -f conftest.$ac_objext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434 (eval $ac_compile) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -s conftest.$ac_objext'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 emacs_cv_c_restrict_arr=yes
18445 else
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 emacs_cv_c_restrict_arr=no
18451 rm -f conftest.$ac_objext conftest.$ac_ext
18453 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18454 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18455 if test "$emacs_cv_c_restrict_arr" = yes; then
18457 cat >>confdefs.h <<\_ACEOF
18458 #define __restrict_arr __restrict
18459 _ACEOF
18465 # Set up the CFLAGS for real compilation, so we can substitute it.
18466 CFLAGS="$REAL_CFLAGS"
18467 CPPFLAGS="$REAL_CPPFLAGS"
18469 #### Find out which version of Emacs this is.
18470 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18471 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18472 if test x"${version}" = x; then
18473 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18474 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18475 { (exit 1); exit 1; }; }
18478 ### Specify what sort of things we'll be editing into Makefile and config.h.
18479 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18515 cat >>confdefs.h <<_ACEOF
18516 #define EMACS_CONFIGURATION "${canonical}"
18517 _ACEOF
18520 cat >>confdefs.h <<_ACEOF
18521 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18522 _ACEOF
18525 cat >>confdefs.h <<_ACEOF
18526 #define config_machfile "${machfile}"
18527 _ACEOF
18530 cat >>confdefs.h <<_ACEOF
18531 #define config_opsysfile "${opsysfile}"
18532 _ACEOF
18535 cat >>confdefs.h <<_ACEOF
18536 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18537 _ACEOF
18540 cat >>confdefs.h <<_ACEOF
18541 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18542 _ACEOF
18545 cat >>confdefs.h <<_ACEOF
18546 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18547 _ACEOF
18550 cat >>confdefs.h <<_ACEOF
18551 #define UNEXEC_SRC ${UNEXEC_SRC}
18552 _ACEOF
18555 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_X_WINDOWS 1
18559 _ACEOF
18562 if test "${USE_X_TOOLKIT}" != "none" ; then
18564 cat >>confdefs.h <<\_ACEOF
18565 #define USE_X_TOOLKIT 1
18566 _ACEOF
18569 if test "${HAVE_X11}" = "yes" ; then
18571 cat >>confdefs.h <<\_ACEOF
18572 #define HAVE_X11 1
18573 _ACEOF
18576 if test "${HAVE_XFREE386}" = "yes" ; then
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_XFREE386 1
18580 _ACEOF
18583 if test "${HAVE_MENUS}" = "yes" ; then
18585 cat >>confdefs.h <<\_ACEOF
18586 #define HAVE_MENUS 1
18587 _ACEOF
18590 if test "${GNU_MALLOC}" = "yes" ; then
18592 cat >>confdefs.h <<\_ACEOF
18593 #define GNU_MALLOC 1
18594 _ACEOF
18597 if test "${REL_ALLOC}" = "yes" ; then
18599 cat >>confdefs.h <<\_ACEOF
18600 #define REL_ALLOC 1
18601 _ACEOF
18609 #### Report on what we decided to do.
18610 #### Report GTK as a toolkit, even if it doesn't use Xt.
18611 #### It makes printing result more understandable as using GTK sets
18612 #### toolkit_scroll_bars to yes by default.
18613 if test "${HAVE_GTK}" = "yes"; then
18614 USE_X_TOOLKIT=GTK
18617 echo "
18618 Configured for \`${canonical}'.
18620 Where should the build process find the source code? ${srcdir}
18621 What operating system and machine description files should Emacs use?
18622 \`${opsysfile}' and \`${machfile}'
18623 What compiler should emacs be built with? ${CC} ${CFLAGS}
18624 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18625 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18626 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18627 What window system should Emacs use? ${window_system}
18628 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18630 if test -n "${x_includes}"; then
18631 echo " Where do we find X Windows header files? ${x_includes}"
18632 else
18633 echo " Where do we find X Windows header files? Standard dirs"
18635 if test -n "${x_libraries}"; then
18636 echo " Where do we find X Windows libraries? ${x_libraries}"
18637 else
18638 echo " Where do we find X Windows libraries? Standard dirs"
18641 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18642 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18643 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18644 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18645 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18646 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18647 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18648 echo
18650 # Remove any trailing slashes in these variables.
18651 test "${prefix}" != NONE &&
18652 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18653 test "${exec_prefix}" != NONE &&
18654 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18656 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18657 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18658 ## from Makefile.c can correctly provide the arg `-traditional' to the
18659 ## C preprocessor.
18661 cat >conftest.$ac_ext <<_ACEOF
18662 #line $LINENO "configure"
18663 /* confdefs.h. */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 yes..yes
18669 _ACEOF
18670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18671 $EGREP "yes..yes" >/dev/null 2>&1; then
18672 CPP_NEED_TRADITIONAL=no
18673 else
18674 CPP_NEED_TRADITIONAL=yes
18676 rm -f conftest*
18679 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"
18680 ac_config_commands="$ac_config_commands default"
18681 cat >confcache <<\_ACEOF
18682 # This file is a shell script that caches the results of configure
18683 # tests run on this system so they can be shared between configure
18684 # scripts and configure runs, see configure's option --config-cache.
18685 # It is not useful on other systems. If it contains results you don't
18686 # want to keep, you may remove or edit it.
18688 # config.status only pays attention to the cache file if you give it
18689 # the --recheck option to rerun configure.
18691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18693 # following values.
18695 _ACEOF
18697 # The following way of writing the cache mishandles newlines in values,
18698 # but we know of no workaround that is simple, portable, and efficient.
18699 # So, don't put newlines in cache variables' values.
18700 # Ultrix sh set writes to stderr and can't be redirected directly,
18701 # and sets the high bit in the cache file unless we assign to the vars.
18703 (set) 2>&1 |
18704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18705 *ac_space=\ *)
18706 # `set' does not quote correctly, so add quotes (double-quote
18707 # substitution turns \\\\ into \\, and sed turns \\ into \).
18708 sed -n \
18709 "s/'/'\\\\''/g;
18710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18713 # `set' quotes correctly as required by POSIX, so do not add quotes.
18714 sed -n \
18715 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18717 esac;
18719 sed '
18720 t clear
18721 : clear
18722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18723 t end
18724 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18725 : end' >>confcache
18726 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18727 if test -w $cache_file; then
18728 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18729 cat confcache >$cache_file
18730 else
18731 echo "not updating unwritable cache $cache_file"
18734 rm -f confcache
18736 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18737 # Let make expand exec_prefix.
18738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18740 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18741 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18742 # trailing colons and then remove the whole line if VPATH becomes empty
18743 # (actually we leave an empty line to preserve line numbers).
18744 if test "x$srcdir" = x.; then
18745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18746 s/:*\$(srcdir):*/:/;
18747 s/:*\${srcdir}:*/:/;
18748 s/:*@srcdir@:*/:/;
18749 s/^\([^=]*=[ ]*\):*/\1/;
18750 s/:*$//;
18751 s/^[^=]*=[ ]*$//;
18755 DEFS=-DHAVE_CONFIG_H
18757 ac_libobjs=
18758 ac_ltlibobjs=
18759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18760 # 1. Remove the extension, and $U if already installed.
18761 ac_i=`echo "$ac_i" |
18762 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18763 # 2. Add them.
18764 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18765 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18766 done
18767 LIBOBJS=$ac_libobjs
18769 LTLIBOBJS=$ac_ltlibobjs
18773 : ${CONFIG_STATUS=./config.status}
18774 ac_clean_files_save=$ac_clean_files
18775 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18776 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18777 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18778 cat >$CONFIG_STATUS <<_ACEOF
18779 #! $SHELL
18780 # Generated by $as_me.
18781 # Run this file to recreate the current configuration.
18782 # Compiler output produced by configure, useful for debugging
18783 # configure, is in config.log if it exists.
18785 debug=false
18786 ac_cs_recheck=false
18787 ac_cs_silent=false
18788 SHELL=\${CONFIG_SHELL-$SHELL}
18789 _ACEOF
18791 cat >>$CONFIG_STATUS <<\_ACEOF
18792 ## --------------------- ##
18793 ## M4sh Initialization. ##
18794 ## --------------------- ##
18796 # Be Bourne compatible
18797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18798 emulate sh
18799 NULLCMD=:
18800 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18801 # is contrary to our usage. Disable this feature.
18802 alias -g '${1+"$@"}'='"$@"'
18803 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18804 set -o posix
18807 # Support unset when possible.
18808 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18809 as_unset=unset
18810 else
18811 as_unset=false
18815 # Work around bugs in pre-3.0 UWIN ksh.
18816 $as_unset ENV MAIL MAILPATH
18817 PS1='$ '
18818 PS2='> '
18819 PS4='+ '
18821 # NLS nuisances.
18822 for as_var in \
18823 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18824 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18825 LC_TELEPHONE LC_TIME
18827 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18828 eval $as_var=C; export $as_var
18829 else
18830 $as_unset $as_var
18832 done
18834 # Required to use basename.
18835 if expr a : '\(a\)' >/dev/null 2>&1; then
18836 as_expr=expr
18837 else
18838 as_expr=false
18841 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18842 as_basename=basename
18843 else
18844 as_basename=false
18848 # Name of the executable.
18849 as_me=`$as_basename "$0" ||
18850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18851 X"$0" : 'X\(//\)$' \| \
18852 X"$0" : 'X\(/\)$' \| \
18853 . : '\(.\)' 2>/dev/null ||
18854 echo X/"$0" |
18855 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18856 /^X\/\(\/\/\)$/{ s//\1/; q; }
18857 /^X\/\(\/\).*/{ s//\1/; q; }
18858 s/.*/./; q'`
18861 # PATH needs CR, and LINENO needs CR and PATH.
18862 # Avoid depending upon Character Ranges.
18863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18866 as_cr_digits='0123456789'
18867 as_cr_alnum=$as_cr_Letters$as_cr_digits
18869 # The user is always right.
18870 if test "${PATH_SEPARATOR+set}" != set; then
18871 echo "#! /bin/sh" >conf$$.sh
18872 echo "exit 0" >>conf$$.sh
18873 chmod +x conf$$.sh
18874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18875 PATH_SEPARATOR=';'
18876 else
18877 PATH_SEPARATOR=:
18879 rm -f conf$$.sh
18883 as_lineno_1=$LINENO
18884 as_lineno_2=$LINENO
18885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18886 test "x$as_lineno_1" != "x$as_lineno_2" &&
18887 test "x$as_lineno_3" = "x$as_lineno_2" || {
18888 # Find who we are. Look in the path if we contain no path at all
18889 # relative or not.
18890 case $0 in
18891 *[\\/]* ) as_myself=$0 ;;
18892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18893 for as_dir in $PATH
18895 IFS=$as_save_IFS
18896 test -z "$as_dir" && as_dir=.
18897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18898 done
18901 esac
18902 # We did not find ourselves, most probably we were run as `sh COMMAND'
18903 # in which case we are not to be found in the path.
18904 if test "x$as_myself" = x; then
18905 as_myself=$0
18907 if test ! -f "$as_myself"; then
18908 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18909 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18910 { (exit 1); exit 1; }; }
18912 case $CONFIG_SHELL in
18914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18915 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18917 IFS=$as_save_IFS
18918 test -z "$as_dir" && as_dir=.
18919 for as_base in sh bash ksh sh5; do
18920 case $as_dir in
18922 if ("$as_dir/$as_base" -c '
18923 as_lineno_1=$LINENO
18924 as_lineno_2=$LINENO
18925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18926 test "x$as_lineno_1" != "x$as_lineno_2" &&
18927 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18928 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18929 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18930 CONFIG_SHELL=$as_dir/$as_base
18931 export CONFIG_SHELL
18932 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18933 fi;;
18934 esac
18935 done
18936 done
18938 esac
18940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18941 # uniformly replaced by the line number. The first 'sed' inserts a
18942 # line-number line before each line; the second 'sed' does the real
18943 # work. The second script uses 'N' to pair each line-number line
18944 # with the numbered line, and appends trailing '-' during
18945 # substitution so that $LINENO is not a special case at line end.
18946 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18947 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18948 sed '=' <$as_myself |
18949 sed '
18951 s,$,-,
18952 : loop
18953 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18954 t loop
18955 s,-$,,
18956 s,^['$as_cr_digits']*\n,,
18957 ' >$as_me.lineno &&
18958 chmod +x $as_me.lineno ||
18959 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18960 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18961 { (exit 1); exit 1; }; }
18963 # Don't try to exec as it changes $[0], causing all sort of problems
18964 # (the dirname of $[0] is not the place where we might find the
18965 # original and so on. Autoconf is especially sensible to this).
18966 . ./$as_me.lineno
18967 # Exit status is that of the last command.
18968 exit
18972 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18973 *c*,-n*) ECHO_N= ECHO_C='
18974 ' ECHO_T=' ' ;;
18975 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18976 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18977 esac
18979 if expr a : '\(a\)' >/dev/null 2>&1; then
18980 as_expr=expr
18981 else
18982 as_expr=false
18985 rm -f conf$$ conf$$.exe conf$$.file
18986 echo >conf$$.file
18987 if ln -s conf$$.file conf$$ 2>/dev/null; then
18988 # We could just check for DJGPP; but this test a) works b) is more generic
18989 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18990 if test -f conf$$.exe; then
18991 # Don't use ln at all; we don't have any links
18992 as_ln_s='cp -p'
18993 else
18994 as_ln_s='ln -s'
18996 elif ln conf$$.file conf$$ 2>/dev/null; then
18997 as_ln_s=ln
18998 else
18999 as_ln_s='cp -p'
19001 rm -f conf$$ conf$$.exe conf$$.file
19003 if mkdir -p . 2>/dev/null; then
19004 as_mkdir_p=:
19005 else
19006 as_mkdir_p=false
19009 as_executable_p="test -f"
19011 # Sed expression to map a string onto a valid CPP name.
19012 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19014 # Sed expression to map a string onto a valid variable name.
19015 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19018 # IFS
19019 # We need space, tab and new line, in precisely that order.
19020 as_nl='
19022 IFS=" $as_nl"
19024 # CDPATH.
19025 $as_unset CDPATH
19027 exec 6>&1
19029 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19030 # report actual input values of CONFIG_FILES etc. instead of their
19031 # values after options handling. Logging --version etc. is OK.
19032 exec 5>>config.log
19034 echo
19035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19036 ## Running $as_me. ##
19037 _ASBOX
19038 } >&5
19039 cat >&5 <<_CSEOF
19041 This file was extended by $as_me, which was
19042 generated by GNU Autoconf 2.57. Invocation command line was
19044 CONFIG_FILES = $CONFIG_FILES
19045 CONFIG_HEADERS = $CONFIG_HEADERS
19046 CONFIG_LINKS = $CONFIG_LINKS
19047 CONFIG_COMMANDS = $CONFIG_COMMANDS
19048 $ $0 $@
19050 _CSEOF
19051 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19052 echo >&5
19053 _ACEOF
19055 # Files that config.status was made for.
19056 if test -n "$ac_config_files"; then
19057 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19060 if test -n "$ac_config_headers"; then
19061 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19064 if test -n "$ac_config_links"; then
19065 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19068 if test -n "$ac_config_commands"; then
19069 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19072 cat >>$CONFIG_STATUS <<\_ACEOF
19074 ac_cs_usage="\
19075 \`$as_me' instantiates files from templates according to the
19076 current configuration.
19078 Usage: $0 [OPTIONS] [FILE]...
19080 -h, --help print this help, then exit
19081 -V, --version print version number, then exit
19082 -q, --quiet do not print progress messages
19083 -d, --debug don't remove temporary files
19084 --recheck update $as_me by reconfiguring in the same conditions
19085 --file=FILE[:TEMPLATE]
19086 instantiate the configuration file FILE
19087 --header=FILE[:TEMPLATE]
19088 instantiate the configuration header FILE
19090 Configuration files:
19091 $config_files
19093 Configuration headers:
19094 $config_headers
19096 Configuration commands:
19097 $config_commands
19099 Report bugs to <bug-autoconf@gnu.org>."
19100 _ACEOF
19102 cat >>$CONFIG_STATUS <<_ACEOF
19103 ac_cs_version="\\
19104 config.status
19105 configured by $0, generated by GNU Autoconf 2.57,
19106 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19108 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19109 Free Software Foundation, Inc.
19110 This config.status script is free software; the Free Software Foundation
19111 gives unlimited permission to copy, distribute and modify it."
19112 srcdir=$srcdir
19113 INSTALL="$INSTALL"
19114 _ACEOF
19116 cat >>$CONFIG_STATUS <<\_ACEOF
19117 # If no file are specified by the user, then we need to provide default
19118 # value. By we need to know if files were specified by the user.
19119 ac_need_defaults=:
19120 while test $# != 0
19122 case $1 in
19123 --*=*)
19124 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19125 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19126 ac_shift=:
19129 ac_option=$1
19130 ac_optarg=$2
19131 ac_shift=shift
19133 *) # This is not an option, so the user has probably given explicit
19134 # arguments.
19135 ac_option=$1
19136 ac_need_defaults=false;;
19137 esac
19139 case $ac_option in
19140 # Handling of the options.
19141 _ACEOF
19142 cat >>$CONFIG_STATUS <<\_ACEOF
19143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19144 ac_cs_recheck=: ;;
19145 --version | --vers* | -V )
19146 echo "$ac_cs_version"; exit 0 ;;
19147 --he | --h)
19148 # Conflict between --help and --header
19149 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19150 Try \`$0 --help' for more information." >&5
19151 echo "$as_me: error: ambiguous option: $1
19152 Try \`$0 --help' for more information." >&2;}
19153 { (exit 1); exit 1; }; };;
19154 --help | --hel | -h )
19155 echo "$ac_cs_usage"; exit 0 ;;
19156 --debug | --d* | -d )
19157 debug=: ;;
19158 --file | --fil | --fi | --f )
19159 $ac_shift
19160 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19161 ac_need_defaults=false;;
19162 --header | --heade | --head | --hea )
19163 $ac_shift
19164 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19165 ac_need_defaults=false;;
19166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19167 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19168 ac_cs_silent=: ;;
19170 # This is an error.
19171 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19172 Try \`$0 --help' for more information." >&5
19173 echo "$as_me: error: unrecognized option: $1
19174 Try \`$0 --help' for more information." >&2;}
19175 { (exit 1); exit 1; }; } ;;
19177 *) ac_config_targets="$ac_config_targets $1" ;;
19179 esac
19180 shift
19181 done
19183 ac_configure_extra_args=
19185 if $ac_cs_silent; then
19186 exec 6>/dev/null
19187 ac_configure_extra_args="$ac_configure_extra_args --silent"
19190 _ACEOF
19191 cat >>$CONFIG_STATUS <<_ACEOF
19192 if \$ac_cs_recheck; then
19193 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19194 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19197 _ACEOF
19199 cat >>$CONFIG_STATUS <<_ACEOF
19201 # INIT-COMMANDS section.
19204 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19206 _ACEOF
19210 cat >>$CONFIG_STATUS <<\_ACEOF
19211 for ac_config_target in $ac_config_targets
19213 case "$ac_config_target" in
19214 # Handling of arguments.
19215 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19216 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19217 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
19218 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19219 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
19220 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19221 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
19222 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
19223 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
19224 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
19225 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19226 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19229 { (exit 1); exit 1; }; };;
19230 esac
19231 done
19233 # If the user did not use the arguments to specify the items to instantiate,
19234 # then the envvar interface is used. Set only those that are not.
19235 # We use the long form for the default assignment because of an extremely
19236 # bizarre bug on SunOS 4.1.3.
19237 if $ac_need_defaults; then
19238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19243 # Have a temporary directory for convenience. Make it in the build tree
19244 # simply because there is no reason to put it here, and in addition,
19245 # creating and moving files from /tmp can sometimes cause problems.
19246 # Create a temporary directory, and hook for its removal unless debugging.
19247 $debug ||
19249 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19250 trap '{ (exit 1); exit 1; }' 1 2 13 15
19253 # Create a (secure) tmp directory for tmp files.
19256 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19257 test -n "$tmp" && test -d "$tmp"
19258 } ||
19260 tmp=./confstat$$-$RANDOM
19261 (umask 077 && mkdir $tmp)
19262 } ||
19264 echo "$me: cannot create a temporary directory in ." >&2
19265 { (exit 1); exit 1; }
19268 _ACEOF
19270 cat >>$CONFIG_STATUS <<_ACEOF
19273 # CONFIG_FILES section.
19276 # No need to generate the scripts if there are no CONFIG_FILES.
19277 # This happens for instance when ./config.status config.h
19278 if test -n "\$CONFIG_FILES"; then
19279 # Protect against being on the right side of a sed subst in config.status.
19280 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19281 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19282 s,@SHELL@,$SHELL,;t t
19283 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19284 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19285 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19286 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19287 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19288 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19289 s,@exec_prefix@,$exec_prefix,;t t
19290 s,@prefix@,$prefix,;t t
19291 s,@program_transform_name@,$program_transform_name,;t t
19292 s,@bindir@,$bindir,;t t
19293 s,@sbindir@,$sbindir,;t t
19294 s,@libexecdir@,$libexecdir,;t t
19295 s,@datadir@,$datadir,;t t
19296 s,@sysconfdir@,$sysconfdir,;t t
19297 s,@sharedstatedir@,$sharedstatedir,;t t
19298 s,@localstatedir@,$localstatedir,;t t
19299 s,@libdir@,$libdir,;t t
19300 s,@includedir@,$includedir,;t t
19301 s,@oldincludedir@,$oldincludedir,;t t
19302 s,@infodir@,$infodir,;t t
19303 s,@mandir@,$mandir,;t t
19304 s,@build_alias@,$build_alias,;t t
19305 s,@host_alias@,$host_alias,;t t
19306 s,@target_alias@,$target_alias,;t t
19307 s,@DEFS@,$DEFS,;t t
19308 s,@ECHO_C@,$ECHO_C,;t t
19309 s,@ECHO_N@,$ECHO_N,;t t
19310 s,@ECHO_T@,$ECHO_T,;t t
19311 s,@LIBS@,$LIBS,;t t
19312 s,@MAINT@,$MAINT,;t t
19313 s,@build@,$build,;t t
19314 s,@build_cpu@,$build_cpu,;t t
19315 s,@build_vendor@,$build_vendor,;t t
19316 s,@build_os@,$build_os,;t t
19317 s,@host@,$host,;t t
19318 s,@host_cpu@,$host_cpu,;t t
19319 s,@host_vendor@,$host_vendor,;t t
19320 s,@host_os@,$host_os,;t t
19321 s,@CC@,$CC,;t t
19322 s,@CFLAGS@,$CFLAGS,;t t
19323 s,@LDFLAGS@,$LDFLAGS,;t t
19324 s,@CPPFLAGS@,$CPPFLAGS,;t t
19325 s,@ac_ct_CC@,$ac_ct_CC,;t t
19326 s,@EXEEXT@,$EXEEXT,;t t
19327 s,@OBJEXT@,$OBJEXT,;t t
19328 s,@LN_S@,$LN_S,;t t
19329 s,@CPP@,$CPP,;t t
19330 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19331 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19332 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19333 s,@RANLIB@,$RANLIB,;t t
19334 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19335 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19336 s,@EGREP@,$EGREP,;t t
19337 s,@LIBSOUND@,$LIBSOUND,;t t
19338 s,@SET_MAKE@,$SET_MAKE,;t t
19339 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19340 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19341 s,@GTK_LIBS@,$GTK_LIBS,;t t
19342 s,@ALLOCA@,$ALLOCA,;t t
19343 s,@liblockfile@,$liblockfile,;t t
19344 s,@LIBOBJS@,$LIBOBJS,;t t
19345 s,@NEED_SETGID@,$NEED_SETGID,;t t
19346 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19347 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19348 s,@version@,$version,;t t
19349 s,@configuration@,$configuration,;t t
19350 s,@canonical@,$canonical,;t t
19351 s,@srcdir@,$srcdir,;t t
19352 s,@lispdir@,$lispdir,;t t
19353 s,@locallisppath@,$locallisppath,;t t
19354 s,@lisppath@,$lisppath,;t t
19355 s,@x_default_search_path@,$x_default_search_path,;t t
19356 s,@etcdir@,$etcdir,;t t
19357 s,@archlibdir@,$archlibdir,;t t
19358 s,@docdir@,$docdir,;t t
19359 s,@bitmapdir@,$bitmapdir,;t t
19360 s,@gamedir@,$gamedir,;t t
19361 s,@gameuser@,$gameuser,;t t
19362 s,@c_switch_system@,$c_switch_system,;t t
19363 s,@c_switch_machine@,$c_switch_machine,;t t
19364 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19365 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19366 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19367 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19368 s,@machfile@,$machfile,;t t
19369 s,@opsysfile@,$opsysfile,;t t
19370 s,@carbon_appdir@,$carbon_appdir,;t t
19371 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19372 CEOF
19374 _ACEOF
19376 cat >>$CONFIG_STATUS <<\_ACEOF
19377 # Split the substitutions into bite-sized pieces for seds with
19378 # small command number limits, like on Digital OSF/1 and HP-UX.
19379 ac_max_sed_lines=48
19380 ac_sed_frag=1 # Number of current file.
19381 ac_beg=1 # First line for current file.
19382 ac_end=$ac_max_sed_lines # Line after last line for current file.
19383 ac_more_lines=:
19384 ac_sed_cmds=
19385 while $ac_more_lines; do
19386 if test $ac_beg -gt 1; then
19387 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19388 else
19389 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19391 if test ! -s $tmp/subs.frag; then
19392 ac_more_lines=false
19393 else
19394 # The purpose of the label and of the branching condition is to
19395 # speed up the sed processing (if there are no `@' at all, there
19396 # is no need to browse any of the substitutions).
19397 # These are the two extra sed commands mentioned above.
19398 (echo ':t
19399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19400 if test -z "$ac_sed_cmds"; then
19401 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19402 else
19403 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19405 ac_sed_frag=`expr $ac_sed_frag + 1`
19406 ac_beg=$ac_end
19407 ac_end=`expr $ac_end + $ac_max_sed_lines`
19409 done
19410 if test -z "$ac_sed_cmds"; then
19411 ac_sed_cmds=cat
19413 fi # test -n "$CONFIG_FILES"
19415 _ACEOF
19416 cat >>$CONFIG_STATUS <<\_ACEOF
19417 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19419 case $ac_file in
19420 - | *:- | *:-:* ) # input from stdin
19421 cat >$tmp/stdin
19422 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19424 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19426 * ) ac_file_in=$ac_file.in ;;
19427 esac
19429 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19430 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19432 X"$ac_file" : 'X\(//\)[^/]' \| \
19433 X"$ac_file" : 'X\(//\)$' \| \
19434 X"$ac_file" : 'X\(/\)' \| \
19435 . : '\(.\)' 2>/dev/null ||
19436 echo X"$ac_file" |
19437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19439 /^X\(\/\/\)$/{ s//\1/; q; }
19440 /^X\(\/\).*/{ s//\1/; q; }
19441 s/.*/./; q'`
19442 { if $as_mkdir_p; then
19443 mkdir -p "$ac_dir"
19444 else
19445 as_dir="$ac_dir"
19446 as_dirs=
19447 while test ! -d "$as_dir"; do
19448 as_dirs="$as_dir $as_dirs"
19449 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19451 X"$as_dir" : 'X\(//\)[^/]' \| \
19452 X"$as_dir" : 'X\(//\)$' \| \
19453 X"$as_dir" : 'X\(/\)' \| \
19454 . : '\(.\)' 2>/dev/null ||
19455 echo X"$as_dir" |
19456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19458 /^X\(\/\/\)$/{ s//\1/; q; }
19459 /^X\(\/\).*/{ s//\1/; q; }
19460 s/.*/./; q'`
19461 done
19462 test ! -n "$as_dirs" || mkdir $as_dirs
19463 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19464 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19465 { (exit 1); exit 1; }; }; }
19467 ac_builddir=.
19469 if test "$ac_dir" != .; then
19470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19471 # A "../" for each directory in $ac_dir_suffix.
19472 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19473 else
19474 ac_dir_suffix= ac_top_builddir=
19477 case $srcdir in
19478 .) # No --srcdir option. We are building in place.
19479 ac_srcdir=.
19480 if test -z "$ac_top_builddir"; then
19481 ac_top_srcdir=.
19482 else
19483 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19484 fi ;;
19485 [\\/]* | ?:[\\/]* ) # Absolute path.
19486 ac_srcdir=$srcdir$ac_dir_suffix;
19487 ac_top_srcdir=$srcdir ;;
19488 *) # Relative path.
19489 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19490 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19491 esac
19492 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19493 # absolute.
19494 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19495 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19496 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19497 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19500 case $INSTALL in
19501 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19502 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19503 esac
19505 if test x"$ac_file" != x-; then
19506 { echo "$as_me:$LINENO: creating $ac_file" >&5
19507 echo "$as_me: creating $ac_file" >&6;}
19508 rm -f "$ac_file"
19510 # Let's still pretend it is `configure' which instantiates (i.e., don't
19511 # use $as_me), people would be surprised to read:
19512 # /* config.h. Generated by config.status. */
19513 if test x"$ac_file" = x-; then
19514 configure_input=
19515 else
19516 configure_input="$ac_file. "
19518 configure_input=$configure_input"Generated from `echo $ac_file_in |
19519 sed 's,.*/,,'` by configure."
19521 # First look for the input files in the build tree, otherwise in the
19522 # src tree.
19523 ac_file_inputs=`IFS=:
19524 for f in $ac_file_in; do
19525 case $f in
19526 -) echo $tmp/stdin ;;
19527 [\\/$]*)
19528 # Absolute (can't be DOS-style, as IFS=:)
19529 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19530 echo "$as_me: error: cannot find input file: $f" >&2;}
19531 { (exit 1); exit 1; }; }
19532 echo $f;;
19533 *) # Relative
19534 if test -f "$f"; then
19535 # Build tree
19536 echo $f
19537 elif test -f "$srcdir/$f"; then
19538 # Source tree
19539 echo $srcdir/$f
19540 else
19541 # /dev/null tree
19542 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19543 echo "$as_me: error: cannot find input file: $f" >&2;}
19544 { (exit 1); exit 1; }; }
19545 fi;;
19546 esac
19547 done` || { (exit 1); exit 1; }
19548 _ACEOF
19549 cat >>$CONFIG_STATUS <<_ACEOF
19550 sed "$ac_vpsub
19551 $extrasub
19552 _ACEOF
19553 cat >>$CONFIG_STATUS <<\_ACEOF
19555 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19556 s,@configure_input@,$configure_input,;t t
19557 s,@srcdir@,$ac_srcdir,;t t
19558 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19559 s,@top_srcdir@,$ac_top_srcdir,;t t
19560 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19561 s,@builddir@,$ac_builddir,;t t
19562 s,@abs_builddir@,$ac_abs_builddir,;t t
19563 s,@top_builddir@,$ac_top_builddir,;t t
19564 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19565 s,@INSTALL@,$ac_INSTALL,;t t
19566 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19567 rm -f $tmp/stdin
19568 if test x"$ac_file" != x-; then
19569 mv $tmp/out $ac_file
19570 else
19571 cat $tmp/out
19572 rm -f $tmp/out
19575 done
19576 _ACEOF
19577 cat >>$CONFIG_STATUS <<\_ACEOF
19580 # CONFIG_HEADER section.
19583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19586 # ac_d sets the value in "#define NAME VALUE" lines.
19587 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19588 ac_dB='[ ].*$,\1#\2'
19589 ac_dC=' '
19590 ac_dD=',;t'
19591 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19592 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19593 ac_uB='$,\1#\2define\3'
19594 ac_uC=' '
19595 ac_uD=',;t'
19597 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19599 case $ac_file in
19600 - | *:- | *:-:* ) # input from stdin
19601 cat >$tmp/stdin
19602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19606 * ) ac_file_in=$ac_file.in ;;
19607 esac
19609 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19610 echo "$as_me: creating $ac_file" >&6;}
19612 # First look for the input files in the build tree, otherwise in the
19613 # src tree.
19614 ac_file_inputs=`IFS=:
19615 for f in $ac_file_in; do
19616 case $f in
19617 -) echo $tmp/stdin ;;
19618 [\\/$]*)
19619 # Absolute (can't be DOS-style, as IFS=:)
19620 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19621 echo "$as_me: error: cannot find input file: $f" >&2;}
19622 { (exit 1); exit 1; }; }
19623 echo $f;;
19624 *) # Relative
19625 if test -f "$f"; then
19626 # Build tree
19627 echo $f
19628 elif test -f "$srcdir/$f"; then
19629 # Source tree
19630 echo $srcdir/$f
19631 else
19632 # /dev/null tree
19633 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19634 echo "$as_me: error: cannot find input file: $f" >&2;}
19635 { (exit 1); exit 1; }; }
19636 fi;;
19637 esac
19638 done` || { (exit 1); exit 1; }
19639 # Remove the trailing spaces.
19640 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19642 _ACEOF
19644 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19645 # `conftest.undefs', that substitutes the proper values into
19646 # config.h.in to produce config.h. The first handles `#define'
19647 # templates, and the second `#undef' templates.
19648 # And first: Protect against being on the right side of a sed subst in
19649 # config.status. Protect against being in an unquoted here document
19650 # in config.status.
19651 rm -f conftest.defines conftest.undefs
19652 # Using a here document instead of a string reduces the quoting nightmare.
19653 # Putting comments in sed scripts is not portable.
19655 # `end' is used to avoid that the second main sed command (meant for
19656 # 0-ary CPP macros) applies to n-ary macro definitions.
19657 # See the Autoconf documentation for `clear'.
19658 cat >confdef2sed.sed <<\_ACEOF
19659 s/[\\&,]/\\&/g
19660 s,[\\$`],\\&,g
19661 t clear
19662 : clear
19663 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19664 t end
19665 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19666 : end
19667 _ACEOF
19668 # If some macros were called several times there might be several times
19669 # the same #defines, which is useless. Nevertheless, we may not want to
19670 # sort them, since we want the *last* AC-DEFINE to be honored.
19671 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19672 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19673 rm -f confdef2sed.sed
19675 # This sed command replaces #undef with comments. This is necessary, for
19676 # example, in the case of _POSIX_SOURCE, which is predefined and required
19677 # on some systems where configure will not decide to define it.
19678 cat >>conftest.undefs <<\_ACEOF
19679 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19680 _ACEOF
19682 # Break up conftest.defines because some shells have a limit on the size
19683 # of here documents, and old seds have small limits too (100 cmds).
19684 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19685 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19686 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19687 echo ' :' >>$CONFIG_STATUS
19688 rm -f conftest.tail
19689 while grep . conftest.defines >/dev/null
19691 # Write a limited-size here document to $tmp/defines.sed.
19692 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19693 # Speed up: don't consider the non `#define' lines.
19694 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19695 # Work around the forget-to-reset-the-flag bug.
19696 echo 't clr' >>$CONFIG_STATUS
19697 echo ': clr' >>$CONFIG_STATUS
19698 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19699 echo 'CEOF
19700 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19701 rm -f $tmp/in
19702 mv $tmp/out $tmp/in
19703 ' >>$CONFIG_STATUS
19704 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19705 rm -f conftest.defines
19706 mv conftest.tail conftest.defines
19707 done
19708 rm -f conftest.defines
19709 echo ' fi # grep' >>$CONFIG_STATUS
19710 echo >>$CONFIG_STATUS
19712 # Break up conftest.undefs because some shells have a limit on the size
19713 # of here documents, and old seds have small limits too (100 cmds).
19714 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19715 rm -f conftest.tail
19716 while grep . conftest.undefs >/dev/null
19718 # Write a limited-size here document to $tmp/undefs.sed.
19719 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19720 # Speed up: don't consider the non `#undef'
19721 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19722 # Work around the forget-to-reset-the-flag bug.
19723 echo 't clr' >>$CONFIG_STATUS
19724 echo ': clr' >>$CONFIG_STATUS
19725 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19726 echo 'CEOF
19727 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19728 rm -f $tmp/in
19729 mv $tmp/out $tmp/in
19730 ' >>$CONFIG_STATUS
19731 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19732 rm -f conftest.undefs
19733 mv conftest.tail conftest.undefs
19734 done
19735 rm -f conftest.undefs
19737 cat >>$CONFIG_STATUS <<\_ACEOF
19738 # Let's still pretend it is `configure' which instantiates (i.e., don't
19739 # use $as_me), people would be surprised to read:
19740 # /* config.h. Generated by config.status. */
19741 if test x"$ac_file" = x-; then
19742 echo "/* Generated by configure. */" >$tmp/config.h
19743 else
19744 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19746 cat $tmp/in >>$tmp/config.h
19747 rm -f $tmp/in
19748 if test x"$ac_file" != x-; then
19749 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19750 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19751 echo "$as_me: $ac_file is unchanged" >&6;}
19752 else
19753 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19755 X"$ac_file" : 'X\(//\)[^/]' \| \
19756 X"$ac_file" : 'X\(//\)$' \| \
19757 X"$ac_file" : 'X\(/\)' \| \
19758 . : '\(.\)' 2>/dev/null ||
19759 echo X"$ac_file" |
19760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19762 /^X\(\/\/\)$/{ s//\1/; q; }
19763 /^X\(\/\).*/{ s//\1/; q; }
19764 s/.*/./; q'`
19765 { if $as_mkdir_p; then
19766 mkdir -p "$ac_dir"
19767 else
19768 as_dir="$ac_dir"
19769 as_dirs=
19770 while test ! -d "$as_dir"; do
19771 as_dirs="$as_dir $as_dirs"
19772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19774 X"$as_dir" : 'X\(//\)[^/]' \| \
19775 X"$as_dir" : 'X\(//\)$' \| \
19776 X"$as_dir" : 'X\(/\)' \| \
19777 . : '\(.\)' 2>/dev/null ||
19778 echo X"$as_dir" |
19779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19781 /^X\(\/\/\)$/{ s//\1/; q; }
19782 /^X\(\/\).*/{ s//\1/; q; }
19783 s/.*/./; q'`
19784 done
19785 test ! -n "$as_dirs" || mkdir $as_dirs
19786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19788 { (exit 1); exit 1; }; }; }
19790 rm -f $ac_file
19791 mv $tmp/config.h $ac_file
19793 else
19794 cat $tmp/config.h
19795 rm -f $tmp/config.h
19797 done
19798 _ACEOF
19799 cat >>$CONFIG_STATUS <<\_ACEOF
19802 # CONFIG_COMMANDS section.
19804 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19805 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19806 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19807 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19808 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19809 X"$ac_dest" : 'X\(//\)[^/]' \| \
19810 X"$ac_dest" : 'X\(//\)$' \| \
19811 X"$ac_dest" : 'X\(/\)' \| \
19812 . : '\(.\)' 2>/dev/null ||
19813 echo X"$ac_dest" |
19814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19816 /^X\(\/\/\)$/{ s//\1/; q; }
19817 /^X\(\/\).*/{ s//\1/; q; }
19818 s/.*/./; q'`
19819 ac_builddir=.
19821 if test "$ac_dir" != .; then
19822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19823 # A "../" for each directory in $ac_dir_suffix.
19824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19825 else
19826 ac_dir_suffix= ac_top_builddir=
19829 case $srcdir in
19830 .) # No --srcdir option. We are building in place.
19831 ac_srcdir=.
19832 if test -z "$ac_top_builddir"; then
19833 ac_top_srcdir=.
19834 else
19835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19836 fi ;;
19837 [\\/]* | ?:[\\/]* ) # Absolute path.
19838 ac_srcdir=$srcdir$ac_dir_suffix;
19839 ac_top_srcdir=$srcdir ;;
19840 *) # Relative path.
19841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19843 esac
19844 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19845 # absolute.
19846 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19847 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19848 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19849 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19852 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19853 echo "$as_me: executing $ac_dest commands" >&6;}
19854 case $ac_dest in
19855 default )
19857 ### Make the necessary directories, if they don't exist.
19858 for dir in etc lisp ; do
19859 test -d ${dir} || mkdir ${dir}
19860 done
19862 # Build src/Makefile from ${srcdir}/src/Makefile.c
19863 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19864 # This must be done after src/config.h is built, since we rely on that file.
19866 # Now get this: Some word that is part of the ${srcdir} directory name
19867 # or the ${configuration} value might, just might, happen to be an
19868 # identifier like `sun4' or `i386' or something, and be predefined by
19869 # the C preprocessor to some helpful value like 1, or maybe the empty
19870 # string. Needless to say consequent macro substitutions are less
19871 # than conducive to the makefile finding the correct directory.
19872 undefs="`echo $top_srcdir $configuration $canonical |
19873 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19874 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19877 echo creating src/epaths.h
19878 ${MAKE-make} epaths-force
19880 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19881 # `..' to `. .' unless invoked with -traditional
19883 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19884 CPPFLAGS="$CPPFLAGS -traditional"
19887 echo creating lib-src/Makefile
19888 ( cd lib-src
19889 rm -f junk.c junk1.c junk2.c
19890 sed -e '/start of cpp stuff/q' \
19891 < Makefile.c > junk1.c
19892 sed -e '1,/start of cpp stuff/d'\
19893 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19894 < Makefile.c > junk.c
19895 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19896 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19897 cat junk1.c junk2.c > Makefile.new
19898 rm -f junk.c junk1.c junk2.c
19899 chmod 444 Makefile.new
19900 mv -f Makefile.new Makefile
19903 echo creating src/Makefile
19904 ( cd src
19905 rm -f junk.c junk1.c junk2.c
19906 sed -e '/start of cpp stuff/q' \
19907 < Makefile.c > junk1.c
19908 sed -e '1,/start of cpp stuff/d'\
19909 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19910 < Makefile.c > junk.c
19911 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19912 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19913 cat junk1.c junk2.c > Makefile.new
19914 rm -f junk.c junk1.c junk2.c
19915 chmod 444 Makefile.new
19916 mv -f Makefile.new Makefile
19919 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19920 echo creating src/.gdbinit
19921 echo source $srcdir/src/.gdbinit > src/.gdbinit
19924 # This is how we know whether to re-run configure in certain cases.
19925 touch src/config.stamp
19928 esac
19929 done
19930 _ACEOF
19932 cat >>$CONFIG_STATUS <<\_ACEOF
19934 { (exit 0); exit 0; }
19935 _ACEOF
19936 chmod +x $CONFIG_STATUS
19937 ac_clean_files=$ac_clean_files_save
19940 # configure is writing to config.log, and then calls config.status.
19941 # config.status does its own redirection, appending to config.log.
19942 # Unfortunately, on DOS this fails, as config.log is still kept open
19943 # by configure, so config.status won't be able to write to it; its
19944 # output is simply discarded. So we exec the FD to /dev/null,
19945 # effectively closing config.log, so it can be properly (re)opened and
19946 # appended to by config.status. When coming back to configure, we
19947 # need to make the FD available again.
19948 if test "$no_create" != yes; then
19949 ac_cs_success=:
19950 ac_config_status_args=
19951 test "$silent" = yes &&
19952 ac_config_status_args="$ac_config_status_args --quiet"
19953 exec 5>/dev/null
19954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19955 exec 5>>config.log
19956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19957 # would make configure fail if this is the last instruction.
19958 $ac_cs_success || { (exit 1); exit 1; }