(choose-completion-string): Use `minibufferp';
[emacs.git] / configure
blob9ac8f83b99bdf82f7d6440ba7016ad12049a210c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57a.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
23 # Support unset when possible.
24 if (as_foo=foo; unset as_foo) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
48 done
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
89 chmod +x conf$$.sh
90 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
95 rm -f conf$$.sh
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
153 esac
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
164 sed '
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
172 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
181 # Exit status is that of the last command.
182 exit
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194 as_expr=expr
195 else
196 as_expr=false
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
206 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212 else
213 as_ln_s='cp -p'
215 rm -f conf$$ conf$$.exe conf$$.file
217 if mkdir -p . 2>/dev/null; then
218 as_mkdir_p=:
219 else
220 as_mkdir_p=false
223 as_executable_p="test -f"
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
236 IFS=" $as_nl"
238 # CDPATH.
239 $as_unset CDPATH
242 # Name of the host.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247 exec 6>&1
250 # Initializations.
252 ac_default_prefix=/usr/local
253 ac_config_libobj_dir=.
254 cross_compiling=no
255 subdirs=
256 MFLAGS=
257 MAKEFLAGS=
258 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Maximum number of lines to put in a shell here document.
261 # This variable seems obsolete. It should probably be removed, and
262 # only ac_max_sed_lines should be used.
263 : ${ac_max_here_lines=38}
265 # Identity of this package.
266 PACKAGE_NAME=
267 PACKAGE_TARNAME=
268 PACKAGE_VERSION=
269 PACKAGE_STRING=
270 PACKAGE_BUGREPORT=
272 ac_unique_file="src/lisp.h"
273 ac_config_libobj_dir=src
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 X features:
839 --x-includes=DIR X include files are in DIR
840 --x-libraries=DIR X library files are in DIR
842 System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 _ACEOF
848 if test -n "$ac_init_help"; then
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-carbon-app[=DIR] [DIR=/Application]
856 specify install directory for Emacs.app on Mac OS X
857 --enable-maintainer-mode enable make rules and dependencies not useful
858 (and sometimes confusing) to the casual installer
859 --disable-largefile omit support for large files
861 Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --without-gcc don't use GCC to compile Emacs if GCC is found
865 --without-pop don't support POP mail retrieval with movemail
866 --with-kerberos support Kerberos-authenticated POP
867 --with-kerberos5 support Kerberos version 5 authenticated POP
868 --with-hesiod support Hesiod to get the POP server host
869 --without-sound don't compile with sound support
870 --with-x-toolkit=KIT use an X toolkit
871 (KIT = yes/lucid/athena/motif/gtk/no)
872 --with-xpm use -lXpm for displaying XPM images
873 --with-jpeg use -ljpeg for displaying JPEG images
874 --with-tiff use -ltiff for displaying TIFF images
875 --with-gif use -lungif for displaying GIF images
876 --with-png use -lpng for displaying PNG images
877 --with-gtk use GTK (same as --with-x-toolkit=gtk)
878 --with-pkg-config-prog Path to pkg-config to use for finding GTK
879 --without-toolkit-scroll-bars
880 don't use Motif or Xaw3d scroll bars
881 --without-xim don't use X11 XIM
882 --without-carbon don't use Carbon GUI on Mac OS X
883 --with-x use the X Window System
885 Some influential environment variables:
886 CC C compiler command
887 CFLAGS C compiler flags
888 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889 nonstandard directory <lib dir>
890 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891 headers in a nonstandard directory <include dir>
892 CPP C preprocessor
894 Use these variables to override the choices made by `configure' or to help
895 it to find libraries and programs with nonstandard names/locations.
897 _ACEOF
900 if test "$ac_init_help" = "recursive"; then
901 # If there are subdirs, report their specific --help.
902 ac_popdir=`pwd`
903 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904 test -d $ac_dir || continue
905 ac_builddir=.
907 if test "$ac_dir" != .; then
908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909 # A "../" for each directory in $ac_dir_suffix.
910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 else
912 ac_dir_suffix= ac_top_builddir=
915 case $srcdir in
916 .) # No --srcdir option. We are building in place.
917 ac_srcdir=.
918 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=.
920 else
921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 fi ;;
923 [\\/]* | ?:[\\/]* ) # Absolute path.
924 ac_srcdir=$srcdir$ac_dir_suffix;
925 ac_top_srcdir=$srcdir ;;
926 *) # Relative path.
927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 esac
930 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 # absolute.
932 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
933 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
934 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
935 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 cd $ac_dir
938 # Check for guested configure; otherwise get Cygnus style configure.
939 if test -f $ac_srcdir/configure.gnu; then
940 echo
941 $SHELL $ac_srcdir/configure.gnu --help=recursive
942 elif test -f $ac_srcdir/configure; then
943 echo
944 $SHELL $ac_srcdir/configure --help=recursive
945 elif test -f $ac_srcdir/configure.ac ||
946 test -f $ac_srcdir/configure.in; then
947 echo
948 $ac_configure --help
949 else
950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 cd $ac_popdir
953 done
956 test -n "$ac_init_help" && exit 0
957 if $ac_init_version; then
958 cat <<\_ACEOF
960 Copyright (C) 2003 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57a. Invocation command line was
974 $ $0 $@
976 _ACEOF
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 _ASUNAME
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1010 } >&5
1012 cat >&5 <<_ACEOF
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1019 _ACEOF
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1034 for ac_arg
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1081 echo
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 esac;
1104 echo
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1205 done
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it if useless.
1309 cat <<\_ACEOF >conftest.sed
1310 s/[\\$]/&&/g;s/;s,x,x,$//
1311 _ACEOF
1312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313 rm conftest.sed
1316 lispdir='${datadir}/emacs/${version}/lisp'
1317 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath='${locallisppath}:${lispdir}'
1320 etcdir='${datadir}/emacs/${version}/etc'
1321 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir='${datadir}/emacs/${version}/etc'
1323 gamedir='${localstatedir}/games/emacs'
1325 gameuser=games
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339 #define MAIL_USE_POP 1
1340 _ACEOF
1342 else :
1344 else
1345 cat >>confdefs.h <<\_ACEOF
1346 #define MAIL_USE_POP 1
1347 _ACEOF
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356 #define KERBEROS 1
1357 _ACEOF
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369 #define KERBEROS 1
1370 _ACEOF
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1385 cat >>confdefs.h <<\_ACEOF
1386 #define HESIOD 1
1387 _ACEOF
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1418 esac
1419 with_x_toolkit=$val
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1449 withval="$with_png"
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1488 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1489 if test "${enable_maintainer_mode+set}" = set; then
1490 enableval="$enable_maintainer_mode"
1491 USE_MAINTAINER_MODE=$enableval
1492 else
1493 USE_MAINTAINER_MODE=no
1495 if test $USE_MAINTAINER_MODE = yes; then
1496 MAINT=
1497 else
1498 MAINT=#
1502 #### Make srcdir absolute, if it isn't already. It's important to
1503 #### avoid running the path through pwd unnecessarily, since pwd can
1504 #### give you automounter prefixes, which can go away. We do all this
1505 #### so Emacs can find its files when run uninstalled.
1506 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1507 unset CDPATH
1508 case "${srcdir}" in
1509 /* ) ;;
1511 ## We may be able to use the $PWD environment variable to make this
1512 ## absolute. But sometimes PWD is inaccurate.
1513 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1514 ## but that tested only for a well-formed and valid PWD,
1515 ## it did not object when PWD was well-formed and valid but just wrong.
1516 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1517 then
1518 srcdir="$PWD"
1519 else
1520 srcdir="`(cd ${srcdir}; pwd)`"
1523 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1524 esac
1526 #### Check if the source directory already has a configured system in it.
1527 if test `pwd` != `(cd ${srcdir} && pwd)` \
1528 && test -f "${srcdir}/src/config.h" ; then
1529 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1530 as a build directory right now; it has been configured in its own
1531 right. To configure in another directory as well, you MUST
1532 use GNU make. If you do not have GNU make, then you must
1533 now do \`make distclean' in ${srcdir},
1534 and then run $0 again." >&5
1535 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1536 as a build directory right now; it has been configured in its own
1537 right. To configure in another directory as well, you MUST
1538 use GNU make. If you do not have GNU make, then you must
1539 now do \`make distclean' in ${srcdir},
1540 and then run $0 again." >&2;}
1542 extrasub='/^VPATH[ ]*=/c\
1543 vpath %.c $(srcdir)\
1544 vpath %.h $(srcdir)\
1545 vpath %.y $(srcdir)\
1546 vpath %.l $(srcdir)\
1547 vpath %.s $(srcdir)\
1548 vpath %.in $(srcdir)\
1549 vpath %.texi $(srcdir)'
1552 #### Given the configuration name, set machfile and opsysfile to the
1553 #### names of the m/*.h and s/*.h files we should use.
1555 ### Canonicalize the configuration name.
1557 ac_aux_dir=
1558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1559 if test -f $ac_dir/install-sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 break
1563 elif test -f $ac_dir/install.sh; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 break
1567 elif test -f $ac_dir/shtool; then
1568 ac_aux_dir=$ac_dir
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1570 break
1572 done
1573 if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1576 { (exit 1); exit 1; }; }
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1582 # Make sure we can run config.sub.
1583 $ac_config_sub sun4 >/dev/null 2>&1 ||
1584 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1585 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1586 { (exit 1); exit 1; }; }
1588 echo "$as_me:$LINENO: checking build system type" >&5
1589 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1590 if test "${ac_cv_build+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593 ac_cv_build_alias=$build_alias
1594 test -z "$ac_cv_build_alias" &&
1595 ac_cv_build_alias=`$ac_config_guess`
1596 test -z "$ac_cv_build_alias" &&
1597 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1598 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1599 { (exit 1); exit 1; }; }
1600 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1602 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1603 { (exit 1); exit 1; }; }
1606 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1607 echo "${ECHO_T}$ac_cv_build" >&6
1608 build=$ac_cv_build
1609 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614 echo "$as_me:$LINENO: checking host system type" >&5
1615 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1616 if test "${ac_cv_host+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_host_alias=$host_alias
1620 test -z "$ac_cv_host_alias" &&
1621 ac_cv_host_alias=$ac_cv_build_alias
1622 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1624 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1628 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1629 echo "${ECHO_T}$ac_cv_host" >&6
1630 host=$ac_cv_host
1631 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636 canonical=$host
1637 configuration=${host_alias-$host}
1641 ### If you add support for a new configuration, add code to this
1642 ### switch statement to recognize your configuration name and select
1643 ### the appropriate operating system and machine description files.
1645 ### You would hope that you could choose an m/*.h file pretty much
1646 ### based on the machine portion of the configuration name, and an s-
1647 ### file based on the operating system portion. However, it turns out
1648 ### that each m/*.h file is pretty manufacturer-specific - for
1649 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1650 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1651 ### machines. So we basically have to have a special case for each
1652 ### configuration name.
1654 ### As far as handling version numbers on operating systems is
1655 ### concerned, make sure things will fail in a fixable way. If
1656 ### /etc/MACHINES doesn't say anything about version numbers, be
1657 ### prepared to handle anything reasonably. If version numbers
1658 ### matter, be sure /etc/MACHINES says something about it.
1660 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1661 ### "System V Release 4"; he writes, "The old convention encouraged
1662 ### confusion between `system' and `release' levels'."
1664 machine='' opsys='' unported=no
1665 case "${canonical}" in
1667 ## FreeBSD ports
1668 *-*-freebsd* )
1669 opsys=freebsd
1670 case "${canonical}" in
1671 alpha*-*-freebsd*) machine=alpha ;;
1672 i[3456]86-*-freebsd*) machine=intel386 ;;
1673 esac
1676 ## NetBSD ports
1677 *-*-netbsd* )
1678 opsys=netbsd
1679 if test -f /usr/lib/crti.o; then
1681 cat >>confdefs.h <<\_ACEOF
1682 #define HAVE_CRTIN
1683 _ACEOF
1687 case "${canonical}" in
1688 alpha*-*-netbsd*) machine=alpha ;;
1689 i[3456]86-*-netbsd*) machine=intel386 ;;
1690 m68k-*-netbsd*)
1691 # This is somewhat bogus.
1692 machine=hp9000s300 ;;
1693 powerpc-apple-netbsd*) machine=macppc ;;
1694 mips-*-netbsd*) machine=pmax ;;
1695 mipsel-*-netbsd*) machine=pmax ;;
1696 mipseb-*-netbsd*) machine=pmax ;;
1697 ns32k-*-netbsd*) machine=ns32000 ;;
1698 powerpc-*-netbsd*) machine=macppc ;;
1699 sparc*-*-netbsd*) machine=sparc ;;
1700 vax-*-netbsd*) machine=vax ;;
1701 arm-*-netbsd*) machine=arm ;;
1702 esac
1705 ## OpenBSD ports
1706 *-*-openbsd* )
1707 opsys=openbsd
1708 case "${canonical}" in
1709 alpha*-*-openbsd*) machine=alpha ;;
1710 i386-*-openbsd*) machine=intel386 ;;
1711 m68k-*-openbsd*) machine=hp9000s300 ;;
1712 mipsel-*-openbsd*) machine=pmax ;;
1713 ns32k-*-openbsd*) machine=ns32000 ;;
1714 sparc-*-openbsd*) machine=sparc ;;
1715 vax-*-openbsd*) machine=vax ;;
1716 esac
1719 ## Acorn RISCiX:
1720 arm-acorn-riscix1.1* )
1721 machine=acorn opsys=riscix1-1
1723 arm-acorn-riscix1.2* | arm-acorn-riscix )
1724 ## This name is riscix12 instead of riscix1.2
1725 ## to avoid a file name conflict on MSDOS.
1726 machine=acorn opsys=riscix12
1729 ## BSDI ports
1730 *-*-bsdi* )
1731 opsys=bsdi
1732 case "${canonical}" in
1733 i[345]86-*-bsdi*) machine=intel386 ;;
1734 sparc-*-bsdi*) machine=sparc ;;
1735 powerpc-*-bsdi*) machine=macppc ;;
1736 esac
1737 case "${canonical}" in
1738 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1739 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1740 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1741 *-*-bsdi3* ) opsys=bsdos3 ;;
1742 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1743 esac
1746 ## Alliant machines
1747 ## Strictly speaking, we need the version of the alliant operating
1748 ## system to choose the right machine file, but currently the
1749 ## configuration name doesn't tell us enough to choose the right
1750 ## one; we need to give alliants their own operating system name to
1751 ## do this right. When someone cares, they can help us.
1752 fx80-alliant-* )
1753 machine=alliant4 opsys=bsd4-2
1755 i860-alliant-* )
1756 machine=alliant-2800 opsys=bsd4-3
1759 ## Alpha (DEC) machines.
1760 alpha*-dec-osf* )
1761 machine=alpha opsys=osf1
1762 # This is needed to find X11R6.1 libraries for certain tests.
1763 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1764 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1765 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1766 # due to non-traditional preprocessing with the current compiler
1767 # defaults. OSF 4 can also have that compiler version, and there
1768 # seems always to have been a usable /usr/bin/cpp.
1769 NON_GNU_CPP=/usr/bin/cpp
1770 case "${canonical}" in
1771 alpha*-dec-osf[5-9]*)
1772 opsys=osf5-0 ;;
1773 esac
1776 alpha*-*-linux-gnu* )
1777 machine=alpha opsys=gnu-linux
1780 arm*-*-linux-gnu* )
1781 machine=arm opsys=gnu-linux
1784 ppc-*-linux | \
1785 powerpc-*-linux* )
1786 machine=macppc opsys=gnu-linux
1789 ## Altos 3068
1790 m68*-altos-sysv* )
1791 machine=altos opsys=usg5-2
1794 ## Amdahl UTS
1795 580-amdahl-sysv* )
1796 machine=amdahl opsys=usg5-2-2
1799 ## Apollo, Domain/OS
1800 m68*-apollo-* )
1801 machine=apollo opsys=bsd4-3
1804 ## AT&T 3b2, 3b5, 3b15, 3b20
1805 we32k-att-sysv* )
1806 machine=att3b opsys=usg5-2-2
1809 ## AT&T 3b1 - The Mighty Unix PC!
1810 m68*-att-sysv* )
1811 machine=7300 opsys=usg5-2-2
1814 ## Bull dpx20
1815 rs6000-bull-bosx* )
1816 machine=ibmrs6000 opsys=aix3-2
1819 ## Bull dpx2
1820 m68*-bull-sysv3* )
1821 machine=dpx2 opsys=usg5-3
1824 ## Bull sps7
1825 m68*-bull-sysv2* )
1826 machine=sps7 opsys=usg5-2
1829 ## CCI 5/32, 6/32 -- see "Tahoe".
1831 ## Celerity
1832 ## I don't know what configuration name to use for this; config.sub
1833 ## doesn't seem to know anything about it. Hey, Celerity users, get
1834 ## in touch with us!
1835 celerity-celerity-bsd* )
1836 machine=celerity opsys=bsd4-2
1839 ## Clipper
1840 ## What operating systems does this chip run that Emacs has been
1841 ## tested on?
1842 clipper-* )
1843 machine=clipper
1844 ## We'll use the catch-all code at the bottom to guess the
1845 ## operating system.
1848 ## Compaq Nonstop
1849 mips-compaq-nonstopux* )
1850 machine=nonstopux opsys=nonstopux
1853 ## Convex
1854 *-convex-bsd* | *-convex-convexos* )
1855 machine=convex opsys=bsd4-3
1856 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1857 NON_GNU_CPP="cc -E -P"
1860 ## Cubix QBx/386
1861 i[3456]86-cubix-sysv* )
1862 machine=intel386 opsys=usg5-3
1865 ## Cydra 5
1866 cydra*-cydrome-sysv* )
1867 machine=cydra5 opsys=usg5-3
1870 ## Data General AViiON Machines
1871 ## DG changed naming conventions with the release of 5.4.4.10, they
1872 ## dropped the initial 5.4 but left the intervening R. Because of the
1873 ## R this shouldn't conflict with older versions of the OS (which I
1874 ## think were named like dgux4.*). In addition, DG new AViiONs series
1875 ## uses either Motorola M88k or Intel Pentium CPUs.
1876 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1877 machine=aviion opsys=dgux4
1879 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1880 ## This name is dgux5-4-3 instead of dgux5-4r3
1881 ## to avoid a file name conflict on MSDOS.
1882 machine=aviion opsys=dgux5-4-3
1884 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1885 machine=aviion opsys=dgux5-4r2
1887 m88k-dg-dgux* )
1888 machine=aviion opsys=dgux
1891 ## Data General AViiON Intel (x86) Machines
1892 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1893 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1894 i[345]86-dg-dguxR4* )
1895 machine=aviion-intel opsys=dgux4
1898 ## DECstations
1899 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1900 machine=pmax opsys=bsd4-2
1902 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1903 machine=pmax opsys=bsd4-3
1905 mips-dec-ultrix* )
1906 machine=pmax opsys=ultrix4-3
1908 mips-dec-osf* )
1909 machine=pmax opsys=osf1
1911 mips-dec-mach_bsd4.3* )
1912 machine=pmax opsys=mach-bsd4-3
1915 ## Motorola Delta machines
1916 m68k-motorola-sysv* | m68000-motorola-sysv* )
1917 machine=delta opsys=usg5-3
1918 if test -z "`type gnucc | grep 'not found'`"
1919 then
1920 if test -s /etc/167config
1921 then CC="gnucc -m68040"
1922 else CC="gnucc -m68881"
1924 else
1925 if test -z "`type gcc | grep 'not found'`"
1926 then CC=gcc
1927 else CC=cc
1931 m88k-motorola-sysv4* )
1932 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1933 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1934 # I hope there are not other 4.0 versions for this machine
1935 # which really need usg5-4 instead.
1936 machine=delta88k opsys=usg5-4-2
1938 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1939 machine=delta88k opsys=usg5-3
1942 ## Dual machines
1943 m68*-dual-sysv* )
1944 machine=dual opsys=usg5-2
1946 m68*-dual-uniplus* )
1947 machine=dual opsys=unipl5-2
1950 ## Elxsi 6400
1951 elxsi-elxsi-sysv* )
1952 machine=elxsi opsys=usg5-2
1955 ## Encore machines
1956 ns16k-encore-bsd* )
1957 machine=ns16000 opsys=umax
1960 ## The GEC 63 - apparently, this port isn't really finished yet.
1961 # I'm sure we finished off the last of the machines, though. -- fx
1963 ## Gould Power Node and NP1
1964 pn-gould-bsd4.2* )
1965 machine=gould opsys=bsd4-2
1967 pn-gould-bsd4.3* )
1968 machine=gould opsys=bsd4-3
1970 np1-gould-bsd* )
1971 machine=gould-np1 opsys=bsd4-3
1974 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1975 ## as far as Emacs is concerned).
1976 m88k-harris-cxux* )
1977 # Build needs to be different on 7.0 and later releases
1978 case "`uname -r`" in
1979 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1980 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1981 esac
1982 NON_GNU_CPP="/lib/cpp"
1984 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1985 m68k-harris-cxux* )
1986 machine=nh3000 opsys=cxux
1988 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1989 powerpc-harris-powerunix )
1990 machine=nh6000 opsys=powerunix
1991 NON_GNU_CPP="cc -Xo -E -P"
1993 ## SR2001/SR2201 running HI-UX/MPP
1994 hppa1.1-hitachi-hiuxmpp* )
1995 machine=sr2k opsys=hiuxmpp
1997 hppa1.1-hitachi-hiuxwe2* )
1998 machine=sr2k opsys=hiuxwe2
2000 ## Honeywell XPS100
2001 xps*-honeywell-sysv* )
2002 machine=xps100 opsys=usg5-2
2005 ## HP 9000 series 200 or 300
2006 m68*-hp-bsd* )
2007 machine=hp9000s300 opsys=bsd4-3
2009 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2010 m68*-hp-hpux* )
2011 case "`uname -r`" in
2012 ## Someone's system reports A.B8.05 for this.
2013 ## I wonder what other possibilities there are.
2014 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2015 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2016 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2017 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2018 *) machine=hp9000s300 opsys=hpux ;;
2019 esac
2022 ## HP 9000 series 700 and 800, running HP/UX
2023 hppa*-hp-hpux7* )
2024 machine=hp800 opsys=hpux
2026 hppa*-hp-hpux8* )
2027 machine=hp800 opsys=hpux8
2029 hppa*-hp-hpux9shr* )
2030 machine=hp800 opsys=hpux9shr
2032 hppa*-hp-hpux9* )
2033 machine=hp800 opsys=hpux9
2035 hppa*-hp-hpux10.2* )
2036 machine=hp800 opsys=hpux10-20
2038 hppa*-hp-hpux10* )
2039 machine=hp800 opsys=hpux10
2041 hppa*-hp-hpux1[1-9]* )
2042 machine=hp800 opsys=hpux11
2045 hppa*-*-linux-gnu* )
2046 machine=hp800 opsys=gnu-linux
2049 ## HP 9000 series 700 and 800, running HP/UX
2050 hppa*-hp-hpux* )
2051 ## Cross-compilation? Nah!
2052 case "`uname -r`" in
2053 ## Someone's system reports A.B8.05 for this.
2054 ## I wonder what other possibilities there are.
2055 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2056 *.08.* ) machine=hp800 opsys=hpux8 ;;
2057 *.09.* ) machine=hp800 opsys=hpux9 ;;
2058 *) machine=hp800 opsys=hpux10 ;;
2059 esac
2061 hppa*-*-nextstep* )
2062 machine=hp800 opsys=nextstep
2065 ## Orion machines
2066 orion-orion-bsd* )
2067 machine=orion opsys=bsd4-2
2069 clipper-orion-bsd* )
2070 machine=orion105 opsys=bsd4-2
2073 ## IBM machines
2074 i[3456]86-ibm-aix1.1* )
2075 machine=ibmps2-aix opsys=usg5-2-2
2077 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2078 machine=ibmps2-aix opsys=usg5-3
2080 i370-ibm-aix*)
2081 machine=ibm370aix opsys=usg5-3
2083 s390-*-linux-gnu* )
2084 machine=ibms390 opsys=gnu-linux
2086 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2087 machine=ibmrs6000 opsys=aix3-1
2089 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2090 machine=ibmrs6000 opsys=aix3-2-5
2092 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2093 machine=ibmrs6000 opsys=aix4-1
2095 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2096 machine=ibmrs6000 opsys=aix4-2
2098 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2099 machine=ibmrs6000 opsys=aix4-2
2101 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2102 machine=ibmrs6000 opsys=aix4
2104 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2105 machine=ibmrs6000 opsys=aix4-1
2107 rs6000-ibm-aix* | powerpc-ibm-aix* )
2108 machine=ibmrs6000 opsys=aix3-2
2110 romp-ibm-bsd4.3* )
2111 machine=ibmrt opsys=bsd4-3
2113 romp-ibm-bsd4.2* )
2114 machine=ibmrt opsys=bsd4-2
2116 romp-ibm-aos4.3* )
2117 machine=ibmrt opsys=bsd4-3
2119 romp-ibm-aos4.2* )
2120 machine=ibmrt opsys=bsd4-2
2122 romp-ibm-aos* )
2123 machine=ibmrt opsys=bsd4-3
2125 romp-ibm-bsd* )
2126 machine=ibmrt opsys=bsd4-3
2128 romp-ibm-aix* )
2129 machine=ibmrt-aix opsys=usg5-2-2
2132 ## Integrated Solutions `Optimum V'
2133 m68*-isi-bsd4.2* )
2134 machine=isi-ov opsys=bsd4-2
2136 m68*-isi-bsd4.3* )
2137 machine=isi-ov opsys=bsd4-3
2140 ## Intel 386 machines where we do care about the manufacturer
2141 i[3456]86-intsys-sysv* )
2142 machine=is386 opsys=usg5-2-2
2145 ## Prime EXL
2146 i[3456]86-prime-sysv* )
2147 machine=i386 opsys=usg5-3
2150 ## Sequent Symmetry running Dynix
2151 i[3456]86-sequent-bsd* )
2152 machine=symmetry opsys=bsd4-3
2155 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2156 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2157 machine=sequent-ptx opsys=ptx4
2158 NON_GNU_CPP=/lib/cpp
2161 ## Sequent Symmetry running DYNIX/ptx
2162 ## Use the old cpp rather than the newer ANSI one.
2163 i[3456]86-sequent-ptx* )
2164 machine=sequent-ptx opsys=ptx
2165 NON_GNU_CPP="/lib/cpp"
2168 ## ncr machine running svr4.3.
2169 i[3456]86-ncr-sysv4.3 )
2170 machine=ncr386 opsys=usg5-4-3
2173 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2174 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2175 i[3456]86-ncr-sysv* )
2176 machine=ncr386 opsys=usg5-4-2
2179 ## Intel Paragon OSF/1
2180 i860-intel-osf1* )
2181 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2184 ## Intel 860
2185 i860-*-sysv4* )
2186 machine=i860 opsys=usg5-4
2187 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2188 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2191 ## Macintosh PowerPC
2192 powerpc*-*-linux-gnu* )
2193 machine=macppc opsys=gnu-linux
2196 ## Masscomp machines
2197 m68*-masscomp-rtu* )
2198 machine=masscomp opsys=rtu
2201 ## Megatest machines
2202 m68*-megatest-bsd* )
2203 machine=mega68 opsys=bsd4-2
2206 ## Workstations sold by MIPS
2207 ## This is not necessarily all workstations using the MIPS processor -
2208 ## Irises are produced by SGI, and DECstations by DEC.
2210 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2211 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2212 ## it gives for choosing between the alternatives seems to be "Use
2213 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2214 ## the BSD world." I'll assume that these are instructions for
2215 ## handling two odd situations, and that every other situation
2216 ## should use mips.h and usg5-2-2, they being listed first.
2217 mips-mips-usg* )
2218 machine=mips4
2219 ## Fall through to the general code at the bottom to decide on the OS.
2221 mips-mips-riscos4* )
2222 machine=mips4 opsys=bsd4-3
2223 NON_GNU_CC="cc -systype bsd43"
2224 NON_GNU_CPP="cc -systype bsd43 -E"
2226 mips-mips-riscos5* )
2227 machine=mips4 opsys=riscos5
2228 NON_GNU_CC="cc -systype bsd43"
2229 NON_GNU_CPP="cc -systype bsd43 -E"
2231 mips-mips-bsd* )
2232 machine=mips opsys=bsd4-3
2234 mips-mips-* )
2235 machine=mips opsys=usg5-2-2
2238 ## NeXT
2239 m68*-next-* | m68k-*-nextstep* )
2240 machine=m68k opsys=nextstep
2243 ## The complete machine from National Semiconductor
2244 ns32k-ns-genix* )
2245 machine=ns32000 opsys=usg5-2
2248 ## NCR machines
2249 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2250 machine=tower32 opsys=usg5-2-2
2252 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2253 machine=tower32v3 opsys=usg5-3
2256 ## NEC EWS4800
2257 mips-nec-sysv4*)
2258 machine=ews4800 opsys=ux4800
2261 ## Nixdorf Targon 31
2262 m68*-nixdorf-sysv* )
2263 machine=targon31 opsys=usg5-2-2
2266 ## Nu (TI or LMI)
2267 m68*-nu-sysv* )
2268 machine=nu opsys=usg5-2
2271 ## Plexus
2272 m68*-plexus-sysv* )
2273 machine=plexus opsys=usg5-2
2276 ## Pyramid machines
2277 ## I don't really have any idea what sort of processor the Pyramid has,
2278 ## so I'm assuming it is its own architecture.
2279 pyramid-pyramid-bsd* )
2280 machine=pyramid opsys=bsd4-2
2283 ## Sequent Balance
2284 ns32k-sequent-bsd4.2* )
2285 machine=sequent opsys=bsd4-2
2287 ns32k-sequent-bsd4.3* )
2288 machine=sequent opsys=bsd4-3
2291 ## Siemens Nixdorf
2292 mips-siemens-sysv* | mips-sni-sysv*)
2293 machine=mips-siemens opsys=usg5-4
2294 NON_GNU_CC=/usr/ccs/bin/cc
2295 NON_GNU_CPP=/usr/ccs/lib/cpp
2298 ## Silicon Graphics machines
2299 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2300 m68*-sgi-iris3.5* )
2301 machine=irist opsys=iris3-5
2303 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2304 machine=irist opsys=iris3-6
2306 ## Iris 4D
2307 mips-sgi-irix3* )
2308 machine=iris4d opsys=irix3-3
2310 mips-sgi-irix4* )
2311 machine=iris4d opsys=irix4-0
2313 mips-sgi-irix6.5 )
2314 machine=iris4d opsys=irix6-5
2315 # Without defining _LANGUAGE_C, things get masked out in the headers
2316 # so that, for instance, grepping for `free' in stdlib.h fails and
2317 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2318 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2319 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2321 mips-sgi-irix6* )
2322 machine=iris4d opsys=irix6-0
2323 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2324 # but presumably it does no harm.
2325 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2326 # -32 probably isn't necessary in later v.6s -- anyone know which?
2327 NON_GCC_TEST_OPTIONS=-32
2329 mips-sgi-irix5.[01]* )
2330 machine=iris4d opsys=irix5-0
2332 mips-sgi-irix5* | mips-sgi-irix* )
2333 machine=iris4d opsys=irix5-2
2336 ## SONY machines
2337 m68*-sony-bsd4.2* )
2338 machine=news opsys=bsd4-2
2340 m68*-sony-bsd4.3* )
2341 machine=news opsys=bsd4-3
2343 m68*-sony-newsos3* | m68*-sony-news3*)
2344 machine=news opsys=bsd4-3
2346 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2347 machine=news-risc opsys=bsd4-3
2349 mips-sony-newsos6* )
2350 machine=news-r6 opsys=newsos6
2352 mips-sony-news* )
2353 machine=news-risc opsys=newsos5
2356 ## Stride
2357 m68*-stride-sysv* )
2358 machine=stride opsys=usg5-2
2361 ## Suns
2362 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2363 machine=sparc opsys=gnu-linux
2366 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2367 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2368 | rs6000-*-solaris2*)
2369 case "${canonical}" in
2370 m68*-sunos1* ) machine=sun1 ;;
2371 m68*-sunos2* ) machine=sun2 ;;
2372 m68* ) machine=sun3 ;;
2373 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2374 i[3456]86-*-* ) machine=intel386 ;;
2375 powerpcle* ) machine=powerpcle ;;
2376 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2377 sparc* ) machine=sparc ;;
2378 * ) unported=yes ;;
2379 esac
2380 case "${canonical}" in
2381 ## The Sun386 didn't get past 4.0.
2382 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2383 *-sunos4.0* ) opsys=sunos4-0 ;;
2384 *-sunos4.1.[3-9]*noshare )
2385 ## This name is sunos413 instead of sunos4-1-3
2386 ## to avoid a file name conflict on MSDOS.
2387 opsys=sunos413
2388 NON_GNU_CPP=/usr/lib/cpp
2389 NON_GCC_TEST_OPTIONS=-Bstatic
2390 GCC_TEST_OPTIONS=-static
2392 *-sunos4.1.[3-9]* | *-sunos4shr*)
2393 opsys=sunos4shr
2394 NON_GNU_CPP=/usr/lib/cpp
2396 *-sunos4* | *-sunos )
2397 opsys=sunos4-1
2398 NON_GCC_TEST_OPTIONS=-Bstatic
2399 GCC_TEST_OPTIONS=-static
2401 *-sunos5.3* | *-solaris2.3* )
2402 opsys=sol2-3
2403 NON_GNU_CPP=/usr/ccs/lib/cpp
2405 *-sunos5.4* | *-solaris2.4* )
2406 opsys=sol2-4
2407 NON_GNU_CPP=/usr/ccs/lib/cpp
2408 RANLIB="ar -ts"
2410 *-sunos5.5* | *-solaris2.5* )
2411 opsys=sol2-5
2412 NON_GNU_CPP=/usr/ccs/lib/cpp
2413 RANLIB="ar -ts"
2415 *-sunos5.6* | *-solaris2.6* )
2416 opsys=sol2-6
2417 NON_GNU_CPP=/usr/ccs/lib/cpp
2418 RANLIB="ar -ts"
2420 *-sunos5* | *-solaris* )
2421 opsys=sol2-6
2422 NON_GNU_CPP=/usr/ccs/lib/cpp
2424 * ) opsys=bsd4-2 ;;
2425 esac
2426 ## Watch out for a compiler that we know will not work.
2427 case "${canonical}" in
2428 *-solaris* | *-sunos5* )
2429 if [ "x$CC" = x/usr/ucb/cc ]; then
2430 ## /usr/ucb/cc doesn't work;
2431 ## we should find some other compiler that does work.
2432 unset CC
2435 *) ;;
2436 esac
2438 sparc-*-nextstep* )
2439 machine=sparc opsys=nextstep
2442 ## Tadpole 68k
2443 m68*-tadpole-sysv* )
2444 machine=tad68k opsys=usg5-3
2447 ## Tahoe machines
2448 tahoe-tahoe-bsd4.2* )
2449 machine=tahoe opsys=bsd4-2
2451 tahoe-tahoe-bsd4.3* )
2452 machine=tahoe opsys=bsd4-3
2455 ## Tandem Integrity S2
2456 mips-tandem-sysv* )
2457 machine=tandem-s2 opsys=usg5-3
2460 ## Tektronix XD88
2461 m88k-tektronix-sysv3* )
2462 machine=tekxd88 opsys=usg5-3
2465 ## Tektronix 16000 box (6130?)
2466 ns16k-tektronix-bsd* )
2467 machine=ns16000 opsys=bsd4-2
2469 ## Tektronix 4300
2470 ## src/m/tek4300.h hints that this is a m68k machine.
2471 m68*-tektronix-bsd* )
2472 machine=tek4300 opsys=bsd4-3
2475 ## Titan P2 or P3
2476 ## We seem to have lost the machine-description file titan.h!
2477 titan-titan-sysv* )
2478 machine=titan opsys=usg5-3
2481 ## Ustation E30 (SS5E)
2482 m68*-unisys-uniplus* )
2483 machine=ustation opsystem=unipl5-2
2486 ## Vaxen.
2487 vax-dec-* )
2488 machine=vax
2489 case "${canonical}" in
2490 *-bsd4.1* ) opsys=bsd4-1 ;;
2491 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2492 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2493 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2494 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2495 *-vms* ) opsys=vms ;;
2496 * ) unported=yes
2497 esac
2500 ## Whitechapel MG1
2501 ns16k-whitechapel-* )
2502 machine=mg1
2503 ## We don't know what sort of OS runs on these; we'll let the
2504 ## operating system guessing code below try.
2507 ## Wicat
2508 m68*-wicat-sysv* )
2509 machine=wicat opsys=usg5-2
2512 ## IA-64
2513 ia64*-*-linux* )
2514 machine=ia64 opsys=gnu-linux
2517 ## Intel 386 machines where we don't care about the manufacturer
2518 i[3456]86-*-* )
2519 machine=intel386
2520 case "${canonical}" in
2521 *-cygwin ) opsys=cygwin ;;
2522 *-lynxos* ) opsys=lynxos ;;
2523 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2524 *-isc2.2* ) opsys=isc2-2 ;;
2525 *-isc4.0* ) opsys=isc4-0 ;;
2526 *-isc4.* ) opsys=isc4-1
2527 GCC_TEST_OPTIONS=-posix
2528 NON_GCC_TEST_OPTIONS=-Xp
2530 *-isc* ) opsys=isc3-0 ;;
2531 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2532 *-esix* ) opsys=esix ;;
2533 *-xenix* ) opsys=xenix ;;
2534 *-linux-gnu* ) opsys=gnu-linux ;;
2535 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2536 *-sco3.2v5* ) opsys=sco5
2537 NON_GNU_CPP=/lib/cpp
2538 # Prevent -belf from being passed to $CPP.
2539 # /lib/cpp does not accept it.
2540 OVERRIDE_CPPFLAGS=" "
2542 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2543 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2544 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2545 *-386bsd* ) opsys=386bsd ;;
2546 *-nextstep* ) opsys=nextstep ;;
2547 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2548 esac
2551 ## m68k Linux-based GNU system
2552 m68k-*-linux-gnu* )
2553 machine=m68k opsys=gnu-linux
2556 ## Mips Linux-based GNU system
2557 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2558 machine=mips opsys=gnu-linux
2561 ## UXP/DS
2562 sparc-fujitsu-sysv4* )
2563 machine=sparc opsys=uxpds
2564 NON_GNU_CPP=/usr/ccs/lib/cpp
2565 RANLIB="ar -ts"
2568 ## UXP/V
2569 f301-fujitsu-uxpv4.1)
2570 machine=f301 opsys=uxpv
2573 ## Darwin / Mac OS X
2574 powerpc-apple-darwin* )
2575 machine=powermac opsys=darwin
2576 # Define CPP as follows to make autoconf work correctly.
2577 CPP="cc -E -traditional-cpp"
2580 ## AMD x86-64 Linux-based GNU system
2581 x86_64-*-linux-gnu* )
2582 machine=amdx86-64 opsys=gnu-linux
2586 unported=yes
2588 esac
2590 ### If the code above didn't choose an operating system, just choose
2591 ### an operating system based on the configuration name. You really
2592 ### only want to use this when you have no idea what the right
2593 ### operating system is; if you know what operating systems a machine
2594 ### runs, it's cleaner to make it explicit in the case statement
2595 ### above.
2596 if test x"${opsys}" = x; then
2597 case "${canonical}" in
2598 *-gnu* ) opsys=gnu ;;
2599 *-bsd4.[01] ) opsys=bsd4-1 ;;
2600 *-bsd4.2 ) opsys=bsd4-2 ;;
2601 *-bsd4.3 ) opsys=bsd4-3 ;;
2602 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2603 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2604 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2605 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2606 *-sysv4.2uw* ) opsys=unixware ;;
2607 *-sysv5uw* ) opsys=unixware ;;
2608 *-sysv5OpenUNIX* ) opsys=unixware ;;
2609 *-sysv4.1* | *-sysvr4.1* )
2610 NON_GNU_CPP=/usr/lib/cpp
2611 opsys=usg5-4 ;;
2612 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2613 if [ x$NON_GNU_CPP = x ]; then
2614 if [ -f /usr/ccs/lib/cpp ]; then
2615 NON_GNU_CPP=/usr/ccs/lib/cpp
2616 else
2617 NON_GNU_CPP=/lib/cpp
2620 opsys=usg5-4-2 ;;
2621 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2623 unported=yes
2625 esac
2630 if test $unported = yes; then
2631 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2632 Check \`etc/MACHINES' for recognized configuration names." >&5
2633 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2635 { (exit 1); exit 1; }; }
2638 machfile="m/${machine}.h"
2639 opsysfile="s/${opsys}.h"
2642 #### Choose a compiler.
2643 test -n "$CC" && cc_specified=yes
2645 # Save the value of CFLAGS that the user specified.
2646 SPECIFIED_CFLAGS="$CFLAGS"
2648 case ${with_gcc} in
2649 "yes" ) CC="gcc" GCC=yes ;;
2650 "no" ) : ${CC=cc} ;;
2652 esac
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2661 echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2680 done
2681 done
2685 CC=$ac_cv_prog_CC
2686 if test -n "$CC"; then
2687 echo "$as_me:$LINENO: result: $CC" >&5
2688 echo "${ECHO_T}$CC" >&6
2689 else
2690 echo "$as_me:$LINENO: result: no" >&5
2691 echo "${ECHO_T}no" >&6
2695 if test -z "$ac_cv_prog_CC"; then
2696 ac_ct_CC=$CC
2697 # Extract the first word of "gcc", so it can be a program name with args.
2698 set dummy gcc; ac_word=$2
2699 echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 ac_cv_prog_ac_ct_CC="gcc"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2724 if test -n "$ac_ct_CC"; then
2725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2726 echo "${ECHO_T}$ac_ct_CC" >&6
2727 else
2728 echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2732 CC=$ac_ct_CC
2733 else
2734 CC="$ac_cv_prog_CC"
2737 if test -z "$CC"; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}cc; ac_word=$2
2741 echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_CC="${ac_tool_prefix}cc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 echo "$as_me:$LINENO: result: $CC" >&5
2768 echo "${ECHO_T}$CC" >&6
2769 else
2770 echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2775 if test -z "$ac_cv_prog_CC"; then
2776 ac_ct_CC=$CC
2777 # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_ac_ct_CC="cc"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2798 done
2799 done
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2812 CC=$ac_ct_CC
2813 else
2814 CC="$ac_cv_prog_CC"
2818 if test -z "$CC"; then
2819 # Extract the first word of "cc", so it can be a program name with args.
2820 set dummy cc; ac_word=$2
2821 echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2823 if test "${ac_cv_prog_CC+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 else
2829 ac_prog_rejected=no
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2838 ac_prog_rejected=yes
2839 continue
2841 ac_cv_prog_CC="cc"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 if test $ac_prog_rejected = yes; then
2849 # We found a bogon in the path, so make sure we never use it.
2850 set dummy $ac_cv_prog_CC
2851 shift
2852 if test $# != 0; then
2853 # We chose a different compiler from the bogus one.
2854 # However, it has the same basename, so the bogon will be chosen
2855 # first if we set CC to just the basename; use the full file name.
2856 shift
2857 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 echo "$as_me:$LINENO: result: $CC" >&5
2865 echo "${ECHO_T}$CC" >&6
2866 else
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 for ac_prog in cl
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2880 if test "${ac_cv_prog_CC+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 echo "$as_me:$LINENO: result: $CC" >&5
2905 echo "${ECHO_T}$CC" >&6
2906 else
2907 echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2911 test -n "$CC" && break
2912 done
2914 if test -z "$CC"; then
2915 ac_ct_CC=$CC
2916 for ac_prog in cl
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy $ac_prog; ac_word=$2
2920 echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_ac_ct_CC="$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2939 done
2940 done
2944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2945 if test -n "$ac_ct_CC"; then
2946 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2947 echo "${ECHO_T}$ac_ct_CC" >&6
2948 else
2949 echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6
2953 test -n "$ac_ct_CC" && break
2954 done
2956 CC=$ac_ct_CC
2962 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2963 See \`config.log' for more details." >&5
2964 echo "$as_me: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&2;}
2966 { (exit 1); exit 1; }; }
2968 # Provide some information about the compiler.
2969 echo "$as_me:$LINENO:" \
2970 "checking for C compiler version" >&5
2971 ac_compiler=`set X $ac_compile; echo $2`
2972 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2973 (eval $ac_compiler --version </dev/null >&5) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }
2977 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2978 (eval $ac_compiler -v </dev/null >&5) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }
2982 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2983 (eval $ac_compiler -V </dev/null >&5) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2996 main ()
3000 return 0;
3002 _ACEOF
3003 ac_clean_files_save=$ac_clean_files
3004 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3005 # Try to create an executable without -o first, disregard a.out.
3006 # It will help us diagnose broken compilers, and finding out an intuition
3007 # of exeext.
3008 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3009 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3010 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3011 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3012 (eval $ac_link_default) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 # Find the output, starting from the most likely. This scheme is
3017 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3018 # resort.
3020 # Be careful to initialize this variable, since it used to be cached.
3021 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3022 ac_cv_exeext=
3023 # b.out is created by i960 compilers.
3024 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3026 test -f "$ac_file" || continue
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3030 conftest.$ac_ext )
3031 # This is the source file.
3033 [ab].out )
3034 # We found the default executable, but exeext='' is most
3035 # certainly right.
3036 break;;
3037 *.* )
3038 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039 # FIXME: I believe we export ac_cv_exeext for Libtool,
3040 # but it would be cool to find out if it's true. Does anybody
3041 # maintain Libtool? --akim.
3042 export ac_cv_exeext
3043 break;;
3045 break;;
3046 esac
3047 done
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: C compiler cannot create executables
3055 See \`config.log' for more details." >&2;}
3056 { (exit 77); exit 77; }; }
3059 ac_exeext=$ac_cv_exeext
3060 echo "$as_me:$LINENO: result: $ac_file" >&5
3061 echo "${ECHO_T}$ac_file" >&6
3063 # Check the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3066 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3067 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3068 # If not cross compiling, check that we can run a simple program.
3069 if test "$cross_compiling" != yes; then
3070 if { ac_try='./$ac_file'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 cross_compiling=no
3077 else
3078 if test "$cross_compiling" = maybe; then
3079 cross_compiling=yes
3080 else
3081 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3082 If you meant to cross compile, use \`--host'.
3083 See \`config.log' for more details." >&5
3084 echo "$as_me: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3091 echo "$as_me:$LINENO: result: yes" >&5
3092 echo "${ECHO_T}yes" >&6
3094 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3095 ac_clean_files=$ac_clean_files_save
3096 # Check the compiler produces executables we can run. If not, either
3097 # the compiler is broken, or we cross compile.
3098 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3099 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3100 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3101 echo "${ECHO_T}$cross_compiling" >&6
3103 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3104 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106 (eval $ac_link) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; then
3110 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3112 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 # `rm'.
3114 for ac_file in conftest.exe conftest conftest.*; do
3115 test -f "$ac_file" || continue
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 export ac_cv_exeext
3120 break;;
3121 * ) break;;
3122 esac
3123 done
3124 else
3125 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details." >&5
3127 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3128 See \`config.log' for more details." >&2;}
3129 { (exit 1); exit 1; }; }
3132 rm -f conftest$ac_cv_exeext
3133 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3134 echo "${ECHO_T}$ac_cv_exeext" >&6
3136 rm -f conftest.$ac_ext
3137 EXEEXT=$ac_cv_exeext
3138 ac_exeext=$EXEEXT
3139 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3140 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3141 if test "${ac_cv_objext+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 main ()
3156 return 0;
3158 _ACEOF
3159 rm -f conftest.o conftest.obj
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161 (eval $ac_compile) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; then
3165 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3169 break;;
3170 esac
3171 done
3172 else
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3185 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3186 echo "${ECHO_T}$ac_cv_objext" >&6
3187 OBJEXT=$ac_cv_objext
3188 ac_objext=$OBJEXT
3189 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h. */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3202 main ()
3204 #ifndef __GNUC__
3205 choke me
3206 #endif
3209 return 0;
3211 _ACEOF
3212 rm -f conftest.$ac_objext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 ac_compiler_gnu=yes
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 ac_compiler_gnu=no
3231 rm -f conftest.$ac_objext conftest.$ac_ext
3232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3236 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3237 GCC=`test $ac_compiler_gnu = yes && echo yes`
3238 ac_test_CFLAGS=${CFLAGS+set}
3239 ac_save_CFLAGS=$CFLAGS
3240 CFLAGS="-g"
3241 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3242 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3243 if test "${ac_cv_prog_cc_g+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3254 main ()
3258 return 0;
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -s conftest.$ac_objext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 ac_cv_prog_cc_g=yes
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 ac_cv_prog_cc_g=no
3280 rm -f conftest.$ac_objext conftest.$ac_ext
3282 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3283 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3284 if test "$ac_test_CFLAGS" = set; then
3285 CFLAGS=$ac_save_CFLAGS
3286 elif test $ac_cv_prog_cc_g = yes; then
3287 if test "$GCC" = yes; then
3288 CFLAGS="-g -O2"
3289 else
3290 CFLAGS="-g"
3292 else
3293 if test "$GCC" = yes; then
3294 CFLAGS="-O2"
3295 else
3296 CFLAGS=
3299 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3300 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3301 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 ac_cv_prog_cc_stdc=no
3305 ac_save_CC=$CC
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <stdarg.h>
3313 #include <stdio.h>
3314 #include <sys/types.h>
3315 #include <sys/stat.h>
3316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3317 struct buf { int x; };
3318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3319 static char *e (p, i)
3320 char **p;
3321 int i;
3323 return p[i];
3325 static char *f (char * (*g) (char **, int), char **p, ...)
3327 char *s;
3328 va_list v;
3329 va_start (v,p);
3330 s = g (p, va_arg (v,int));
3331 va_end (v);
3332 return s;
3334 int test (int i, double x);
3335 struct s1 {int (*f) (int a);};
3336 struct s2 {int (*f) (double a);};
3337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3338 int argc;
3339 char **argv;
3341 main ()
3343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3345 return 0;
3347 _ACEOF
3348 # Don't try gcc -ansi; that turns off useful extensions and
3349 # breaks some systems' header files.
3350 # AIX -qlanglvl=ansi
3351 # Ultrix and OSF/1 -std1
3352 # HP-UX 10.20 and later -Ae
3353 # HP-UX older versions -Aa -D_HPUX_SOURCE
3354 # SVR4 -Xc -D__EXTENSIONS__
3355 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3357 CC="$ac_save_CC $ac_arg"
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_cc_stdc=$ac_arg
3371 break
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3377 rm -f conftest.$ac_objext
3378 done
3379 rm -f conftest.$ac_ext conftest.$ac_objext
3380 CC=$ac_save_CC
3384 case "x$ac_cv_prog_cc_stdc" in
3385 x|xno)
3386 echo "$as_me:$LINENO: result: none needed" >&5
3387 echo "${ECHO_T}none needed" >&6 ;;
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3391 CC="$CC $ac_cv_prog_cc_stdc" ;;
3392 esac
3394 # Some people use a C++ compiler to compile C. Since we use `exit',
3395 # in C++ we need to declare it. In case someone uses the same compiler
3396 # for both compiling C and C++ we need to have the C++ compiler decide
3397 # the declaration of exit, since it's the most demanding environment.
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #ifndef __cplusplus
3400 choke me
3401 #endif
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 for ac_declaration in \
3416 '' \
3417 'extern "C" void std::exit (int) throw (); using std::exit;' \
3418 'extern "C" void std::exit (int); using std::exit;' \
3419 'extern "C" void exit (int) throw ();' \
3420 'extern "C" void exit (int);' \
3421 'void exit (int);'
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 $ac_declaration
3430 #include <stdlib.h>
3432 main ()
3434 exit (42);
3436 return 0;
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 continue
3458 rm -f conftest.$ac_objext conftest.$ac_ext
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 $ac_declaration
3467 main ()
3469 exit (42);
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 break
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f conftest.$ac_objext conftest.$ac_ext
3493 done
3494 rm -f conftest*
3495 if test -n "$ac_declaration"; then
3496 echo '#ifdef __cplusplus' >>confdefs.h
3497 echo $ac_declaration >>confdefs.h
3498 echo '#endif' >>confdefs.h
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f conftest.$ac_objext conftest.$ac_ext
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 # On Suns, sometimes $CPP names a directory.
3515 if test -n "$CPP" && test -d "$CPP"; then
3516 CPP=
3519 #### Some systems specify a CPP to use unless we are using GCC.
3520 #### Now that we know whether we are using GCC, we can decide whether
3521 #### to use that one.
3522 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3523 then
3524 CPP="$NON_GNU_CPP"
3527 #### Some systems specify a CC to use unless we are using GCC.
3528 #### Now that we know whether we are using GCC, we can decide whether
3529 #### to use that one.
3530 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3531 test x$cc_specified != xyes
3532 then
3533 CC="$NON_GNU_CC"
3536 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3537 then
3538 CC="$CC $GCC_TEST_OPTIONS"
3541 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3542 then
3543 CC="$CC $NON_GCC_TEST_OPTIONS"
3546 #### Some other nice autoconf tests.
3548 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3550 LN_S=$as_ln_s
3551 if test "$LN_S" = "ln -s"; then
3552 echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6
3554 else
3555 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3556 echo "${ECHO_T}no, using $LN_S" >&6
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3565 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3566 # On Suns, sometimes $CPP names a directory.
3567 if test -n "$CPP" && test -d "$CPP"; then
3568 CPP=
3570 if test -z "$CPP"; then
3571 if test "${ac_cv_prog_CPP+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 # Double quotes because CPP needs to be expanded
3575 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3577 ac_preproc_ok=false
3578 for ac_c_preproc_warn_flag in '' yes
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error" is here to catch this case.
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #ifdef __STDC__
3593 # include <limits.h>
3594 #else
3595 # include <assert.h>
3596 #endif
3597 Syntax error
3598 _ACEOF
3599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 else
3610 ac_cpp_err=
3612 else
3613 ac_cpp_err=yes
3615 if test -z "$ac_cpp_err"; then
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 # Broken: fails on valid input.
3622 continue
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether non-existent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3635 _ACEOF
3636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null; then
3644 if test -s conftest.err; then
3645 ac_cpp_err=$ac_c_preproc_warn_flag
3646 else
3647 ac_cpp_err=
3649 else
3650 ac_cpp_err=yes
3652 if test -z "$ac_cpp_err"; then
3653 # Broken: success on invalid input.
3654 continue
3655 else
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 # Passes both tests.
3660 ac_preproc_ok=:
3661 break
3663 rm -f conftest.err conftest.$ac_ext
3665 done
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then
3669 break
3672 done
3673 ac_cv_prog_CPP=$CPP
3676 CPP=$ac_cv_prog_CPP
3677 else
3678 ac_cv_prog_CPP=$CPP
3680 echo "$as_me:$LINENO: result: $CPP" >&5
3681 echo "${ECHO_T}$CPP" >&6
3682 ac_preproc_ok=false
3683 for ac_c_preproc_warn_flag in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #ifdef __STDC__
3698 # include <limits.h>
3699 #else
3700 # include <assert.h>
3701 #endif
3702 Syntax error
3703 _ACEOF
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null; then
3712 if test -s conftest.err; then
3713 ac_cpp_err=$ac_c_preproc_warn_flag
3714 else
3715 ac_cpp_err=
3717 else
3718 ac_cpp_err=yes
3720 if test -z "$ac_cpp_err"; then
3722 else
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 # Broken: fails on valid input.
3727 continue
3729 rm -f conftest.err conftest.$ac_ext
3731 # OK, works on sane cases. Now check whether non-existent headers
3732 # can be detected and how.
3733 cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h. */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 #include <ac_nonexistent.h>
3740 _ACEOF
3741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } >/dev/null; then
3749 if test -s conftest.err; then
3750 ac_cpp_err=$ac_c_preproc_warn_flag
3751 else
3752 ac_cpp_err=
3754 else
3755 ac_cpp_err=yes
3757 if test -z "$ac_cpp_err"; then
3758 # Broken: success on invalid input.
3759 continue
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 # Passes both tests.
3765 ac_preproc_ok=:
3766 break
3768 rm -f conftest.err conftest.$ac_ext
3770 done
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then
3775 else
3776 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3777 See \`config.log' for more details." >&5
3778 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3779 See \`config.log' for more details." >&2;}
3780 { (exit 1); exit 1; }; }
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 # Find a good install program. We prefer a C program (faster),
3790 # so one script is as good as another. But avoid the broken or
3791 # incompatible versions:
3792 # SysV /etc/install, /usr/sbin/install
3793 # SunOS /usr/etc/install
3794 # IRIX /sbin/install
3795 # AIX /bin/install
3796 # AmigaOS /C/install, which installs bootblocks on floppy discs
3797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3800 # OS/2's system install, which has a completely different semantic
3801 # ./install, which can be erroneously created by make from ./install.sh.
3802 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3803 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3804 if test -z "$INSTALL"; then
3805 if test "${ac_cv_path_install+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 # Account for people who put trailing slashes in PATH elements.
3814 case $as_dir/ in
3815 ./ | .// | /cC/* | \
3816 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3817 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3818 /usr/ucb/* ) ;;
3820 # OSF1 and SCO ODT 3.0 have their own names for install.
3821 # Don't use installbsd from OSF since it installs stuff as root
3822 # by default.
3823 for ac_prog in ginstall scoinst install; do
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3826 if test $ac_prog = install &&
3827 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3828 # AIX install. It has an incompatible calling convention.
3830 elif test $ac_prog = install &&
3831 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # program-specific install script used by HP pwplus--don't use.
3834 else
3835 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3836 break 3
3839 done
3840 done
3842 esac
3843 done
3847 if test "${ac_cv_path_install+set}" = set; then
3848 INSTALL=$ac_cv_path_install
3849 else
3850 # As a last resort, use the slow shell script. We don't cache a
3851 # path for INSTALL within a source directory, because that will
3852 # break other packages using the cache if that directory is
3853 # removed, or if the path is relative.
3854 INSTALL=$ac_install_sh
3857 echo "$as_me:$LINENO: result: $INSTALL" >&5
3858 echo "${ECHO_T}$INSTALL" >&6
3860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861 # It thinks the first close brace ends the variable substitution.
3862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3868 if test "x$RANLIB" = x; then
3869 if test -n "$ac_tool_prefix"; then
3870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_prog_RANLIB+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 if test -n "$RANLIB"; then
3878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 break 2
3891 done
3892 done
3896 RANLIB=$ac_cv_prog_RANLIB
3897 if test -n "$RANLIB"; then
3898 echo "$as_me:$LINENO: result: $RANLIB" >&5
3899 echo "${ECHO_T}$RANLIB" >&6
3900 else
3901 echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6
3906 if test -z "$ac_cv_prog_RANLIB"; then
3907 ac_ct_RANLIB=$RANLIB
3908 # Extract the first word of "ranlib", so it can be a program name with args.
3909 set dummy ranlib; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 if test -n "$ac_ct_RANLIB"; then
3916 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_ac_ct_RANLIB="ranlib"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3929 done
3930 done
3932 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3935 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3936 if test -n "$ac_ct_RANLIB"; then
3937 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3938 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3944 RANLIB=$ac_ct_RANLIB
3945 else
3946 RANLIB="$ac_cv_prog_RANLIB"
3950 # Extract the first word of "install-info", so it can be a program name with args.
3951 set dummy install-info; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 case $INSTALL_INFO in
3958 [\\/]* | ?:[\\/]*)
3959 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3973 done
3974 done
3977 esac
3979 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3981 if test -n "$INSTALL_INFO"; then
3982 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3983 echo "${ECHO_T}$INSTALL_INFO" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3989 # Extract the first word of "install-info", so it can be a program name with args.
3990 set dummy install-info; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 case $INSTALL_INFO in
3997 [\\/]* | ?:[\\/]*)
3998 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in /usr/sbin
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4016 esac
4018 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4020 if test -n "$INSTALL_INFO"; then
4021 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4022 echo "${ECHO_T}$INSTALL_INFO" >&6
4023 else
4024 echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4028 # Extract the first word of "install-info", so it can be a program name with args.
4029 set dummy install-info; ac_word=$2
4030 echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 case $INSTALL_INFO in
4036 [\\/]* | ?:[\\/]*)
4037 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in /sbin
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4051 done
4052 done
4054 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4056 esac
4058 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4060 if test -n "$INSTALL_INFO"; then
4061 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4062 echo "${ECHO_T}$INSTALL_INFO" >&6
4063 else
4064 echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6
4070 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4071 then
4072 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4075 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4076 then
4077 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4082 echo "$as_me:$LINENO: checking for egrep" >&5
4083 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4084 if test "${ac_cv_prog_egrep+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4088 then ac_cv_prog_egrep='grep -E'
4089 else ac_cv_prog_egrep='egrep'
4092 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4093 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4094 EGREP=$ac_cv_prog_egrep
4098 echo "$as_me:$LINENO: checking for AIX" >&5
4099 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 #ifdef _AIX
4108 #endif
4110 _ACEOF
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "yes" >/dev/null 2>&1; then
4113 echo "$as_me:$LINENO: result: yes" >&5
4114 echo "${ECHO_T}yes" >&6
4115 cat >>confdefs.h <<\_ACEOF
4116 #define _ALL_SOURCE 1
4117 _ACEOF
4119 else
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4123 rm -f conftest*
4127 #### Extract some information from the operating system and machine files.
4129 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4130 - which libraries the lib-src programs will want, and
4131 - whether the GNU malloc routines are usable..." >&5
4132 echo "$as_me: checking the machine- and system-dependent files to find out
4133 - which libraries the lib-src programs will want, and
4134 - whether the GNU malloc routines are usable..." >&6;}
4136 ### First figure out CFLAGS (which we use for running the compiler here)
4137 ### and REAL_CFLAGS (which we use for real compilation).
4138 ### The two are the same except on a few systems, where they are made
4139 ### different to work around various lossages. For example,
4140 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4141 ### as implying static linking.
4143 ### If the CFLAGS env var is specified, we use that value
4144 ### instead of the default.
4146 ### It's not important that this name contain the PID; you can't run
4147 ### two configures in the same directory and have anything work
4148 ### anyway.
4149 tempcname="conftest.c"
4151 echo '
4152 #include "'${srcdir}'/src/'${opsysfile}'"
4153 #include "'${srcdir}'/src/'${machfile}'"
4154 #ifndef LIBS_MACHINE
4155 #define LIBS_MACHINE
4156 #endif
4157 #ifndef LIBS_SYSTEM
4158 #define LIBS_SYSTEM
4159 #endif
4160 #ifndef C_SWITCH_SYSTEM
4161 #define C_SWITCH_SYSTEM
4162 #endif
4163 #ifndef C_SWITCH_MACHINE
4164 #define C_SWITCH_MACHINE
4165 #endif
4166 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4167 configure___ c_switch_system=C_SWITCH_SYSTEM
4168 configure___ c_switch_machine=C_SWITCH_MACHINE
4170 #ifndef LIB_X11_LIB
4171 #define LIB_X11_LIB -lX11
4172 #endif
4174 #ifndef LIBX11_MACHINE
4175 #define LIBX11_MACHINE
4176 #endif
4178 #ifndef LIBX11_SYSTEM
4179 #define LIBX11_SYSTEM
4180 #endif
4181 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4183 #ifdef UNEXEC
4184 configure___ unexec=UNEXEC
4185 #else
4186 configure___ unexec=unexec.o
4187 #endif
4189 #ifdef SYSTEM_MALLOC
4190 configure___ system_malloc=yes
4191 #else
4192 configure___ system_malloc=no
4193 #endif
4195 #ifdef USE_MMAP_FOR_BUFFERS
4196 configure___ use_mmap_for_buffers=yes
4197 #else
4198 configure___ use_mmap_for_buffers=no
4199 #endif
4201 #ifndef C_DEBUG_SWITCH
4202 #define C_DEBUG_SWITCH -g
4203 #endif
4205 #ifndef C_OPTIMIZE_SWITCH
4206 #ifdef __GNUC__
4207 #define C_OPTIMIZE_SWITCH -O2
4208 #else
4209 #define C_OPTIMIZE_SWITCH -O
4210 #endif
4211 #endif
4213 #ifndef LD_SWITCH_MACHINE
4214 #define LD_SWITCH_MACHINE
4215 #endif
4217 #ifndef LD_SWITCH_SYSTEM
4218 #define LD_SWITCH_SYSTEM
4219 #endif
4221 #ifndef LD_SWITCH_X_SITE_AUX
4222 #define LD_SWITCH_X_SITE_AUX
4223 #endif
4225 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4226 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4228 #ifdef THIS_IS_CONFIGURE
4230 /* Get the CFLAGS for tests in configure. */
4231 #ifdef __GNUC__
4232 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4233 #else
4234 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4235 #endif
4237 #else /* not THIS_IS_CONFIGURE */
4239 /* Get the CFLAGS for real compilation. */
4240 #ifdef __GNUC__
4241 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4242 #else
4243 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4244 #endif
4246 #endif /* not THIS_IS_CONFIGURE */
4247 ' > ${tempcname}
4249 # The value of CPP is a quoted variable reference, so we need to do this
4250 # to get its actual value...
4251 CPP=`eval "echo $CPP"`
4252 eval `${CPP} -Isrc ${tempcname} \
4253 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4254 if test "x$SPECIFIED_CFLAGS" = x; then
4255 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4256 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4257 else
4258 REAL_CFLAGS="$CFLAGS"
4260 rm ${tempcname}
4262 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4264 ### Make sure subsequent tests use flags consistent with the build flags.
4266 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4267 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4268 else
4269 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4275 cat >>confdefs.h <<\_ACEOF
4276 #define _GNU_SOURCE 1
4277 _ACEOF
4281 # Check whether --enable-largefile or --disable-largefile was given.
4282 if test "${enable_largefile+set}" = set; then
4283 enableval="$enable_largefile"
4286 if test "$enable_largefile" != no; then
4288 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4289 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4290 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 ac_cv_sys_largefile_CC=no
4294 if test "$GCC" != yes; then
4295 ac_save_CC=$CC
4296 while :; do
4297 # IRIX 6.2 and later do not support large files by default,
4298 # so use the C compiler's -n32 option if that helps.
4299 cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h. */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 #include <sys/types.h>
4306 /* Check that off_t can represent 2**63 - 1 correctly.
4307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4308 since some C++ compilers masquerading as C compilers
4309 incorrectly reject 9223372036854775807. */
4310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4312 && LARGE_OFF_T % 2147483647 == 1)
4313 ? 1 : -1];
4315 main ()
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 break
4335 else
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4340 rm -f conftest.$ac_objext
4341 CC="$CC -n32"
4342 rm -f conftest.$ac_objext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_sys_largefile_CC=' -n32'; break
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4360 rm -f conftest.$ac_objext
4361 break
4362 done
4363 CC=$ac_save_CC
4364 rm -f conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4368 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4369 if test "$ac_cv_sys_largefile_CC" != no; then
4370 CC=$CC$ac_cv_sys_largefile_CC
4373 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4374 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4375 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 while :; do
4379 ac_cv_sys_file_offset_bits=no
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <sys/types.h>
4387 /* Check that off_t can represent 2**63 - 1 correctly.
4388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4389 since some C++ compilers masquerading as C compilers
4390 incorrectly reject 9223372036854775807. */
4391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4393 && LARGE_OFF_T % 2147483647 == 1)
4394 ? 1 : -1];
4396 main ()
4400 return 0;
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405 (eval $ac_compile) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -s conftest.$ac_objext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 (eval $ac_try) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 break
4416 else
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4421 rm -f conftest.$ac_objext conftest.$ac_ext
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #define _FILE_OFFSET_BITS 64
4429 #include <sys/types.h>
4430 /* Check that off_t can represent 2**63 - 1 correctly.
4431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4432 since some C++ compilers masquerading as C compilers
4433 incorrectly reject 9223372036854775807. */
4434 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4436 && LARGE_OFF_T % 2147483647 == 1)
4437 ? 1 : -1];
4439 main ()
4443 return 0;
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_sys_file_offset_bits=64; break
4459 else
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4464 rm -f conftest.$ac_objext conftest.$ac_ext
4465 break
4466 done
4468 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4469 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4470 if test "$ac_cv_sys_file_offset_bits" != no; then
4472 cat >>confdefs.h <<_ACEOF
4473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4474 _ACEOF
4477 rm -f conftest*
4478 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4479 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4480 if test "${ac_cv_sys_large_files+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 while :; do
4484 ac_cv_sys_large_files=no
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h. */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 #include <sys/types.h>
4492 /* Check that off_t can represent 2**63 - 1 correctly.
4493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4494 since some C++ compilers masquerading as C compilers
4495 incorrectly reject 9223372036854775807. */
4496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4498 && LARGE_OFF_T % 2147483647 == 1)
4499 ? 1 : -1];
4501 main ()
4505 return 0;
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 break
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4526 rm -f conftest.$ac_objext conftest.$ac_ext
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #define _LARGE_FILES 1
4534 #include <sys/types.h>
4535 /* Check that off_t can represent 2**63 - 1 correctly.
4536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4537 since some C++ compilers masquerading as C compilers
4538 incorrectly reject 9223372036854775807. */
4539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4541 && LARGE_OFF_T % 2147483647 == 1)
4542 ? 1 : -1];
4544 main ()
4548 return 0;
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_sys_large_files=1; break
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4569 rm -f conftest.$ac_objext conftest.$ac_ext
4570 break
4571 done
4573 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4574 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4575 if test "$ac_cv_sys_large_files" != no; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define _LARGE_FILES $ac_cv_sys_large_files
4579 _ACEOF
4582 rm -f conftest*
4586 if test "${with_sound}" != "no"; then
4587 # Sound support for GNU/Linux and the free BSDs.
4588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4590 if test "${ac_cv_header_stdc+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 #include <stdlib.h>
4600 #include <stdarg.h>
4601 #include <string.h>
4602 #include <float.h>
4605 main ()
4609 return 0;
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_header_stdc=yes
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_cv_header_stdc=no
4631 rm -f conftest.$ac_objext conftest.$ac_ext
4633 if test $ac_cv_header_stdc = yes; then
4634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <string.h>
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then
4647 else
4648 ac_cv_header_stdc=no
4650 rm -f conftest*
4654 if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 #include <stdlib.h>
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then
4668 else
4669 ac_cv_header_stdc=no
4671 rm -f conftest*
4675 if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then
4679 else
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <ctype.h>
4687 #if ((' ' & 0x0FF) == 0x020)
4688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4690 #else
4691 # define ISLOWER(c) \
4692 (('a' <= (c) && (c) <= 'i') \
4693 || ('j' <= (c) && (c) <= 'r') \
4694 || ('s' <= (c) && (c) <= 'z'))
4695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4696 #endif
4698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4700 main ()
4702 int i;
4703 for (i = 0; i < 256; i++)
4704 if (XOR (islower (i), ISLOWER (i))
4705 || toupper (i) != TOUPPER (i))
4706 exit(2);
4707 exit (0);
4709 _ACEOF
4710 rm -f conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4722 else
4723 echo "$as_me: program exited with status $ac_status" >&5
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 ( exit $ac_status )
4728 ac_cv_header_stdc=no
4730 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4734 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4735 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4736 if test $ac_cv_header_stdc = yes; then
4738 cat >>confdefs.h <<\_ACEOF
4739 #define STDC_HEADERS 1
4740 _ACEOF
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4755 inttypes.h stdint.h unistd.h
4757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4771 #include <$ac_header>
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 eval "$as_ac_Header=yes"
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 eval "$as_ac_Header=no"
4792 rm -f conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4797 cat >>confdefs.h <<_ACEOF
4798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799 _ACEOF
4803 done
4809 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813 echo "$as_me:$LINENO: checking for $ac_header" >&5
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820 else
4821 # Is the header compilable?
4822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 #include <$ac_header>
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_header_compiler=yes
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_header_compiler=no
4852 rm -f conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4854 echo "${ECHO_T}$ac_header_compiler" >&6
4856 # Is the header present?
4857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <$ac_header>
4866 _ACEOF
4867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null; then
4875 if test -s conftest.err; then
4876 ac_cpp_err=$ac_c_preproc_warn_flag
4877 else
4878 ac_cpp_err=
4880 else
4881 ac_cpp_err=yes
4883 if test -z "$ac_cpp_err"; then
4884 ac_header_preproc=yes
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ac_header_preproc=no
4891 rm -f conftest.err conftest.$ac_ext
4892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4893 echo "${ECHO_T}$ac_header_preproc" >&6
4895 # So? What about this header?
4896 case $ac_header_compiler:$ac_header_preproc in
4897 yes:no )
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4902 ac_header_preproc=yes
4904 no:yes )
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4918 cat <<\_ASBOX
4919 ## ------------------------------------------ ##
4920 ## Report this to the AC_PACKAGE_NAME lists. ##
4921 ## ------------------------------------------ ##
4922 _ASBOX
4924 sed "s/^/$as_me: WARNING: /" >&2
4926 esac
4927 echo "$as_me:$LINENO: checking for $ac_header" >&5
4928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 eval "$as_ac_Header=\$ac_header_preproc"
4934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4939 cat >>confdefs.h <<_ACEOF
4940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4941 _ACEOF
4945 done
4947 # Emulation library used on NetBSD.
4948 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4949 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4950 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 ac_check_lib_save_LIBS=$LIBS
4954 LIBS="-lossaudio $LIBS"
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4962 /* Override any gcc2 internal prototype to avoid an error. */
4963 #ifdef __cplusplus
4964 extern "C"
4965 #endif
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4968 char _oss_ioctl ();
4970 main ()
4972 _oss_ioctl ();
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext conftest$ac_exeext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979 (eval $ac_link) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest$ac_exeext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_lib_ossaudio__oss_ioctl=yes
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 ac_cv_lib_ossaudio__oss_ioctl=no
4996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997 LIBS=$ac_check_lib_save_LIBS
4999 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5000 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5001 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5002 LIBSOUND=-lossaudio
5003 else
5004 LIBSOUND=
5033 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5034 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5035 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5036 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5040 echo "$as_me:$LINENO: checking for $ac_header" >&5
5041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5047 else
5048 # Is the header compilable?
5049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 $ac_includes_default
5058 #include <$ac_header>
5059 _ACEOF
5060 rm -f conftest.$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062 (eval $ac_compile) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -s conftest.$ac_objext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_header_compiler=yes
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_header_compiler=no
5079 rm -f conftest.$ac_objext conftest.$ac_ext
5080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5081 echo "${ECHO_T}$ac_header_compiler" >&6
5083 # Is the header present?
5084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <$ac_header>
5093 _ACEOF
5094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_c_preproc_warn_flag
5104 else
5105 ac_cpp_err=
5107 else
5108 ac_cpp_err=yes
5110 if test -z "$ac_cpp_err"; then
5111 ac_header_preproc=yes
5112 else
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_header_preproc=no
5118 rm -f conftest.err conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5120 echo "${ECHO_T}$ac_header_preproc" >&6
5122 # So? What about this header?
5123 case $ac_header_compiler:$ac_header_preproc in
5124 yes:no )
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5129 ac_header_preproc=yes
5131 no:yes )
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5145 cat <<\_ASBOX
5146 ## ------------------------------------------ ##
5147 ## Report this to the AC_PACKAGE_NAME lists. ##
5148 ## ------------------------------------------ ##
5149 _ASBOX
5151 sed "s/^/$as_me: WARNING: /" >&2
5153 esac
5154 echo "$as_me:$LINENO: checking for $ac_header" >&5
5155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 eval "$as_ac_Header=\$ac_header_preproc"
5161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5168 _ACEOF
5172 done
5175 for ac_header in term.h
5177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5178 echo "$as_me:$LINENO: checking for $ac_header" >&5
5179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h. */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 #include <$ac_header>
5190 _ACEOF
5191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null; then
5199 if test -s conftest.err; then
5200 ac_cpp_err=$ac_c_preproc_warn_flag
5201 else
5202 ac_cpp_err=
5204 else
5205 ac_cpp_err=yes
5207 if test -z "$ac_cpp_err"; then
5208 eval "$as_ac_Header=yes"
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 eval "$as_ac_Header=no"
5215 rm -f conftest.err conftest.$ac_ext
5217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5220 cat >>confdefs.h <<_ACEOF
5221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5222 _ACEOF
5226 done
5228 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5230 if test "${ac_cv_header_stdc+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5245 main ()
5249 return 0;
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 ac_cv_header_stdc=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_cv_header_stdc=no
5271 rm -f conftest.$ac_objext conftest.$ac_ext
5273 if test $ac_cv_header_stdc = yes; then
5274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <string.h>
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev/null 2>&1; then
5287 else
5288 ac_cv_header_stdc=no
5290 rm -f conftest*
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <stdlib.h>
5304 _ACEOF
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 $EGREP "free" >/dev/null 2>&1; then
5308 else
5309 ac_cv_header_stdc=no
5311 rm -f conftest*
5315 if test $ac_cv_header_stdc = yes; then
5316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5317 if test "$cross_compiling" = yes; then
5319 else
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <ctype.h>
5327 #if ((' ' & 0x0FF) == 0x020)
5328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5330 #else
5331 # define ISLOWER(c) \
5332 (('a' <= (c) && (c) <= 'i') \
5333 || ('j' <= (c) && (c) <= 'r') \
5334 || ('s' <= (c) && (c) <= 'z'))
5335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5336 #endif
5338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5340 main ()
5342 int i;
5343 for (i = 0; i < 256; i++)
5344 if (XOR (islower (i), ISLOWER (i))
5345 || toupper (i) != TOUPPER (i))
5346 exit(2);
5347 exit (0);
5349 _ACEOF
5350 rm -f conftest$ac_exeext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5352 (eval $ac_link) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5362 else
5363 echo "$as_me: program exited with status $ac_status" >&5
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 ( exit $ac_status )
5368 ac_cv_header_stdc=no
5370 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5374 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5375 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5376 if test $ac_cv_header_stdc = yes; then
5378 cat >>confdefs.h <<\_ACEOF
5379 #define STDC_HEADERS 1
5380 _ACEOF
5384 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5385 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5386 if test "${ac_cv_header_time+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 #include <sys/types.h>
5396 #include <sys/time.h>
5397 #include <time.h>
5400 main ()
5402 if ((struct tm *) 0)
5403 return 0;
5405 return 0;
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_header_time=yes
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_cv_header_time=no
5427 rm -f conftest.$ac_objext conftest.$ac_ext
5429 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5430 echo "${ECHO_T}$ac_cv_header_time" >&6
5431 if test $ac_cv_header_time = yes; then
5433 cat >>confdefs.h <<\_ACEOF
5434 #define TIME_WITH_SYS_TIME 1
5435 _ACEOF
5439 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5440 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5441 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 $ac_includes_default
5452 main ()
5454 #ifndef sys_siglist
5455 char *p = (char *) sys_siglist;
5456 #endif
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_have_decl_sys_siglist=yes
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 ac_cv_have_decl_sys_siglist=no
5481 rm -f conftest.$ac_objext conftest.$ac_ext
5483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5484 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5485 if test $ac_cv_have_decl_sys_siglist = yes; then
5487 cat >>confdefs.h <<_ACEOF
5488 #define HAVE_DECL_SYS_SIGLIST 1
5489 _ACEOF
5492 else
5493 cat >>confdefs.h <<_ACEOF
5494 #define HAVE_DECL_SYS_SIGLIST 0
5495 _ACEOF
5501 if test $ac_cv_have_decl_sys_siglist != yes; then
5502 # For Tru64, at least:
5503 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5504 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5505 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 $ac_includes_default
5516 main ()
5518 #ifndef __sys_siglist
5519 char *p = (char *) __sys_siglist;
5520 #endif
5523 return 0;
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528 (eval $ac_compile) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_have_decl___sys_siglist=yes
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_cv_have_decl___sys_siglist=no
5545 rm -f conftest.$ac_objext conftest.$ac_ext
5547 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5548 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5549 if test $ac_cv_have_decl___sys_siglist = yes; then
5551 cat >>confdefs.h <<_ACEOF
5552 #define HAVE_DECL___SYS_SIGLIST 1
5553 _ACEOF
5556 else
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_DECL___SYS_SIGLIST 0
5559 _ACEOF
5565 if test $ac_cv_have_decl___sys_siglist = yes; then
5567 cat >>confdefs.h <<\_ACEOF
5568 #define sys_siglist __sys_siglist
5569 _ACEOF
5573 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5574 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5575 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 #include <sys/wait.h>
5586 #ifndef WEXITSTATUS
5587 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5588 #endif
5589 #ifndef WIFEXITED
5590 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5591 #endif
5594 main ()
5596 int s;
5597 wait (&s);
5598 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5600 return 0;
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -s conftest.$ac_objext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_header_sys_wait_h=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_header_sys_wait_h=no
5622 rm -f conftest.$ac_objext conftest.$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5625 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5626 if test $ac_cv_header_sys_wait_h = yes; then
5628 cat >>confdefs.h <<\_ACEOF
5629 #define HAVE_SYS_WAIT_H 1
5630 _ACEOF
5635 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5636 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5637 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 #ifdef TIME_WITH_SYS_TIME
5647 #include <sys/time.h>
5648 #include <time.h>
5649 #else
5650 #ifdef HAVE_SYS_TIME_H
5651 #include <sys/time.h>
5652 #else
5653 #include <time.h>
5654 #endif
5655 #endif
5656 #ifdef HAVE_UTIME_H
5657 #include <utime.h>
5658 #endif
5660 main ()
5662 static struct utimbuf x; x.actime = x.modtime;
5664 return 0;
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 emacs_cv_struct_utimbuf=yes
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 emacs_cv_struct_utimbuf=no
5686 rm -f conftest.$ac_objext conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5689 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5690 if test $emacs_cv_struct_utimbuf = yes; then
5692 cat >>confdefs.h <<\_ACEOF
5693 #define HAVE_STRUCT_UTIMBUF 1
5694 _ACEOF
5698 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5699 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5700 if test "${ac_cv_type_signal+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 #include <signal.h>
5711 #ifdef signal
5712 # undef signal
5713 #endif
5714 #ifdef __cplusplus
5715 extern "C" void (*signal (int, void (*)(int)))(int);
5716 #else
5717 void (*signal ()) ();
5718 #endif
5721 main ()
5723 int i;
5725 return 0;
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 ac_cv_type_signal=void
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_cv_type_signal=int
5747 rm -f conftest.$ac_objext conftest.$ac_ext
5749 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5750 echo "${ECHO_T}$ac_cv_type_signal" >&6
5752 cat >>confdefs.h <<_ACEOF
5753 #define RETSIGTYPE $ac_cv_type_signal
5754 _ACEOF
5758 echo "$as_me:$LINENO: checking for speed_t" >&5
5759 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5760 if test "${emacs_cv_speed_t+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #include <termios.h>
5771 main ()
5773 speed_t x = 1;
5775 return 0;
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 emacs_cv_speed_t=yes
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 emacs_cv_speed_t=no
5797 rm -f conftest.$ac_objext conftest.$ac_ext
5799 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5800 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5801 if test $emacs_cv_speed_t = yes; then
5803 cat >>confdefs.h <<\_ACEOF
5804 #define HAVE_SPEED_T 1
5805 _ACEOF
5809 echo "$as_me:$LINENO: checking for struct timeval" >&5
5810 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5811 if test "${emacs_cv_struct_timeval+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #ifdef TIME_WITH_SYS_TIME
5821 #include <sys/time.h>
5822 #include <time.h>
5823 #else
5824 #ifdef HAVE_SYS_TIME_H
5825 #include <sys/time.h>
5826 #else
5827 #include <time.h>
5828 #endif
5829 #endif
5831 main ()
5833 static struct timeval x; x.tv_sec = x.tv_usec;
5835 return 0;
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 emacs_cv_struct_timeval=yes
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 emacs_cv_struct_timeval=no
5857 rm -f conftest.$ac_objext conftest.$ac_ext
5859 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5860 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5861 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5862 if test $emacs_cv_struct_timeval = yes; then
5864 cat >>confdefs.h <<\_ACEOF
5865 #define HAVE_TIMEVAL 1
5866 _ACEOF
5870 echo "$as_me:$LINENO: checking for struct exception" >&5
5871 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5872 if test "${emacs_cv_struct_exception+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <math.h>
5883 main ()
5885 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5887 return 0;
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 emacs_cv_struct_exception=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 emacs_cv_struct_exception=no
5909 rm -f conftest.$ac_objext conftest.$ac_ext
5911 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5912 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5913 HAVE_EXCEPTION=$emacs_cv_struct_exception
5914 if test $emacs_cv_struct_exception != yes; then
5916 cat >>confdefs.h <<\_ACEOF
5917 #define NO_MATHERR 1
5918 _ACEOF
5922 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5923 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5924 if test "${ac_cv_struct_tm+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include <sys/types.h>
5934 #include <time.h>
5937 main ()
5939 struct tm *tp; tp->tm_sec;
5941 return 0;
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946 (eval $ac_compile) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_struct_tm=time.h
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ac_cv_struct_tm=sys/time.h
5963 rm -f conftest.$ac_objext conftest.$ac_ext
5965 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5966 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5967 if test $ac_cv_struct_tm = sys/time.h; then
5969 cat >>confdefs.h <<\_ACEOF
5970 #define TM_IN_SYS_TIME 1
5971 _ACEOF
5975 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5976 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5977 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <sys/types.h>
5987 #include <$ac_cv_struct_tm>
5991 main ()
5993 static struct tm ac_aggr;
5994 if (ac_aggr.tm_zone)
5995 return 0;
5997 return 0;
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_member_struct_tm_tm_zone=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #include <sys/types.h>
6024 #include <$ac_cv_struct_tm>
6028 main ()
6030 static struct tm ac_aggr;
6031 if (sizeof ac_aggr.tm_zone)
6032 return 0;
6034 return 0;
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039 (eval $ac_compile) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_member_struct_tm_tm_zone=yes
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 ac_cv_member_struct_tm_tm_zone=no
6056 rm -f conftest.$ac_objext conftest.$ac_ext
6058 rm -f conftest.$ac_objext conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6061 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6062 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_STRUCT_TM_TM_ZONE 1
6066 _ACEOF
6071 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6073 cat >>confdefs.h <<\_ACEOF
6074 #define HAVE_TM_ZONE 1
6075 _ACEOF
6077 else
6078 echo "$as_me:$LINENO: checking for tzname" >&5
6079 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6080 if test "${ac_cv_var_tzname+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <time.h>
6090 #ifndef tzname /* For SGI. */
6091 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6092 #endif
6095 main ()
6097 atoi(*tzname);
6099 return 0;
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_var_tzname=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_cv_var_tzname=no
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6124 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6125 if test $ac_cv_var_tzname = yes; then
6127 cat >>confdefs.h <<\_ACEOF
6128 #define HAVE_TZNAME 1
6129 _ACEOF
6134 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6135 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6136 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <time.h>
6148 main ()
6150 static struct tm ac_aggr;
6151 if (ac_aggr.tm_gmtoff)
6152 return 0;
6154 return 0;
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_member_struct_tm_tm_gmtoff=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <time.h>
6183 main ()
6185 static struct tm ac_aggr;
6186 if (sizeof ac_aggr.tm_gmtoff)
6187 return 0;
6189 return 0;
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194 (eval $ac_compile) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest.$ac_objext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_member_struct_tm_tm_gmtoff=yes
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 ac_cv_member_struct_tm_tm_gmtoff=no
6211 rm -f conftest.$ac_objext conftest.$ac_ext
6213 rm -f conftest.$ac_objext conftest.$ac_ext
6215 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6216 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6217 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6219 cat >>confdefs.h <<\_ACEOF
6220 #define HAVE_TM_GMTOFF 1
6221 _ACEOF
6227 echo "$as_me:$LINENO: checking for function prototypes" >&5
6228 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6229 if test "$ac_cv_prog_cc_stdc" != no; then
6230 echo "$as_me:$LINENO: result: yes" >&5
6231 echo "${ECHO_T}yes" >&6
6233 cat >>confdefs.h <<\_ACEOF
6234 #define PROTOTYPES 1
6235 _ACEOF
6238 cat >>confdefs.h <<\_ACEOF
6239 #define __PROTOTYPES 1
6240 _ACEOF
6242 else
6243 echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6
6247 echo "$as_me:$LINENO: checking for working volatile" >&5
6248 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6249 if test "${ac_cv_c_volatile+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6260 main ()
6263 volatile int x;
6264 int * volatile y;
6266 return 0;
6268 _ACEOF
6269 rm -f conftest.$ac_objext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271 (eval $ac_compile) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -s conftest.$ac_objext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_c_volatile=yes
6282 else
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_cv_c_volatile=no
6288 rm -f conftest.$ac_objext conftest.$ac_ext
6290 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6291 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6292 if test $ac_cv_c_volatile = no; then
6294 cat >>confdefs.h <<\_ACEOF
6295 #define volatile
6296 _ACEOF
6300 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6301 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6302 if test "${ac_cv_c_const+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6313 main ()
6315 /* FIXME: Include the comments suggested by Paul. */
6316 #ifndef __cplusplus
6317 /* Ultrix mips cc rejects this. */
6318 typedef int charset[2];
6319 const charset x;
6320 /* SunOS 4.1.1 cc rejects this. */
6321 char const *const *ccp;
6322 char **p;
6323 /* NEC SVR4.0.2 mips cc rejects this. */
6324 struct point {int x, y;};
6325 static struct point const zero = {0,0};
6326 /* AIX XL C 1.02.0.0 rejects this.
6327 It does not let you subtract one const X* pointer from another in
6328 an arm of an if-expression whose if-part is not a constant
6329 expression */
6330 const char *g = "string";
6331 ccp = &g + (g ? g-g : 0);
6332 /* HPUX 7.0 cc rejects these. */
6333 ++ccp;
6334 p = (char**) ccp;
6335 ccp = (char const *const *) p;
6336 { /* SCO 3.2v4 cc rejects this. */
6337 char *t;
6338 char const *s = 0 ? (char *) 0 : (char const *) 0;
6340 *t++ = 0;
6342 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6343 int x[] = {25, 17};
6344 const int *foo = &x[0];
6345 ++foo;
6347 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6348 typedef const int *iptr;
6349 iptr p = 0;
6350 ++p;
6352 { /* AIX XL C 1.02.0.0 rejects this saying
6353 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6354 struct s { int j; const int *ap[3]; };
6355 struct s *b; b->j = 5;
6357 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6358 const int foo = 10;
6360 #endif
6363 return 0;
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_cv_c_const=yes
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 ac_cv_c_const=no
6385 rm -f conftest.$ac_objext conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6388 echo "${ECHO_T}$ac_cv_c_const" >&6
6389 if test $ac_cv_c_const = no; then
6391 cat >>confdefs.h <<\_ACEOF
6392 #define const
6393 _ACEOF
6397 echo "$as_me:$LINENO: checking for void * support" >&5
6398 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6399 if test "${emacs_cv_void_star+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6410 main ()
6412 void * foo;
6414 return 0;
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 emacs_cv_void_star=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 emacs_cv_void_star=no
6436 rm -f conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6439 echo "${ECHO_T}$emacs_cv_void_star" >&6
6440 if test $emacs_cv_void_star = yes; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define POINTER_TYPE void
6443 _ACEOF
6445 else
6446 cat >>confdefs.h <<\_ACEOF
6447 #define POINTER_TYPE char
6448 _ACEOF
6454 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6455 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6456 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6457 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 cat >conftest.make <<\_ACEOF
6461 all:
6462 @echo 'ac_maketemp="$(MAKE)"'
6463 _ACEOF
6464 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6465 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6466 if test -n "$ac_maketemp"; then
6467 eval ac_cv_prog_make_${ac_make}_set=yes
6468 else
6469 eval ac_cv_prog_make_${ac_make}_set=no
6471 rm -f conftest.make
6473 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6474 echo "$as_me:$LINENO: result: yes" >&5
6475 echo "${ECHO_T}yes" >&6
6476 SET_MAKE=
6477 else
6478 echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6
6480 SET_MAKE="MAKE=${MAKE-make}"
6484 echo "$as_me:$LINENO: checking for long file names" >&5
6485 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6486 if test "${ac_cv_sys_long_file_names+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489 ac_cv_sys_long_file_names=yes
6490 # Test for long file names in all the places we know might matter:
6491 # . the current directory, where building will happen
6492 # $prefix/lib where we will be installing things
6493 # $exec_prefix/lib likewise
6494 # eval it to expand exec_prefix.
6495 # $TMPDIR if set, where it might want to write temporary files
6496 # if $TMPDIR is not set:
6497 # /tmp where it might want to write temporary files
6498 # /var/tmp likewise
6499 # /usr/tmp likewise
6500 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6501 ac_tmpdirs=$TMPDIR
6502 else
6503 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6505 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6506 test -d $ac_dir || continue
6507 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6508 ac_xdir=$ac_dir/cf$$
6509 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6510 ac_tf1=$ac_xdir/conftest9012345
6511 ac_tf2=$ac_xdir/conftest9012346
6512 (echo 1 >$ac_tf1) 2>/dev/null
6513 (echo 2 >$ac_tf2) 2>/dev/null
6514 ac_val=`cat $ac_tf1 2>/dev/null`
6515 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6516 ac_cv_sys_long_file_names=no
6517 rm -rf $ac_xdir 2>/dev/null
6518 break
6520 rm -rf $ac_xdir 2>/dev/null
6521 done
6523 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6524 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6525 if test $ac_cv_sys_long_file_names = yes; then
6527 cat >>confdefs.h <<\_ACEOF
6528 #define HAVE_LONG_FILE_NAMES 1
6529 _ACEOF
6534 #### Choose a window system.
6536 echo "$as_me:$LINENO: checking for X" >&5
6537 echo $ECHO_N "checking for X... $ECHO_C" >&6
6540 # Check whether --with-x or --without-x was given.
6541 if test "${with_x+set}" = set; then
6542 withval="$with_x"
6545 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6546 if test "x$with_x" = xno; then
6547 # The user explicitly disabled X.
6548 have_x=disabled
6549 else
6550 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6551 # Both variables are already set.
6552 have_x=yes
6553 else
6554 if test "${ac_cv_have_x+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 # One or both of the vars are not set, and there is no cached value.
6558 ac_x_includes=no ac_x_libraries=no
6559 rm -fr conftest.dir
6560 if mkdir conftest.dir; then
6561 cd conftest.dir
6562 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6563 cat >Imakefile <<'_ACEOF'
6564 acfindx:
6565 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6566 _ACEOF
6567 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6569 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6570 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6571 for ac_extension in a so sl; do
6572 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6573 test -f $ac_im_libdir/libX11.$ac_extension; then
6574 ac_im_usrlibdir=$ac_im_libdir; break
6576 done
6577 # Screen out bogus values from the imake configuration. They are
6578 # bogus both because they are the default anyway, and because
6579 # using them would break gcc on systems where it needs fixed includes.
6580 case $ac_im_incroot in
6581 /usr/include) ;;
6582 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6583 esac
6584 case $ac_im_usrlibdir in
6585 /usr/lib | /lib) ;;
6586 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6587 esac
6589 cd ..
6590 rm -fr conftest.dir
6593 # Standard set of common directories for X headers.
6594 # Check X11 before X11Rn because it is often a symlink to the current release.
6595 ac_x_header_dirs='
6596 /usr/X11/include
6597 /usr/X11R6/include
6598 /usr/X11R5/include
6599 /usr/X11R4/include
6601 /usr/include/X11
6602 /usr/include/X11R6
6603 /usr/include/X11R5
6604 /usr/include/X11R4
6606 /usr/local/X11/include
6607 /usr/local/X11R6/include
6608 /usr/local/X11R5/include
6609 /usr/local/X11R4/include
6611 /usr/local/include/X11
6612 /usr/local/include/X11R6
6613 /usr/local/include/X11R5
6614 /usr/local/include/X11R4
6616 /usr/X386/include
6617 /usr/x386/include
6618 /usr/XFree86/include/X11
6620 /usr/include
6621 /usr/local/include
6622 /usr/unsupported/include
6623 /usr/athena/include
6624 /usr/local/x11r5/include
6625 /usr/lpp/Xamples/include
6627 /usr/openwin/include
6628 /usr/openwin/share/include'
6630 if test "$ac_x_includes" = no; then
6631 # Guess where to find include files, by looking for Intrinsic.h.
6632 # First, try using that file with no special directory specified.
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <X11/Intrinsic.h>
6640 _ACEOF
6641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } >/dev/null; then
6649 if test -s conftest.err; then
6650 ac_cpp_err=$ac_c_preproc_warn_flag
6651 else
6652 ac_cpp_err=
6654 else
6655 ac_cpp_err=yes
6657 if test -z "$ac_cpp_err"; then
6658 # We can compile using X headers with no special include directory.
6659 ac_x_includes=
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 for ac_dir in $ac_x_header_dirs; do
6665 if test -r "$ac_dir/X11/Intrinsic.h"; then
6666 ac_x_includes=$ac_dir
6667 break
6669 done
6671 rm -f conftest.err conftest.$ac_ext
6672 fi # $ac_x_includes = no
6674 if test "$ac_x_libraries" = no; then
6675 # Check for the libraries.
6676 # See if we find them without any special options.
6677 # Don't add to $LIBS permanently.
6678 ac_save_LIBS=$LIBS
6679 LIBS="-lXt $LIBS"
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <X11/Intrinsic.h>
6688 main ()
6690 XtMalloc (0)
6692 return 0;
6694 _ACEOF
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697 (eval $ac_link) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 LIBS=$ac_save_LIBS
6708 # We can link X programs with no special library path.
6709 ac_x_libraries=
6710 else
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 LIBS=$ac_save_LIBS
6715 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6717 # Don't even attempt the hair of trying to link an X program!
6718 for ac_extension in a so sl; do
6719 if test -r $ac_dir/libXt.$ac_extension; then
6720 ac_x_libraries=$ac_dir
6721 break 2
6723 done
6724 done
6726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6727 fi # $ac_x_libraries = no
6729 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6730 # Didn't find X anywhere. Cache the known absence of X.
6731 ac_cv_have_x="have_x=no"
6732 else
6733 # Record where we found X for the cache.
6734 ac_cv_have_x="have_x=yes \
6735 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6740 eval "$ac_cv_have_x"
6741 fi # $with_x != no
6743 if test "$have_x" != yes; then
6744 echo "$as_me:$LINENO: result: $have_x" >&5
6745 echo "${ECHO_T}$have_x" >&6
6746 no_x=yes
6747 else
6748 # If each of the values was on the command line, it overrides each guess.
6749 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6750 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6751 # Update the cache value to reflect the command line values.
6752 ac_cv_have_x="have_x=yes \
6753 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6754 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6755 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6758 if test "$no_x" = yes; then
6759 window_system=none
6760 else
6761 window_system=x11
6764 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6765 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6766 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6767 x_default_search_path=""
6768 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6769 x_search_path="\
6770 ${x_library}/X11/%L/%T/%N%C%S:\
6771 ${x_library}/X11/%l/%T/%N%C%S:\
6772 ${x_library}/X11/%T/%N%C%S:\
6773 ${x_library}/X11/%L/%T/%N%S:\
6774 ${x_library}/X11/%l/%T/%N%S:\
6775 ${x_library}/X11/%T/%N%S"
6776 if test x"${x_default_search_path}" = x; then
6777 x_default_search_path=${x_search_path}
6778 else
6779 x_default_search_path="${x_search_path}:${x_default_search_path}"
6781 done
6783 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6784 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6787 if test x"${x_includes}" = x; then
6788 bitmapdir=/usr/include/X11/bitmaps
6789 else
6790 # accumulate include directories that have X11 bitmap subdirectories
6791 bmd_acc="dummyval"
6792 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6793 if test -d "${bmd}/X11/bitmaps"; then
6794 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6796 if test -d "${bmd}/bitmaps"; then
6797 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6799 done
6800 if test ${bmd_acc} != "dummyval"; then
6801 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6805 case "${window_system}" in
6806 x11 )
6807 HAVE_X_WINDOWS=yes
6808 HAVE_X11=yes
6809 case "${with_x_toolkit}" in
6810 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6811 motif ) USE_X_TOOLKIT=MOTIF ;;
6812 gtk ) with_gtk=yes
6813 USE_X_TOOLKIT=none ;;
6814 no ) USE_X_TOOLKIT=none ;;
6815 * ) USE_X_TOOLKIT=maybe ;;
6816 esac
6818 none )
6819 HAVE_X_WINDOWS=no
6820 HAVE_X11=no
6821 USE_X_TOOLKIT=none
6823 esac
6825 ### If we're using X11, we should use the X menu package.
6826 HAVE_MENUS=no
6827 case ${HAVE_X11} in
6828 yes ) HAVE_MENUS=yes ;;
6829 esac
6831 if test "${opsys}" = "hpux9"; then
6832 case "${x_libraries}" in
6833 *X11R4* )
6834 opsysfile="s/hpux9-x11r4.h"
6836 esac
6839 if test "${opsys}" = "hpux9shr"; then
6840 case "${x_libraries}" in
6841 *X11R4* )
6842 opsysfile="s/hpux9shxr4.h"
6844 esac
6847 ### Compute the unexec source name from the object name.
6848 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6850 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6851 # Assume not, until told otherwise.
6852 GNU_MALLOC=yes
6853 doug_lea_malloc=yes
6854 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6855 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6856 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
6866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6867 #define malloc_get_state innocuous_malloc_get_state
6869 /* System header to define __stub macros and hopefully few prototypes,
6870 which can conflict with char malloc_get_state (); below.
6871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6872 <limits.h> exists even on freestanding compilers. */
6874 #ifdef __STDC__
6875 # include <limits.h>
6876 #else
6877 # include <assert.h>
6878 #endif
6880 #undef malloc_get_state
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 #ifdef __cplusplus
6884 extern "C"
6886 #endif
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char malloc_get_state ();
6890 /* The GNU C library defines this for functions which it implements
6891 to always fail with ENOSYS. Some functions are actually named
6892 something starting with __ and the normal name is an alias. */
6893 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6894 choke me
6895 #else
6896 char (*f) () = malloc_get_state;
6897 #endif
6898 #ifdef __cplusplus
6900 #endif
6903 main ()
6905 return f != malloc_get_state;
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext conftest$ac_exeext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_func_malloc_get_state=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_cv_func_malloc_get_state=no
6929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6932 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6933 if test $ac_cv_func_malloc_get_state = yes; then
6935 else
6936 doug_lea_malloc=no
6939 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6940 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6941 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
6951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6952 #define malloc_set_state innocuous_malloc_set_state
6954 /* System header to define __stub macros and hopefully few prototypes,
6955 which can conflict with char malloc_set_state (); below.
6956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6957 <limits.h> exists even on freestanding compilers. */
6959 #ifdef __STDC__
6960 # include <limits.h>
6961 #else
6962 # include <assert.h>
6963 #endif
6965 #undef malloc_set_state
6967 /* Override any gcc2 internal prototype to avoid an error. */
6968 #ifdef __cplusplus
6969 extern "C"
6971 #endif
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974 char malloc_set_state ();
6975 /* The GNU C library defines this for functions which it implements
6976 to always fail with ENOSYS. Some functions are actually named
6977 something starting with __ and the normal name is an alias. */
6978 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6979 choke me
6980 #else
6981 char (*f) () = malloc_set_state;
6982 #endif
6983 #ifdef __cplusplus
6985 #endif
6988 main ()
6990 return f != malloc_set_state;
6992 return 0;
6994 _ACEOF
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try='test -s conftest$ac_exeext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_cv_func_malloc_set_state=yes
7008 else
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_cv_func_malloc_set_state=no
7014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7017 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7018 if test $ac_cv_func_malloc_set_state = yes; then
7020 else
7021 doug_lea_malloc=no
7024 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7025 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7026 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 extern void (* __after_morecore_hook)();
7037 main ()
7039 __after_morecore_hook = 0
7041 return 0;
7043 _ACEOF
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -s conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 emacs_cv_var___after_morecore_hook=yes
7057 else
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 emacs_cv_var___after_morecore_hook=no
7063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7065 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7066 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7067 if test $emacs_cv_var___after_morecore_hook = no; then
7068 doug_lea_malloc=no
7070 if test "${system_malloc}" = "yes"; then
7071 GNU_MALLOC=no
7072 GNU_MALLOC_reason="
7073 (The GNU allocators don't work with this system configuration.)"
7075 if test "$doug_lea_malloc" = "yes" ; then
7076 if test "$GNU_MALLOC" = yes ; then
7077 GNU_MALLOC_reason="
7078 (Using Doug Lea's new malloc from the GNU C Library.)"
7081 cat >>confdefs.h <<\_ACEOF
7082 #define DOUG_LEA_MALLOC 1
7083 _ACEOF
7087 if test x"${REL_ALLOC}" = x; then
7088 REL_ALLOC=${GNU_MALLOC}
7094 for ac_header in stdlib.h unistd.h
7096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7098 echo "$as_me:$LINENO: checking for $ac_header" >&5
7099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7105 else
7106 # Is the header compilable?
7107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 $ac_includes_default
7116 #include <$ac_header>
7117 _ACEOF
7118 rm -f conftest.$ac_objext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120 (eval $ac_compile) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -s conftest.$ac_objext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 ac_header_compiler=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_header_compiler=no
7137 rm -f conftest.$ac_objext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7139 echo "${ECHO_T}$ac_header_compiler" >&6
7141 # Is the header present?
7142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 #include <$ac_header>
7151 _ACEOF
7152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } >/dev/null; then
7160 if test -s conftest.err; then
7161 ac_cpp_err=$ac_c_preproc_warn_flag
7162 else
7163 ac_cpp_err=
7165 else
7166 ac_cpp_err=yes
7168 if test -z "$ac_cpp_err"; then
7169 ac_header_preproc=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_header_preproc=no
7176 rm -f conftest.err conftest.$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7178 echo "${ECHO_T}$ac_header_preproc" >&6
7180 # So? What about this header?
7181 case $ac_header_compiler:$ac_header_preproc in
7182 yes:no )
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7187 ac_header_preproc=yes
7189 no:yes )
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7203 cat <<\_ASBOX
7204 ## ------------------------------------------ ##
7205 ## Report this to the AC_PACKAGE_NAME lists. ##
7206 ## ------------------------------------------ ##
7207 _ASBOX
7209 sed "s/^/$as_me: WARNING: /" >&2
7211 esac
7212 echo "$as_me:$LINENO: checking for $ac_header" >&5
7213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217 eval "$as_ac_Header=\$ac_header_preproc"
7219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7224 cat >>confdefs.h <<_ACEOF
7225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7226 _ACEOF
7230 done
7233 for ac_func in getpagesize
7235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7236 echo "$as_me:$LINENO: checking for $ac_func" >&5
7237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7238 if eval "test \"\${$as_ac_var+set}\" = set"; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7249 #define $ac_func innocuous_$ac_func
7251 /* System header to define __stub macros and hopefully few prototypes,
7252 which can conflict with char $ac_func (); below.
7253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7254 <limits.h> exists even on freestanding compilers. */
7256 #ifdef __STDC__
7257 # include <limits.h>
7258 #else
7259 # include <assert.h>
7260 #endif
7262 #undef $ac_func
7264 /* Override any gcc2 internal prototype to avoid an error. */
7265 #ifdef __cplusplus
7266 extern "C"
7268 #endif
7269 /* We use char because int might match the return type of a gcc2
7270 builtin and then its argument prototype would still apply. */
7271 char $ac_func ();
7272 /* The GNU C library defines this for functions which it implements
7273 to always fail with ENOSYS. Some functions are actually named
7274 something starting with __ and the normal name is an alias. */
7275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7276 choke me
7277 #else
7278 char (*f) () = $ac_func;
7279 #endif
7280 #ifdef __cplusplus
7282 #endif
7285 main ()
7287 return f != $ac_func;
7289 return 0;
7291 _ACEOF
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7294 (eval $ac_link) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -s conftest$ac_exeext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 eval "$as_ac_var=yes"
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 eval "$as_ac_var=no"
7311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7315 if test `eval echo '${'$as_ac_var'}'` = yes; then
7316 cat >>confdefs.h <<_ACEOF
7317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7318 _ACEOF
7321 done
7323 echo "$as_me:$LINENO: checking for working mmap" >&5
7324 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7325 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 if test "$cross_compiling" = yes; then
7329 ac_cv_func_mmap_fixed_mapped=no
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 $ac_includes_default
7338 /* malloc might have been renamed as rpl_malloc. */
7339 #undef malloc
7341 /* Thanks to Mike Haertel and Jim Avera for this test.
7342 Here is a matrix of mmap possibilities:
7343 mmap private not fixed
7344 mmap private fixed at somewhere currently unmapped
7345 mmap private fixed at somewhere already mapped
7346 mmap shared not fixed
7347 mmap shared fixed at somewhere currently unmapped
7348 mmap shared fixed at somewhere already mapped
7349 For private mappings, we should verify that changes cannot be read()
7350 back from the file, nor mmap's back from the file at a different
7351 address. (There have been systems where private was not correctly
7352 implemented like the infamous i386 svr4.0, and systems where the
7353 VM page cache was not coherent with the file system buffer cache
7354 like early versions of FreeBSD and possibly contemporary NetBSD.)
7355 For shared mappings, we should conversely verify that changes get
7356 propagated back to all the places they're supposed to be.
7358 Grep wants private fixed already mapped.
7359 The main things grep needs to know about mmap are:
7360 * does it exist and is it safe to write into the mmap'd area
7361 * how to use it (BSD variants) */
7363 #include <fcntl.h>
7364 #include <sys/mman.h>
7366 #if !STDC_HEADERS && !HAVE_STDLIB_H
7367 char *malloc ();
7368 #endif
7370 /* This mess was copied from the GNU getpagesize.h. */
7371 #if !HAVE_GETPAGESIZE
7372 /* Assume that all systems that can run configure have sys/param.h. */
7373 # if !HAVE_SYS_PARAM_H
7374 # define HAVE_SYS_PARAM_H 1
7375 # endif
7377 # ifdef _SC_PAGESIZE
7378 # define getpagesize() sysconf(_SC_PAGESIZE)
7379 # else /* no _SC_PAGESIZE */
7380 # if HAVE_SYS_PARAM_H
7381 # include <sys/param.h>
7382 # ifdef EXEC_PAGESIZE
7383 # define getpagesize() EXEC_PAGESIZE
7384 # else /* no EXEC_PAGESIZE */
7385 # ifdef NBPG
7386 # define getpagesize() NBPG * CLSIZE
7387 # ifndef CLSIZE
7388 # define CLSIZE 1
7389 # endif /* no CLSIZE */
7390 # else /* no NBPG */
7391 # ifdef NBPC
7392 # define getpagesize() NBPC
7393 # else /* no NBPC */
7394 # ifdef PAGESIZE
7395 # define getpagesize() PAGESIZE
7396 # endif /* PAGESIZE */
7397 # endif /* no NBPC */
7398 # endif /* no NBPG */
7399 # endif /* no EXEC_PAGESIZE */
7400 # else /* no HAVE_SYS_PARAM_H */
7401 # define getpagesize() 8192 /* punt totally */
7402 # endif /* no HAVE_SYS_PARAM_H */
7403 # endif /* no _SC_PAGESIZE */
7405 #endif /* no HAVE_GETPAGESIZE */
7408 main ()
7410 char *data, *data2, *data3;
7411 int i, pagesize;
7412 int fd;
7414 pagesize = getpagesize ();
7416 /* First, make a file with some known garbage in it. */
7417 data = (char *) malloc (pagesize);
7418 if (!data)
7419 exit (1);
7420 for (i = 0; i < pagesize; ++i)
7421 *(data + i) = rand ();
7422 umask (0);
7423 fd = creat ("conftest.mmap", 0600);
7424 if (fd < 0)
7425 exit (1);
7426 if (write (fd, data, pagesize) != pagesize)
7427 exit (1);
7428 close (fd);
7430 /* Next, try to mmap the file at a fixed address which already has
7431 something else allocated at it. If we can, also make sure that
7432 we see the same garbage. */
7433 fd = open ("conftest.mmap", O_RDWR);
7434 if (fd < 0)
7435 exit (1);
7436 data2 = (char *) malloc (2 * pagesize);
7437 if (!data2)
7438 exit (1);
7439 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7440 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7441 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7442 exit (1);
7443 for (i = 0; i < pagesize; ++i)
7444 if (*(data + i) != *(data2 + i))
7445 exit (1);
7447 /* Finally, make sure that changes to the mapped area do not
7448 percolate back to the file as seen by read(). (This is a bug on
7449 some variants of i386 svr4.0.) */
7450 for (i = 0; i < pagesize; ++i)
7451 *(data2 + i) = *(data2 + i) + 1;
7452 data3 = (char *) malloc (pagesize);
7453 if (!data3)
7454 exit (1);
7455 if (read (fd, data3, pagesize) != pagesize)
7456 exit (1);
7457 for (i = 0; i < pagesize; ++i)
7458 if (*(data + i) != *(data3 + i))
7459 exit (1);
7460 close (fd);
7461 exit (0);
7463 _ACEOF
7464 rm -f conftest$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 ac_cv_func_mmap_fixed_mapped=yes
7476 else
7477 echo "$as_me: program exited with status $ac_status" >&5
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ( exit $ac_status )
7482 ac_cv_func_mmap_fixed_mapped=no
7484 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7488 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7489 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7491 cat >>confdefs.h <<\_ACEOF
7492 #define HAVE_MMAP 1
7493 _ACEOF
7496 rm -f conftest.mmap
7498 if test $use_mmap_for_buffers = yes; then
7499 REL_ALLOC=no
7502 LIBS="$libsrc_libs $LIBS"
7505 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7506 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7507 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 ac_check_lib_save_LIBS=$LIBS
7511 LIBS="-ldnet $LIBS"
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 #ifdef __cplusplus
7521 extern "C"
7522 #endif
7523 /* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7525 char dnet_ntoa ();
7527 main ()
7529 dnet_ntoa ();
7531 return 0;
7533 _ACEOF
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest$ac_exeext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_lib_dnet_dnet_ntoa=yes
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_lib_dnet_dnet_ntoa=no
7553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7554 LIBS=$ac_check_lib_save_LIBS
7556 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7557 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7558 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7559 cat >>confdefs.h <<_ACEOF
7560 #define HAVE_LIBDNET 1
7561 _ACEOF
7563 LIBS="-ldnet $LIBS"
7568 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7569 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7570 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 ac_check_lib_save_LIBS=$LIBS
7574 LIBS="-lXbsd $LIBS"
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7584 main ()
7586 main ();
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7593 (eval $ac_link) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -s conftest$ac_exeext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_lib_Xbsd_main=yes
7604 else
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 ac_cv_lib_Xbsd_main=no
7610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7614 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7615 if test $ac_cv_lib_Xbsd_main = yes; then
7616 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7621 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7622 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7623 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 ac_check_lib_save_LIBS=$LIBS
7627 LIBS="-lpthreads $LIBS"
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7635 /* Override any gcc2 internal prototype to avoid an error. */
7636 #ifdef __cplusplus
7637 extern "C"
7638 #endif
7639 /* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7641 char cma_open ();
7643 main ()
7645 cma_open ();
7647 return 0;
7649 _ACEOF
7650 rm -f conftest.$ac_objext conftest$ac_exeext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7652 (eval $ac_link) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -s conftest$ac_exeext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_cv_lib_pthreads_cma_open=yes
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 ac_cv_lib_pthreads_cma_open=no
7669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7670 LIBS=$ac_check_lib_save_LIBS
7672 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7673 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7674 if test $ac_cv_lib_pthreads_cma_open = yes; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define HAVE_LIBPTHREADS 1
7677 _ACEOF
7679 LIBS="-lpthreads $LIBS"
7684 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7685 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7686 if test -d /usr/X386/include; then
7687 HAVE_XFREE386=yes
7688 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7689 else
7690 HAVE_XFREE386=no
7692 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7693 echo "${ECHO_T}$HAVE_XFREE386" >&6
7696 case ${host_os} in
7697 aix*)
7698 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7699 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7700 if test "${gdb_cv_bigtoc+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7704 case $GCC in
7705 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7706 *) gdb_cv_bigtoc=-bbigtoc ;;
7707 esac
7709 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7710 cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7718 main ()
7720 int i;
7722 return 0;
7724 _ACEOF
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -s conftest$ac_exeext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7738 else
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7742 gdb_cv_bigtoc=
7744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7748 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7750 esac
7752 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7753 # used for the tests that follow. We set them back to REAL_CFLAGS and
7754 # REAL_CPPFLAGS later on.
7756 REAL_CPPFLAGS="$CPPFLAGS"
7758 if test "${HAVE_X11}" = "yes"; then
7759 DEFS="$C_SWITCH_X_SITE $DEFS"
7760 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7761 LIBS="$LIBX $LIBS"
7762 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7763 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7765 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7766 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7767 # but it's more convenient here to set LD_RUN_PATH
7768 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7769 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7770 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7771 export LD_RUN_PATH
7774 if test "${opsys}" = "gnu-linux"; then
7775 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7776 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7785 main ()
7787 XOpenDisplay ("foo");
7789 return 0;
7791 _ACEOF
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 xlinux_first_failure=no
7805 else
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 xlinux_first_failure=yes
7811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7812 if test "${xlinux_first_failure}" = "yes"; then
7813 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7814 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7815 OLD_CPPFLAGS="$CPPFLAGS"
7816 OLD_LIBS="$LIBS"
7817 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7818 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7819 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7820 LIBS="$LIBS -b i486-linuxaout"
7821 cat >conftest.$ac_ext <<_ACEOF
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_second_failure=no
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 xlinux_second_failure=yes
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 if test "${xlinux_second_failure}" = "yes"; then
7857 # If we get the same failure with -b, there is no use adding -b.
7858 # So take it out. This plays safe.
7859 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7860 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7861 CPPFLAGS="$OLD_CPPFLAGS"
7862 LIBS="$OLD_LIBS"
7863 echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6
7865 else
7866 echo "$as_me:$LINENO: result: yes" >&5
7867 echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6
7875 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7876 # header files included from there.
7877 echo "$as_me:$LINENO: checking for Xkb" >&5
7878 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 #include <X11/Xlib.h>
7886 #include <X11/XKBlib.h>
7888 main ()
7890 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7892 return 0;
7894 _ACEOF
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897 (eval $ac_link) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -s conftest$ac_exeext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 (eval $ac_try) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 emacs_xkb=yes
7908 else
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7912 emacs_xkb=no
7914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7915 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7916 echo "${ECHO_T}$emacs_xkb" >&6
7917 if test $emacs_xkb = yes; then
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_XKBGETKEYBOARD 1
7921 _ACEOF
7929 for ac_func in XrmSetDatabase XScreenResourceString \
7930 XScreenNumberOfScreen XSetWMProtocols
7932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7933 echo "$as_me:$LINENO: checking for $ac_func" >&5
7934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7935 if eval "test \"\${$as_ac_var+set}\" = set"; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7946 #define $ac_func innocuous_$ac_func
7948 /* System header to define __stub macros and hopefully few prototypes,
7949 which can conflict with char $ac_func (); below.
7950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7951 <limits.h> exists even on freestanding compilers. */
7953 #ifdef __STDC__
7954 # include <limits.h>
7955 #else
7956 # include <assert.h>
7957 #endif
7959 #undef $ac_func
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 #ifdef __cplusplus
7963 extern "C"
7965 #endif
7966 /* We use char because int might match the return type of a gcc2
7967 builtin and then its argument prototype would still apply. */
7968 char $ac_func ();
7969 /* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7973 choke me
7974 #else
7975 char (*f) () = $ac_func;
7976 #endif
7977 #ifdef __cplusplus
7979 #endif
7982 main ()
7984 return f != $ac_func;
7986 return 0;
7988 _ACEOF
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7991 (eval $ac_link) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 eval "$as_ac_var=yes"
8002 else
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 eval "$as_ac_var=no"
8008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8012 if test `eval echo '${'$as_ac_var'}'` = yes; then
8013 cat >>confdefs.h <<_ACEOF
8014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8015 _ACEOF
8018 done
8022 if test "${window_system}" = "x11"; then
8023 echo "$as_me:$LINENO: checking X11 version 6" >&5
8024 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8025 if test "${emacs_cv_x11_version_6+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <X11/Xlib.h>
8036 main ()
8038 #if XlibSpecificationRelease < 6
8039 fail;
8040 #endif
8043 return 0;
8045 _ACEOF
8046 rm -f conftest.$ac_objext conftest$ac_exeext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8048 (eval $ac_link) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -s conftest$ac_exeext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 emacs_cv_x11_version_6=yes
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 emacs_cv_x11_version_6=no
8065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8068 if test $emacs_cv_x11_version_6 = yes; then
8069 echo "$as_me:$LINENO: result: 6 or newer" >&5
8070 echo "${ECHO_T}6 or newer" >&6
8072 cat >>confdefs.h <<\_ACEOF
8073 #define HAVE_X11R6 1
8074 _ACEOF
8076 else
8077 echo "$as_me:$LINENO: result: before 6" >&5
8078 echo "${ECHO_T}before 6" >&6
8082 if test "${window_system}" = "x11"; then
8083 echo "$as_me:$LINENO: checking X11 version 5" >&5
8084 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8085 if test "${emacs_cv_x11_version_5+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <X11/Xlib.h>
8096 main ()
8098 #if XlibSpecificationRelease < 5
8099 fail;
8100 #endif
8103 return 0;
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108 (eval $ac_link) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -s conftest$ac_exeext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 emacs_cv_x11_version_5=yes
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 emacs_cv_x11_version_5=no
8125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128 if test $emacs_cv_x11_version_5 = yes; then
8129 echo "$as_me:$LINENO: result: 5 or newer" >&5
8130 echo "${ECHO_T}5 or newer" >&6
8131 HAVE_X11R5=yes
8133 cat >>confdefs.h <<\_ACEOF
8134 #define HAVE_X11R5 1
8135 _ACEOF
8137 else
8138 HAVE_X11R5=no
8139 echo "$as_me:$LINENO: result: before 5" >&5
8140 echo "${ECHO_T}before 5" >&6
8146 HAVE_GTK=no
8147 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8148 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8149 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8150 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8151 { (exit 1); exit 1; }; };
8153 GLIB_REQUIRED=2.0.1
8154 GTK_REQUIRED=2.0.1
8155 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8157 if test "X${with_pkg_config_prog}" != X; then
8158 PKG_CONFIG="${with_pkg_config_prog}"
8161 succeeded=no
8163 if test -z "$PKG_CONFIG"; then
8164 # Extract the first word of "pkg-config", so it can be a program name with args.
8165 set dummy pkg-config; ac_word=$2
8166 echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8168 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171 case $PKG_CONFIG in
8172 [\\/]* | ?:[\\/]*)
8173 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 break 2
8187 done
8188 done
8190 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8192 esac
8194 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8196 if test -n "$PKG_CONFIG"; then
8197 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8198 echo "${ECHO_T}$PKG_CONFIG" >&6
8199 else
8200 echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8206 if test "$PKG_CONFIG" = "no" ; then
8207 echo "*** The pkg-config script could not be found. Make sure it is"
8208 echo "*** in your path, or give the full path to pkg-config with"
8209 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8210 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8211 else
8212 PKG_CONFIG_MIN_VERSION=0.9.0
8213 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8214 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8215 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8217 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8218 echo "$as_me:$LINENO: result: yes" >&5
8219 echo "${ECHO_T}yes" >&6
8220 succeeded=yes
8222 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8223 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8224 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8225 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8226 echo "${ECHO_T}$GTK_CFLAGS" >&6
8228 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8229 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8230 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8231 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8232 echo "${ECHO_T}$GTK_LIBS" >&6
8233 else
8234 GTK_CFLAGS=""
8235 GTK_LIBS=""
8236 ## If we have a custom action on failure, don't print errors, but
8237 ## do set a variable so people can do so.
8238 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8239 echo $GTK_PKG_ERRORS
8244 else
8245 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8246 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8250 if test $succeeded = yes; then
8252 else
8253 { { 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
8254 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;}
8255 { (exit 1); exit 1; }; }
8260 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8261 HAVE_GTK=yes
8263 cat >>confdefs.h <<\_ACEOF
8264 #define HAVE_GTK 1
8265 _ACEOF
8267 USE_X_TOOLKIT=none
8269 with_toolkit_scroll_bars=yes
8272 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8273 if test x"${HAVE_X11R5}" = xyes; then
8274 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8275 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8276 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h. */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8286 #include <X11/Intrinsic.h>
8287 #include <X11/Xaw/Simple.h>
8289 main ()
8293 return 0;
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298 (eval $ac_link) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 emacs_cv_x11_version_5_with_xaw=yes
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 emacs_cv_x11_version_5_with_xaw=no
8315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8318 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8319 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8320 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8321 USE_X_TOOLKIT=LUCID
8322 else
8323 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8324 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8325 USE_X_TOOLKIT=none
8327 else
8328 USE_X_TOOLKIT=none
8332 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8334 if test "${USE_X_TOOLKIT}" != "none"; then
8335 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8336 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8337 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 #include <X11/Intrinsic.h>
8348 main ()
8350 #if XtSpecificationRelease < 6
8351 fail;
8352 #endif
8355 return 0;
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 emacs_cv_x11_toolkit_version_6=yes
8371 else
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 emacs_cv_x11_toolkit_version_6=no
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8380 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8381 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8382 echo "$as_me:$LINENO: result: 6 or newer" >&5
8383 echo "${ECHO_T}6 or newer" >&6
8385 cat >>confdefs.h <<\_ACEOF
8386 #define HAVE_X11XTR6 1
8387 _ACEOF
8389 else
8390 echo "$as_me:$LINENO: result: before 6" >&5
8391 echo "${ECHO_T}before 6" >&6
8394 OLDLIBS="$LIBS"
8395 if test x$HAVE_X11XTR6 = xyes; then
8396 LIBS="-lXt -lSM -lICE $LIBS"
8397 else
8398 LIBS="-lXt $LIBS"
8401 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8402 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8403 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 ac_check_lib_save_LIBS=$LIBS
8407 LIBS="-lXmu $LIBS"
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8415 /* Override any gcc2 internal prototype to avoid an error. */
8416 #ifdef __cplusplus
8417 extern "C"
8418 #endif
8419 /* We use char because int might match the return type of a gcc2
8420 builtin and then its argument prototype would still apply. */
8421 char XmuConvertStandardSelection ();
8423 main ()
8425 XmuConvertStandardSelection ();
8427 return 0;
8429 _ACEOF
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432 (eval $ac_link) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8443 else
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8450 LIBS=$ac_check_lib_save_LIBS
8452 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8453 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8454 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_LIBXMU 1
8457 _ACEOF
8459 LIBS="-lXmu $LIBS"
8463 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8466 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8467 if test "${HAVE_X11}" = "yes"; then
8468 if test "${USE_X_TOOLKIT}" != "none"; then
8470 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8471 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8472 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475 ac_check_lib_save_LIBS=$LIBS
8476 LIBS="-lXext $LIBS"
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 /* Override any gcc2 internal prototype to avoid an error. */
8485 #ifdef __cplusplus
8486 extern "C"
8487 #endif
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490 char XShapeQueryExtension ();
8492 main ()
8494 XShapeQueryExtension ();
8496 return 0;
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_lib_Xext_XShapeQueryExtension=yes
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_lib_Xext_XShapeQueryExtension=no
8518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8521 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8522 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8523 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_LIBXEXT 1
8526 _ACEOF
8528 LIBS="-lXext $LIBS"
8535 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8536 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8537 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8538 if test "${emacs_cv_lesstif+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541 # We put this in CFLAGS temporarily to precede other -I options
8542 # that might be in CFLAGS temporarily.
8543 # We put this in CPPFLAGS where it precedes the other -I options.
8544 OLD_CPPFLAGS=$CPPFLAGS
8545 OLD_CFLAGS=$CFLAGS
8546 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8547 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8556 main ()
8558 int x = 5;
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -s conftest.$ac_objext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 emacs_cv_lesstif=yes
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 emacs_cv_lesstif=no
8582 rm -f conftest.$ac_objext conftest.$ac_ext
8584 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8585 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8586 if test $emacs_cv_lesstif = yes; then
8587 # Make sure this -I option remains in CPPFLAGS after it is set
8588 # back to REAL_CPPFLAGS.
8589 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8590 # have those other -I options anyway. Ultimately, having this
8591 # directory ultimately in CPPFLAGS will be enough.
8592 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8593 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8594 else
8595 CFLAGS=$OLD_CFLAGS
8596 CPPFLAGS=$OLD_CPPFLAGS
8598 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8599 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8600 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h. */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 #include <Xm/Xm.h>
8611 main ()
8613 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8614 int x = 5;
8615 #else
8616 Motif version prior to 2.1.
8617 #endif
8619 return 0;
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8624 (eval $ac_compile) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 emacs_cv_motif_version_2_1=yes
8635 else
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 emacs_cv_motif_version_2_1=no
8641 rm -f conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8644 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8645 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8646 if test $emacs_cv_motif_version_2_1 = yes; then
8647 HAVE_LIBXP=no
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_MOTIF_2_1 1
8651 _ACEOF
8653 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8654 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8655 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658 ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lXp $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8667 /* Override any gcc2 internal prototype to avoid an error. */
8668 #ifdef __cplusplus
8669 extern "C"
8670 #endif
8671 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */
8673 char XpCreateContext ();
8675 main ()
8677 XpCreateContext ();
8679 return 0;
8681 _ACEOF
8682 rm -f conftest.$ac_objext conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684 (eval $ac_link) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -s conftest$ac_exeext'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_cv_lib_Xp_XpCreateContext=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_lib_Xp_XpCreateContext=no
8701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8702 LIBS=$ac_check_lib_save_LIBS
8704 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8705 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8706 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8707 HAVE_LIBXP=yes
8710 if test ${HAVE_LIBXP} = yes; then
8712 cat >>confdefs.h <<\_ACEOF
8713 #define HAVE_LIBXP 1
8714 _ACEOF
8720 ### Is -lXaw3d available?
8721 HAVE_XAW3D=no
8722 if test "${HAVE_X11}" = "yes"; then
8723 if test "${USE_X_TOOLKIT}" != "none"; then
8724 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8725 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8726 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 #include <X11/Xaw3d/Scrollbar.h>
8736 _ACEOF
8737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } >/dev/null; then
8745 if test -s conftest.err; then
8746 ac_cpp_err=$ac_c_preproc_warn_flag
8747 else
8748 ac_cpp_err=
8750 else
8751 ac_cpp_err=yes
8753 if test -z "$ac_cpp_err"; then
8754 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8755 else
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8761 rm -f conftest.err conftest.$ac_ext
8763 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8764 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8765 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8766 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8767 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8768 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 ac_check_lib_save_LIBS=$LIBS
8772 LIBS="-lXaw3d $LIBS"
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8780 /* Override any gcc2 internal prototype to avoid an error. */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8786 char XawScrollbarSetThumb ();
8788 main ()
8790 XawScrollbarSetThumb ();
8792 return 0;
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8808 else
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8815 LIBS=$ac_check_lib_save_LIBS
8817 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8818 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8819 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8820 HAVE_XAW3D=yes
8826 if test "${HAVE_XAW3D}" = "yes"; then
8828 cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_XAW3D 1
8830 _ACEOF
8838 USE_TOOLKIT_SCROLL_BARS=no
8839 if test "${with_toolkit_scroll_bars}" != "no"; then
8840 if test "${USE_X_TOOLKIT}" != "none"; then
8841 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8842 cat >>confdefs.h <<\_ACEOF
8843 #define USE_TOOLKIT_SCROLL_BARS 1
8844 _ACEOF
8846 HAVE_XAW3D=no
8847 USE_TOOLKIT_SCROLL_BARS=yes
8848 elif test "${HAVE_XAW3D}" = "yes"; then
8849 cat >>confdefs.h <<\_ACEOF
8850 #define USE_TOOLKIT_SCROLL_BARS 1
8851 _ACEOF
8853 USE_TOOLKIT_SCROLL_BARS=yes
8855 elif test "${HAVE_GTK}" = "yes"; then
8856 cat >>confdefs.h <<\_ACEOF
8857 #define USE_TOOLKIT_SCROLL_BARS 1
8858 _ACEOF
8860 USE_TOOLKIT_SCROLL_BARS=yes
8865 if test "${with_xim}" != "no"; then
8867 cat >>confdefs.h <<\_ACEOF
8868 #define USE_XIM 1
8869 _ACEOF
8871 late_CFLAGS=$CFLAGS
8872 if test "$GCC" = yes; then
8873 CFLAGS="$CFLAGS --pedantic-errors"
8876 if test "${HAVE_X11}" = "yes"; then
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 #include <X11/Xlib.h>
8885 #include <X11/Xresource.h>
8887 main ()
8889 Display *display;
8890 XrmDatabase db;
8891 char *res_name;
8892 char *res_class;
8893 XIMProc callback;
8894 XPointer *client_data;
8895 #ifndef __GNUC__
8896 /* If we're not using GCC, it's probably not XFree86, and this is
8897 probably right, but we can't use something like --pedantic-errors. */
8898 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8899 char*, XIMProc, XPointer*);
8900 #endif
8901 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8902 client_data);
8904 return 0;
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -s conftest.$ac_objext'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 emacs_cv_arg6_star=yes
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8925 rm -f conftest.$ac_objext conftest.$ac_ext
8927 if test "$emacs_cv_arg6_star" = yes; then
8928 cat >>confdefs.h <<\_ACEOF
8929 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8930 _ACEOF
8932 else
8933 cat >>confdefs.h <<\_ACEOF
8934 #define XRegisterIMInstantiateCallback_arg6 XPointer
8935 _ACEOF
8938 CFLAGS=$late_CFLAGS
8941 ### Use -lXpm if available, unless `--with-xpm=no'.
8942 HAVE_XPM=no
8943 if test "${HAVE_X11}" = "yes"; then
8944 if test "${with_xpm}" != "no"; then
8945 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8946 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8947 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8948 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8952 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8953 else
8954 # Is the header compilable?
8955 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8956 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h. */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 $ac_includes_default
8964 #include <X11/xpm.h>
8965 _ACEOF
8966 rm -f conftest.$ac_objext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8968 (eval $ac_compile) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -s conftest.$ac_objext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_header_compiler=yes
8979 else
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_header_compiler=no
8985 rm -f conftest.$ac_objext conftest.$ac_ext
8986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8987 echo "${ECHO_T}$ac_header_compiler" >&6
8989 # Is the header present?
8990 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8991 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 #include <X11/xpm.h>
8999 _ACEOF
9000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null; then
9008 if test -s conftest.err; then
9009 ac_cpp_err=$ac_c_preproc_warn_flag
9010 else
9011 ac_cpp_err=
9013 else
9014 ac_cpp_err=yes
9016 if test -z "$ac_cpp_err"; then
9017 ac_header_preproc=yes
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_header_preproc=no
9024 rm -f conftest.err conftest.$ac_ext
9025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9026 echo "${ECHO_T}$ac_header_preproc" >&6
9028 # So? What about this header?
9029 case $ac_header_compiler:$ac_header_preproc in
9030 yes:no )
9031 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9032 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
9034 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
9035 ac_header_preproc=yes
9037 no:yes )
9038 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9039 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9041 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
9043 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
9045 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
9049 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
9051 cat <<\_ASBOX
9052 ## ------------------------------------------ ##
9053 ## Report this to the AC_PACKAGE_NAME lists. ##
9054 ## ------------------------------------------ ##
9055 _ASBOX
9057 sed "s/^/$as_me: WARNING: /" >&2
9059 esac
9060 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9061 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9062 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065 ac_cv_header_X11_xpm_h=$ac_header_preproc
9067 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9068 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9071 if test $ac_cv_header_X11_xpm_h = yes; then
9072 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9073 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9074 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 else
9077 ac_check_lib_save_LIBS=$LIBS
9078 LIBS="-lXpm -lX11 $LIBS"
9079 cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h. */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9086 /* Override any gcc2 internal prototype to avoid an error. */
9087 #ifdef __cplusplus
9088 extern "C"
9089 #endif
9090 /* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9092 char XpmReadFileToPixmap ();
9094 main ()
9096 XpmReadFileToPixmap ();
9098 return 0;
9100 _ACEOF
9101 rm -f conftest.$ac_objext conftest$ac_exeext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9103 (eval $ac_link) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -s conftest$ac_exeext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9121 LIBS=$ac_check_lib_save_LIBS
9123 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9124 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9125 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9126 HAVE_XPM=yes
9132 if test "${HAVE_XPM}" = "yes"; then
9133 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9134 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 #include "X11/xpm.h"
9142 #ifndef XpmReturnAllocPixels
9143 no_return_alloc_pixels
9144 #endif
9146 _ACEOF
9147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9148 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9149 HAVE_XPM=no
9150 else
9151 HAVE_XPM=yes
9153 rm -f conftest*
9156 if test "${HAVE_XPM}" = "yes"; then
9157 echo "$as_me:$LINENO: result: yes" >&5
9158 echo "${ECHO_T}yes" >&6
9159 else
9160 echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6
9166 if test "${HAVE_XPM}" = "yes"; then
9168 cat >>confdefs.h <<\_ACEOF
9169 #define HAVE_XPM 1
9170 _ACEOF
9175 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9176 HAVE_JPEG=no
9177 if test "${HAVE_X11}" = "yes"; then
9178 if test "${with_jpeg}" != "no"; then
9179 if test "${ac_cv_header_jerror_h+set}" = set; then
9180 echo "$as_me:$LINENO: checking for jerror.h" >&5
9181 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9182 if test "${ac_cv_header_jerror_h+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9187 else
9188 # Is the header compilable?
9189 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9190 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h. */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 $ac_includes_default
9198 #include <jerror.h>
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -s conftest.$ac_objext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_header_compiler=yes
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_compiler=no
9219 rm -f conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221 echo "${ECHO_T}$ac_header_compiler" >&6
9223 # Is the header present?
9224 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9225 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 #include <jerror.h>
9233 _ACEOF
9234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } >/dev/null; then
9242 if test -s conftest.err; then
9243 ac_cpp_err=$ac_c_preproc_warn_flag
9244 else
9245 ac_cpp_err=
9247 else
9248 ac_cpp_err=yes
9250 if test -z "$ac_cpp_err"; then
9251 ac_header_preproc=yes
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256 ac_header_preproc=no
9258 rm -f conftest.err conftest.$ac_ext
9259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9260 echo "${ECHO_T}$ac_header_preproc" >&6
9262 # So? What about this header?
9263 case $ac_header_compiler:$ac_header_preproc in
9264 yes:no )
9265 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9266 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
9268 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
9269 ac_header_preproc=yes
9271 no:yes )
9272 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9273 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9275 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
9277 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
9279 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9281 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
9283 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
9285 cat <<\_ASBOX
9286 ## ------------------------------------------ ##
9287 ## Report this to the AC_PACKAGE_NAME lists. ##
9288 ## ------------------------------------------ ##
9289 _ASBOX
9291 sed "s/^/$as_me: WARNING: /" >&2
9293 esac
9294 echo "$as_me:$LINENO: checking for jerror.h" >&5
9295 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9296 if test "${ac_cv_header_jerror_h+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299 ac_cv_header_jerror_h=$ac_header_preproc
9301 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9302 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9305 if test $ac_cv_header_jerror_h = yes; then
9306 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9307 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9308 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311 ac_check_lib_save_LIBS=$LIBS
9312 LIBS="-ljpeg $LIBS"
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h. */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9320 /* Override any gcc2 internal prototype to avoid an error. */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9326 char jpeg_destroy_compress ();
9328 main ()
9330 jpeg_destroy_compress ();
9332 return 0;
9334 _ACEOF
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9337 (eval $ac_link) 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -s conftest$ac_exeext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 (eval $ac_try) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_lib_save_LIBS
9357 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9358 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9359 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9360 HAVE_JPEG=yes
9369 if test "${HAVE_JPEG}" = "yes"; then
9370 cat >>confdefs.h <<\_ACEOF
9371 #define HAVE_JPEG 1
9372 _ACEOF
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #include <jpeglib.h>
9381 version=JPEG_LIB_VERSION
9383 _ACEOF
9384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9385 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9386 cat >>confdefs.h <<\_ACEOF
9387 #define HAVE_JPEG 1
9388 _ACEOF
9390 else
9391 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9392 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9393 HAVE_JPEG=no
9395 rm -f conftest*
9400 ### Use -lpng if available, unless `--with-png=no'.
9401 HAVE_PNG=no
9402 if test "${HAVE_X11}" = "yes"; then
9403 if test "${with_png}" != "no"; then
9404 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9405 # in /usr/include/libpng.
9408 for ac_header in png.h libpng/png.h
9410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9412 echo "$as_me:$LINENO: checking for $ac_header" >&5
9413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9419 else
9420 # Is the header compilable?
9421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 $ac_includes_default
9430 #include <$ac_header>
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_header_compiler=yes
9445 else
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 ac_header_compiler=no
9451 rm -f conftest.$ac_objext conftest.$ac_ext
9452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9453 echo "${ECHO_T}$ac_header_compiler" >&6
9455 # Is the header present?
9456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h. */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 #include <$ac_header>
9465 _ACEOF
9466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } >/dev/null; then
9474 if test -s conftest.err; then
9475 ac_cpp_err=$ac_c_preproc_warn_flag
9476 else
9477 ac_cpp_err=
9479 else
9480 ac_cpp_err=yes
9482 if test -z "$ac_cpp_err"; then
9483 ac_header_preproc=yes
9484 else
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_header_preproc=no
9490 rm -f conftest.err conftest.$ac_ext
9491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9492 echo "${ECHO_T}$ac_header_preproc" >&6
9494 # So? What about this header?
9495 case $ac_header_compiler:$ac_header_preproc in
9496 yes:no )
9497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9501 ac_header_preproc=yes
9503 no:yes )
9504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9517 cat <<\_ASBOX
9518 ## ------------------------------------------ ##
9519 ## Report this to the AC_PACKAGE_NAME lists. ##
9520 ## ------------------------------------------ ##
9521 _ASBOX
9523 sed "s/^/$as_me: WARNING: /" >&2
9525 esac
9526 echo "$as_me:$LINENO: checking for $ac_header" >&5
9527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531 eval "$as_ac_Header=\$ac_header_preproc"
9533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9538 cat >>confdefs.h <<_ACEOF
9539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9540 _ACEOF
9544 done
9546 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9547 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9548 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9549 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 ac_check_lib_save_LIBS=$LIBS
9553 LIBS="-lpng -lz -lm $LIBS"
9554 cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9561 /* Override any gcc2 internal prototype to avoid an error. */
9562 #ifdef __cplusplus
9563 extern "C"
9564 #endif
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9567 char png_get_channels ();
9569 main ()
9571 png_get_channels ();
9573 return 0;
9575 _ACEOF
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_lib_png_png_get_channels=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_lib_png_png_get_channels=no
9595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9599 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9600 if test $ac_cv_lib_png_png_get_channels = yes; then
9601 HAVE_PNG=yes
9607 if test "${HAVE_PNG}" = "yes"; then
9609 cat >>confdefs.h <<\_ACEOF
9610 #define HAVE_PNG 1
9611 _ACEOF
9616 ### Use -ltiff if available, unless `--with-tiff=no'.
9617 HAVE_TIFF=no
9618 if test "${HAVE_X11}" = "yes"; then
9619 if test "${with_tiff}" != "no"; then
9620 if test "${ac_cv_header_tiffio_h+set}" = set; then
9621 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9622 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9623 if test "${ac_cv_header_tiffio_h+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9627 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9628 else
9629 # Is the header compilable?
9630 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9631 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 $ac_includes_default
9639 #include <tiffio.h>
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -s conftest.$ac_objext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_header_compiler=yes
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 ac_header_compiler=no
9660 rm -f conftest.$ac_objext conftest.$ac_ext
9661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9662 echo "${ECHO_T}$ac_header_compiler" >&6
9664 # Is the header present?
9665 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9666 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 #include <tiffio.h>
9674 _ACEOF
9675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } >/dev/null; then
9683 if test -s conftest.err; then
9684 ac_cpp_err=$ac_c_preproc_warn_flag
9685 else
9686 ac_cpp_err=
9688 else
9689 ac_cpp_err=yes
9691 if test -z "$ac_cpp_err"; then
9692 ac_header_preproc=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_header_preproc=no
9699 rm -f conftest.err conftest.$ac_ext
9700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9701 echo "${ECHO_T}$ac_header_preproc" >&6
9703 # So? What about this header?
9704 case $ac_header_compiler:$ac_header_preproc in
9705 yes:no )
9706 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9707 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9708 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
9709 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
9710 ac_header_preproc=yes
9712 no:yes )
9713 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9714 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9716 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
9718 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
9719 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
9720 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9721 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9722 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
9724 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
9726 cat <<\_ASBOX
9727 ## ------------------------------------------ ##
9728 ## Report this to the AC_PACKAGE_NAME lists. ##
9729 ## ------------------------------------------ ##
9730 _ASBOX
9732 sed "s/^/$as_me: WARNING: /" >&2
9734 esac
9735 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9736 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9737 if test "${ac_cv_header_tiffio_h+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740 ac_cv_header_tiffio_h=$ac_header_preproc
9742 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9743 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9746 if test $ac_cv_header_tiffio_h = yes; then
9747 tifflibs="-lz -lm"
9748 # At least one tiff package requires the jpeg library.
9749 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9750 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9751 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9752 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 ac_check_lib_save_LIBS=$LIBS
9756 LIBS="-ltiff $tifflibs $LIBS"
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9764 /* Override any gcc2 internal prototype to avoid an error. */
9765 #ifdef __cplusplus
9766 extern "C"
9767 #endif
9768 /* We use char because int might match the return type of a gcc2
9769 builtin and then its argument prototype would still apply. */
9770 char TIFFGetVersion ();
9772 main ()
9774 TIFFGetVersion ();
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_cv_lib_tiff_TIFFGetVersion=yes
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_cv_lib_tiff_TIFFGetVersion=no
9798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_lib_save_LIBS
9801 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9802 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9803 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9804 HAVE_TIFF=yes
9812 if test "${HAVE_TIFF}" = "yes"; then
9814 cat >>confdefs.h <<\_ACEOF
9815 #define HAVE_TIFF 1
9816 _ACEOF
9821 ### Use -lgif if available, unless `--with-gif=no'.
9822 HAVE_GIF=no
9823 if test "${HAVE_X11}" = "yes"; then
9824 if test "${with_gif}" != "no"; then
9825 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9826 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9827 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9828 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9832 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9833 else
9834 # Is the header compilable?
9835 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9836 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 $ac_includes_default
9844 #include <gif_lib.h>
9845 _ACEOF
9846 rm -f conftest.$ac_objext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9848 (eval $ac_compile) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -s conftest.$ac_objext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 ac_header_compiler=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_header_compiler=no
9865 rm -f conftest.$ac_objext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9867 echo "${ECHO_T}$ac_header_compiler" >&6
9869 # Is the header present?
9870 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9871 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <gif_lib.h>
9879 _ACEOF
9880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } >/dev/null; then
9888 if test -s conftest.err; then
9889 ac_cpp_err=$ac_c_preproc_warn_flag
9890 else
9891 ac_cpp_err=
9893 else
9894 ac_cpp_err=yes
9896 if test -z "$ac_cpp_err"; then
9897 ac_header_preproc=yes
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_header_preproc=no
9904 rm -f conftest.err conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9906 echo "${ECHO_T}$ac_header_preproc" >&6
9908 # So? What about this header?
9909 case $ac_header_compiler:$ac_header_preproc in
9910 yes:no )
9911 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9912 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
9914 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
9915 ac_header_preproc=yes
9917 no:yes )
9918 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9919 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9921 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
9923 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
9925 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9927 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
9929 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
9931 cat <<\_ASBOX
9932 ## ------------------------------------------ ##
9933 ## Report this to the AC_PACKAGE_NAME lists. ##
9934 ## ------------------------------------------ ##
9935 _ASBOX
9937 sed "s/^/$as_me: WARNING: /" >&2
9939 esac
9940 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9941 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9942 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945 ac_cv_header_gif_lib_h=$ac_header_preproc
9947 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9948 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9951 if test $ac_cv_header_gif_lib_h = yes; then
9952 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9953 # Earlier versions can crash Emacs.
9954 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9955 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9956 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 ac_check_lib_save_LIBS=$LIBS
9960 LIBS="-lungif $LIBS"
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9968 /* Override any gcc2 internal prototype to avoid an error. */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 /* We use char because int might match the return type of a gcc2
9973 builtin and then its argument prototype would still apply. */
9974 char EGifPutExtensionLast ();
9976 main ()
9978 EGifPutExtensionLast ();
9980 return 0;
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_lib_ungif_EGifPutExtensionLast=no
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10006 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10007 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10008 HAVE_GIF=yes
10016 if test "${HAVE_GIF}" = "yes"; then
10018 cat >>confdefs.h <<\_ACEOF
10019 #define HAVE_GIF 1
10020 _ACEOF
10025 ### Use Mac OS X Carbon API to implement GUI.
10026 HAVE_CARBON=no
10027 if test "${with_carbon}" != "no"; then
10028 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10029 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10030 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10031 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10035 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10036 else
10037 # Is the header compilable?
10038 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10039 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 $ac_includes_default
10047 #include <Carbon/Carbon.h>
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_header_compiler=yes
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_header_compiler=no
10068 rm -f conftest.$ac_objext conftest.$ac_ext
10069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10070 echo "${ECHO_T}$ac_header_compiler" >&6
10072 # Is the header present?
10073 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10074 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 #include <Carbon/Carbon.h>
10082 _ACEOF
10083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10085 ac_status=$?
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } >/dev/null; then
10091 if test -s conftest.err; then
10092 ac_cpp_err=$ac_c_preproc_warn_flag
10093 else
10094 ac_cpp_err=
10096 else
10097 ac_cpp_err=yes
10099 if test -z "$ac_cpp_err"; then
10100 ac_header_preproc=yes
10101 else
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_header_preproc=no
10107 rm -f conftest.err conftest.$ac_ext
10108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10109 echo "${ECHO_T}$ac_header_preproc" >&6
10111 # So? What about this header?
10112 case $ac_header_compiler:$ac_header_preproc in
10113 yes:no )
10114 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10115 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10116 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10117 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10118 ac_header_preproc=yes
10120 no:yes )
10121 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10122 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10124 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
10126 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
10128 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10130 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
10132 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10134 cat <<\_ASBOX
10135 ## ------------------------------------------ ##
10136 ## Report this to the AC_PACKAGE_NAME lists. ##
10137 ## ------------------------------------------ ##
10138 _ASBOX
10140 sed "s/^/$as_me: WARNING: /" >&2
10142 esac
10143 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10144 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10145 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10150 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10151 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10154 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10155 HAVE_CARBON=yes
10161 if test "${HAVE_CARBON}" = "yes"; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_CARBON 1
10165 _ACEOF
10167 window_system=mac
10168 ## Specify the install directory
10169 carbon_appdir=
10170 if test "${carbon_appdir_x}" != ""; then
10171 case ${carbon_appdir_x} in
10172 y | ye | yes) carbon_appdir=/Applications ;;
10173 * ) carbon_appdir=${carbon_appdir_x} ;;
10174 esac
10176 # We also have mouse menus.
10177 HAVE_MENUS=yes
10180 ### Use session management (-lSM -lICE) if available
10181 HAVE_X_SM=no
10182 if test "${HAVE_X11}" = "yes"; then
10183 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10184 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10185 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10186 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10190 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10191 else
10192 # Is the header compilable?
10193 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10194 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h. */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 $ac_includes_default
10202 #include <X11/SM/SMlib.h>
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } &&
10210 { ac_try='test -s conftest.$ac_objext'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 ac_header_compiler=yes
10217 else
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 ac_header_compiler=no
10223 rm -f conftest.$ac_objext conftest.$ac_ext
10224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10225 echo "${ECHO_T}$ac_header_compiler" >&6
10227 # Is the header present?
10228 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10229 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h. */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 #include <X11/SM/SMlib.h>
10237 _ACEOF
10238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10240 ac_status=$?
10241 grep -v '^ *+' conftest.er1 >conftest.err
10242 rm -f conftest.er1
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } >/dev/null; then
10246 if test -s conftest.err; then
10247 ac_cpp_err=$ac_c_preproc_warn_flag
10248 else
10249 ac_cpp_err=
10251 else
10252 ac_cpp_err=yes
10254 if test -z "$ac_cpp_err"; then
10255 ac_header_preproc=yes
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_header_preproc=no
10262 rm -f conftest.err conftest.$ac_ext
10263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10264 echo "${ECHO_T}$ac_header_preproc" >&6
10266 # So? What about this header?
10267 case $ac_header_compiler:$ac_header_preproc in
10268 yes:no )
10269 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10270 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10271 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
10272 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
10273 ac_header_preproc=yes
10275 no:yes )
10276 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10277 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10279 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
10281 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
10283 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10285 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
10287 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
10289 cat <<\_ASBOX
10290 ## ------------------------------------------ ##
10291 ## Report this to the AC_PACKAGE_NAME lists. ##
10292 ## ------------------------------------------ ##
10293 _ASBOX
10295 sed "s/^/$as_me: WARNING: /" >&2
10297 esac
10298 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10299 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10300 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10305 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10306 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10309 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10310 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10311 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10312 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 ac_check_lib_save_LIBS=$LIBS
10316 LIBS="-lSM $LIBS"
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10324 /* Override any gcc2 internal prototype to avoid an error. */
10325 #ifdef __cplusplus
10326 extern "C"
10327 #endif
10328 /* We use char because int might match the return type of a gcc2
10329 builtin and then its argument prototype would still apply. */
10330 char SmcOpenConnection ();
10332 main ()
10334 SmcOpenConnection ();
10336 return 0;
10338 _ACEOF
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10341 (eval $ac_link) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_lib_SM_SmcOpenConnection=yes
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_cv_lib_SM_SmcOpenConnection=no
10358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10361 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10362 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10363 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10364 HAVE_X_SM=yes
10365 else
10366 -lICE
10373 if test "${HAVE_X_SM}" = "yes"; then
10375 cat >>confdefs.h <<\_ACEOF
10376 #define HAVE_X_SM 1
10377 _ACEOF
10379 case "$LIBS" in
10380 *-lSM*) ;;
10381 *) LIBS="-lSM -lICE $LIBS" ;;
10382 esac
10386 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10387 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10388 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10389 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h. */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 #include <netdb.h>
10400 main ()
10402 return h_errno;
10404 return 0;
10406 _ACEOF
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10409 (eval $ac_link) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
10413 { ac_try='test -s conftest$ac_exeext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 emacs_cv_netdb_declares_h_errno=yes
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 emacs_cv_netdb_declares_h_errno=no
10426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10428 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10429 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10430 if test $emacs_cv_netdb_declares_h_errno = yes; then
10432 cat >>confdefs.h <<\_ACEOF
10433 #define HAVE_H_ERRNO 1
10434 _ACEOF
10438 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10439 # for constant arguments. Useless!
10440 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10441 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10442 if test "${ac_cv_working_alloca_h+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <alloca.h>
10453 main ()
10455 char *p = (char *) alloca (2 * sizeof (int));
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -s conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_working_alloca_h=yes
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_working_alloca_h=no
10479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10481 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10482 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10483 if test $ac_cv_working_alloca_h = yes; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define HAVE_ALLOCA_H 1
10487 _ACEOF
10491 echo "$as_me:$LINENO: checking for alloca" >&5
10492 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10493 if test "${ac_cv_func_alloca_works+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #ifdef __GNUC__
10503 # define alloca __builtin_alloca
10504 #else
10505 # ifdef _MSC_VER
10506 # include <malloc.h>
10507 # define alloca _alloca
10508 # else
10509 # if HAVE_ALLOCA_H
10510 # include <alloca.h>
10511 # else
10512 # ifdef _AIX
10513 #pragma alloca
10514 # else
10515 # ifndef alloca /* predefined by HP cc +Olibcalls */
10516 char *alloca ();
10517 # endif
10518 # endif
10519 # endif
10520 # endif
10521 #endif
10524 main ()
10526 char *p = (char *) alloca (1);
10528 return 0;
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533 (eval $ac_link) 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_func_alloca_works=yes
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_cv_func_alloca_works=no
10550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10552 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10553 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10555 if test $ac_cv_func_alloca_works = yes; then
10557 cat >>confdefs.h <<\_ACEOF
10558 #define HAVE_ALLOCA 1
10559 _ACEOF
10561 else
10562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10563 # that cause trouble. Some versions do not even contain alloca or
10564 # contain a buggy version. If you still want to use their alloca,
10565 # use ar to extract alloca.o from them instead of compiling alloca.c.
10567 ALLOCA=alloca.$ac_objext
10569 cat >>confdefs.h <<\_ACEOF
10570 #define C_ALLOCA 1
10571 _ACEOF
10574 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10575 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10576 if test "${ac_cv_os_cray+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #if defined(CRAY) && ! defined(CRAY2)
10586 webecray
10587 #else
10588 wenotbecray
10589 #endif
10591 _ACEOF
10592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10593 $EGREP "webecray" >/dev/null 2>&1; then
10594 ac_cv_os_cray=yes
10595 else
10596 ac_cv_os_cray=no
10598 rm -f conftest*
10601 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10602 echo "${ECHO_T}$ac_cv_os_cray" >&6
10603 if test $ac_cv_os_cray = yes; then
10604 for ac_func in _getb67 GETB67 getb67; do
10605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10606 echo "$as_me:$LINENO: checking for $ac_func" >&5
10607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10608 if eval "test \"\${$as_ac_var+set}\" = set"; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h. */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10619 #define $ac_func innocuous_$ac_func
10621 /* System header to define __stub macros and hopefully few prototypes,
10622 which can conflict with char $ac_func (); below.
10623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10624 <limits.h> exists even on freestanding compilers. */
10626 #ifdef __STDC__
10627 # include <limits.h>
10628 #else
10629 # include <assert.h>
10630 #endif
10632 #undef $ac_func
10634 /* Override any gcc2 internal prototype to avoid an error. */
10635 #ifdef __cplusplus
10636 extern "C"
10638 #endif
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10641 char $ac_func ();
10642 /* The GNU C library defines this for functions which it implements
10643 to always fail with ENOSYS. Some functions are actually named
10644 something starting with __ and the normal name is an alias. */
10645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10646 choke me
10647 #else
10648 char (*f) () = $ac_func;
10649 #endif
10650 #ifdef __cplusplus
10652 #endif
10655 main ()
10657 return f != $ac_func;
10659 return 0;
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 eval "$as_ac_var=yes"
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 eval "$as_ac_var=no"
10681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10685 if test `eval echo '${'$as_ac_var'}'` = yes; then
10687 cat >>confdefs.h <<_ACEOF
10688 #define CRAY_STACKSEG_END $ac_func
10689 _ACEOF
10691 break
10694 done
10697 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10698 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10699 if test "${ac_cv_c_stack_direction+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702 if test "$cross_compiling" = yes; then
10703 ac_cv_c_stack_direction=0
10704 else
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10712 find_stack_direction ()
10714 static char *addr = 0;
10715 auto char dummy;
10716 if (addr == 0)
10718 addr = &dummy;
10719 return find_stack_direction ();
10721 else
10722 return (&dummy > addr) ? 1 : -1;
10726 main ()
10728 exit (find_stack_direction () < 0);
10730 _ACEOF
10731 rm -f conftest$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733 (eval $ac_link) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_c_stack_direction=1
10743 else
10744 echo "$as_me: program exited with status $ac_status" >&5
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ( exit $ac_status )
10749 ac_cv_c_stack_direction=-1
10751 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10754 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10755 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10757 cat >>confdefs.h <<_ACEOF
10758 #define STACK_DIRECTION $ac_cv_c_stack_direction
10759 _ACEOF
10765 # fmod, logb, and frexp are found in -lm on most systems.
10766 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10768 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10769 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10770 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-lm $LIBS"
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10782 /* Override any gcc2 internal prototype to avoid an error. */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 /* We use char because int might match the return type of a gcc2
10787 builtin and then its argument prototype would still apply. */
10788 char sqrt ();
10790 main ()
10792 sqrt ();
10794 return 0;
10796 _ACEOF
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10799 (eval $ac_link) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_cv_lib_m_sqrt=yes
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_cv_lib_m_sqrt=no
10816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10819 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10820 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10821 if test $ac_cv_lib_m_sqrt = yes; then
10822 cat >>confdefs.h <<_ACEOF
10823 #define HAVE_LIBM 1
10824 _ACEOF
10826 LIBS="-lm $LIBS"
10831 # Check for mail-locking functions in a "mail" library. Probably this should
10832 # have the same check as for liblockfile below.
10834 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10835 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10836 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839 ac_check_lib_save_LIBS=$LIBS
10840 LIBS="-lmail $LIBS"
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10848 /* Override any gcc2 internal prototype to avoid an error. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854 char maillock ();
10856 main ()
10858 maillock ();
10860 return 0;
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10865 (eval $ac_link) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -s conftest$ac_exeext'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_lib_mail_maillock=yes
10876 else
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 ac_cv_lib_mail_maillock=no
10882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10883 LIBS=$ac_check_lib_save_LIBS
10885 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10886 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10887 if test $ac_cv_lib_mail_maillock = yes; then
10888 cat >>confdefs.h <<_ACEOF
10889 #define HAVE_LIBMAIL 1
10890 _ACEOF
10892 LIBS="-lmail $LIBS"
10897 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10898 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10899 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-llockfile $LIBS"
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10911 /* Override any gcc2 internal prototype to avoid an error. */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 /* We use char because int might match the return type of a gcc2
10916 builtin and then its argument prototype would still apply. */
10917 char maillock ();
10919 main ()
10921 maillock ();
10923 return 0;
10925 _ACEOF
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_lib_lockfile_maillock=yes
10939 else
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_cv_lib_lockfile_maillock=no
10945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10948 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10949 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10950 if test $ac_cv_lib_lockfile_maillock = yes; then
10951 cat >>confdefs.h <<_ACEOF
10952 #define HAVE_LIBLOCKFILE 1
10953 _ACEOF
10955 LIBS="-llockfile $LIBS"
10959 # If we have the shared liblockfile, assume we must use it for mail
10960 # locking (e.g. Debian). If we couldn't link against liblockfile
10961 # (no liblockfile.a installed), ensure that we don't need to.
10962 if test "$ac_cv_lib_lockfile_maillock" = no; then
10963 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10964 set dummy liblockfile.so; ac_word=$2
10965 echo "$as_me:$LINENO: checking for $ac_word" >&5
10966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10967 if test "${ac_cv_prog_liblockfile+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 if test -n "$liblockfile"; then
10971 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10972 else
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10975 for as_dir in $as_dummy
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_liblockfile="yes"
10982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10985 done
10986 done
10988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10991 liblockfile=$ac_cv_prog_liblockfile
10992 if test -n "$liblockfile"; then
10993 echo "$as_me:$LINENO: result: $liblockfile" >&5
10994 echo "${ECHO_T}$liblockfile" >&6
10995 else
10996 echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
11000 if test $ac_cv_prog_liblockfile = yes; then
11001 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11002 This probably means that movemail could lose mail.
11003 There may be a \`development' package to install containing liblockfile." >&5
11004 echo "$as_me: error: Shared liblockfile found but can't link against it.
11005 This probably means that movemail could lose mail.
11006 There may be a \`development' package to install containing liblockfile." >&2;}
11007 { (exit 1); exit 1; }; }
11008 else :
11012 for ac_func in touchlock
11014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11015 echo "$as_me:$LINENO: checking for $ac_func" >&5
11016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11017 if eval "test \"\${$as_ac_var+set}\" = set"; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11028 #define $ac_func innocuous_$ac_func
11030 /* System header to define __stub macros and hopefully few prototypes,
11031 which can conflict with char $ac_func (); below.
11032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11033 <limits.h> exists even on freestanding compilers. */
11035 #ifdef __STDC__
11036 # include <limits.h>
11037 #else
11038 # include <assert.h>
11039 #endif
11041 #undef $ac_func
11043 /* Override any gcc2 internal prototype to avoid an error. */
11044 #ifdef __cplusplus
11045 extern "C"
11047 #endif
11048 /* We use char because int might match the return type of a gcc2
11049 builtin and then its argument prototype would still apply. */
11050 char $ac_func ();
11051 /* The GNU C library defines this for functions which it implements
11052 to always fail with ENOSYS. Some functions are actually named
11053 something starting with __ and the normal name is an alias. */
11054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11055 choke me
11056 #else
11057 char (*f) () = $ac_func;
11058 #endif
11059 #ifdef __cplusplus
11061 #endif
11064 main ()
11066 return f != $ac_func;
11068 return 0;
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 eval "$as_ac_var=yes"
11084 else
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11088 eval "$as_ac_var=no"
11090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11094 if test `eval echo '${'$as_ac_var'}'` = yes; then
11095 cat >>confdefs.h <<_ACEOF
11096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11097 _ACEOF
11100 done
11103 for ac_header in maillock.h
11105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11107 echo "$as_me:$LINENO: checking for $ac_header" >&5
11108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11114 else
11115 # Is the header compilable?
11116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11118 cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 $ac_includes_default
11125 #include <$ac_header>
11126 _ACEOF
11127 rm -f conftest.$ac_objext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11129 (eval $ac_compile) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_header_compiler=yes
11140 else
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_header_compiler=no
11146 rm -f conftest.$ac_objext conftest.$ac_ext
11147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6
11150 # Is the header present?
11151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11160 _ACEOF
11161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } >/dev/null; then
11169 if test -s conftest.err; then
11170 ac_cpp_err=$ac_c_preproc_warn_flag
11171 else
11172 ac_cpp_err=
11174 else
11175 ac_cpp_err=yes
11177 if test -z "$ac_cpp_err"; then
11178 ac_header_preproc=yes
11179 else
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_header_preproc=no
11185 rm -f conftest.err conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11187 echo "${ECHO_T}$ac_header_preproc" >&6
11189 # So? What about this header?
11190 case $ac_header_compiler:$ac_header_preproc in
11191 yes:no )
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11196 ac_header_preproc=yes
11198 no:yes )
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11212 cat <<\_ASBOX
11213 ## ------------------------------------------ ##
11214 ## Report this to the AC_PACKAGE_NAME lists. ##
11215 ## ------------------------------------------ ##
11216 _ASBOX
11218 sed "s/^/$as_me: WARNING: /" >&2
11220 esac
11221 echo "$as_me:$LINENO: checking for $ac_header" >&5
11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 eval "$as_ac_Header=\$ac_header_preproc"
11228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11235 _ACEOF
11239 done
11309 for ac_func in gethostname getdomainname dup2 \
11310 rename closedir mkdir rmdir sysinfo \
11311 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11312 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11313 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11314 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11315 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11316 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11317 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11320 echo "$as_me:$LINENO: checking for $ac_func" >&5
11321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11322 if eval "test \"\${$as_ac_var+set}\" = set"; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h. */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11333 #define $ac_func innocuous_$ac_func
11335 /* System header to define __stub macros and hopefully few prototypes,
11336 which can conflict with char $ac_func (); below.
11337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338 <limits.h> exists even on freestanding compilers. */
11340 #ifdef __STDC__
11341 # include <limits.h>
11342 #else
11343 # include <assert.h>
11344 #endif
11346 #undef $ac_func
11348 /* Override any gcc2 internal prototype to avoid an error. */
11349 #ifdef __cplusplus
11350 extern "C"
11352 #endif
11353 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355 char $ac_func ();
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360 choke me
11361 #else
11362 char (*f) () = $ac_func;
11363 #endif
11364 #ifdef __cplusplus
11366 #endif
11369 main ()
11371 return f != $ac_func;
11373 return 0;
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11378 (eval $ac_link) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 eval "$as_ac_var=yes"
11389 else
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 eval "$as_ac_var=no"
11395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11399 if test `eval echo '${'$as_ac_var'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11402 _ACEOF
11405 done
11409 for ac_header in sys/un.h
11411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11413 echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11420 else
11421 # Is the header compilable?
11422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 #include <$ac_header>
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_header_compiler=yes
11446 else
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_header_compiler=no
11452 rm -f conftest.$ac_objext conftest.$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11454 echo "${ECHO_T}$ac_header_compiler" >&6
11456 # Is the header present?
11457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h. */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 #include <$ac_header>
11466 _ACEOF
11467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11469 ac_status=$?
11470 grep -v '^ *+' conftest.er1 >conftest.err
11471 rm -f conftest.er1
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } >/dev/null; then
11475 if test -s conftest.err; then
11476 ac_cpp_err=$ac_c_preproc_warn_flag
11477 else
11478 ac_cpp_err=
11480 else
11481 ac_cpp_err=yes
11483 if test -z "$ac_cpp_err"; then
11484 ac_header_preproc=yes
11485 else
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 ac_header_preproc=no
11491 rm -f conftest.err conftest.$ac_ext
11492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11493 echo "${ECHO_T}$ac_header_preproc" >&6
11495 # So? What about this header?
11496 case $ac_header_compiler:$ac_header_preproc in
11497 yes:no )
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11502 ac_header_preproc=yes
11504 no:yes )
11505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11518 cat <<\_ASBOX
11519 ## ------------------------------------------ ##
11520 ## Report this to the AC_PACKAGE_NAME lists. ##
11521 ## ------------------------------------------ ##
11522 _ASBOX
11524 sed "s/^/$as_me: WARNING: /" >&2
11526 esac
11527 echo "$as_me:$LINENO: checking for $ac_header" >&5
11528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532 eval "$as_ac_Header=\$ac_header_preproc"
11534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11539 cat >>confdefs.h <<_ACEOF
11540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11541 _ACEOF
11545 done
11551 for ac_header in stdlib.h sys/time.h unistd.h
11553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11555 echo "$as_me:$LINENO: checking for $ac_header" >&5
11556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11562 else
11563 # Is the header compilable?
11564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 $ac_includes_default
11573 #include <$ac_header>
11574 _ACEOF
11575 rm -f conftest.$ac_objext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11577 (eval $ac_compile) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -s conftest.$ac_objext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_header_compiler=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_header_compiler=no
11594 rm -f conftest.$ac_objext conftest.$ac_ext
11595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11596 echo "${ECHO_T}$ac_header_compiler" >&6
11598 # Is the header present?
11599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #include <$ac_header>
11608 _ACEOF
11609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } >/dev/null; then
11617 if test -s conftest.err; then
11618 ac_cpp_err=$ac_c_preproc_warn_flag
11619 else
11620 ac_cpp_err=
11622 else
11623 ac_cpp_err=yes
11625 if test -z "$ac_cpp_err"; then
11626 ac_header_preproc=yes
11627 else
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_header_preproc=no
11633 rm -f conftest.err conftest.$ac_ext
11634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635 echo "${ECHO_T}$ac_header_preproc" >&6
11637 # So? What about this header?
11638 case $ac_header_compiler:$ac_header_preproc in
11639 yes:no )
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11644 ac_header_preproc=yes
11646 no:yes )
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11660 cat <<\_ASBOX
11661 ## ------------------------------------------ ##
11662 ## Report this to the AC_PACKAGE_NAME lists. ##
11663 ## ------------------------------------------ ##
11664 _ASBOX
11666 sed "s/^/$as_me: WARNING: /" >&2
11668 esac
11669 echo "$as_me:$LINENO: checking for $ac_header" >&5
11670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 eval "$as_ac_Header=\$ac_header_preproc"
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11681 cat >>confdefs.h <<_ACEOF
11682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11683 _ACEOF
11687 done
11690 for ac_func in alarm
11692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11693 echo "$as_me:$LINENO: checking for $ac_func" >&5
11694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11695 if eval "test \"\${$as_ac_var+set}\" = set"; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11706 #define $ac_func innocuous_$ac_func
11708 /* System header to define __stub macros and hopefully few prototypes,
11709 which can conflict with char $ac_func (); below.
11710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711 <limits.h> exists even on freestanding compilers. */
11713 #ifdef __STDC__
11714 # include <limits.h>
11715 #else
11716 # include <assert.h>
11717 #endif
11719 #undef $ac_func
11721 /* Override any gcc2 internal prototype to avoid an error. */
11722 #ifdef __cplusplus
11723 extern "C"
11725 #endif
11726 /* We use char because int might match the return type of a gcc2
11727 builtin and then its argument prototype would still apply. */
11728 char $ac_func ();
11729 /* The GNU C library defines this for functions which it implements
11730 to always fail with ENOSYS. Some functions are actually named
11731 something starting with __ and the normal name is an alias. */
11732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11733 choke me
11734 #else
11735 char (*f) () = $ac_func;
11736 #endif
11737 #ifdef __cplusplus
11739 #endif
11742 main ()
11744 return f != $ac_func;
11746 return 0;
11748 _ACEOF
11749 rm -f conftest.$ac_objext conftest$ac_exeext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11751 (eval $ac_link) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -s conftest$ac_exeext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 eval "$as_ac_var=yes"
11762 else
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 _ACEOF
11778 done
11780 echo "$as_me:$LINENO: checking for working mktime" >&5
11781 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11782 if test "${ac_cv_func_working_mktime+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785 if test "$cross_compiling" = yes; then
11786 ac_cv_func_working_mktime=no
11787 else
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h. */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 /* Test program from Paul Eggert and Tony Leneis. */
11795 #if TIME_WITH_SYS_TIME
11796 # include <sys/time.h>
11797 # include <time.h>
11798 #else
11799 # if HAVE_SYS_TIME_H
11800 # include <sys/time.h>
11801 # else
11802 # include <time.h>
11803 # endif
11804 #endif
11806 #if HAVE_STDLIB_H
11807 # include <stdlib.h>
11808 #endif
11810 #if HAVE_UNISTD_H
11811 # include <unistd.h>
11812 #endif
11814 #if !HAVE_ALARM
11815 # define alarm(X) /* empty */
11816 #endif
11818 /* Work around redefinition to rpl_putenv by other config tests. */
11819 #undef putenv
11821 static time_t time_t_max;
11822 static time_t time_t_min;
11824 /* Values we'll use to set the TZ environment variable. */
11825 static char *tz_strings[] = {
11826 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11827 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11829 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11831 /* Fail if mktime fails to convert a date in the spring-forward gap.
11832 Based on a problem report from Andreas Jaeger. */
11833 static void
11834 spring_forward_gap ()
11836 /* glibc (up to about 1998-10-07) failed this test. */
11837 struct tm tm;
11839 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11840 instead of "TZ=America/Vancouver" in order to detect the bug even
11841 on systems that don't support the Olson extension, or don't have the
11842 full zoneinfo tables installed. */
11843 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11845 tm.tm_year = 98;
11846 tm.tm_mon = 3;
11847 tm.tm_mday = 5;
11848 tm.tm_hour = 2;
11849 tm.tm_min = 0;
11850 tm.tm_sec = 0;
11851 tm.tm_isdst = -1;
11852 if (mktime (&tm) == (time_t)-1)
11853 exit (1);
11856 static void
11857 mktime_test1 (now)
11858 time_t now;
11860 struct tm *lt;
11861 if ((lt = localtime (&now)) && mktime (lt) != now)
11862 exit (1);
11865 static void
11866 mktime_test (now)
11867 time_t now;
11869 mktime_test1 (now);
11870 mktime_test1 ((time_t) (time_t_max - now));
11871 mktime_test1 ((time_t) (time_t_min + now));
11874 static void
11875 irix_6_4_bug ()
11877 /* Based on code from Ariel Faigon. */
11878 struct tm tm;
11879 tm.tm_year = 96;
11880 tm.tm_mon = 3;
11881 tm.tm_mday = 0;
11882 tm.tm_hour = 0;
11883 tm.tm_min = 0;
11884 tm.tm_sec = 0;
11885 tm.tm_isdst = -1;
11886 mktime (&tm);
11887 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11888 exit (1);
11891 static void
11892 bigtime_test (j)
11893 int j;
11895 struct tm tm;
11896 time_t now;
11897 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11898 now = mktime (&tm);
11899 if (now != (time_t) -1)
11901 struct tm *lt = localtime (&now);
11902 if (! (lt
11903 && lt->tm_year == tm.tm_year
11904 && lt->tm_mon == tm.tm_mon
11905 && lt->tm_mday == tm.tm_mday
11906 && lt->tm_hour == tm.tm_hour
11907 && lt->tm_min == tm.tm_min
11908 && lt->tm_sec == tm.tm_sec
11909 && lt->tm_yday == tm.tm_yday
11910 && lt->tm_wday == tm.tm_wday
11911 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11912 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11913 exit (1);
11918 main ()
11920 time_t t, delta;
11921 int i, j;
11923 /* This test makes some buggy mktime implementations loop.
11924 Give up after 60 seconds; a mktime slower than that
11925 isn't worth using anyway. */
11926 alarm (60);
11928 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11929 continue;
11930 time_t_max--;
11931 if ((time_t) -1 < 0)
11932 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11933 continue;
11934 delta = time_t_max / 997; /* a suitable prime number */
11935 for (i = 0; i < N_STRINGS; i++)
11937 if (tz_strings[i])
11938 putenv (tz_strings[i]);
11940 for (t = 0; t <= time_t_max - delta; t += delta)
11941 mktime_test (t);
11942 mktime_test ((time_t) 1);
11943 mktime_test ((time_t) (60 * 60));
11944 mktime_test ((time_t) (60 * 60 * 24));
11946 for (j = 1; 0 < j; j *= 2)
11947 bigtime_test (j);
11948 bigtime_test (j - 1);
11950 irix_6_4_bug ();
11951 spring_forward_gap ();
11952 exit (0);
11954 _ACEOF
11955 rm -f conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 ac_cv_func_working_mktime=yes
11967 else
11968 echo "$as_me: program exited with status $ac_status" >&5
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ( exit $ac_status )
11973 ac_cv_func_working_mktime=no
11975 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11979 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11980 if test $ac_cv_func_working_mktime = no; then
11981 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11984 if test "$ac_cv_func_working_mktime" = no; then
11986 cat >>confdefs.h <<\_ACEOF
11987 #define BROKEN_MKTIME 1
11988 _ACEOF
11992 ac_have_func=no # yes means we've found a way to get the load average.
11994 # Make sure getloadavg.c is where it belongs, at configure-time.
11995 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11996 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11997 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11998 { (exit 1); exit 1; }; }
12000 ac_save_LIBS=$LIBS
12002 # Check for getloadavg, but be sure not to touch the cache variable.
12003 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12004 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12005 if test "${ac_cv_func_getloadavg+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008 cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h. */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016 #define getloadavg innocuous_getloadavg
12018 /* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char getloadavg (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12023 #ifdef __STDC__
12024 # include <limits.h>
12025 #else
12026 # include <assert.h>
12027 #endif
12029 #undef getloadavg
12031 /* Override any gcc2 internal prototype to avoid an error. */
12032 #ifdef __cplusplus
12033 extern "C"
12035 #endif
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12038 char getloadavg ();
12039 /* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
12042 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12043 choke me
12044 #else
12045 char (*f) () = getloadavg;
12046 #endif
12047 #ifdef __cplusplus
12049 #endif
12052 main ()
12054 return f != getloadavg;
12056 return 0;
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -s conftest$ac_exeext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_func_getloadavg=yes
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_cv_func_getloadavg=no
12078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12080 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12081 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12082 if test $ac_cv_func_getloadavg = yes; then
12083 exit 0
12084 else
12085 exit 1
12087 ) && ac_have_func=yes
12089 # On HPUX9, an unprivileged user can get load averages through this function.
12091 for ac_func in pstat_getdynamic
12093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12094 echo "$as_me:$LINENO: checking for $ac_func" >&5
12095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12096 if eval "test \"\${$as_ac_var+set}\" = set"; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 cat >conftest.$ac_ext <<_ACEOF
12100 /* confdefs.h. */
12101 _ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12107 #define $ac_func innocuous_$ac_func
12109 /* System header to define __stub macros and hopefully few prototypes,
12110 which can conflict with char $ac_func (); below.
12111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12112 <limits.h> exists even on freestanding compilers. */
12114 #ifdef __STDC__
12115 # include <limits.h>
12116 #else
12117 # include <assert.h>
12118 #endif
12120 #undef $ac_func
12122 /* Override any gcc2 internal prototype to avoid an error. */
12123 #ifdef __cplusplus
12124 extern "C"
12126 #endif
12127 /* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12129 char $ac_func ();
12130 /* The GNU C library defines this for functions which it implements
12131 to always fail with ENOSYS. Some functions are actually named
12132 something starting with __ and the normal name is an alias. */
12133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12134 choke me
12135 #else
12136 char (*f) () = $ac_func;
12137 #endif
12138 #ifdef __cplusplus
12140 #endif
12143 main ()
12145 return f != $ac_func;
12147 return 0;
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 eval "$as_ac_var=yes"
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 eval "$as_ac_var=no"
12169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12173 if test `eval echo '${'$as_ac_var'}'` = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12176 _ACEOF
12179 done
12182 # Solaris has libkstat which does not require root.
12184 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12185 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12186 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189 ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-lkstat $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any gcc2 internal prototype to avoid an error. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204 char kstat_open ();
12206 main ()
12208 kstat_open ();
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_kstat_kstat_open=yes
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_cv_lib_kstat_kstat_open=no
12232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12233 LIBS=$ac_check_lib_save_LIBS
12235 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12236 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12237 if test $ac_cv_lib_kstat_kstat_open = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_LIBKSTAT 1
12240 _ACEOF
12242 LIBS="-lkstat $LIBS"
12246 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12248 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12249 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12250 # to get the right answer into the cache.
12251 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12252 if test $ac_have_func = no; then
12253 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12254 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12255 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258 ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-lelf $LIBS"
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12267 /* Override any gcc2 internal prototype to avoid an error. */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 /* We use char because int might match the return type of a gcc2
12272 builtin and then its argument prototype would still apply. */
12273 char elf_begin ();
12275 main ()
12277 elf_begin ();
12279 return 0;
12281 _ACEOF
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284 (eval $ac_link) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_lib_elf_elf_begin=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_elf_elf_begin=no
12301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12304 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12305 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12306 if test $ac_cv_lib_elf_elf_begin = yes; then
12307 LIBS="-lelf $LIBS"
12311 if test $ac_have_func = no; then
12312 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12313 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12314 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-lkvm $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h. */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12326 /* Override any gcc2 internal prototype to avoid an error. */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 /* We use char because int might match the return type of a gcc2
12331 builtin and then its argument prototype would still apply. */
12332 char kvm_open ();
12334 main ()
12336 kvm_open ();
12338 return 0;
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343 (eval $ac_link) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 ac_cv_lib_kvm_kvm_open=yes
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 ac_cv_lib_kvm_kvm_open=no
12360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12364 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12365 if test $ac_cv_lib_kvm_kvm_open = yes; then
12366 LIBS="-lkvm $LIBS"
12369 # Check for the 4.4BSD definition of getloadavg.
12370 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12371 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12372 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375 ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-lutil $LIBS"
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 /* Override any gcc2 internal prototype to avoid an error. */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 /* We use char because int might match the return type of a gcc2
12389 builtin and then its argument prototype would still apply. */
12390 char getloadavg ();
12392 main ()
12394 getloadavg ();
12396 return 0;
12398 _ACEOF
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest$ac_exeext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_lib_util_getloadavg=yes
12412 else
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_lib_util_getloadavg=no
12418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12421 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12422 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12423 if test $ac_cv_lib_util_getloadavg = yes; then
12424 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12429 if test $ac_have_func = no; then
12430 # There is a commonly available library for RS/6000 AIX.
12431 # Since it is not a standard part of AIX, it might be installed locally.
12432 ac_getloadavg_LIBS=$LIBS
12433 LIBS="-L/usr/local/lib $LIBS"
12434 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12435 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12436 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439 ac_check_lib_save_LIBS=$LIBS
12440 LIBS="-lgetloadavg $LIBS"
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12448 /* Override any gcc2 internal prototype to avoid an error. */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 /* We use char because int might match the return type of a gcc2
12453 builtin and then its argument prototype would still apply. */
12454 char getloadavg ();
12456 main ()
12458 getloadavg ();
12460 return 0;
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest$ac_exeext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_lib_getloadavg_getloadavg=yes
12476 else
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_cv_lib_getloadavg_getloadavg=no
12482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12485 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12486 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12487 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12488 LIBS="-lgetloadavg $LIBS"
12489 else
12490 LIBS=$ac_getloadavg_LIBS
12495 # Make sure it is really in the library, if we think we found it,
12496 # otherwise set up the replacement function.
12498 for ac_func in getloadavg
12500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12501 echo "$as_me:$LINENO: checking for $ac_func" >&5
12502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12503 if eval "test \"\${$as_ac_var+set}\" = set"; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12514 #define $ac_func innocuous_$ac_func
12516 /* System header to define __stub macros and hopefully few prototypes,
12517 which can conflict with char $ac_func (); below.
12518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12519 <limits.h> exists even on freestanding compilers. */
12521 #ifdef __STDC__
12522 # include <limits.h>
12523 #else
12524 # include <assert.h>
12525 #endif
12527 #undef $ac_func
12529 /* Override any gcc2 internal prototype to avoid an error. */
12530 #ifdef __cplusplus
12531 extern "C"
12533 #endif
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12536 char $ac_func ();
12537 /* The GNU C library defines this for functions which it implements
12538 to always fail with ENOSYS. Some functions are actually named
12539 something starting with __ and the normal name is an alias. */
12540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12541 choke me
12542 #else
12543 char (*f) () = $ac_func;
12544 #endif
12545 #ifdef __cplusplus
12547 #endif
12550 main ()
12552 return f != $ac_func;
12554 return 0;
12556 _ACEOF
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559 (eval $ac_link) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 eval "$as_ac_var=yes"
12570 else
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 eval "$as_ac_var=no"
12576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583 _ACEOF
12585 else
12586 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12588 cat >>confdefs.h <<\_ACEOF
12589 #define C_GETLOADAVG 1
12590 _ACEOF
12592 # Figure out what our getloadavg.c needs.
12593 ac_have_func=no
12594 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12595 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12596 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12597 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12601 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12602 else
12603 # Is the header compilable?
12604 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12605 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 $ac_includes_default
12613 #include <sys/dg_sys_info.h>
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617 (eval $ac_compile) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_header_compiler=yes
12628 else
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_header_compiler=no
12634 rm -f conftest.$ac_objext conftest.$ac_ext
12635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12636 echo "${ECHO_T}$ac_header_compiler" >&6
12638 # Is the header present?
12639 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12640 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 #include <sys/dg_sys_info.h>
12648 _ACEOF
12649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } >/dev/null; then
12657 if test -s conftest.err; then
12658 ac_cpp_err=$ac_c_preproc_warn_flag
12659 else
12660 ac_cpp_err=
12662 else
12663 ac_cpp_err=yes
12665 if test -z "$ac_cpp_err"; then
12666 ac_header_preproc=yes
12667 else
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ac_header_preproc=no
12673 rm -f conftest.err conftest.$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12677 # So? What about this header?
12678 case $ac_header_compiler:$ac_header_preproc in
12679 yes:no )
12680 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
12683 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
12684 ac_header_preproc=yes
12686 no:yes )
12687 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12688 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12690 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
12692 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
12694 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12696 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
12698 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
12700 cat <<\_ASBOX
12701 ## ------------------------------------------ ##
12702 ## Report this to the AC_PACKAGE_NAME lists. ##
12703 ## ------------------------------------------ ##
12704 _ASBOX
12706 sed "s/^/$as_me: WARNING: /" >&2
12708 esac
12709 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12710 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12711 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12716 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12717 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12720 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12721 ac_have_func=yes
12723 cat >>confdefs.h <<\_ACEOF
12724 #define DGUX 1
12725 _ACEOF
12728 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12729 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12730 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733 ac_check_lib_save_LIBS=$LIBS
12734 LIBS="-ldgc $LIBS"
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h. */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12742 /* Override any gcc2 internal prototype to avoid an error. */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 /* We use char because int might match the return type of a gcc2
12747 builtin and then its argument prototype would still apply. */
12748 char dg_sys_info ();
12750 main ()
12752 dg_sys_info ();
12754 return 0;
12756 _ACEOF
12757 rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12759 (eval $ac_link) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_lib_dgc_dg_sys_info=yes
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_cv_lib_dgc_dg_sys_info=no
12776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12779 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12780 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12781 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12782 cat >>confdefs.h <<_ACEOF
12783 #define HAVE_LIBDGC 1
12784 _ACEOF
12786 LIBS="-ldgc $LIBS"
12794 if test "${ac_cv_header_locale_h+set}" = set; then
12795 echo "$as_me:$LINENO: checking for locale.h" >&5
12796 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12797 if test "${ac_cv_header_locale_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12801 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12802 else
12803 # Is the header compilable?
12804 echo "$as_me:$LINENO: checking locale.h usability" >&5
12805 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 #include <locale.h>
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817 (eval $ac_compile) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -s conftest.$ac_objext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 ac_header_compiler=yes
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ac_header_compiler=no
12834 rm -f conftest.$ac_objext conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12836 echo "${ECHO_T}$ac_header_compiler" >&6
12838 # Is the header present?
12839 echo "$as_me:$LINENO: checking locale.h presence" >&5
12840 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12841 cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h. */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12847 #include <locale.h>
12848 _ACEOF
12849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } >/dev/null; then
12857 if test -s conftest.err; then
12858 ac_cpp_err=$ac_c_preproc_warn_flag
12859 else
12860 ac_cpp_err=
12862 else
12863 ac_cpp_err=yes
12865 if test -z "$ac_cpp_err"; then
12866 ac_header_preproc=yes
12867 else
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 ac_header_preproc=no
12873 rm -f conftest.err conftest.$ac_ext
12874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12875 echo "${ECHO_T}$ac_header_preproc" >&6
12877 # So? What about this header?
12878 case $ac_header_compiler:$ac_header_preproc in
12879 yes:no )
12880 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12881 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
12883 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
12884 ac_header_preproc=yes
12886 no:yes )
12887 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12888 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12890 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
12892 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
12894 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12896 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
12898 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
12900 cat <<\_ASBOX
12901 ## ------------------------------------------ ##
12902 ## Report this to the AC_PACKAGE_NAME lists. ##
12903 ## ------------------------------------------ ##
12904 _ASBOX
12906 sed "s/^/$as_me: WARNING: /" >&2
12908 esac
12909 echo "$as_me:$LINENO: checking for locale.h" >&5
12910 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12911 if test "${ac_cv_header_locale_h+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914 ac_cv_header_locale_h=$ac_header_preproc
12916 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12917 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12923 for ac_func in setlocale
12925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12926 echo "$as_me:$LINENO: checking for $ac_func" >&5
12927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_var+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h. */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12939 #define $ac_func innocuous_$ac_func
12941 /* System header to define __stub macros and hopefully few prototypes,
12942 which can conflict with char $ac_func (); below.
12943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944 <limits.h> exists even on freestanding compilers. */
12946 #ifdef __STDC__
12947 # include <limits.h>
12948 #else
12949 # include <assert.h>
12950 #endif
12952 #undef $ac_func
12954 /* Override any gcc2 internal prototype to avoid an error. */
12955 #ifdef __cplusplus
12956 extern "C"
12958 #endif
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12961 char $ac_func ();
12962 /* The GNU C library defines this for functions which it implements
12963 to always fail with ENOSYS. Some functions are actually named
12964 something starting with __ and the normal name is an alias. */
12965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12966 choke me
12967 #else
12968 char (*f) () = $ac_func;
12969 #endif
12970 #ifdef __cplusplus
12972 #endif
12975 main ()
12977 return f != $ac_func;
12979 return 0;
12981 _ACEOF
12982 rm -f conftest.$ac_objext conftest$ac_exeext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12984 (eval $ac_link) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -s conftest$ac_exeext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 eval "$as_ac_var=yes"
12995 else
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 eval "$as_ac_var=no"
13001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13005 if test `eval echo '${'$as_ac_var'}'` = yes; then
13006 cat >>confdefs.h <<_ACEOF
13007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13008 _ACEOF
13011 done
13014 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13015 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13016 # Irix 4.0.5F has the header but not the library.
13017 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13018 ac_have_func=yes
13020 cat >>confdefs.h <<\_ACEOF
13021 #define SVR4 1
13022 _ACEOF
13026 if test $ac_have_func = no; then
13027 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13028 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13029 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13030 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13034 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13035 else
13036 # Is the header compilable?
13037 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13038 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 $ac_includes_default
13046 #include <inq_stats/cpustats.h>
13047 _ACEOF
13048 rm -f conftest.$ac_objext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13050 (eval $ac_compile) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
13054 { ac_try='test -s conftest.$ac_objext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_header_compiler=yes
13061 else
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 ac_header_compiler=no
13067 rm -f conftest.$ac_objext conftest.$ac_ext
13068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13069 echo "${ECHO_T}$ac_header_compiler" >&6
13071 # Is the header present?
13072 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13073 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 #include <inq_stats/cpustats.h>
13081 _ACEOF
13082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } >/dev/null; then
13090 if test -s conftest.err; then
13091 ac_cpp_err=$ac_c_preproc_warn_flag
13092 else
13093 ac_cpp_err=
13095 else
13096 ac_cpp_err=yes
13098 if test -z "$ac_cpp_err"; then
13099 ac_header_preproc=yes
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ac_header_preproc=no
13106 rm -f conftest.err conftest.$ac_ext
13107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13108 echo "${ECHO_T}$ac_header_preproc" >&6
13110 # So? What about this header?
13111 case $ac_header_compiler:$ac_header_preproc in
13112 yes:no )
13113 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13114 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
13116 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
13117 ac_header_preproc=yes
13119 no:yes )
13120 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13121 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13123 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13124 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
13125 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
13126 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13127 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13129 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
13131 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
13133 cat <<\_ASBOX
13134 ## ------------------------------------------ ##
13135 ## Report this to the AC_PACKAGE_NAME lists. ##
13136 ## ------------------------------------------ ##
13137 _ASBOX
13139 sed "s/^/$as_me: WARNING: /" >&2
13141 esac
13142 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13143 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13144 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13149 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13150 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13153 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13154 ac_have_func=yes
13156 cat >>confdefs.h <<\_ACEOF
13157 #define UMAX 1
13158 _ACEOF
13161 cat >>confdefs.h <<\_ACEOF
13162 #define UMAX4_3 1
13163 _ACEOF
13170 if test $ac_have_func = no; then
13171 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13172 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13173 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13174 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13178 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13179 else
13180 # Is the header compilable?
13181 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13182 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13190 #include <sys/cpustats.h>
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_header_compiler=yes
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 ac_header_compiler=no
13211 rm -f conftest.$ac_objext conftest.$ac_ext
13212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13213 echo "${ECHO_T}$ac_header_compiler" >&6
13215 # Is the header present?
13216 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13217 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13218 cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h. */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 #include <sys/cpustats.h>
13225 _ACEOF
13226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } >/dev/null; then
13234 if test -s conftest.err; then
13235 ac_cpp_err=$ac_c_preproc_warn_flag
13236 else
13237 ac_cpp_err=
13239 else
13240 ac_cpp_err=yes
13242 if test -z "$ac_cpp_err"; then
13243 ac_header_preproc=yes
13244 else
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_header_preproc=no
13250 rm -f conftest.err conftest.$ac_ext
13251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13252 echo "${ECHO_T}$ac_header_preproc" >&6
13254 # So? What about this header?
13255 case $ac_header_compiler:$ac_header_preproc in
13256 yes:no )
13257 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13258 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
13260 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
13261 ac_header_preproc=yes
13263 no:yes )
13264 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13265 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13267 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
13269 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13271 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13273 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
13275 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
13277 cat <<\_ASBOX
13278 ## ------------------------------------------ ##
13279 ## Report this to the AC_PACKAGE_NAME lists. ##
13280 ## ------------------------------------------ ##
13281 _ASBOX
13283 sed "s/^/$as_me: WARNING: /" >&2
13285 esac
13286 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13287 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13288 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13293 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13294 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13297 if test $ac_cv_header_sys_cpustats_h = yes; then
13298 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13299 #define UMAX 1
13300 _ACEOF
13307 if test $ac_have_func = no; then
13309 for ac_header in mach/mach.h
13311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13313 echo "$as_me:$LINENO: checking for $ac_header" >&5
13314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13320 else
13321 # Is the header compilable?
13322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13331 #include <$ac_header>
13332 _ACEOF
13333 rm -f conftest.$ac_objext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -s conftest.$ac_objext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 ac_header_compiler=yes
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ac_header_compiler=no
13352 rm -f conftest.$ac_objext conftest.$ac_ext
13353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13354 echo "${ECHO_T}$ac_header_compiler" >&6
13356 # Is the header present?
13357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13359 cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h. */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13365 #include <$ac_header>
13366 _ACEOF
13367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } >/dev/null; then
13375 if test -s conftest.err; then
13376 ac_cpp_err=$ac_c_preproc_warn_flag
13377 else
13378 ac_cpp_err=
13380 else
13381 ac_cpp_err=yes
13383 if test -z "$ac_cpp_err"; then
13384 ac_header_preproc=yes
13385 else
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ac_header_preproc=no
13391 rm -f conftest.err conftest.$ac_ext
13392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13393 echo "${ECHO_T}$ac_header_preproc" >&6
13395 # So? What about this header?
13396 case $ac_header_compiler:$ac_header_preproc in
13397 yes:no )
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13402 ac_header_preproc=yes
13404 no:yes )
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13418 cat <<\_ASBOX
13419 ## ------------------------------------------ ##
13420 ## Report this to the AC_PACKAGE_NAME lists. ##
13421 ## ------------------------------------------ ##
13422 _ASBOX
13424 sed "s/^/$as_me: WARNING: /" >&2
13426 esac
13427 echo "$as_me:$LINENO: checking for $ac_header" >&5
13428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 eval "$as_ac_Header=\$ac_header_preproc"
13434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13439 cat >>confdefs.h <<_ACEOF
13440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13441 _ACEOF
13445 done
13450 for ac_header in nlist.h
13452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13461 else
13462 # Is the header compilable?
13463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13472 #include <$ac_header>
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -s conftest.$ac_objext'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_header_compiler=yes
13487 else
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13491 ac_header_compiler=no
13493 rm -f conftest.$ac_objext conftest.$ac_ext
13494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13495 echo "${ECHO_T}$ac_header_compiler" >&6
13497 # Is the header present?
13498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h. */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 #include <$ac_header>
13507 _ACEOF
13508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } >/dev/null; then
13516 if test -s conftest.err; then
13517 ac_cpp_err=$ac_c_preproc_warn_flag
13518 else
13519 ac_cpp_err=
13521 else
13522 ac_cpp_err=yes
13524 if test -z "$ac_cpp_err"; then
13525 ac_header_preproc=yes
13526 else
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 ac_header_preproc=no
13532 rm -f conftest.err conftest.$ac_ext
13533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13534 echo "${ECHO_T}$ac_header_preproc" >&6
13536 # So? What about this header?
13537 case $ac_header_compiler:$ac_header_preproc in
13538 yes:no )
13539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13543 ac_header_preproc=yes
13545 no:yes )
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13559 cat <<\_ASBOX
13560 ## ------------------------------------------ ##
13561 ## Report this to the AC_PACKAGE_NAME lists. ##
13562 ## ------------------------------------------ ##
13563 _ASBOX
13565 sed "s/^/$as_me: WARNING: /" >&2
13567 esac
13568 echo "$as_me:$LINENO: checking for $ac_header" >&5
13569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573 eval "$as_ac_Header=\$ac_header_preproc"
13575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13580 cat >>confdefs.h <<_ACEOF
13581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13582 _ACEOF
13583 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13584 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13585 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 #include <nlist.h>
13597 main ()
13599 static struct nlist ac_aggr;
13600 if (ac_aggr.n_un.n_name)
13601 return 0;
13603 return 0;
13605 _ACEOF
13606 rm -f conftest.$ac_objext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608 (eval $ac_compile) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -s conftest.$ac_objext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_member_struct_nlist_n_un_n_name=yes
13619 else
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13623 cat >conftest.$ac_ext <<_ACEOF
13624 /* confdefs.h. */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629 #include <nlist.h>
13632 main ()
13634 static struct nlist ac_aggr;
13635 if (sizeof ac_aggr.n_un.n_name)
13636 return 0;
13638 return 0;
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -s conftest.$ac_objext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_member_struct_nlist_n_un_n_name=yes
13654 else
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 ac_cv_member_struct_nlist_n_un_n_name=no
13660 rm -f conftest.$ac_objext conftest.$ac_ext
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13665 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13666 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13670 _ACEOF
13673 cat >>confdefs.h <<\_ACEOF
13674 #define NLIST_NAME_UNION 1
13675 _ACEOF
13682 done
13685 done
13688 # Some definitions of getloadavg require that the program be installed setgid.
13689 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13690 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13691 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h. */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13701 #ifdef LDAV_PRIVILEGED
13702 Yowza Am I SETGID yet
13703 #endif
13704 _ACEOF
13705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13707 ac_cv_func_getloadavg_setgid=yes
13708 else
13709 ac_cv_func_getloadavg_setgid=no
13711 rm -f conftest*
13714 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13715 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13716 if test $ac_cv_func_getloadavg_setgid = yes; then
13717 NEED_SETGID=true
13719 cat >>confdefs.h <<\_ACEOF
13720 #define GETLOADAVG_PRIVILEGED 1
13721 _ACEOF
13723 else
13724 NEED_SETGID=false
13727 if test $ac_cv_func_getloadavg_setgid = yes; then
13728 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13729 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13730 if test "${ac_cv_group_kmem+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13734 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13735 # If we got an error (system does not support symlinks), try without -L.
13736 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13737 ac_cv_group_kmem=`echo $ac_ls_output \
13738 | sed -ne 's/[ ][ ]*/ /g;
13739 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13740 / /s/.* //;p;'`
13743 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13744 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13745 KMEM_GROUP=$ac_cv_group_kmem
13747 if test "x$ac_save_LIBS" = x; then
13748 GETLOADAVG_LIBS=$LIBS
13749 else
13750 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13752 LIBS=$ac_save_LIBS
13756 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13757 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13758 if test "${ac_cv_sys_largefile_source+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761 while :; do
13762 ac_cv_sys_largefile_source=no
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <stdio.h>
13771 main ()
13773 return !fseeko;
13775 return 0;
13777 _ACEOF
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 break
13791 else
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13796 rm -f conftest.$ac_objext conftest.$ac_ext
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 #define _LARGEFILE_SOURCE 1
13804 #include <stdio.h>
13806 main ()
13808 return !fseeko;
13810 return 0;
13812 _ACEOF
13813 rm -f conftest.$ac_objext
13814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815 (eval $ac_compile) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_sys_largefile_source=1; break
13826 else
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13831 rm -f conftest.$ac_objext conftest.$ac_ext
13832 break
13833 done
13835 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13836 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13837 if test "$ac_cv_sys_largefile_source" != no; then
13839 cat >>confdefs.h <<_ACEOF
13840 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13841 _ACEOF
13844 rm -f conftest*
13846 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13847 # in glibc 2.1.3, but that breaks too many other things.
13848 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13849 echo "$as_me:$LINENO: checking for fseeko" >&5
13850 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13851 if test "${ac_cv_func_fseeko+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h. */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <stdio.h>
13862 main ()
13864 return fseeko && fseeko (stdin, 0, 0);
13866 return 0;
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13871 (eval $ac_link) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -s conftest$ac_exeext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 ac_cv_func_fseeko=yes
13882 else
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13886 ac_cv_func_fseeko=no
13888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13890 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13891 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13892 if test $ac_cv_func_fseeko = yes; then
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_FSEEKO 1
13896 _ACEOF
13901 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13902 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13903 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906 # Use it with a single arg.
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h. */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 $ac_includes_default
13915 main ()
13917 getpgrp (0);
13919 return 0;
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_func_getpgrp_void=no
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_cv_func_getpgrp_void=yes
13941 rm -f conftest.$ac_objext conftest.$ac_ext
13944 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13945 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13946 if test $ac_cv_func_getpgrp_void = yes; then
13948 cat >>confdefs.h <<\_ACEOF
13949 #define GETPGRP_VOID 1
13950 _ACEOF
13956 for ac_func in strftime
13958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13959 echo "$as_me:$LINENO: checking for $ac_func" >&5
13960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13961 if eval "test \"\${$as_ac_var+set}\" = set"; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13972 #define $ac_func innocuous_$ac_func
13974 /* System header to define __stub macros and hopefully few prototypes,
13975 which can conflict with char $ac_func (); below.
13976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13977 <limits.h> exists even on freestanding compilers. */
13979 #ifdef __STDC__
13980 # include <limits.h>
13981 #else
13982 # include <assert.h>
13983 #endif
13985 #undef $ac_func
13987 /* Override any gcc2 internal prototype to avoid an error. */
13988 #ifdef __cplusplus
13989 extern "C"
13991 #endif
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994 char $ac_func ();
13995 /* The GNU C library defines this for functions which it implements
13996 to always fail with ENOSYS. Some functions are actually named
13997 something starting with __ and the normal name is an alias. */
13998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13999 choke me
14000 #else
14001 char (*f) () = $ac_func;
14002 #endif
14003 #ifdef __cplusplus
14005 #endif
14008 main ()
14010 return f != $ac_func;
14012 return 0;
14014 _ACEOF
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -s conftest$ac_exeext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 eval "$as_ac_var=yes"
14028 else
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 eval "$as_ac_var=no"
14034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14038 if test `eval echo '${'$as_ac_var'}'` = yes; then
14039 cat >>confdefs.h <<_ACEOF
14040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14041 _ACEOF
14043 else
14044 # strftime is in -lintl on SCO UNIX.
14045 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14046 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14047 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-lintl $LIBS"
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h. */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14059 /* Override any gcc2 internal prototype to avoid an error. */
14060 #ifdef __cplusplus
14061 extern "C"
14062 #endif
14063 /* We use char because int might match the return type of a gcc2
14064 builtin and then its argument prototype would still apply. */
14065 char strftime ();
14067 main ()
14069 strftime ();
14071 return 0;
14073 _ACEOF
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14076 (eval $ac_link) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_lib_intl_strftime=yes
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_cv_lib_intl_strftime=no
14093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14096 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14097 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14098 if test $ac_cv_lib_intl_strftime = yes; then
14099 cat >>confdefs.h <<\_ACEOF
14100 #define HAVE_STRFTIME 1
14101 _ACEOF
14103 LIBS="-lintl $LIBS"
14107 done
14110 # UNIX98 PTYs.
14112 for ac_func in grantpt
14114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_var+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14135 #ifdef __STDC__
14136 # include <limits.h>
14137 #else
14138 # include <assert.h>
14139 #endif
14141 #undef $ac_func
14143 /* Override any gcc2 internal prototype to avoid an error. */
14144 #ifdef __cplusplus
14145 extern "C"
14147 #endif
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14150 char $ac_func ();
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 char (*f) () = $ac_func;
14158 #endif
14159 #ifdef __cplusplus
14161 #endif
14164 main ()
14166 return f != $ac_func;
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 eval "$as_ac_var=yes"
14184 else
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 eval "$as_ac_var=no"
14190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14194 if test `eval echo '${'$as_ac_var'}'` = yes; then
14195 cat >>confdefs.h <<_ACEOF
14196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14197 _ACEOF
14200 done
14203 # PTY-related GNU extensions.
14205 for ac_func in getpt
14207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14208 echo "$as_me:$LINENO: checking for $ac_func" >&5
14209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14210 if eval "test \"\${$as_ac_var+set}\" = set"; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14221 #define $ac_func innocuous_$ac_func
14223 /* System header to define __stub macros and hopefully few prototypes,
14224 which can conflict with char $ac_func (); below.
14225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14226 <limits.h> exists even on freestanding compilers. */
14228 #ifdef __STDC__
14229 # include <limits.h>
14230 #else
14231 # include <assert.h>
14232 #endif
14234 #undef $ac_func
14236 /* Override any gcc2 internal prototype to avoid an error. */
14237 #ifdef __cplusplus
14238 extern "C"
14240 #endif
14241 /* We use char because int might match the return type of a gcc2
14242 builtin and then its argument prototype would still apply. */
14243 char $ac_func ();
14244 /* The GNU C library defines this for functions which it implements
14245 to always fail with ENOSYS. Some functions are actually named
14246 something starting with __ and the normal name is an alias. */
14247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14248 choke me
14249 #else
14250 char (*f) () = $ac_func;
14251 #endif
14252 #ifdef __cplusplus
14254 #endif
14257 main ()
14259 return f != $ac_func;
14261 return 0;
14263 _ACEOF
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14266 (eval $ac_link) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
14270 { ac_try='test -s conftest$ac_exeext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 eval "$as_ac_var=yes"
14277 else
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 eval "$as_ac_var=no"
14283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14287 if test `eval echo '${'$as_ac_var'}'` = yes; then
14288 cat >>confdefs.h <<_ACEOF
14289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14290 _ACEOF
14293 done
14296 # Check this now, so that we will NOT find the above functions in ncurses.
14297 # That is because we have not set up to link ncurses in lib-src.
14298 # It's better to believe a function is not available
14299 # than to expect to find it in ncurses.
14301 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14302 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14303 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 ac_check_lib_save_LIBS=$LIBS
14307 LIBS="-lncurses $LIBS"
14308 cat >conftest.$ac_ext <<_ACEOF
14309 /* confdefs.h. */
14310 _ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14315 /* Override any gcc2 internal prototype to avoid an error. */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 /* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14321 char tparm ();
14323 main ()
14325 tparm ();
14327 return 0;
14329 _ACEOF
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14332 (eval $ac_link) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 ac_cv_lib_ncurses_tparm=yes
14343 else
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ac_cv_lib_ncurses_tparm=no
14349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14350 LIBS=$ac_check_lib_save_LIBS
14352 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14353 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14354 if test $ac_cv_lib_ncurses_tparm = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_LIBNCURSES 1
14357 _ACEOF
14359 LIBS="-lncurses $LIBS"
14364 # Do we need the Hesiod library to provide the support routines?
14365 if test "$with_hesiod" = yes ; then
14366 # Don't set $LIBS here -- see comments above.
14367 resolv=no
14368 echo "$as_me:$LINENO: checking for res_send" >&5
14369 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14370 if test "${ac_cv_func_res_send+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
14380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14381 #define res_send innocuous_res_send
14383 /* System header to define __stub macros and hopefully few prototypes,
14384 which can conflict with char res_send (); below.
14385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14386 <limits.h> exists even on freestanding compilers. */
14388 #ifdef __STDC__
14389 # include <limits.h>
14390 #else
14391 # include <assert.h>
14392 #endif
14394 #undef res_send
14396 /* Override any gcc2 internal prototype to avoid an error. */
14397 #ifdef __cplusplus
14398 extern "C"
14400 #endif
14401 /* We use char because int might match the return type of a gcc2
14402 builtin and then its argument prototype would still apply. */
14403 char res_send ();
14404 /* The GNU C library defines this for functions which it implements
14405 to always fail with ENOSYS. Some functions are actually named
14406 something starting with __ and the normal name is an alias. */
14407 #if defined (__stub_res_send) || defined (__stub___res_send)
14408 choke me
14409 #else
14410 char (*f) () = res_send;
14411 #endif
14412 #ifdef __cplusplus
14414 #endif
14417 main ()
14419 return f != res_send;
14421 return 0;
14423 _ACEOF
14424 rm -f conftest.$ac_objext conftest$ac_exeext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 (eval $ac_link) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -s conftest$ac_exeext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 ac_cv_func_res_send=yes
14437 else
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 ac_cv_func_res_send=no
14443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14445 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14446 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14447 if test $ac_cv_func_res_send = yes; then
14449 else
14450 echo "$as_me:$LINENO: checking for __res_send" >&5
14451 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14452 if test "${ac_cv_func___res_send+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
14462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14463 #define __res_send innocuous___res_send
14465 /* System header to define __stub macros and hopefully few prototypes,
14466 which can conflict with char __res_send (); below.
14467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14468 <limits.h> exists even on freestanding compilers. */
14470 #ifdef __STDC__
14471 # include <limits.h>
14472 #else
14473 # include <assert.h>
14474 #endif
14476 #undef __res_send
14478 /* Override any gcc2 internal prototype to avoid an error. */
14479 #ifdef __cplusplus
14480 extern "C"
14482 #endif
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14485 char __res_send ();
14486 /* The GNU C library defines this for functions which it implements
14487 to always fail with ENOSYS. Some functions are actually named
14488 something starting with __ and the normal name is an alias. */
14489 #if defined (__stub___res_send) || defined (__stub_____res_send)
14490 choke me
14491 #else
14492 char (*f) () = __res_send;
14493 #endif
14494 #ifdef __cplusplus
14496 #endif
14499 main ()
14501 return f != __res_send;
14503 return 0;
14505 _ACEOF
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -s conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_cv_func___res_send=yes
14519 else
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14523 ac_cv_func___res_send=no
14525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14527 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14528 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14529 if test $ac_cv_func___res_send = yes; then
14531 else
14532 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14533 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14534 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537 ac_check_lib_save_LIBS=$LIBS
14538 LIBS="-lresolv $LIBS"
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14546 /* Override any gcc2 internal prototype to avoid an error. */
14547 #ifdef __cplusplus
14548 extern "C"
14549 #endif
14550 /* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14552 char res_send ();
14554 main ()
14556 res_send ();
14558 return 0;
14560 _ACEOF
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14563 (eval $ac_link) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest$ac_exeext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_cv_lib_resolv_res_send=yes
14574 else
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_cv_lib_resolv_res_send=no
14580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14581 LIBS=$ac_check_lib_save_LIBS
14583 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14584 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14585 if test $ac_cv_lib_resolv_res_send = yes; then
14586 resolv=yes
14587 else
14588 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14589 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14590 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593 ac_check_lib_save_LIBS=$LIBS
14594 LIBS="-lresolv $LIBS"
14595 cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h. */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14602 /* Override any gcc2 internal prototype to avoid an error. */
14603 #ifdef __cplusplus
14604 extern "C"
14605 #endif
14606 /* We use char because int might match the return type of a gcc2
14607 builtin and then its argument prototype would still apply. */
14608 char __res_send ();
14610 main ()
14612 __res_send ();
14614 return 0;
14616 _ACEOF
14617 rm -f conftest.$ac_objext conftest$ac_exeext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14619 (eval $ac_link) 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -s conftest$ac_exeext'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_lib_resolv___res_send=yes
14630 else
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_lib_resolv___res_send=no
14636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14637 LIBS=$ac_check_lib_save_LIBS
14639 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14640 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14641 if test $ac_cv_lib_resolv___res_send = yes; then
14642 resolv=yes
14651 if test "$resolv" = yes ; then
14652 RESOLVLIB=-lresolv
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_LIBRESOLV 1
14656 _ACEOF
14658 else
14659 RESOLVLIB=
14661 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14662 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14663 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h. */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
14673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14674 #define hes_getmailhost innocuous_hes_getmailhost
14676 /* System header to define __stub macros and hopefully few prototypes,
14677 which can conflict with char hes_getmailhost (); below.
14678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14679 <limits.h> exists even on freestanding compilers. */
14681 #ifdef __STDC__
14682 # include <limits.h>
14683 #else
14684 # include <assert.h>
14685 #endif
14687 #undef hes_getmailhost
14689 /* Override any gcc2 internal prototype to avoid an error. */
14690 #ifdef __cplusplus
14691 extern "C"
14693 #endif
14694 /* We use char because int might match the return type of a gcc2
14695 builtin and then its argument prototype would still apply. */
14696 char hes_getmailhost ();
14697 /* The GNU C library defines this for functions which it implements
14698 to always fail with ENOSYS. Some functions are actually named
14699 something starting with __ and the normal name is an alias. */
14700 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14701 choke me
14702 #else
14703 char (*f) () = hes_getmailhost;
14704 #endif
14705 #ifdef __cplusplus
14707 #endif
14710 main ()
14712 return f != hes_getmailhost;
14714 return 0;
14716 _ACEOF
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14719 (eval $ac_link) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -s conftest$ac_exeext'
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; }; then
14729 ac_cv_func_hes_getmailhost=yes
14730 else
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ac_cv_func_hes_getmailhost=no
14736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14738 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14739 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14740 if test $ac_cv_func_hes_getmailhost = yes; then
14742 else
14743 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14744 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14745 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lhesiod $RESOLVLIB $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any gcc2 internal prototype to avoid an error. */
14758 #ifdef __cplusplus
14759 extern "C"
14760 #endif
14761 /* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14763 char hes_getmailhost ();
14765 main ()
14767 hes_getmailhost ();
14769 return 0;
14771 _ACEOF
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14774 (eval $ac_link) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -s conftest$ac_exeext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_cv_lib_hesiod_hes_getmailhost=yes
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_cv_lib_hesiod_hes_getmailhost=no
14791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14792 LIBS=$ac_check_lib_save_LIBS
14794 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14795 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14796 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_LIBHESIOD 1
14800 _ACEOF
14802 else
14810 # These tell us which Kerberos-related libraries to use.
14811 if test "${with_kerberos+set}" = set; then
14813 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14814 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14815 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818 ac_check_lib_save_LIBS=$LIBS
14819 LIBS="-lcom_err $LIBS"
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h. */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14827 /* Override any gcc2 internal prototype to avoid an error. */
14828 #ifdef __cplusplus
14829 extern "C"
14830 #endif
14831 /* We use char because int might match the return type of a gcc2
14832 builtin and then its argument prototype would still apply. */
14833 char com_err ();
14835 main ()
14837 com_err ();
14839 return 0;
14841 _ACEOF
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844 (eval $ac_link) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -s conftest$ac_exeext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_lib_com_err_com_err=yes
14855 else
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_lib_com_err_com_err=no
14861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14862 LIBS=$ac_check_lib_save_LIBS
14864 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14865 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14866 if test $ac_cv_lib_com_err_com_err = yes; then
14867 cat >>confdefs.h <<_ACEOF
14868 #define HAVE_LIBCOM_ERR 1
14869 _ACEOF
14871 LIBS="-lcom_err $LIBS"
14876 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14877 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14878 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881 ac_check_lib_save_LIBS=$LIBS
14882 LIBS="-lk5crypto $LIBS"
14883 cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h. */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14890 /* Override any gcc2 internal prototype to avoid an error. */
14891 #ifdef __cplusplus
14892 extern "C"
14893 #endif
14894 /* We use char because int might match the return type of a gcc2
14895 builtin and then its argument prototype would still apply. */
14896 char mit_des_cbc_encrypt ();
14898 main ()
14900 mit_des_cbc_encrypt ();
14902 return 0;
14904 _ACEOF
14905 rm -f conftest.$ac_objext conftest$ac_exeext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14918 else
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14922 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14928 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14929 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14930 cat >>confdefs.h <<_ACEOF
14931 #define HAVE_LIBK5CRYPTO 1
14932 _ACEOF
14934 LIBS="-lk5crypto $LIBS"
14939 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14940 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14941 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944 ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-lcrypto $LIBS"
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14953 /* Override any gcc2 internal prototype to avoid an error. */
14954 #ifdef __cplusplus
14955 extern "C"
14956 #endif
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959 char mit_des_cbc_encrypt ();
14961 main ()
14963 mit_des_cbc_encrypt ();
14965 return 0;
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -s conftest$ac_exeext'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14981 else
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14985 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14990 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14991 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14992 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_LIBCRYPTO 1
14995 _ACEOF
14997 LIBS="-lcrypto $LIBS"
15002 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15003 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15004 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007 ac_check_lib_save_LIBS=$LIBS
15008 LIBS="-lkrb5 $LIBS"
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15016 /* Override any gcc2 internal prototype to avoid an error. */
15017 #ifdef __cplusplus
15018 extern "C"
15019 #endif
15020 /* We use char because int might match the return type of a gcc2
15021 builtin and then its argument prototype would still apply. */
15022 char krb5_init_context ();
15024 main ()
15026 krb5_init_context ();
15028 return 0;
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try='test -s conftest$ac_exeext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_lib_krb5_krb5_init_context=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_cv_lib_krb5_krb5_init_context=no
15050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15051 LIBS=$ac_check_lib_save_LIBS
15053 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15054 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15055 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15056 cat >>confdefs.h <<_ACEOF
15057 #define HAVE_LIBKRB5 1
15058 _ACEOF
15060 LIBS="-lkrb5 $LIBS"
15064 if test "${with_kerberos5+set}" != set; then
15066 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15067 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15068 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 ac_check_lib_save_LIBS=$LIBS
15072 LIBS="-ldes425 $LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15080 /* Override any gcc2 internal prototype to avoid an error. */
15081 #ifdef __cplusplus
15082 extern "C"
15083 #endif
15084 /* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15086 char des_cbc_encrypt ();
15088 main ()
15090 des_cbc_encrypt ();
15092 return 0;
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15097 (eval $ac_link) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -s conftest$ac_exeext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 ac_cv_lib_des425_des_cbc_encrypt=yes
15108 else
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ac_cv_lib_des425_des_cbc_encrypt=no
15114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15115 LIBS=$ac_check_lib_save_LIBS
15117 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15118 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15119 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15120 cat >>confdefs.h <<_ACEOF
15121 #define HAVE_LIBDES425 1
15122 _ACEOF
15124 LIBS="-ldes425 $LIBS"
15126 else
15128 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15129 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15130 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133 ac_check_lib_save_LIBS=$LIBS
15134 LIBS="-ldes $LIBS"
15135 cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h. */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15142 /* Override any gcc2 internal prototype to avoid an error. */
15143 #ifdef __cplusplus
15144 extern "C"
15145 #endif
15146 /* We use char because int might match the return type of a gcc2
15147 builtin and then its argument prototype would still apply. */
15148 char des_cbc_encrypt ();
15150 main ()
15152 des_cbc_encrypt ();
15154 return 0;
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -s conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_lib_des_des_cbc_encrypt=yes
15170 else
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_cv_lib_des_des_cbc_encrypt=no
15176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15180 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15181 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15182 cat >>confdefs.h <<_ACEOF
15183 #define HAVE_LIBDES 1
15184 _ACEOF
15186 LIBS="-ldes $LIBS"
15193 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15194 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15195 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 else
15198 ac_check_lib_save_LIBS=$LIBS
15199 LIBS="-lkrb4 $LIBS"
15200 cat >conftest.$ac_ext <<_ACEOF
15201 /* confdefs.h. */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15207 /* Override any gcc2 internal prototype to avoid an error. */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 /* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213 char krb_get_cred ();
15215 main ()
15217 krb_get_cred ();
15219 return 0;
15221 _ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
15228 { ac_try='test -s conftest$ac_exeext'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_cv_lib_krb4_krb_get_cred=yes
15235 else
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_cv_lib_krb4_krb_get_cred=no
15241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15244 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15245 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15246 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15247 cat >>confdefs.h <<_ACEOF
15248 #define HAVE_LIBKRB4 1
15249 _ACEOF
15251 LIBS="-lkrb4 $LIBS"
15253 else
15255 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15256 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15257 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260 ac_check_lib_save_LIBS=$LIBS
15261 LIBS="-lkrb $LIBS"
15262 cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h. */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15269 /* Override any gcc2 internal prototype to avoid an error. */
15270 #ifdef __cplusplus
15271 extern "C"
15272 #endif
15273 /* We use char because int might match the return type of a gcc2
15274 builtin and then its argument prototype would still apply. */
15275 char krb_get_cred ();
15277 main ()
15279 krb_get_cred ();
15281 return 0;
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286 (eval $ac_link) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } &&
15290 { ac_try='test -s conftest$ac_exeext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_cv_lib_krb_krb_get_cred=yes
15297 else
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 ac_cv_lib_krb_krb_get_cred=no
15303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15304 LIBS=$ac_check_lib_save_LIBS
15306 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15307 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15308 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15309 cat >>confdefs.h <<_ACEOF
15310 #define HAVE_LIBKRB 1
15311 _ACEOF
15313 LIBS="-lkrb $LIBS"
15321 if test "${with_kerberos5+set}" = set; then
15323 for ac_header in krb5.h
15325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15327 echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15334 else
15335 # Is the header compilable?
15336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 $ac_includes_default
15345 #include <$ac_header>
15346 _ACEOF
15347 rm -f conftest.$ac_objext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15349 (eval $ac_compile) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -s conftest.$ac_objext'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 ac_header_compiler=yes
15360 else
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_header_compiler=no
15366 rm -f conftest.$ac_objext conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15368 echo "${ECHO_T}$ac_header_compiler" >&6
15370 # Is the header present?
15371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 #include <$ac_header>
15380 _ACEOF
15381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } >/dev/null; then
15389 if test -s conftest.err; then
15390 ac_cpp_err=$ac_c_preproc_warn_flag
15391 else
15392 ac_cpp_err=
15394 else
15395 ac_cpp_err=yes
15397 if test -z "$ac_cpp_err"; then
15398 ac_header_preproc=yes
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_header_preproc=no
15405 rm -f conftest.err conftest.$ac_ext
15406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15407 echo "${ECHO_T}$ac_header_preproc" >&6
15409 # So? What about this header?
15410 case $ac_header_compiler:$ac_header_preproc in
15411 yes:no )
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15416 ac_header_preproc=yes
15418 no:yes )
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15432 cat <<\_ASBOX
15433 ## ------------------------------------------ ##
15434 ## Report this to the AC_PACKAGE_NAME lists. ##
15435 ## ------------------------------------------ ##
15436 _ASBOX
15438 sed "s/^/$as_me: WARNING: /" >&2
15440 esac
15441 echo "$as_me:$LINENO: checking for $ac_header" >&5
15442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446 eval "$as_ac_Header=\$ac_header_preproc"
15448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15453 cat >>confdefs.h <<_ACEOF
15454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15455 _ACEOF
15459 done
15461 else
15463 for ac_header in des.h
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467 echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15474 else
15475 # Is the header compilable?
15476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h. */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 $ac_includes_default
15485 #include <$ac_header>
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 ac_header_compiler=yes
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_header_compiler=no
15506 rm -f conftest.$ac_objext conftest.$ac_ext
15507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15508 echo "${ECHO_T}$ac_header_compiler" >&6
15510 # Is the header present?
15511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <$ac_header>
15520 _ACEOF
15521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } >/dev/null; then
15529 if test -s conftest.err; then
15530 ac_cpp_err=$ac_c_preproc_warn_flag
15531 else
15532 ac_cpp_err=
15534 else
15535 ac_cpp_err=yes
15537 if test -z "$ac_cpp_err"; then
15538 ac_header_preproc=yes
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_header_preproc=no
15545 rm -f conftest.err conftest.$ac_ext
15546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15547 echo "${ECHO_T}$ac_header_preproc" >&6
15549 # So? What about this header?
15550 case $ac_header_compiler:$ac_header_preproc in
15551 yes:no )
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15556 ac_header_preproc=yes
15558 no:yes )
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15572 cat <<\_ASBOX
15573 ## ------------------------------------------ ##
15574 ## Report this to the AC_PACKAGE_NAME lists. ##
15575 ## ------------------------------------------ ##
15576 _ASBOX
15578 sed "s/^/$as_me: WARNING: /" >&2
15580 esac
15581 echo "$as_me:$LINENO: checking for $ac_header" >&5
15582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586 eval "$as_ac_Header=\$ac_header_preproc"
15588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15595 _ACEOF
15597 else
15599 for ac_header in kerberosIV/des.h
15601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15603 echo "$as_me:$LINENO: checking for $ac_header" >&5
15604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15610 else
15611 # Is the header compilable?
15612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h. */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 $ac_includes_default
15621 #include <$ac_header>
15622 _ACEOF
15623 rm -f conftest.$ac_objext
15624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15625 (eval $ac_compile) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try='test -s conftest.$ac_objext'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_header_compiler=yes
15636 else
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 ac_header_compiler=no
15642 rm -f conftest.$ac_objext conftest.$ac_ext
15643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15644 echo "${ECHO_T}$ac_header_compiler" >&6
15646 # Is the header present?
15647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15649 cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 #include <$ac_header>
15656 _ACEOF
15657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } >/dev/null; then
15665 if test -s conftest.err; then
15666 ac_cpp_err=$ac_c_preproc_warn_flag
15667 else
15668 ac_cpp_err=
15670 else
15671 ac_cpp_err=yes
15673 if test -z "$ac_cpp_err"; then
15674 ac_header_preproc=yes
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ac_header_preproc=no
15681 rm -f conftest.err conftest.$ac_ext
15682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15683 echo "${ECHO_T}$ac_header_preproc" >&6
15685 # So? What about this header?
15686 case $ac_header_compiler:$ac_header_preproc in
15687 yes:no )
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15692 ac_header_preproc=yes
15694 no:yes )
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15708 cat <<\_ASBOX
15709 ## ------------------------------------------ ##
15710 ## Report this to the AC_PACKAGE_NAME lists. ##
15711 ## ------------------------------------------ ##
15712 _ASBOX
15714 sed "s/^/$as_me: WARNING: /" >&2
15716 esac
15717 echo "$as_me:$LINENO: checking for $ac_header" >&5
15718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722 eval "$as_ac_Header=\$ac_header_preproc"
15724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15729 cat >>confdefs.h <<_ACEOF
15730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15731 _ACEOF
15733 else
15735 for ac_header in kerberos/des.h
15737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15739 echo "$as_me:$LINENO: checking for $ac_header" >&5
15740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15746 else
15747 # Is the header compilable?
15748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h. */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 $ac_includes_default
15757 #include <$ac_header>
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15761 (eval $ac_compile) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_header_compiler=yes
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 ac_header_compiler=no
15778 rm -f conftest.$ac_objext conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15780 echo "${ECHO_T}$ac_header_compiler" >&6
15782 # Is the header present?
15783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15785 cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h. */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 #include <$ac_header>
15792 _ACEOF
15793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null; then
15801 if test -s conftest.err; then
15802 ac_cpp_err=$ac_c_preproc_warn_flag
15803 else
15804 ac_cpp_err=
15806 else
15807 ac_cpp_err=yes
15809 if test -z "$ac_cpp_err"; then
15810 ac_header_preproc=yes
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_header_preproc=no
15817 rm -f conftest.err conftest.$ac_ext
15818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15819 echo "${ECHO_T}$ac_header_preproc" >&6
15821 # So? What about this header?
15822 case $ac_header_compiler:$ac_header_preproc in
15823 yes:no )
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15828 ac_header_preproc=yes
15830 no:yes )
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15844 cat <<\_ASBOX
15845 ## ------------------------------------------ ##
15846 ## Report this to the AC_PACKAGE_NAME lists. ##
15847 ## ------------------------------------------ ##
15848 _ASBOX
15850 sed "s/^/$as_me: WARNING: /" >&2
15852 esac
15853 echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858 eval "$as_ac_Header=\$ac_header_preproc"
15860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 _ACEOF
15871 done
15875 done
15879 done
15882 for ac_header in krb.h
15884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15886 echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15893 else
15894 # Is the header compilable?
15895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h. */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 $ac_includes_default
15904 #include <$ac_header>
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15908 (eval $ac_compile) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -s conftest.$ac_objext'
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_header_compiler=yes
15919 else
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_header_compiler=no
15925 rm -f conftest.$ac_objext conftest.$ac_ext
15926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15927 echo "${ECHO_T}$ac_header_compiler" >&6
15929 # Is the header present?
15930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 #include <$ac_header>
15939 _ACEOF
15940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } >/dev/null; then
15948 if test -s conftest.err; then
15949 ac_cpp_err=$ac_c_preproc_warn_flag
15950 else
15951 ac_cpp_err=
15953 else
15954 ac_cpp_err=yes
15956 if test -z "$ac_cpp_err"; then
15957 ac_header_preproc=yes
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_header_preproc=no
15964 rm -f conftest.err conftest.$ac_ext
15965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 echo "${ECHO_T}$ac_header_preproc" >&6
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc in
15970 yes:no )
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15975 ac_header_preproc=yes
15977 no:yes )
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15991 cat <<\_ASBOX
15992 ## ------------------------------------------ ##
15993 ## Report this to the AC_PACKAGE_NAME lists. ##
15994 ## ------------------------------------------ ##
15995 _ASBOX
15997 sed "s/^/$as_me: WARNING: /" >&2
15999 esac
16000 echo "$as_me:$LINENO: checking for $ac_header" >&5
16001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16005 eval "$as_ac_Header=\$ac_header_preproc"
16007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16012 cat >>confdefs.h <<_ACEOF
16013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16014 _ACEOF
16016 else
16018 for ac_header in kerberosIV/krb.h
16020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16022 echo "$as_me:$LINENO: checking for $ac_header" >&5
16023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16029 else
16030 # Is the header compilable?
16031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 $ac_includes_default
16040 #include <$ac_header>
16041 _ACEOF
16042 rm -f conftest.$ac_objext
16043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16044 (eval $ac_compile) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -s conftest.$ac_objext'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 ac_header_compiler=yes
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 ac_header_compiler=no
16061 rm -f conftest.$ac_objext conftest.$ac_ext
16062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16063 echo "${ECHO_T}$ac_header_compiler" >&6
16065 # Is the header present?
16066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16068 cat >conftest.$ac_ext <<_ACEOF
16069 /* confdefs.h. */
16070 _ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 #include <$ac_header>
16075 _ACEOF
16076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev/null; then
16084 if test -s conftest.err; then
16085 ac_cpp_err=$ac_c_preproc_warn_flag
16086 else
16087 ac_cpp_err=
16089 else
16090 ac_cpp_err=yes
16092 if test -z "$ac_cpp_err"; then
16093 ac_header_preproc=yes
16094 else
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16098 ac_header_preproc=no
16100 rm -f conftest.err conftest.$ac_ext
16101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16102 echo "${ECHO_T}$ac_header_preproc" >&6
16104 # So? What about this header?
16105 case $ac_header_compiler:$ac_header_preproc in
16106 yes:no )
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16111 ac_header_preproc=yes
16113 no:yes )
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16127 cat <<\_ASBOX
16128 ## ------------------------------------------ ##
16129 ## Report this to the AC_PACKAGE_NAME lists. ##
16130 ## ------------------------------------------ ##
16131 _ASBOX
16133 sed "s/^/$as_me: WARNING: /" >&2
16135 esac
16136 echo "$as_me:$LINENO: checking for $ac_header" >&5
16137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141 eval "$as_ac_Header=\$ac_header_preproc"
16143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16148 cat >>confdefs.h <<_ACEOF
16149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16150 _ACEOF
16152 else
16154 for ac_header in kerberos/krb.h
16156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16158 echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16165 else
16166 # Is the header compilable?
16167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 $ac_includes_default
16176 #include <$ac_header>
16177 _ACEOF
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } &&
16184 { ac_try='test -s conftest.$ac_objext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_header_compiler=yes
16191 else
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_header_compiler=no
16197 rm -f conftest.$ac_objext conftest.$ac_ext
16198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16199 echo "${ECHO_T}$ac_header_compiler" >&6
16201 # Is the header present?
16202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h. */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 #include <$ac_header>
16211 _ACEOF
16212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } >/dev/null; then
16220 if test -s conftest.err; then
16221 ac_cpp_err=$ac_c_preproc_warn_flag
16222 else
16223 ac_cpp_err=
16225 else
16226 ac_cpp_err=yes
16228 if test -z "$ac_cpp_err"; then
16229 ac_header_preproc=yes
16230 else
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_header_preproc=no
16236 rm -f conftest.err conftest.$ac_ext
16237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16238 echo "${ECHO_T}$ac_header_preproc" >&6
16240 # So? What about this header?
16241 case $ac_header_compiler:$ac_header_preproc in
16242 yes:no )
16243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16247 ac_header_preproc=yes
16249 no:yes )
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16263 cat <<\_ASBOX
16264 ## ------------------------------------------ ##
16265 ## Report this to the AC_PACKAGE_NAME lists. ##
16266 ## ------------------------------------------ ##
16267 _ASBOX
16269 sed "s/^/$as_me: WARNING: /" >&2
16271 esac
16272 echo "$as_me:$LINENO: checking for $ac_header" >&5
16273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 else
16277 eval "$as_ac_Header=\$ac_header_preproc"
16279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16284 cat >>confdefs.h <<_ACEOF
16285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16286 _ACEOF
16290 done
16294 done
16298 done
16302 for ac_header in com_err.h
16304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16306 echo "$as_me:$LINENO: checking for $ac_header" >&5
16307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16313 else
16314 # Is the header compilable?
16315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h. */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 $ac_includes_default
16324 #include <$ac_header>
16325 _ACEOF
16326 rm -f conftest.$ac_objext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16328 (eval $ac_compile) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ac_header_compiler=yes
16339 else
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_header_compiler=no
16345 rm -f conftest.$ac_objext conftest.$ac_ext
16346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16347 echo "${ECHO_T}$ac_header_compiler" >&6
16349 # Is the header present?
16350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16352 cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 #include <$ac_header>
16359 _ACEOF
16360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16362 ac_status=$?
16363 grep -v '^ *+' conftest.er1 >conftest.err
16364 rm -f conftest.er1
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } >/dev/null; then
16368 if test -s conftest.err; then
16369 ac_cpp_err=$ac_c_preproc_warn_flag
16370 else
16371 ac_cpp_err=
16373 else
16374 ac_cpp_err=yes
16376 if test -z "$ac_cpp_err"; then
16377 ac_header_preproc=yes
16378 else
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_header_preproc=no
16384 rm -f conftest.err conftest.$ac_ext
16385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16386 echo "${ECHO_T}$ac_header_preproc" >&6
16388 # So? What about this header?
16389 case $ac_header_compiler:$ac_header_preproc in
16390 yes:no )
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16395 ac_header_preproc=yes
16397 no:yes )
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16411 cat <<\_ASBOX
16412 ## ------------------------------------------ ##
16413 ## Report this to the AC_PACKAGE_NAME lists. ##
16414 ## ------------------------------------------ ##
16415 _ASBOX
16417 sed "s/^/$as_me: WARNING: /" >&2
16419 esac
16420 echo "$as_me:$LINENO: checking for $ac_header" >&5
16421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425 eval "$as_ac_Header=\$ac_header_preproc"
16427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16434 _ACEOF
16438 done
16442 # Solaris requires -lintl if you want strerror (which calls dgettext)
16443 # to return localized messages.
16445 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16446 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16447 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450 ac_check_lib_save_LIBS=$LIBS
16451 LIBS="-lintl $LIBS"
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h. */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16459 /* Override any gcc2 internal prototype to avoid an error. */
16460 #ifdef __cplusplus
16461 extern "C"
16462 #endif
16463 /* We use char because int might match the return type of a gcc2
16464 builtin and then its argument prototype would still apply. */
16465 char dgettext ();
16467 main ()
16469 dgettext ();
16471 return 0;
16473 _ACEOF
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476 (eval $ac_link) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_cv_lib_intl_dgettext=yes
16487 else
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 ac_cv_lib_intl_dgettext=no
16493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16494 LIBS=$ac_check_lib_save_LIBS
16496 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16497 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16498 if test $ac_cv_lib_intl_dgettext = yes; then
16499 cat >>confdefs.h <<_ACEOF
16500 #define HAVE_LIBINTL 1
16501 _ACEOF
16503 LIBS="-lintl $LIBS"
16508 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16509 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16510 if test "${emacs_cv_localtime_cache+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513 if test x$ac_cv_func_tzset = xyes; then
16514 if test "$cross_compiling" = yes; then
16515 # If we have tzset, assume the worst when cross-compiling.
16516 emacs_cv_localtime_cache=yes
16517 else
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <time.h>
16525 extern char **environ;
16526 unset_TZ ()
16528 char **from, **to;
16529 for (to = from = environ; (*to = *from); from++)
16530 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16531 to++;
16533 char TZ_GMT0[] = "TZ=GMT0";
16534 char TZ_PST8[] = "TZ=PST8";
16535 main()
16537 time_t now = time ((time_t *) 0);
16538 int hour_GMT0, hour_unset;
16539 if (putenv (TZ_GMT0) != 0)
16540 exit (1);
16541 hour_GMT0 = localtime (&now)->tm_hour;
16542 unset_TZ ();
16543 hour_unset = localtime (&now)->tm_hour;
16544 if (putenv (TZ_PST8) != 0)
16545 exit (1);
16546 if (localtime (&now)->tm_hour == hour_GMT0)
16547 exit (1);
16548 unset_TZ ();
16549 if (localtime (&now)->tm_hour != hour_unset)
16550 exit (1);
16551 exit (0);
16553 _ACEOF
16554 rm -f conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 emacs_cv_localtime_cache=no
16566 else
16567 echo "$as_me: program exited with status $ac_status" >&5
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ( exit $ac_status )
16572 emacs_cv_localtime_cache=yes
16574 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16576 else
16577 # If we lack tzset, report that localtime does not cache TZ,
16578 # since we can't invalidate the cache if we don't have tzset.
16579 emacs_cv_localtime_cache=no
16582 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16583 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16584 if test $emacs_cv_localtime_cache = yes; then
16586 cat >>confdefs.h <<\_ACEOF
16587 #define LOCALTIME_CACHE 1
16588 _ACEOF
16592 if test "x$HAVE_TIMEVAL" = xyes; then
16594 for ac_func in gettimeofday
16596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16597 echo "$as_me:$LINENO: checking for $ac_func" >&5
16598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16599 if eval "test \"\${$as_ac_var+set}\" = set"; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602 cat >conftest.$ac_ext <<_ACEOF
16603 /* confdefs.h. */
16604 _ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16610 #define $ac_func innocuous_$ac_func
16612 /* System header to define __stub macros and hopefully few prototypes,
16613 which can conflict with char $ac_func (); below.
16614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16615 <limits.h> exists even on freestanding compilers. */
16617 #ifdef __STDC__
16618 # include <limits.h>
16619 #else
16620 # include <assert.h>
16621 #endif
16623 #undef $ac_func
16625 /* Override any gcc2 internal prototype to avoid an error. */
16626 #ifdef __cplusplus
16627 extern "C"
16629 #endif
16630 /* We use char because int might match the return type of a gcc2
16631 builtin and then its argument prototype would still apply. */
16632 char $ac_func ();
16633 /* The GNU C library defines this for functions which it implements
16634 to always fail with ENOSYS. Some functions are actually named
16635 something starting with __ and the normal name is an alias. */
16636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16637 choke me
16638 #else
16639 char (*f) () = $ac_func;
16640 #endif
16641 #ifdef __cplusplus
16643 #endif
16646 main ()
16648 return f != $ac_func;
16650 return 0;
16652 _ACEOF
16653 rm -f conftest.$ac_objext conftest$ac_exeext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16655 (eval $ac_link) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -s 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 eval "$as_ac_var=yes"
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 eval "$as_ac_var=no"
16672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16676 if test `eval echo '${'$as_ac_var'}'` = yes; then
16677 cat >>confdefs.h <<_ACEOF
16678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16679 _ACEOF
16682 done
16684 if test $ac_cv_func_gettimeofday = yes; then
16685 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16686 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16687 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16697 #ifdef TIME_WITH_SYS_TIME
16698 #include <sys/time.h>
16699 #include <time.h>
16700 #else
16701 #ifdef HAVE_SYS_TIME_H
16702 #include <sys/time.h>
16703 #else
16704 #include <time.h>
16705 #endif
16706 #endif
16708 main ()
16710 struct timeval time;
16711 gettimeofday (&time, 0);
16713 return 0;
16715 _ACEOF
16716 rm -f conftest.$ac_objext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718 (eval $ac_compile) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -s conftest.$ac_objext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 emacs_cv_gettimeofday_two_arguments=yes
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 emacs_cv_gettimeofday_two_arguments=no
16735 rm -f conftest.$ac_objext conftest.$ac_ext
16737 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16738 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16739 if test $emacs_cv_gettimeofday_two_arguments = no; then
16741 cat >>confdefs.h <<\_ACEOF
16742 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16743 _ACEOF
16749 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16750 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16751 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16752 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <sys/types.h>
16762 #include <$ac_cv_struct_tm>
16766 main ()
16768 static struct tm ac_aggr;
16769 if (ac_aggr.tm_zone)
16770 return 0;
16772 return 0;
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777 (eval $ac_compile) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -s conftest.$ac_objext'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 ac_cv_member_struct_tm_tm_zone=yes
16788 else
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 cat >conftest.$ac_ext <<_ACEOF
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 #include <sys/types.h>
16799 #include <$ac_cv_struct_tm>
16803 main ()
16805 static struct tm ac_aggr;
16806 if (sizeof ac_aggr.tm_zone)
16807 return 0;
16809 return 0;
16811 _ACEOF
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_cv_member_struct_tm_tm_zone=yes
16825 else
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ac_cv_member_struct_tm_tm_zone=no
16831 rm -f conftest.$ac_objext conftest.$ac_ext
16833 rm -f conftest.$ac_objext conftest.$ac_ext
16835 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16836 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16837 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16839 cat >>confdefs.h <<_ACEOF
16840 #define HAVE_STRUCT_TM_TM_ZONE 1
16841 _ACEOF
16846 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_TM_ZONE 1
16850 _ACEOF
16852 else
16853 echo "$as_me:$LINENO: checking for tzname" >&5
16854 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16855 if test "${ac_cv_var_tzname+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h. */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 #include <time.h>
16865 #ifndef tzname /* For SGI. */
16866 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16867 #endif
16870 main ()
16872 atoi(*tzname);
16874 return 0;
16876 _ACEOF
16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16879 (eval $ac_link) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try='test -s conftest$ac_exeext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 ac_cv_var_tzname=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 ac_cv_var_tzname=no
16896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16898 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16899 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16900 if test $ac_cv_var_tzname = yes; then
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE_TZNAME 1
16904 _ACEOF
16910 if test "$ac_cv_func_gettimeofday" = yes; then
16911 echo "$as_me:$LINENO: checking for struct timezone" >&5
16912 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16913 if test "${emacs_cv_struct_timezone+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <sys/time.h>
16924 main ()
16926 struct timezone tz;
16928 return 0;
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 if test "$cross_compiling" = yes; then
16944 emacs_cv_struct_timezone=yes
16945 else
16946 cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h. */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16953 #ifdef TIME_WITH_SYS_TIME
16954 #include <sys/time.h>
16955 #include <time.h>
16956 #else
16957 #ifdef HAVE_SYS_TIME_H
16958 #include <sys/time.h>
16959 #else
16960 #include <time.h>
16961 #endif
16962 #endif
16963 main () {
16964 struct timeval time;
16965 struct timezone dummy;
16966 exit (gettimeofday (&time, &dummy));
16968 _ACEOF
16969 rm -f conftest$ac_exeext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16971 (eval $ac_link) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 emacs_cv_struct_timezone=yes
16981 else
16982 echo "$as_me: program exited with status $ac_status" >&5
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 ( exit $ac_status )
16987 emacs_cv_struct_timezone=no
16989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 emacs_cv_struct_timezone=no
16997 rm -f conftest.$ac_objext conftest.$ac_ext
16999 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17000 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17003 ok_so_far=yes
17004 echo "$as_me:$LINENO: checking for socket" >&5
17005 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17006 if test "${ac_cv_func_socket+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17017 #define socket innocuous_socket
17019 /* System header to define __stub macros and hopefully few prototypes,
17020 which can conflict with char socket (); below.
17021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17022 <limits.h> exists even on freestanding compilers. */
17024 #ifdef __STDC__
17025 # include <limits.h>
17026 #else
17027 # include <assert.h>
17028 #endif
17030 #undef socket
17032 /* Override any gcc2 internal prototype to avoid an error. */
17033 #ifdef __cplusplus
17034 extern "C"
17036 #endif
17037 /* We use char because int might match the return type of a gcc2
17038 builtin and then its argument prototype would still apply. */
17039 char socket ();
17040 /* The GNU C library defines this for functions which it implements
17041 to always fail with ENOSYS. Some functions are actually named
17042 something starting with __ and the normal name is an alias. */
17043 #if defined (__stub_socket) || defined (__stub___socket)
17044 choke me
17045 #else
17046 char (*f) () = socket;
17047 #endif
17048 #ifdef __cplusplus
17050 #endif
17053 main ()
17055 return f != socket;
17057 return 0;
17059 _ACEOF
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17062 (eval $ac_link) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_func_socket=yes
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ac_cv_func_socket=no
17079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17081 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17082 echo "${ECHO_T}$ac_cv_func_socket" >&6
17083 if test $ac_cv_func_socket = yes; then
17085 else
17086 ok_so_far=no
17089 if test $ok_so_far = yes; then
17090 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17091 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17092 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17093 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17097 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17098 else
17099 # Is the header compilable?
17100 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17101 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h. */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 $ac_includes_default
17109 #include <netinet/in.h>
17110 _ACEOF
17111 rm -f conftest.$ac_objext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17113 (eval $ac_compile) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
17117 { ac_try='test -s conftest.$ac_objext'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 ac_header_compiler=yes
17124 else
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 ac_header_compiler=no
17130 rm -f conftest.$ac_objext conftest.$ac_ext
17131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17132 echo "${ECHO_T}$ac_header_compiler" >&6
17134 # Is the header present?
17135 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17136 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143 #include <netinet/in.h>
17144 _ACEOF
17145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17147 ac_status=$?
17148 grep -v '^ *+' conftest.er1 >conftest.err
17149 rm -f conftest.er1
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } >/dev/null; then
17153 if test -s conftest.err; then
17154 ac_cpp_err=$ac_c_preproc_warn_flag
17155 else
17156 ac_cpp_err=
17158 else
17159 ac_cpp_err=yes
17161 if test -z "$ac_cpp_err"; then
17162 ac_header_preproc=yes
17163 else
17164 echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_header_preproc=no
17169 rm -f conftest.err conftest.$ac_ext
17170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17171 echo "${ECHO_T}$ac_header_preproc" >&6
17173 # So? What about this header?
17174 case $ac_header_compiler:$ac_header_preproc in
17175 yes:no )
17176 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17177 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17178 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
17179 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
17180 ac_header_preproc=yes
17182 no:yes )
17183 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17184 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17186 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
17188 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
17189 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
17190 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17192 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
17194 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
17196 cat <<\_ASBOX
17197 ## ------------------------------------------ ##
17198 ## Report this to the AC_PACKAGE_NAME lists. ##
17199 ## ------------------------------------------ ##
17200 _ASBOX
17202 sed "s/^/$as_me: WARNING: /" >&2
17204 esac
17205 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17206 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17207 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210 ac_cv_header_netinet_in_h=$ac_header_preproc
17212 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17213 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17216 if test $ac_cv_header_netinet_in_h = yes; then
17218 else
17219 ok_so_far=no
17224 if test $ok_so_far = yes; then
17225 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17226 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17227 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17228 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17232 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17233 else
17234 # Is the header compilable?
17235 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17236 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17243 $ac_includes_default
17244 #include <arpa/inet.h>
17245 _ACEOF
17246 rm -f conftest.$ac_objext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248 (eval $ac_compile) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -s conftest.$ac_objext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_header_compiler=yes
17259 else
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_header_compiler=no
17265 rm -f conftest.$ac_objext conftest.$ac_ext
17266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17267 echo "${ECHO_T}$ac_header_compiler" >&6
17269 # Is the header present?
17270 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17271 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 #include <arpa/inet.h>
17279 _ACEOF
17280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17282 ac_status=$?
17283 grep -v '^ *+' conftest.er1 >conftest.err
17284 rm -f conftest.er1
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } >/dev/null; then
17288 if test -s conftest.err; then
17289 ac_cpp_err=$ac_c_preproc_warn_flag
17290 else
17291 ac_cpp_err=
17293 else
17294 ac_cpp_err=yes
17296 if test -z "$ac_cpp_err"; then
17297 ac_header_preproc=yes
17298 else
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 ac_header_preproc=no
17304 rm -f conftest.err conftest.$ac_ext
17305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17306 echo "${ECHO_T}$ac_header_preproc" >&6
17308 # So? What about this header?
17309 case $ac_header_compiler:$ac_header_preproc in
17310 yes:no )
17311 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17312 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
17314 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
17315 ac_header_preproc=yes
17317 no:yes )
17318 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17319 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17321 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
17323 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
17325 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17327 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
17329 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
17331 cat <<\_ASBOX
17332 ## ------------------------------------------ ##
17333 ## Report this to the AC_PACKAGE_NAME lists. ##
17334 ## ------------------------------------------ ##
17335 _ASBOX
17337 sed "s/^/$as_me: WARNING: /" >&2
17339 esac
17340 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17341 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17342 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 ac_cv_header_arpa_inet_h=$ac_header_preproc
17347 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17348 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17351 if test $ac_cv_header_arpa_inet_h = yes; then
17353 else
17354 ok_so_far=no
17359 if test $ok_so_far = yes; then
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_INET_SOCKETS 1
17363 _ACEOF
17367 if test -f /usr/lpp/X11/bin/smt.exp; then
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE_AIX_SMT_EXP 1
17371 _ACEOF
17375 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17376 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17377 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17378 echo "$as_me:$LINENO: result: yes" >&5
17379 echo "${ECHO_T}yes" >&6
17381 cat >>confdefs.h <<\_ACEOF
17382 #define HAVE_DEV_PTMX 1
17383 _ACEOF
17385 else
17386 echo "$as_me:$LINENO: result: no" >&5
17387 echo "${ECHO_T}no" >&6
17390 echo "$as_me:$LINENO: checking for pid_t" >&5
17391 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17392 if test "${ac_cv_type_pid_t+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 $ac_includes_default
17403 main ()
17405 if ((pid_t *) 0)
17406 return 0;
17407 if (sizeof (pid_t))
17408 return 0;
17410 return 0;
17412 _ACEOF
17413 rm -f conftest.$ac_objext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17415 (eval $ac_compile) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -s conftest.$ac_objext'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_type_pid_t=yes
17426 else
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17430 ac_cv_type_pid_t=no
17432 rm -f conftest.$ac_objext conftest.$ac_ext
17434 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17435 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17436 if test $ac_cv_type_pid_t = yes; then
17438 else
17440 cat >>confdefs.h <<_ACEOF
17441 #define pid_t int
17442 _ACEOF
17448 for ac_header in unistd.h vfork.h
17450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17452 echo "$as_me:$LINENO: checking for $ac_header" >&5
17453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17459 else
17460 # Is the header compilable?
17461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h. */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 $ac_includes_default
17470 #include <$ac_header>
17471 _ACEOF
17472 rm -f conftest.$ac_objext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17474 (eval $ac_compile) 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -s conftest.$ac_objext'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; }; then
17484 ac_header_compiler=yes
17485 else
17486 echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17489 ac_header_compiler=no
17491 rm -f conftest.$ac_objext conftest.$ac_ext
17492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17493 echo "${ECHO_T}$ac_header_compiler" >&6
17495 # Is the header present?
17496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 #include <$ac_header>
17505 _ACEOF
17506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } >/dev/null; then
17514 if test -s conftest.err; then
17515 ac_cpp_err=$ac_c_preproc_warn_flag
17516 else
17517 ac_cpp_err=
17519 else
17520 ac_cpp_err=yes
17522 if test -z "$ac_cpp_err"; then
17523 ac_header_preproc=yes
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 ac_header_preproc=no
17530 rm -f conftest.err conftest.$ac_ext
17531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17532 echo "${ECHO_T}$ac_header_preproc" >&6
17534 # So? What about this header?
17535 case $ac_header_compiler:$ac_header_preproc in
17536 yes:no )
17537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17541 ac_header_preproc=yes
17543 no:yes )
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17557 cat <<\_ASBOX
17558 ## ------------------------------------------ ##
17559 ## Report this to the AC_PACKAGE_NAME lists. ##
17560 ## ------------------------------------------ ##
17561 _ASBOX
17563 sed "s/^/$as_me: WARNING: /" >&2
17565 esac
17566 echo "$as_me:$LINENO: checking for $ac_header" >&5
17567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571 eval "$as_ac_Header=\$ac_header_preproc"
17573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17580 _ACEOF
17584 done
17588 for ac_func in fork vfork
17590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17591 echo "$as_me:$LINENO: checking for $ac_func" >&5
17592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17593 if eval "test \"\${$as_ac_var+set}\" = set"; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17604 #define $ac_func innocuous_$ac_func
17606 /* System header to define __stub macros and hopefully few prototypes,
17607 which can conflict with char $ac_func (); below.
17608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17609 <limits.h> exists even on freestanding compilers. */
17611 #ifdef __STDC__
17612 # include <limits.h>
17613 #else
17614 # include <assert.h>
17615 #endif
17617 #undef $ac_func
17619 /* Override any gcc2 internal prototype to avoid an error. */
17620 #ifdef __cplusplus
17621 extern "C"
17623 #endif
17624 /* We use char because int might match the return type of a gcc2
17625 builtin and then its argument prototype would still apply. */
17626 char $ac_func ();
17627 /* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17631 choke me
17632 #else
17633 char (*f) () = $ac_func;
17634 #endif
17635 #ifdef __cplusplus
17637 #endif
17640 main ()
17642 return f != $ac_func;
17644 return 0;
17646 _ACEOF
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -s conftest$ac_exeext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 eval "$as_ac_var=yes"
17660 else
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 eval "$as_ac_var=no"
17666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17670 if test `eval echo '${'$as_ac_var'}'` = yes; then
17671 cat >>confdefs.h <<_ACEOF
17672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17673 _ACEOF
17676 done
17678 if test "x$ac_cv_func_fork" = xyes; then
17679 echo "$as_me:$LINENO: checking for working fork" >&5
17680 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17681 if test "${ac_cv_func_fork_works+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684 if test "$cross_compiling" = yes; then
17685 ac_cv_func_fork_works=cross
17686 else
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* By Ruediger Kuhlmann. */
17689 #include <sys/types.h>
17690 #if HAVE_UNISTD_H
17691 # include <unistd.h>
17692 #endif
17693 /* Some systems only have a dummy stub for fork() */
17694 int main ()
17696 if (fork() < 0)
17697 exit (1);
17698 exit (0);
17700 _ACEOF
17701 rm -f conftest$ac_exeext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17703 (eval $ac_link) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_func_fork_works=yes
17713 else
17714 echo "$as_me: program exited with status $ac_status" >&5
17715 echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17718 ( exit $ac_status )
17719 ac_cv_func_fork_works=no
17721 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17724 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17725 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17727 else
17728 ac_cv_func_fork_works=$ac_cv_func_fork
17730 if test "x$ac_cv_func_fork_works" = xcross; then
17731 case $host in
17732 *-*-amigaos* | *-*-msdosdjgpp*)
17733 # Override, as these systems have only a dummy fork() stub
17734 ac_cv_func_fork_works=no
17737 ac_cv_func_fork_works=yes
17739 esac
17740 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17741 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17743 ac_cv_func_vfork_works=$ac_cv_func_vfork
17744 if test "x$ac_cv_func_vfork" = xyes; then
17745 echo "$as_me:$LINENO: checking for working vfork" >&5
17746 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17747 if test "${ac_cv_func_vfork_works+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750 if test "$cross_compiling" = yes; then
17751 ac_cv_func_vfork_works=cross
17752 else
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h. */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 /* Thanks to Paul Eggert for this test. */
17760 #include <stdio.h>
17761 #include <stdlib.h>
17762 #include <sys/types.h>
17763 #include <sys/stat.h>
17764 #include <sys/wait.h>
17765 #if HAVE_UNISTD_H
17766 # include <unistd.h>
17767 #endif
17768 #if HAVE_VFORK_H
17769 # include <vfork.h>
17770 #endif
17771 /* On some sparc systems, changes by the child to local and incoming
17772 argument registers are propagated back to the parent. The compiler
17773 is told about this with #include <vfork.h>, but some compilers
17774 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17775 static variable whose address is put into a register that is
17776 clobbered by the vfork. */
17777 static void
17778 #ifdef __cplusplus
17779 sparc_address_test (int arg)
17780 # else
17781 sparc_address_test (arg) int arg;
17782 #endif
17784 static pid_t child;
17785 if (!child) {
17786 child = vfork ();
17787 if (child < 0) {
17788 perror ("vfork");
17789 _exit(2);
17791 if (!child) {
17792 arg = getpid();
17793 write(-1, "", 0);
17794 _exit (arg);
17800 main ()
17802 pid_t parent = getpid ();
17803 pid_t child;
17805 sparc_address_test (0);
17807 child = vfork ();
17809 if (child == 0) {
17810 /* Here is another test for sparc vfork register problems. This
17811 test uses lots of local variables, at least as many local
17812 variables as main has allocated so far including compiler
17813 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17814 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17815 reuse the register of parent for one of the local variables,
17816 since it will think that parent can't possibly be used any more
17817 in this routine. Assigning to the local variable will thus
17818 munge parent in the parent process. */
17819 pid_t
17820 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17821 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17822 /* Convince the compiler that p..p7 are live; otherwise, it might
17823 use the same hardware register for all 8 local variables. */
17824 if (p != p1 || p != p2 || p != p3 || p != p4
17825 || p != p5 || p != p6 || p != p7)
17826 _exit(1);
17828 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17829 from child file descriptors. If the child closes a descriptor
17830 before it execs or exits, this munges the parent's descriptor
17831 as well. Test for this by closing stdout in the child. */
17832 _exit(close(fileno(stdout)) != 0);
17833 } else {
17834 int status;
17835 struct stat st;
17837 while (wait(&status) != child)
17839 exit(
17840 /* Was there some problem with vforking? */
17841 child < 0
17843 /* Did the child fail? (This shouldn't happen.) */
17844 || status
17846 /* Did the vfork/compiler bug occur? */
17847 || parent != getpid()
17849 /* Did the file descriptor bug occur? */
17850 || fstat(fileno(stdout), &st) != 0
17854 _ACEOF
17855 rm -f conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_func_vfork_works=yes
17867 else
17868 echo "$as_me: program exited with status $ac_status" >&5
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ( exit $ac_status )
17873 ac_cv_func_vfork_works=no
17875 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17878 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17879 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17882 if test "x$ac_cv_func_fork_works" = xcross; then
17883 ac_cv_func_vfork_works=ac_cv_func_vfork
17884 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17885 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17888 if test "x$ac_cv_func_vfork_works" = xyes; then
17890 cat >>confdefs.h <<\_ACEOF
17891 #define HAVE_WORKING_VFORK 1
17892 _ACEOF
17894 else
17896 cat >>confdefs.h <<\_ACEOF
17897 #define vfork fork
17898 _ACEOF
17901 if test "x$ac_cv_func_fork_works" = xyes; then
17903 cat >>confdefs.h <<\_ACEOF
17904 #define HAVE_WORKING_FORK 1
17905 _ACEOF
17910 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17911 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17912 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915 cat >conftest.$ac_ext <<_ACEOF
17916 /* confdefs.h. */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h. */
17921 #include <langinfo.h>
17923 main ()
17925 char* cs = nl_langinfo(CODESET);
17927 return 0;
17929 _ACEOF
17930 rm -f conftest.$ac_objext conftest$ac_exeext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17932 (eval $ac_link) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -s conftest$ac_exeext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 emacs_cv_langinfo_codeset=yes
17943 else
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 emacs_cv_langinfo_codeset=no
17949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17952 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17953 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17954 if test $emacs_cv_langinfo_codeset = yes; then
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_LANGINFO_CODESET 1
17958 _ACEOF
17962 echo "$as_me:$LINENO: checking for size_t" >&5
17963 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17964 if test "${ac_cv_type_size_t+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 else
17967 cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h. */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 $ac_includes_default
17975 main ()
17977 if ((size_t *) 0)
17978 return 0;
17979 if (sizeof (size_t))
17980 return 0;
17982 return 0;
17984 _ACEOF
17985 rm -f conftest.$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_cv_type_size_t=yes
17998 else
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_cv_type_size_t=no
18004 rm -f conftest.$ac_objext conftest.$ac_ext
18006 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18007 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18008 if test $ac_cv_type_size_t = yes; then
18010 cat >>confdefs.h <<_ACEOF
18011 #define HAVE_SIZE_T 1
18012 _ACEOF
18018 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18019 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18020 if test "${ac_cv_type_mbstate_t+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h. */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 $ac_includes_default
18030 # include <wchar.h>
18032 main ()
18034 mbstate_t x; return sizeof x;
18036 return 0;
18038 _ACEOF
18039 rm -f conftest.$ac_objext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18041 (eval $ac_compile) 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -s conftest.$ac_objext'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051 ac_cv_type_mbstate_t=yes
18052 else
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 ac_cv_type_mbstate_t=no
18058 rm -f conftest.$ac_objext conftest.$ac_ext
18060 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18061 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18062 if test $ac_cv_type_mbstate_t = yes; then
18064 cat >>confdefs.h <<\_ACEOF
18065 #define HAVE_MBSTATE_T 1
18066 _ACEOF
18068 else
18070 cat >>confdefs.h <<\_ACEOF
18071 #define mbstate_t int
18072 _ACEOF
18076 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18077 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18078 if test "${emacs_cv_c_restrict+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081 cat >conftest.$ac_ext <<_ACEOF
18082 /* confdefs.h. */
18083 _ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18087 void fred (int *restrict x);
18089 main ()
18093 return 0;
18095 _ACEOF
18096 rm -f conftest.$ac_objext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18098 (eval $ac_compile) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -s conftest.$ac_objext'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 emacs_cv_c_restrict=yes
18109 else
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 void fred (int *__restrict x);
18121 main ()
18125 return 0;
18127 _ACEOF
18128 rm -f conftest.$ac_objext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18130 (eval $ac_compile) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 emacs_cv_c_restrict=__restrict
18141 else
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 emacs_cv_c_restrict=no
18147 rm -f conftest.$ac_objext conftest.$ac_ext
18149 rm -f conftest.$ac_objext conftest.$ac_ext
18151 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18152 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18153 case "$emacs_cv_c_restrict" in
18154 yes) emacs_restrict=restrict;;
18155 no) emacs_restrict="";;
18156 *) emacs_restrict="$emacs_cv_c_restrict";;
18157 esac
18158 if test "$emacs_restrict" != __restrict; then
18160 cat >>confdefs.h <<_ACEOF
18161 #define __restrict $emacs_restrict
18162 _ACEOF
18166 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18167 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18168 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171 cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h. */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h. */
18177 void fred (int x[__restrict]);
18179 main ()
18183 return 0;
18185 _ACEOF
18186 rm -f conftest.$ac_objext
18187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18188 (eval $ac_compile) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
18192 { ac_try='test -s conftest.$ac_objext'
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18198 emacs_cv_c_restrict_arr=yes
18199 else
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 emacs_cv_c_restrict_arr=no
18205 rm -f conftest.$ac_objext conftest.$ac_ext
18207 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18208 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18209 if test "$emacs_cv_c_restrict_arr" = yes; then
18211 cat >>confdefs.h <<\_ACEOF
18212 #define __restrict_arr __restrict
18213 _ACEOF
18219 # Set up the CFLAGS for real compilation, so we can substitute it.
18220 CFLAGS="$REAL_CFLAGS"
18221 CPPFLAGS="$REAL_CPPFLAGS"
18223 #### Find out which version of Emacs this is.
18224 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18225 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18226 if test x"${version}" = x; then
18227 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18228 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18229 { (exit 1); exit 1; }; }
18232 ### Specify what sort of things we'll be editing into Makefile and config.h.
18233 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18269 cat >>confdefs.h <<_ACEOF
18270 #define EMACS_CONFIGURATION "${canonical}"
18271 _ACEOF
18274 cat >>confdefs.h <<_ACEOF
18275 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18276 _ACEOF
18279 cat >>confdefs.h <<_ACEOF
18280 #define config_machfile "${machfile}"
18281 _ACEOF
18284 cat >>confdefs.h <<_ACEOF
18285 #define config_opsysfile "${opsysfile}"
18286 _ACEOF
18289 cat >>confdefs.h <<_ACEOF
18290 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18291 _ACEOF
18294 cat >>confdefs.h <<_ACEOF
18295 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18296 _ACEOF
18299 cat >>confdefs.h <<_ACEOF
18300 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18301 _ACEOF
18304 cat >>confdefs.h <<_ACEOF
18305 #define UNEXEC_SRC ${UNEXEC_SRC}
18306 _ACEOF
18309 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18311 cat >>confdefs.h <<\_ACEOF
18312 #define HAVE_X_WINDOWS 1
18313 _ACEOF
18316 if test "${USE_X_TOOLKIT}" != "none" ; then
18318 cat >>confdefs.h <<\_ACEOF
18319 #define USE_X_TOOLKIT 1
18320 _ACEOF
18323 if test "${HAVE_X11}" = "yes" ; then
18325 cat >>confdefs.h <<\_ACEOF
18326 #define HAVE_X11 1
18327 _ACEOF
18330 if test "${HAVE_XFREE386}" = "yes" ; then
18332 cat >>confdefs.h <<\_ACEOF
18333 #define HAVE_XFREE386 1
18334 _ACEOF
18337 if test "${HAVE_MENUS}" = "yes" ; then
18339 cat >>confdefs.h <<\_ACEOF
18340 #define HAVE_MENUS 1
18341 _ACEOF
18344 if test "${GNU_MALLOC}" = "yes" ; then
18346 cat >>confdefs.h <<\_ACEOF
18347 #define GNU_MALLOC 1
18348 _ACEOF
18351 if test "${REL_ALLOC}" = "yes" ; then
18353 cat >>confdefs.h <<\_ACEOF
18354 #define REL_ALLOC 1
18355 _ACEOF
18363 #### Report on what we decided to do.
18364 #### Report GTK as a toolkit, even if it doesn't use Xt.
18365 #### It makes printing result more understandable as using GTK sets
18366 #### toolkit_scroll_bars to yes by default.
18367 if test "${HAVE_GTK}" = "yes"; then
18368 USE_X_TOOLKIT=GTK
18371 echo "
18372 Configured for \`${canonical}'.
18374 Where should the build process find the source code? ${srcdir}
18375 What operating system and machine description files should Emacs use?
18376 \`${opsysfile}' and \`${machfile}'
18377 What compiler should emacs be built with? ${CC} ${CFLAGS}
18378 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18379 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18380 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18381 What window system should Emacs use? ${window_system}
18382 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18384 if test -n "${x_includes}"; then
18385 echo " Where do we find X Windows header files? ${x_includes}"
18386 else
18387 echo " Where do we find X Windows header files? Standard dirs"
18389 if test -n "${x_libraries}"; then
18390 echo " Where do we find X Windows libraries? ${x_libraries}"
18391 else
18392 echo " Where do we find X Windows libraries? Standard dirs"
18395 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18396 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18397 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18398 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18399 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18400 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18401 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18402 echo
18404 # Remove any trailing slashes in these variables.
18405 test "${prefix}" != NONE &&
18406 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18407 test "${exec_prefix}" != NONE &&
18408 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18410 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18411 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18412 ## from Makefile.c can correctly provide the arg `-traditional' to the
18413 ## C preprocessor.
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h. */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 yes..yes
18422 _ACEOF
18423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18424 $EGREP "yes..yes" >/dev/null 2>&1; then
18425 CPP_NEED_TRADITIONAL=no
18426 else
18427 CPP_NEED_TRADITIONAL=yes
18429 rm -f conftest*
18432 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"
18433 ac_config_commands="$ac_config_commands default"
18434 cat >confcache <<\_ACEOF
18435 # This file is a shell script that caches the results of configure
18436 # tests run on this system so they can be shared between configure
18437 # scripts and configure runs, see configure's option --config-cache.
18438 # It is not useful on other systems. If it contains results you don't
18439 # want to keep, you may remove or edit it.
18441 # config.status only pays attention to the cache file if you give it
18442 # the --recheck option to rerun configure.
18444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18446 # following values.
18448 _ACEOF
18450 # The following way of writing the cache mishandles newlines in values,
18451 # but we know of no workaround that is simple, portable, and efficient.
18452 # So, don't put newlines in cache variables' values.
18453 # Ultrix sh set writes to stderr and can't be redirected directly,
18454 # and sets the high bit in the cache file unless we assign to the vars.
18456 (set) 2>&1 |
18457 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18458 *ac_space=\ *)
18459 # `set' does not quote correctly, so add quotes (double-quote
18460 # substitution turns \\\\ into \\, and sed turns \\ into \).
18461 sed -n \
18462 "s/'/'\\\\''/g;
18463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18466 # `set' quotes correctly as required by POSIX, so do not add quotes.
18467 sed -n \
18468 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18470 esac;
18472 sed '
18473 t clear
18474 : clear
18475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18476 t end
18477 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18478 : end' >>confcache
18479 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18480 if test -w $cache_file; then
18481 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18482 cat confcache >$cache_file
18483 else
18484 echo "not updating unwritable cache $cache_file"
18487 rm -f confcache
18489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18490 # Let make expand exec_prefix.
18491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18493 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18494 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18495 # trailing colons and then remove the whole line if VPATH becomes empty
18496 # (actually we leave an empty line to preserve line numbers).
18497 if test "x$srcdir" = x.; then
18498 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18499 s/:*\$(srcdir):*/:/;
18500 s/:*\${srcdir}:*/:/;
18501 s/:*@srcdir@:*/:/;
18502 s/^\([^=]*=[ ]*\):*/\1/;
18503 s/:*$//;
18504 s/^[^=]*=[ ]*$//;
18508 DEFS=-DHAVE_CONFIG_H
18510 ac_libobjs=
18511 ac_ltlibobjs=
18512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18513 # 1. Remove the extension, and $U if already installed.
18514 ac_i=`echo "$ac_i" |
18515 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18516 # 2. Add them.
18517 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18518 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18519 done
18520 LIBOBJS=$ac_libobjs
18522 LTLIBOBJS=$ac_ltlibobjs
18526 : ${CONFIG_STATUS=./config.status}
18527 ac_clean_files_save=$ac_clean_files
18528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18529 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18530 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18531 cat >$CONFIG_STATUS <<_ACEOF
18532 #! $SHELL
18533 # Generated by $as_me.
18534 # Run this file to recreate the current configuration.
18535 # Compiler output produced by configure, useful for debugging
18536 # configure, is in config.log if it exists.
18538 debug=false
18539 ac_cs_recheck=false
18540 ac_cs_silent=false
18541 SHELL=\${CONFIG_SHELL-$SHELL}
18542 _ACEOF
18544 cat >>$CONFIG_STATUS <<\_ACEOF
18545 ## --------------------- ##
18546 ## M4sh Initialization. ##
18547 ## --------------------- ##
18549 # Be Bourne compatible
18550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18551 emulate sh
18552 NULLCMD=:
18553 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18554 # is contrary to our usage. Disable this feature.
18555 alias -g '${1+"$@"}'='"$@"'
18556 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18557 set -o posix
18560 # Support unset when possible.
18561 if (as_foo=foo; unset as_foo) >/dev/null 2>&1; then
18562 as_unset=unset
18563 else
18564 as_unset=false
18568 # Work around bugs in pre-3.0 UWIN ksh.
18569 $as_unset ENV MAIL MAILPATH
18570 PS1='$ '
18571 PS2='> '
18572 PS4='+ '
18574 # NLS nuisances.
18575 for as_var in \
18576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18578 LC_TELEPHONE LC_TIME
18580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18581 eval $as_var=C; export $as_var
18582 else
18583 $as_unset $as_var
18585 done
18587 # Required to use basename.
18588 if expr a : '\(a\)' >/dev/null 2>&1; then
18589 as_expr=expr
18590 else
18591 as_expr=false
18594 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18595 as_basename=basename
18596 else
18597 as_basename=false
18601 # Name of the executable.
18602 as_me=`$as_basename "$0" ||
18603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18604 X"$0" : 'X\(//\)$' \| \
18605 X"$0" : 'X\(/\)$' \| \
18606 . : '\(.\)' 2>/dev/null ||
18607 echo X/"$0" |
18608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18609 /^X\/\(\/\/\)$/{ s//\1/; q; }
18610 /^X\/\(\/\).*/{ s//\1/; q; }
18611 s/.*/./; q'`
18614 # PATH needs CR, and LINENO needs CR and PATH.
18615 # Avoid depending upon Character Ranges.
18616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18619 as_cr_digits='0123456789'
18620 as_cr_alnum=$as_cr_Letters$as_cr_digits
18622 # The user is always right.
18623 if test "${PATH_SEPARATOR+set}" != set; then
18624 echo "#! /bin/sh" >conf$$.sh
18625 echo "exit 0" >>conf$$.sh
18626 chmod +x conf$$.sh
18627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18628 PATH_SEPARATOR=';'
18629 else
18630 PATH_SEPARATOR=:
18632 rm -f conf$$.sh
18636 as_lineno_1=$LINENO
18637 as_lineno_2=$LINENO
18638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18639 test "x$as_lineno_1" != "x$as_lineno_2" &&
18640 test "x$as_lineno_3" = "x$as_lineno_2" || {
18641 # Find who we are. Look in the path if we contain no path at all
18642 # relative or not.
18643 case $0 in
18644 *[\\/]* ) as_myself=$0 ;;
18645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646 for as_dir in $PATH
18648 IFS=$as_save_IFS
18649 test -z "$as_dir" && as_dir=.
18650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18651 done
18654 esac
18655 # We did not find ourselves, most probably we were run as `sh COMMAND'
18656 # in which case we are not to be found in the path.
18657 if test "x$as_myself" = x; then
18658 as_myself=$0
18660 if test ! -f "$as_myself"; then
18661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18663 { (exit 1); exit 1; }; }
18665 case $CONFIG_SHELL in
18667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18668 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18670 IFS=$as_save_IFS
18671 test -z "$as_dir" && as_dir=.
18672 for as_base in sh bash ksh sh5; do
18673 case $as_dir in
18675 if ("$as_dir/$as_base" -c '
18676 as_lineno_1=$LINENO
18677 as_lineno_2=$LINENO
18678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18679 test "x$as_lineno_1" != "x$as_lineno_2" &&
18680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18681 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18682 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18683 CONFIG_SHELL=$as_dir/$as_base
18684 export CONFIG_SHELL
18685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18686 fi;;
18687 esac
18688 done
18689 done
18691 esac
18693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18694 # uniformly replaced by the line number. The first 'sed' inserts a
18695 # line-number line before each line; the second 'sed' does the real
18696 # work. The second script uses 'N' to pair each line-number line
18697 # with the numbered line, and appends trailing '-' during
18698 # substitution so that $LINENO is not a special case at line end.
18699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18701 sed '=' <$as_myself |
18702 sed '
18704 s,$,-,
18705 : loop
18706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18707 t loop
18708 s,-$,,
18709 s,^['$as_cr_digits']*\n,,
18710 ' >$as_me.lineno &&
18711 chmod +x $as_me.lineno ||
18712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18714 { (exit 1); exit 1; }; }
18716 # Don't try to exec as it changes $[0], causing all sort of problems
18717 # (the dirname of $[0] is not the place where we might find the
18718 # original and so on. Autoconf is especially sensible to this).
18719 . ./$as_me.lineno
18720 # Exit status is that of the last command.
18721 exit
18725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18726 *c*,-n*) ECHO_N= ECHO_C='
18727 ' ECHO_T=' ' ;;
18728 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18729 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18730 esac
18732 if expr a : '\(a\)' >/dev/null 2>&1; then
18733 as_expr=expr
18734 else
18735 as_expr=false
18738 rm -f conf$$ conf$$.exe conf$$.file
18739 echo >conf$$.file
18740 if ln -s conf$$.file conf$$ 2>/dev/null; then
18741 # We could just check for DJGPP; but this test a) works b) is more generic
18742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18743 if test -f conf$$.exe; then
18744 # Don't use ln at all; we don't have any links
18745 as_ln_s='cp -p'
18746 else
18747 as_ln_s='ln -s'
18749 elif ln conf$$.file conf$$ 2>/dev/null; then
18750 as_ln_s=ln
18751 else
18752 as_ln_s='cp -p'
18754 rm -f conf$$ conf$$.exe conf$$.file
18756 if mkdir -p . 2>/dev/null; then
18757 as_mkdir_p=:
18758 else
18759 as_mkdir_p=false
18762 as_executable_p="test -f"
18764 # Sed expression to map a string onto a valid CPP name.
18765 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18767 # Sed expression to map a string onto a valid variable name.
18768 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18771 # IFS
18772 # We need space, tab and new line, in precisely that order.
18773 as_nl='
18775 IFS=" $as_nl"
18777 # CDPATH.
18778 $as_unset CDPATH
18780 exec 6>&1
18782 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18783 # report actual input values of CONFIG_FILES etc. instead of their
18784 # values after options handling. Logging --version etc. is OK.
18785 exec 5>>config.log
18787 echo
18788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18789 ## Running $as_me. ##
18790 _ASBOX
18791 } >&5
18792 cat >&5 <<_CSEOF
18794 This file was extended by $as_me, which was
18795 generated by GNU Autoconf 2.57a. Invocation command line was
18797 CONFIG_FILES = $CONFIG_FILES
18798 CONFIG_HEADERS = $CONFIG_HEADERS
18799 CONFIG_LINKS = $CONFIG_LINKS
18800 CONFIG_COMMANDS = $CONFIG_COMMANDS
18801 $ $0 $@
18803 _CSEOF
18804 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18805 echo >&5
18806 _ACEOF
18808 # Files that config.status was made for.
18809 if test -n "$ac_config_files"; then
18810 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18813 if test -n "$ac_config_headers"; then
18814 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18817 if test -n "$ac_config_links"; then
18818 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18821 if test -n "$ac_config_commands"; then
18822 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18825 cat >>$CONFIG_STATUS <<\_ACEOF
18827 ac_cs_usage="\
18828 \`$as_me' instantiates files from templates according to the
18829 current configuration.
18831 Usage: $0 [OPTIONS] [FILE]...
18833 -h, --help print this help, then exit
18834 -V, --version print version number, then exit
18835 -q, --quiet do not print progress messages
18836 -d, --debug don't remove temporary files
18837 --recheck update $as_me by reconfiguring in the same conditions
18838 --file=FILE[:TEMPLATE]
18839 instantiate the configuration file FILE
18840 --header=FILE[:TEMPLATE]
18841 instantiate the configuration header FILE
18843 Configuration files:
18844 $config_files
18846 Configuration headers:
18847 $config_headers
18849 Configuration commands:
18850 $config_commands
18852 Report bugs to <bug-autoconf@gnu.org>."
18853 _ACEOF
18855 cat >>$CONFIG_STATUS <<_ACEOF
18856 ac_cs_version="\\
18857 config.status
18858 configured by $0, generated by GNU Autoconf 2.57a,
18859 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18861 Copyright (C) 2003 Free Software Foundation, Inc.
18862 This config.status script is free software; the Free Software Foundation
18863 gives unlimited permission to copy, distribute and modify it."
18864 srcdir=$srcdir
18865 INSTALL="$INSTALL"
18866 _ACEOF
18868 cat >>$CONFIG_STATUS <<\_ACEOF
18869 # If no file are specified by the user, then we need to provide default
18870 # value. By we need to know if files were specified by the user.
18871 ac_need_defaults=:
18872 while test $# != 0
18874 case $1 in
18875 --*=*)
18876 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18878 ac_shift=:
18881 ac_option=$1
18882 ac_optarg=$2
18883 ac_shift=shift
18885 *) # This is not an option, so the user has probably given explicit
18886 # arguments.
18887 ac_option=$1
18888 ac_need_defaults=false;;
18889 esac
18891 case $ac_option in
18892 # Handling of the options.
18893 _ACEOF
18894 cat >>$CONFIG_STATUS <<\_ACEOF
18895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18896 ac_cs_recheck=: ;;
18897 --version | --vers* | -V )
18898 echo "$ac_cs_version"; exit 0 ;;
18899 --he | --h)
18900 # Conflict between --help and --header
18901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18902 Try \`$0 --help' for more information." >&5
18903 echo "$as_me: error: ambiguous option: $1
18904 Try \`$0 --help' for more information." >&2;}
18905 { (exit 1); exit 1; }; };;
18906 --help | --hel | -h )
18907 echo "$ac_cs_usage"; exit 0 ;;
18908 --debug | --d* | -d )
18909 debug=: ;;
18910 --file | --fil | --fi | --f )
18911 $ac_shift
18912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18913 ac_need_defaults=false;;
18914 --header | --heade | --head | --hea )
18915 $ac_shift
18916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18917 ac_need_defaults=false;;
18918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18920 ac_cs_silent=: ;;
18922 # This is an error.
18923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18924 Try \`$0 --help' for more information." >&5
18925 echo "$as_me: error: unrecognized option: $1
18926 Try \`$0 --help' for more information." >&2;}
18927 { (exit 1); exit 1; }; } ;;
18929 *) ac_config_targets="$ac_config_targets $1" ;;
18931 esac
18932 shift
18933 done
18935 ac_configure_extra_args=
18937 if $ac_cs_silent; then
18938 exec 6>/dev/null
18939 ac_configure_extra_args="$ac_configure_extra_args --silent"
18942 _ACEOF
18943 cat >>$CONFIG_STATUS <<_ACEOF
18944 if \$ac_cs_recheck; then
18945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18949 _ACEOF
18951 cat >>$CONFIG_STATUS <<_ACEOF
18953 # INIT-COMMANDS section.
18956 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18958 _ACEOF
18962 cat >>$CONFIG_STATUS <<\_ACEOF
18963 for ac_config_target in $ac_config_targets
18965 case "$ac_config_target" in
18966 # Handling of arguments.
18967 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18968 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18969 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18970 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18971 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18972 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18973 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18974 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18975 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18976 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18977 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18978 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18979 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18980 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18981 { (exit 1); exit 1; }; };;
18982 esac
18983 done
18985 # If the user did not use the arguments to specify the items to instantiate,
18986 # then the envvar interface is used. Set only those that are not.
18987 # We use the long form for the default assignment because of an extremely
18988 # bizarre bug on SunOS 4.1.3.
18989 if $ac_need_defaults; then
18990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18992 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18995 # Have a temporary directory for convenience. Make it in the build tree
18996 # simply because there is no reason to put it here, and in addition,
18997 # creating and moving files from /tmp can sometimes cause problems.
18998 # Create a temporary directory, and hook for its removal unless debugging.
18999 $debug ||
19001 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19002 trap '{ (exit 1); exit 1; }' 1 2 13 15
19005 # Create a (secure) tmp directory for tmp files.
19008 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19009 test -n "$tmp" && test -d "$tmp"
19010 } ||
19012 tmp=./confstat$$-$RANDOM
19013 (umask 077 && mkdir $tmp)
19014 } ||
19016 echo "$me: cannot create a temporary directory in ." >&2
19017 { (exit 1); exit 1; }
19020 _ACEOF
19022 cat >>$CONFIG_STATUS <<_ACEOF
19025 # CONFIG_FILES section.
19028 # No need to generate the scripts if there are no CONFIG_FILES.
19029 # This happens for instance when ./config.status config.h
19030 if test -n "\$CONFIG_FILES"; then
19031 # Protect against being on the right side of a sed subst in config.status.
19032 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19033 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19034 s,@SHELL@,$SHELL,;t t
19035 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19036 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19037 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19038 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19039 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19040 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19041 s,@exec_prefix@,$exec_prefix,;t t
19042 s,@prefix@,$prefix,;t t
19043 s,@program_transform_name@,$program_transform_name,;t t
19044 s,@bindir@,$bindir,;t t
19045 s,@sbindir@,$sbindir,;t t
19046 s,@libexecdir@,$libexecdir,;t t
19047 s,@datadir@,$datadir,;t t
19048 s,@sysconfdir@,$sysconfdir,;t t
19049 s,@sharedstatedir@,$sharedstatedir,;t t
19050 s,@localstatedir@,$localstatedir,;t t
19051 s,@libdir@,$libdir,;t t
19052 s,@includedir@,$includedir,;t t
19053 s,@oldincludedir@,$oldincludedir,;t t
19054 s,@infodir@,$infodir,;t t
19055 s,@mandir@,$mandir,;t t
19056 s,@build_alias@,$build_alias,;t t
19057 s,@host_alias@,$host_alias,;t t
19058 s,@target_alias@,$target_alias,;t t
19059 s,@DEFS@,$DEFS,;t t
19060 s,@ECHO_C@,$ECHO_C,;t t
19061 s,@ECHO_N@,$ECHO_N,;t t
19062 s,@ECHO_T@,$ECHO_T,;t t
19063 s,@LIBS@,$LIBS,;t t
19064 s,@MAINT@,$MAINT,;t t
19065 s,@build@,$build,;t t
19066 s,@build_cpu@,$build_cpu,;t t
19067 s,@build_vendor@,$build_vendor,;t t
19068 s,@build_os@,$build_os,;t t
19069 s,@host@,$host,;t t
19070 s,@host_cpu@,$host_cpu,;t t
19071 s,@host_vendor@,$host_vendor,;t t
19072 s,@host_os@,$host_os,;t t
19073 s,@CC@,$CC,;t t
19074 s,@CFLAGS@,$CFLAGS,;t t
19075 s,@LDFLAGS@,$LDFLAGS,;t t
19076 s,@CPPFLAGS@,$CPPFLAGS,;t t
19077 s,@ac_ct_CC@,$ac_ct_CC,;t t
19078 s,@EXEEXT@,$EXEEXT,;t t
19079 s,@OBJEXT@,$OBJEXT,;t t
19080 s,@LN_S@,$LN_S,;t t
19081 s,@CPP@,$CPP,;t t
19082 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19083 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19084 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19085 s,@RANLIB@,$RANLIB,;t t
19086 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19087 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19088 s,@EGREP@,$EGREP,;t t
19089 s,@LIBSOUND@,$LIBSOUND,;t t
19090 s,@SET_MAKE@,$SET_MAKE,;t t
19091 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19092 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19093 s,@GTK_LIBS@,$GTK_LIBS,;t t
19094 s,@ALLOCA@,$ALLOCA,;t t
19095 s,@liblockfile@,$liblockfile,;t t
19096 s,@LIBOBJS@,$LIBOBJS,;t t
19097 s,@NEED_SETGID@,$NEED_SETGID,;t t
19098 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19099 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19100 s,@version@,$version,;t t
19101 s,@configuration@,$configuration,;t t
19102 s,@canonical@,$canonical,;t t
19103 s,@srcdir@,$srcdir,;t t
19104 s,@lispdir@,$lispdir,;t t
19105 s,@locallisppath@,$locallisppath,;t t
19106 s,@lisppath@,$lisppath,;t t
19107 s,@x_default_search_path@,$x_default_search_path,;t t
19108 s,@etcdir@,$etcdir,;t t
19109 s,@archlibdir@,$archlibdir,;t t
19110 s,@docdir@,$docdir,;t t
19111 s,@bitmapdir@,$bitmapdir,;t t
19112 s,@gamedir@,$gamedir,;t t
19113 s,@gameuser@,$gameuser,;t t
19114 s,@c_switch_system@,$c_switch_system,;t t
19115 s,@c_switch_machine@,$c_switch_machine,;t t
19116 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19117 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19118 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19119 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19120 s,@machfile@,$machfile,;t t
19121 s,@opsysfile@,$opsysfile,;t t
19122 s,@carbon_appdir@,$carbon_appdir,;t t
19123 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19124 CEOF
19126 _ACEOF
19128 cat >>$CONFIG_STATUS <<\_ACEOF
19129 # Split the substitutions into bite-sized pieces for seds with
19130 # small command number limits, like on Digital OSF/1 and HP-UX.
19131 ac_max_sed_lines=48
19132 ac_sed_frag=1 # Number of current file.
19133 ac_beg=1 # First line for current file.
19134 ac_end=$ac_max_sed_lines # Line after last line for current file.
19135 ac_more_lines=:
19136 ac_sed_cmds=
19137 while $ac_more_lines; do
19138 if test $ac_beg -gt 1; then
19139 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19140 else
19141 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19143 if test ! -s $tmp/subs.frag; then
19144 ac_more_lines=false
19145 else
19146 # The purpose of the label and of the branching condition is to
19147 # speed up the sed processing (if there are no `@' at all, there
19148 # is no need to browse any of the substitutions).
19149 # These are the two extra sed commands mentioned above.
19150 (echo ':t
19151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19152 if test -z "$ac_sed_cmds"; then
19153 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19154 else
19155 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19157 ac_sed_frag=`expr $ac_sed_frag + 1`
19158 ac_beg=$ac_end
19159 ac_end=`expr $ac_end + $ac_max_sed_lines`
19161 done
19162 if test -z "$ac_sed_cmds"; then
19163 ac_sed_cmds=cat
19165 fi # test -n "$CONFIG_FILES"
19167 _ACEOF
19168 cat >>$CONFIG_STATUS <<\_ACEOF
19169 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19171 case $ac_file in
19172 - | *:- | *:-:* ) # input from stdin
19173 cat >$tmp/stdin
19174 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19176 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19178 * ) ac_file_in=$ac_file.in ;;
19179 esac
19181 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19182 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19184 X"$ac_file" : 'X\(//\)[^/]' \| \
19185 X"$ac_file" : 'X\(//\)$' \| \
19186 X"$ac_file" : 'X\(/\)' \| \
19187 . : '\(.\)' 2>/dev/null ||
19188 echo X"$ac_file" |
19189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19191 /^X\(\/\/\)$/{ s//\1/; q; }
19192 /^X\(\/\).*/{ s//\1/; q; }
19193 s/.*/./; q'`
19194 { if $as_mkdir_p; then
19195 mkdir -p "$ac_dir"
19196 else
19197 as_dir="$ac_dir"
19198 as_dirs=
19199 while test ! -d "$as_dir"; do
19200 as_dirs="$as_dir $as_dirs"
19201 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19203 X"$as_dir" : 'X\(//\)[^/]' \| \
19204 X"$as_dir" : 'X\(//\)$' \| \
19205 X"$as_dir" : 'X\(/\)' \| \
19206 . : '\(.\)' 2>/dev/null ||
19207 echo X"$as_dir" |
19208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19210 /^X\(\/\/\)$/{ s//\1/; q; }
19211 /^X\(\/\).*/{ s//\1/; q; }
19212 s/.*/./; q'`
19213 done
19214 test ! -n "$as_dirs" || mkdir $as_dirs
19215 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19217 { (exit 1); exit 1; }; }; }
19219 ac_builddir=.
19221 if test "$ac_dir" != .; then
19222 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19223 # A "../" for each directory in $ac_dir_suffix.
19224 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19225 else
19226 ac_dir_suffix= ac_top_builddir=
19229 case $srcdir in
19230 .) # No --srcdir option. We are building in place.
19231 ac_srcdir=.
19232 if test -z "$ac_top_builddir"; then
19233 ac_top_srcdir=.
19234 else
19235 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19236 fi ;;
19237 [\\/]* | ?:[\\/]* ) # Absolute path.
19238 ac_srcdir=$srcdir$ac_dir_suffix;
19239 ac_top_srcdir=$srcdir ;;
19240 *) # Relative path.
19241 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19242 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19243 esac
19244 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19245 # absolute.
19246 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19247 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19248 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19249 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19252 case $INSTALL in
19253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19254 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19255 esac
19257 if test x"$ac_file" != x-; then
19258 { echo "$as_me:$LINENO: creating $ac_file" >&5
19259 echo "$as_me: creating $ac_file" >&6;}
19260 rm -f "$ac_file"
19262 # Let's still pretend it is `configure' which instantiates (i.e., don't
19263 # use $as_me), people would be surprised to read:
19264 # /* config.h. Generated by config.status. */
19265 if test x"$ac_file" = x-; then
19266 configure_input=
19267 else
19268 configure_input="$ac_file. "
19270 configure_input=$configure_input"Generated from `echo $ac_file_in |
19271 sed 's,.*/,,'` by configure."
19273 # First look for the input files in the build tree, otherwise in the
19274 # src tree.
19275 ac_file_inputs=`IFS=:
19276 for f in $ac_file_in; do
19277 case $f in
19278 -) echo $tmp/stdin ;;
19279 [\\/$]*)
19280 # Absolute (can't be DOS-style, as IFS=:)
19281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19282 echo "$as_me: error: cannot find input file: $f" >&2;}
19283 { (exit 1); exit 1; }; }
19284 echo "$f";;
19285 *) # Relative
19286 if test -f "$f"; then
19287 # Build tree
19288 echo "$f"
19289 elif test -f "$srcdir/$f"; then
19290 # Source tree
19291 echo "$srcdir/$f"
19292 else
19293 # /dev/null tree
19294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19295 echo "$as_me: error: cannot find input file: $f" >&2;}
19296 { (exit 1); exit 1; }; }
19297 fi;;
19298 esac
19299 done` || { (exit 1); exit 1; }
19300 _ACEOF
19301 cat >>$CONFIG_STATUS <<_ACEOF
19302 sed "$ac_vpsub
19303 $extrasub
19304 _ACEOF
19305 cat >>$CONFIG_STATUS <<\_ACEOF
19307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19308 s,@configure_input@,$configure_input,;t t
19309 s,@srcdir@,$ac_srcdir,;t t
19310 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19311 s,@top_srcdir@,$ac_top_srcdir,;t t
19312 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19313 s,@builddir@,$ac_builddir,;t t
19314 s,@abs_builddir@,$ac_abs_builddir,;t t
19315 s,@top_builddir@,$ac_top_builddir,;t t
19316 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19317 s,@INSTALL@,$ac_INSTALL,;t t
19318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19319 rm -f $tmp/stdin
19320 if test x"$ac_file" != x-; then
19321 mv $tmp/out $ac_file
19322 else
19323 cat $tmp/out
19324 rm -f $tmp/out
19327 done
19328 _ACEOF
19329 cat >>$CONFIG_STATUS <<\_ACEOF
19332 # CONFIG_HEADER section.
19335 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19336 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19338 # ac_d sets the value in "#define NAME VALUE" lines.
19339 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19340 ac_dB='[ ].*$,\1#\2'
19341 ac_dC=' '
19342 ac_dD=',;t'
19343 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19344 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19345 ac_uB='$,\1#\2define\3'
19346 ac_uC=' '
19347 ac_uD=',;t'
19349 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19351 case $ac_file in
19352 - | *:- | *:-:* ) # input from stdin
19353 cat >$tmp/stdin
19354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19358 * ) ac_file_in=$ac_file.in ;;
19359 esac
19361 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19362 echo "$as_me: creating $ac_file" >&6;}
19364 # First look for the input files in the build tree, otherwise in the
19365 # src tree.
19366 ac_file_inputs=`IFS=:
19367 for f in $ac_file_in; do
19368 case $f in
19369 -) echo $tmp/stdin ;;
19370 [\\/$]*)
19371 # Absolute (can't be DOS-style, as IFS=:)
19372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19373 echo "$as_me: error: cannot find input file: $f" >&2;}
19374 { (exit 1); exit 1; }; }
19375 # Do quote $f, to prevent DOS paths from being IFS'd.
19376 echo "$f";;
19377 *) # Relative
19378 if test -f "$f"; then
19379 # Build tree
19380 echo "$f"
19381 elif test -f "$srcdir/$f"; then
19382 # Source tree
19383 echo "$srcdir/$f"
19384 else
19385 # /dev/null tree
19386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19387 echo "$as_me: error: cannot find input file: $f" >&2;}
19388 { (exit 1); exit 1; }; }
19389 fi;;
19390 esac
19391 done` || { (exit 1); exit 1; }
19392 # Remove the trailing spaces.
19393 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19395 _ACEOF
19397 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19398 # `conftest.undefs', that substitutes the proper values into
19399 # config.h.in to produce config.h. The first handles `#define'
19400 # templates, and the second `#undef' templates.
19401 # And first: Protect against being on the right side of a sed subst in
19402 # config.status. Protect against being in an unquoted here document
19403 # in config.status.
19404 rm -f conftest.defines conftest.undefs
19405 # Using a here document instead of a string reduces the quoting nightmare.
19406 # Putting comments in sed scripts is not portable.
19408 # `end' is used to avoid that the second main sed command (meant for
19409 # 0-ary CPP macros) applies to n-ary macro definitions.
19410 # See the Autoconf documentation for `clear'.
19411 cat >confdef2sed.sed <<\_ACEOF
19412 s/[\\&,]/\\&/g
19413 s,[\\$`],\\&,g
19414 t clear
19415 : clear
19416 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19417 t end
19418 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19419 : end
19420 _ACEOF
19421 # If some macros were called several times there might be several times
19422 # the same #defines, which is useless. Nevertheless, we may not want to
19423 # sort them, since we want the *last* AC-DEFINE to be honored.
19424 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19425 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19426 rm -f confdef2sed.sed
19428 # This sed command replaces #undef with comments. This is necessary, for
19429 # example, in the case of _POSIX_SOURCE, which is predefined and required
19430 # on some systems where configure will not decide to define it.
19431 cat >>conftest.undefs <<\_ACEOF
19432 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19433 _ACEOF
19435 # Break up conftest.defines because some shells have a limit on the size
19436 # of here documents, and old seds have small limits too (100 cmds).
19437 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19438 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19439 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19440 echo ' :' >>$CONFIG_STATUS
19441 rm -f conftest.tail
19442 while grep . conftest.defines >/dev/null
19444 # Write a limited-size here document to $tmp/defines.sed.
19445 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19446 # Speed up: don't consider the non `#define' lines.
19447 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19448 # Work around the forget-to-reset-the-flag bug.
19449 echo 't clr' >>$CONFIG_STATUS
19450 echo ': clr' >>$CONFIG_STATUS
19451 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19452 echo 'CEOF
19453 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19454 rm -f $tmp/in
19455 mv $tmp/out $tmp/in
19456 ' >>$CONFIG_STATUS
19457 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19458 rm -f conftest.defines
19459 mv conftest.tail conftest.defines
19460 done
19461 rm -f conftest.defines
19462 echo ' fi # grep' >>$CONFIG_STATUS
19463 echo >>$CONFIG_STATUS
19465 # Break up conftest.undefs because some shells have a limit on the size
19466 # of here documents, and old seds have small limits too (100 cmds).
19467 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19468 rm -f conftest.tail
19469 while grep . conftest.undefs >/dev/null
19471 # Write a limited-size here document to $tmp/undefs.sed.
19472 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19473 # Speed up: don't consider the non `#undef'
19474 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19475 # Work around the forget-to-reset-the-flag bug.
19476 echo 't clr' >>$CONFIG_STATUS
19477 echo ': clr' >>$CONFIG_STATUS
19478 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19479 echo 'CEOF
19480 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19481 rm -f $tmp/in
19482 mv $tmp/out $tmp/in
19483 ' >>$CONFIG_STATUS
19484 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19485 rm -f conftest.undefs
19486 mv conftest.tail conftest.undefs
19487 done
19488 rm -f conftest.undefs
19490 cat >>$CONFIG_STATUS <<\_ACEOF
19491 # Let's still pretend it is `configure' which instantiates (i.e., don't
19492 # use $as_me), people would be surprised to read:
19493 # /* config.h. Generated by config.status. */
19494 if test x"$ac_file" = x-; then
19495 echo "/* Generated by configure. */" >$tmp/config.h
19496 else
19497 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19499 cat $tmp/in >>$tmp/config.h
19500 rm -f $tmp/in
19501 if test x"$ac_file" != x-; then
19502 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19503 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19504 echo "$as_me: $ac_file is unchanged" >&6;}
19505 else
19506 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19508 X"$ac_file" : 'X\(//\)[^/]' \| \
19509 X"$ac_file" : 'X\(//\)$' \| \
19510 X"$ac_file" : 'X\(/\)' \| \
19511 . : '\(.\)' 2>/dev/null ||
19512 echo X"$ac_file" |
19513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19515 /^X\(\/\/\)$/{ s//\1/; q; }
19516 /^X\(\/\).*/{ s//\1/; q; }
19517 s/.*/./; q'`
19518 { if $as_mkdir_p; then
19519 mkdir -p "$ac_dir"
19520 else
19521 as_dir="$ac_dir"
19522 as_dirs=
19523 while test ! -d "$as_dir"; do
19524 as_dirs="$as_dir $as_dirs"
19525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19527 X"$as_dir" : 'X\(//\)[^/]' \| \
19528 X"$as_dir" : 'X\(//\)$' \| \
19529 X"$as_dir" : 'X\(/\)' \| \
19530 . : '\(.\)' 2>/dev/null ||
19531 echo X"$as_dir" |
19532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19534 /^X\(\/\/\)$/{ s//\1/; q; }
19535 /^X\(\/\).*/{ s//\1/; q; }
19536 s/.*/./; q'`
19537 done
19538 test ! -n "$as_dirs" || mkdir $as_dirs
19539 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19541 { (exit 1); exit 1; }; }; }
19543 rm -f $ac_file
19544 mv $tmp/config.h $ac_file
19546 else
19547 cat $tmp/config.h
19548 rm -f $tmp/config.h
19550 done
19551 _ACEOF
19552 cat >>$CONFIG_STATUS <<\_ACEOF
19555 # CONFIG_COMMANDS section.
19557 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19558 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19559 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19560 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19561 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19562 X"$ac_dest" : 'X\(//\)[^/]' \| \
19563 X"$ac_dest" : 'X\(//\)$' \| \
19564 X"$ac_dest" : 'X\(/\)' \| \
19565 . : '\(.\)' 2>/dev/null ||
19566 echo X"$ac_dest" |
19567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19569 /^X\(\/\/\)$/{ s//\1/; q; }
19570 /^X\(\/\).*/{ s//\1/; q; }
19571 s/.*/./; q'`
19572 ac_builddir=.
19574 if test "$ac_dir" != .; then
19575 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19576 # A "../" for each directory in $ac_dir_suffix.
19577 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19578 else
19579 ac_dir_suffix= ac_top_builddir=
19582 case $srcdir in
19583 .) # No --srcdir option. We are building in place.
19584 ac_srcdir=.
19585 if test -z "$ac_top_builddir"; then
19586 ac_top_srcdir=.
19587 else
19588 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19589 fi ;;
19590 [\\/]* | ?:[\\/]* ) # Absolute path.
19591 ac_srcdir=$srcdir$ac_dir_suffix;
19592 ac_top_srcdir=$srcdir ;;
19593 *) # Relative path.
19594 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19595 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19596 esac
19597 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19598 # absolute.
19599 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19600 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19601 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19602 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19605 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19606 echo "$as_me: executing $ac_dest commands" >&6;}
19607 case $ac_dest in
19608 default )
19610 ### Make the necessary directories, if they don't exist.
19611 for dir in etc lisp ; do
19612 test -d ${dir} || mkdir ${dir}
19613 done
19615 # Build src/Makefile from ${srcdir}/src/Makefile.c
19616 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19617 # This must be done after src/config.h is built, since we rely on that file.
19619 # Now get this: Some word that is part of the ${srcdir} directory name
19620 # or the ${configuration} value might, just might, happen to be an
19621 # identifier like `sun4' or `i386' or something, and be predefined by
19622 # the C preprocessor to some helpful value like 1, or maybe the empty
19623 # string. Needless to say consequent macro substitutions are less
19624 # than conducive to the makefile finding the correct directory.
19625 undefs="`echo $top_srcdir $configuration $canonical |
19626 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19627 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19630 echo creating src/epaths.h
19631 ${MAKE-make} epaths-force
19633 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19634 # `..' to `. .' unless invoked with -traditional
19636 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19637 CPPFLAGS="$CPPFLAGS -traditional"
19640 echo creating lib-src/Makefile
19641 ( cd lib-src
19642 rm -f junk.c junk1.c junk2.c
19643 sed -e '/start of cpp stuff/q' \
19644 < Makefile.c > junk1.c
19645 sed -e '1,/start of cpp stuff/d'\
19646 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19647 < Makefile.c > junk.c
19648 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19649 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19650 cat junk1.c junk2.c > Makefile.new
19651 rm -f junk.c junk1.c junk2.c
19652 chmod 444 Makefile.new
19653 mv -f Makefile.new Makefile
19656 echo creating src/Makefile
19657 ( cd src
19658 rm -f junk.c junk1.c junk2.c
19659 sed -e '/start of cpp stuff/q' \
19660 < Makefile.c > junk1.c
19661 sed -e '1,/start of cpp stuff/d'\
19662 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19663 < Makefile.c > junk.c
19664 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19665 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19666 cat junk1.c junk2.c > Makefile.new
19667 rm -f junk.c junk1.c junk2.c
19668 chmod 444 Makefile.new
19669 mv -f Makefile.new Makefile
19672 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19673 echo creating src/.gdbinit
19674 echo source $srcdir/src/.gdbinit > src/.gdbinit
19677 # This is how we know whether to re-run configure in certain cases.
19678 touch src/config.stamp
19681 esac
19682 done
19683 _ACEOF
19685 cat >>$CONFIG_STATUS <<\_ACEOF
19687 { (exit 0); exit 0; }
19688 _ACEOF
19689 chmod +x $CONFIG_STATUS
19690 ac_clean_files=$ac_clean_files_save
19693 # configure is writing to config.log, and then calls config.status.
19694 # config.status does its own redirection, appending to config.log.
19695 # Unfortunately, on DOS this fails, as config.log is still kept open
19696 # by configure, so config.status won't be able to write to it; its
19697 # output is simply discarded. So we exec the FD to /dev/null,
19698 # effectively closing config.log, so it can be properly (re)opened and
19699 # appended to by config.status. When coming back to configure, we
19700 # need to make the FD available again.
19701 if test "$no_create" != yes; then
19702 ac_cs_success=:
19703 ac_config_status_args=
19704 test "$silent" = yes &&
19705 ac_config_status_args="$ac_config_status_args --quiet"
19706 exec 5>/dev/null
19707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19708 exec 5>>config.log
19709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19710 # would make configure fail if this is the last instruction.
19711 $ac_cs_success || { (exit 1); exit 1; }