(change-log-font-lock-keywords): Make the regexp for
[emacs.git] / configure
blob22addee9fc00d75217d8dde2adff725be8cafd08
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --enable-asserts compile code with asserts enabled
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --enable-locallisppath=PATH
862 directories Emacs should search for lisp files
863 specific to this site
864 --disable-largefile omit support for large files
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --without-gcc don't use GCC to compile Emacs if GCC is found
870 --without-pop don't support POP mail retrieval with movemail
871 --with-kerberos support Kerberos-authenticated POP
872 --with-kerberos5 support Kerberos version 5 authenticated POP
873 --with-hesiod support Hesiod to get the POP server host
874 --without-sound don't compile with sound support
875 --with-x-toolkit=KIT use an X toolkit
876 (KIT = yes/lucid/athena/motif/gtk/no)
877 --with-xpm use -lXpm for displaying XPM images
878 --with-jpeg use -ljpeg for displaying JPEG images
879 --with-tiff use -ltiff for displaying TIFF images
880 --with-gif use -lungif for displaying GIF images
881 --with-png use -lpng for displaying PNG images
882 --with-gtk use GTK (same as --with-x-toolkit=gtk)
883 --with-pkg-config-prog Path to pkg-config to use for finding GTK
884 --without-toolkit-scroll-bars
885 don't use Motif or Xaw3d scroll bars
886 --without-xim don't use X11 XIM
887 --without-carbon don't use Carbon GUI on Mac OS X
888 --with-x use the X Window System
890 Some influential environment variables:
891 CC C compiler command
892 CFLAGS C compiler flags
893 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
894 nonstandard directory <lib dir>
895 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
896 headers in a nonstandard directory <include dir>
897 CPP C preprocessor
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
902 _ACEOF
905 if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
907 ac_popdir=`pwd`
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
910 ac_builddir=.
912 if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916 else
917 ac_dir_suffix= ac_top_builddir=
920 case $srcdir in
921 .) # No --srcdir option. We are building in place.
922 ac_srcdir=.
923 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=.
925 else
926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927 fi ;;
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
931 *) # Relative path.
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 esac
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
936 # absolute.
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
942 cd $ac_dir
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
945 echo
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
948 echo
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
952 echo
953 $ac_configure --help
954 else
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 cd $ac_popdir
958 done
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
963 cat <<\_ACEOF
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970 exit 0
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57. Invocation command line was
980 $ $0 $@
982 _ACEOF
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006 _ASUNAME
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014 done
1016 } >&5
1018 cat >&5 <<_ACEOF
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1025 _ACEOF
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1040 for ac_arg
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1073 esac
1074 done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1087 echo
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 esac;
1110 echo
1112 cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core core.* *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1211 done
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1224 else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1258 fi;;
1259 esac
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1262 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1266 esac
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 esac
1272 done
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1308 test "$program_prefix" != NONE &&
1309 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1310 # Use a double $ so make ignores it.
1311 test "$program_suffix" != NONE &&
1312 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1313 # Double any \ or $. echo might interpret backslashes.
1314 # By default was `s,x,x', remove it if useless.
1315 cat <<\_ACEOF >conftest.sed
1316 s/[\\$]/&&/g;s/;s,x,x,$//
1317 _ACEOF
1318 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1319 rm conftest.sed
1322 lispdir='${datadir}/emacs/${version}/lisp'
1323 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1324 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1325 lisppath='${locallisppath}:${lispdir}'
1326 etcdir='${datadir}/emacs/${version}/etc'
1327 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1328 docdir='${datadir}/emacs/${version}/etc'
1329 gamedir='${localstatedir}/games/emacs'
1331 gameuser=games
1334 # Check whether --with-gcc or --without-gcc was given.
1335 if test "${with_gcc+set}" = set; then
1336 withval="$with_gcc"
1340 # Check whether --with-pop or --without-pop was given.
1341 if test "${with_pop+set}" = set; then
1342 withval="$with_pop"
1343 if test "$withval" = yes; then
1344 cat >>confdefs.h <<\_ACEOF
1345 #define MAIL_USE_POP 1
1346 _ACEOF
1348 else :
1350 else
1351 cat >>confdefs.h <<\_ACEOF
1352 #define MAIL_USE_POP 1
1353 _ACEOF
1358 # Check whether --with-kerberos or --without-kerberos was given.
1359 if test "${with_kerberos+set}" = set; then
1360 withval="$with_kerberos"
1361 cat >>confdefs.h <<\_ACEOF
1362 #define KERBEROS 1
1363 _ACEOF
1368 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1369 if test "${with_kerberos5+set}" = set; then
1370 withval="$with_kerberos5"
1371 if test "${with_kerberos5+set}" = set; then
1372 if test "${with_kerberos+set}" != set; then
1373 with_kerberos=yes
1374 cat >>confdefs.h <<\_ACEOF
1375 #define KERBEROS 1
1376 _ACEOF
1381 cat >>confdefs.h <<\_ACEOF
1382 #define KERBEROS5 1
1383 _ACEOF
1387 # Check whether --with-hesiod or --without-hesiod was given.
1388 if test "${with_hesiod+set}" = set; then
1389 withval="$with_hesiod"
1391 cat >>confdefs.h <<\_ACEOF
1392 #define HESIOD 1
1393 _ACEOF
1398 # Check whether --with-sound or --without-sound was given.
1399 if test "${with_sound+set}" = set; then
1400 withval="$with_sound"
1405 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1406 if test "${with_x_toolkit+set}" = set; then
1407 withval="$with_x_toolkit"
1408 case "${withval}" in
1409 y | ye | yes ) val=athena ;;
1410 n | no ) val=no ;;
1411 l | lu | luc | luci | lucid ) val=lucid ;;
1412 a | at | ath | athe | athen | athena ) val=athena ;;
1413 m | mo | mot | moti | motif ) val=motif ;;
1414 g | gt | gtk ) val=gtk ;;
1416 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1417 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1418 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1419 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1420 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1421 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1422 { (exit 1); exit 1; }; }
1424 esac
1425 with_x_toolkit=$val
1429 # Check whether --with-xpm or --without-xpm was given.
1430 if test "${with_xpm+set}" = set; then
1431 withval="$with_xpm"
1435 # Check whether --with-jpeg or --without-jpeg was given.
1436 if test "${with_jpeg+set}" = set; then
1437 withval="$with_jpeg"
1441 # Check whether --with-tiff or --without-tiff was given.
1442 if test "${with_tiff+set}" = set; then
1443 withval="$with_tiff"
1447 # Check whether --with-gif or --without-gif was given.
1448 if test "${with_gif+set}" = set; then
1449 withval="$with_gif"
1453 # Check whether --with-png or --without-png was given.
1454 if test "${with_png+set}" = set; then
1455 withval="$with_png"
1459 # Check whether --with-gtk or --without-gtk was given.
1460 if test "${with_gtk+set}" = set; then
1461 withval="$with_gtk"
1465 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1466 if test "${with_pkg_config_prog+set}" = set; then
1467 withval="$with_pkg_config_prog"
1471 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1472 if test "${with_toolkit_scroll_bars+set}" = set; then
1473 withval="$with_toolkit_scroll_bars"
1477 # Check whether --with-xim or --without-xim was given.
1478 if test "${with_xim+set}" = set; then
1479 withval="$with_xim"
1483 # Check whether --with-carbon or --without-carbon was given.
1484 if test "${with_carbon+set}" = set; then
1485 withval="$with_carbon"
1488 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1489 if test "${enable_carbon_app+set}" = set; then
1490 enableval="$enable_carbon_app"
1491 carbon_appdir_x=${enableval}
1494 # Check whether --enable-asserts or --disable-asserts was given.
1495 if test "${enable_asserts+set}" = set; then
1496 enableval="$enable_asserts"
1497 USE_XASSERTS=$enableval
1498 else
1499 USE_XASSERTS=no
1502 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1503 if test "${enable_maintainer_mode+set}" = set; then
1504 enableval="$enable_maintainer_mode"
1505 USE_MAINTAINER_MODE=$enableval
1506 else
1507 USE_MAINTAINER_MODE=no
1509 if test $USE_MAINTAINER_MODE = yes; then
1510 MAINT=
1511 else
1512 MAINT=#
1516 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1517 if test "${enable_locallisppath+set}" = set; then
1518 enableval="$enable_locallisppath"
1519 if test "${enableval}" = "no"; then
1520 locallisppath=
1521 elif test "${enableval}" != "yes"; then
1522 locallisppath=${enableval}
1526 #### Make srcdir absolute, if it isn't already. It's important to
1527 #### avoid running the path through pwd unnecessarily, since pwd can
1528 #### give you automounter prefixes, which can go away. We do all this
1529 #### so Emacs can find its files when run uninstalled.
1530 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1531 unset CDPATH
1532 case "${srcdir}" in
1533 /* ) ;;
1535 ## We may be able to use the $PWD environment variable to make this
1536 ## absolute. But sometimes PWD is inaccurate.
1537 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1538 ## but that tested only for a well-formed and valid PWD,
1539 ## it did not object when PWD was well-formed and valid but just wrong.
1540 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1541 then
1542 srcdir="$PWD"
1543 else
1544 srcdir="`(cd ${srcdir}; pwd)`"
1547 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1548 esac
1550 #### Check if the source directory already has a configured system in it.
1551 if test `pwd` != `(cd ${srcdir} && pwd)` \
1552 && test -f "${srcdir}/src/config.h" ; then
1553 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1554 as a build directory right now; it has been configured in its own
1555 right. To configure in another directory as well, you MUST
1556 use GNU make. If you do not have GNU make, then you must
1557 now do \`make distclean' in ${srcdir},
1558 and then run $0 again." >&5
1559 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1560 as a build directory right now; it has been configured in its own
1561 right. To configure in another directory as well, you MUST
1562 use GNU make. If you do not have GNU make, then you must
1563 now do \`make distclean' in ${srcdir},
1564 and then run $0 again." >&2;}
1567 #### Given the configuration name, set machfile and opsysfile to the
1568 #### names of the m/*.h and s/*.h files we should use.
1570 ### Canonicalize the configuration name.
1572 ac_aux_dir=
1573 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1574 if test -f $ac_dir/install-sh; then
1575 ac_aux_dir=$ac_dir
1576 ac_install_sh="$ac_aux_dir/install-sh -c"
1577 break
1578 elif test -f $ac_dir/install.sh; then
1579 ac_aux_dir=$ac_dir
1580 ac_install_sh="$ac_aux_dir/install.sh -c"
1581 break
1582 elif test -f $ac_dir/shtool; then
1583 ac_aux_dir=$ac_dir
1584 ac_install_sh="$ac_aux_dir/shtool install -c"
1585 break
1587 done
1588 if test -z "$ac_aux_dir"; then
1589 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1590 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1591 { (exit 1); exit 1; }; }
1593 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1594 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1595 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1597 # Make sure we can run config.sub.
1598 $ac_config_sub sun4 >/dev/null 2>&1 ||
1599 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1600 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1601 { (exit 1); exit 1; }; }
1603 echo "$as_me:$LINENO: checking build system type" >&5
1604 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1605 if test "${ac_cv_build+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 ac_cv_build_alias=$build_alias
1609 test -z "$ac_cv_build_alias" &&
1610 ac_cv_build_alias=`$ac_config_guess`
1611 test -z "$ac_cv_build_alias" &&
1612 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1613 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1614 { (exit 1); exit 1; }; }
1615 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1622 echo "${ECHO_T}$ac_cv_build" >&6
1623 build=$ac_cv_build
1624 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629 echo "$as_me:$LINENO: checking host system type" >&5
1630 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1631 if test "${ac_cv_host+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634 ac_cv_host_alias=$host_alias
1635 test -z "$ac_cv_host_alias" &&
1636 ac_cv_host_alias=$ac_cv_build_alias
1637 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1644 echo "${ECHO_T}$ac_cv_host" >&6
1645 host=$ac_cv_host
1646 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 canonical=$host
1652 configuration=${host_alias-$host}
1656 ### If you add support for a new configuration, add code to this
1657 ### switch statement to recognize your configuration name and select
1658 ### the appropriate operating system and machine description files.
1660 ### You would hope that you could choose an m/*.h file pretty much
1661 ### based on the machine portion of the configuration name, and an s-
1662 ### file based on the operating system portion. However, it turns out
1663 ### that each m/*.h file is pretty manufacturer-specific - for
1664 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1665 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1666 ### machines. So we basically have to have a special case for each
1667 ### configuration name.
1669 ### As far as handling version numbers on operating systems is
1670 ### concerned, make sure things will fail in a fixable way. If
1671 ### /etc/MACHINES doesn't say anything about version numbers, be
1672 ### prepared to handle anything reasonably. If version numbers
1673 ### matter, be sure /etc/MACHINES says something about it.
1675 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1676 ### "System V Release 4"; he writes, "The old convention encouraged
1677 ### confusion between `system' and `release' levels'."
1679 machine='' opsys='' unported=no
1680 case "${canonical}" in
1682 ## FreeBSD ports
1683 *-*-freebsd* )
1684 opsys=freebsd
1685 case "${canonical}" in
1686 alpha*-*-freebsd*) machine=alpha ;;
1687 i[3456]86-*-freebsd*) machine=intel386 ;;
1688 esac
1691 ## NetBSD ports
1692 *-*-netbsd* )
1693 opsys=netbsd
1694 if test -f /usr/lib/crti.o; then
1696 cat >>confdefs.h <<\_ACEOF
1697 #define HAVE_CRTIN
1698 _ACEOF
1702 case "${canonical}" in
1703 alpha*-*-netbsd*) machine=alpha ;;
1704 i[3456]86-*-netbsd*) machine=intel386 ;;
1705 m68k-*-netbsd*)
1706 # This is somewhat bogus.
1707 machine=hp9000s300 ;;
1708 powerpc-apple-netbsd*) machine=macppc ;;
1709 mips-*-netbsd*) machine=pmax ;;
1710 mipsel-*-netbsd*) machine=pmax ;;
1711 mipseb-*-netbsd*) machine=pmax ;;
1712 ns32k-*-netbsd*) machine=ns32000 ;;
1713 powerpc-*-netbsd*) machine=macppc ;;
1714 sparc*-*-netbsd*) machine=sparc ;;
1715 vax-*-netbsd*) machine=vax ;;
1716 arm-*-netbsd*) machine=arm ;;
1717 esac
1720 ## OpenBSD ports
1721 *-*-openbsd* )
1722 opsys=openbsd
1723 case "${canonical}" in
1724 alpha*-*-openbsd*) machine=alpha ;;
1725 i386-*-openbsd*) machine=intel386 ;;
1726 m68k-*-openbsd*) machine=hp9000s300 ;;
1727 mipsel-*-openbsd*) machine=pmax ;;
1728 ns32k-*-openbsd*) machine=ns32000 ;;
1729 sparc-*-openbsd*) machine=sparc ;;
1730 vax-*-openbsd*) machine=vax ;;
1731 esac
1734 ## Acorn RISCiX:
1735 arm-acorn-riscix1.1* )
1736 machine=acorn opsys=riscix1-1
1738 arm-acorn-riscix1.2* | arm-acorn-riscix )
1739 ## This name is riscix12 instead of riscix1.2
1740 ## to avoid a file name conflict on MSDOS.
1741 machine=acorn opsys=riscix12
1744 ## BSDI ports
1745 *-*-bsdi* )
1746 opsys=bsdi
1747 case "${canonical}" in
1748 i[345]86-*-bsdi*) machine=intel386 ;;
1749 sparc-*-bsdi*) machine=sparc ;;
1750 powerpc-*-bsdi*) machine=macppc ;;
1751 esac
1752 case "${canonical}" in
1753 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1754 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1755 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1756 *-*-bsdi3* ) opsys=bsdos3 ;;
1757 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1758 esac
1761 ## Alliant machines
1762 ## Strictly speaking, we need the version of the alliant operating
1763 ## system to choose the right machine file, but currently the
1764 ## configuration name doesn't tell us enough to choose the right
1765 ## one; we need to give alliants their own operating system name to
1766 ## do this right. When someone cares, they can help us.
1767 fx80-alliant-* )
1768 machine=alliant4 opsys=bsd4-2
1770 i860-alliant-* )
1771 machine=alliant-2800 opsys=bsd4-3
1774 ## Alpha (DEC) machines.
1775 alpha*-dec-osf* )
1776 machine=alpha opsys=osf1
1777 # This is needed to find X11R6.1 libraries for certain tests.
1778 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1779 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1780 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1781 # due to non-traditional preprocessing with the current compiler
1782 # defaults. OSF 4 can also have that compiler version, and there
1783 # seems always to have been a usable /usr/bin/cpp.
1784 NON_GNU_CPP=/usr/bin/cpp
1785 case "${canonical}" in
1786 alpha*-dec-osf[5-9]*)
1787 opsys=osf5-0 ;;
1788 esac
1791 alpha*-*-linux-gnu* )
1792 machine=alpha opsys=gnu-linux
1795 arm*-*-linux-gnu* )
1796 machine=arm opsys=gnu-linux
1799 ## Altos 3068
1800 m68*-altos-sysv* )
1801 machine=altos opsys=usg5-2
1804 ## Amdahl UTS
1805 580-amdahl-sysv* )
1806 machine=amdahl opsys=usg5-2-2
1809 ## Apollo, Domain/OS
1810 m68*-apollo-* )
1811 machine=apollo opsys=bsd4-3
1814 ## AT&T 3b2, 3b5, 3b15, 3b20
1815 we32k-att-sysv* )
1816 machine=att3b opsys=usg5-2-2
1819 ## AT&T 3b1 - The Mighty Unix PC!
1820 m68*-att-sysv* )
1821 machine=7300 opsys=usg5-2-2
1824 ## Bull dpx20
1825 rs6000-bull-bosx* )
1826 machine=ibmrs6000 opsys=aix3-2
1829 ## Bull dpx2
1830 m68*-bull-sysv3* )
1831 machine=dpx2 opsys=usg5-3
1834 ## Bull sps7
1835 m68*-bull-sysv2* )
1836 machine=sps7 opsys=usg5-2
1839 ## CCI 5/32, 6/32 -- see "Tahoe".
1841 ## Celerity
1842 ## I don't know what configuration name to use for this; config.sub
1843 ## doesn't seem to know anything about it. Hey, Celerity users, get
1844 ## in touch with us!
1845 celerity-celerity-bsd* )
1846 machine=celerity opsys=bsd4-2
1849 ## Clipper
1850 ## What operating systems does this chip run that Emacs has been
1851 ## tested on?
1852 clipper-* )
1853 machine=clipper
1854 ## We'll use the catch-all code at the bottom to guess the
1855 ## operating system.
1858 ## Compaq Nonstop
1859 mips-compaq-nonstopux* )
1860 machine=nonstopux opsys=nonstopux
1863 ## Convex
1864 *-convex-bsd* | *-convex-convexos* )
1865 machine=convex opsys=bsd4-3
1866 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1867 NON_GNU_CPP="cc -E -P"
1870 ## Cubix QBx/386
1871 i[3456]86-cubix-sysv* )
1872 machine=intel386 opsys=usg5-3
1875 ## Cydra 5
1876 cydra*-cydrome-sysv* )
1877 machine=cydra5 opsys=usg5-3
1880 ## Data General AViiON Machines
1881 ## DG changed naming conventions with the release of 5.4.4.10, they
1882 ## dropped the initial 5.4 but left the intervening R. Because of the
1883 ## R this shouldn't conflict with older versions of the OS (which I
1884 ## think were named like dgux4.*). In addition, DG new AViiONs series
1885 ## uses either Motorola M88k or Intel Pentium CPUs.
1886 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1887 machine=aviion opsys=dgux4
1889 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1890 ## This name is dgux5-4-3 instead of dgux5-4r3
1891 ## to avoid a file name conflict on MSDOS.
1892 machine=aviion opsys=dgux5-4-3
1894 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1895 machine=aviion opsys=dgux5-4r2
1897 m88k-dg-dgux* )
1898 machine=aviion opsys=dgux
1901 ## Data General AViiON Intel (x86) Machines
1902 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1903 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1904 i[345]86-dg-dguxR4* )
1905 machine=aviion-intel opsys=dgux4
1908 ## DECstations
1909 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1910 machine=pmax opsys=bsd4-2
1912 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1913 machine=pmax opsys=bsd4-3
1915 mips-dec-ultrix* )
1916 machine=pmax opsys=ultrix4-3
1918 mips-dec-osf* )
1919 machine=pmax opsys=osf1
1921 mips-dec-mach_bsd4.3* )
1922 machine=pmax opsys=mach-bsd4-3
1925 ## Motorola Delta machines
1926 m68k-motorola-sysv* | m68000-motorola-sysv* )
1927 machine=delta opsys=usg5-3
1928 if test -z "`type gnucc | grep 'not found'`"
1929 then
1930 if test -s /etc/167config
1931 then CC="gnucc -m68040"
1932 else CC="gnucc -m68881"
1934 else
1935 if test -z "`type gcc | grep 'not found'`"
1936 then CC=gcc
1937 else CC=cc
1941 m88k-motorola-sysv4* )
1942 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1943 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1944 # I hope there are not other 4.0 versions for this machine
1945 # which really need usg5-4 instead.
1946 machine=delta88k opsys=usg5-4-2
1948 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1949 machine=delta88k opsys=usg5-3
1952 ## Dual machines
1953 m68*-dual-sysv* )
1954 machine=dual opsys=usg5-2
1956 m68*-dual-uniplus* )
1957 machine=dual opsys=unipl5-2
1960 ## Elxsi 6400
1961 elxsi-elxsi-sysv* )
1962 machine=elxsi opsys=usg5-2
1965 ## Encore machines
1966 ns16k-encore-bsd* )
1967 machine=ns16000 opsys=umax
1970 ## The GEC 63 - apparently, this port isn't really finished yet.
1971 # I'm sure we finished off the last of the machines, though. -- fx
1973 ## Gould Power Node and NP1
1974 pn-gould-bsd4.2* )
1975 machine=gould opsys=bsd4-2
1977 pn-gould-bsd4.3* )
1978 machine=gould opsys=bsd4-3
1980 np1-gould-bsd* )
1981 machine=gould-np1 opsys=bsd4-3
1984 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1985 ## as far as Emacs is concerned).
1986 m88k-harris-cxux* )
1987 # Build needs to be different on 7.0 and later releases
1988 case "`uname -r`" in
1989 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1990 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1991 esac
1992 NON_GNU_CPP="/lib/cpp"
1994 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1995 m68k-harris-cxux* )
1996 machine=nh3000 opsys=cxux
1998 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1999 powerpc-harris-powerunix )
2000 machine=nh6000 opsys=powerunix
2001 NON_GNU_CPP="cc -Xo -E -P"
2003 ## SR2001/SR2201 running HI-UX/MPP
2004 hppa1.1-hitachi-hiuxmpp* )
2005 machine=sr2k opsys=hiuxmpp
2007 hppa1.1-hitachi-hiuxwe2* )
2008 machine=sr2k opsys=hiuxwe2
2010 ## Honeywell XPS100
2011 xps*-honeywell-sysv* )
2012 machine=xps100 opsys=usg5-2
2015 ## HP 9000 series 200 or 300
2016 m68*-hp-bsd* )
2017 machine=hp9000s300 opsys=bsd4-3
2019 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2020 m68*-hp-hpux* )
2021 case "`uname -r`" in
2022 ## Someone's system reports A.B8.05 for this.
2023 ## I wonder what other possibilities there are.
2024 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2025 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2026 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2027 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2028 *) machine=hp9000s300 opsys=hpux ;;
2029 esac
2032 ## HP 9000 series 700 and 800, running HP/UX
2033 hppa*-hp-hpux7* )
2034 machine=hp800 opsys=hpux
2036 hppa*-hp-hpux8* )
2037 machine=hp800 opsys=hpux8
2039 hppa*-hp-hpux9shr* )
2040 machine=hp800 opsys=hpux9shr
2042 hppa*-hp-hpux9* )
2043 machine=hp800 opsys=hpux9
2045 hppa*-hp-hpux10.2* )
2046 machine=hp800 opsys=hpux10-20
2048 hppa*-hp-hpux10* )
2049 machine=hp800 opsys=hpux10
2051 hppa*-hp-hpux1[1-9]* )
2052 machine=hp800 opsys=hpux11
2055 hppa*-*-linux-gnu* )
2056 machine=hp800 opsys=gnu-linux
2059 ## HP 9000 series 700 and 800, running HP/UX
2060 hppa*-hp-hpux* )
2061 ## Cross-compilation? Nah!
2062 case "`uname -r`" in
2063 ## Someone's system reports A.B8.05 for this.
2064 ## I wonder what other possibilities there are.
2065 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2066 *.08.* ) machine=hp800 opsys=hpux8 ;;
2067 *.09.* ) machine=hp800 opsys=hpux9 ;;
2068 *) machine=hp800 opsys=hpux10 ;;
2069 esac
2071 hppa*-*-nextstep* )
2072 machine=hp800 opsys=nextstep
2075 ## Orion machines
2076 orion-orion-bsd* )
2077 machine=orion opsys=bsd4-2
2079 clipper-orion-bsd* )
2080 machine=orion105 opsys=bsd4-2
2083 ## IBM machines
2084 i[3456]86-ibm-aix1.1* )
2085 machine=ibmps2-aix opsys=usg5-2-2
2087 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2088 machine=ibmps2-aix opsys=usg5-3
2090 i370-ibm-aix*)
2091 machine=ibm370aix opsys=usg5-3
2093 s390-*-linux-gnu* )
2094 machine=ibms390 opsys=gnu-linux
2096 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2097 machine=ibmrs6000 opsys=aix3-1
2099 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2100 machine=ibmrs6000 opsys=aix3-2-5
2102 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2103 machine=ibmrs6000 opsys=aix4-1
2105 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2106 machine=ibmrs6000 opsys=aix4-2
2108 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2109 machine=ibmrs6000 opsys=aix4-2
2111 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2112 machine=ibmrs6000 opsys=aix4
2114 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2115 machine=ibmrs6000 opsys=aix4-1
2117 rs6000-ibm-aix* | powerpc-ibm-aix* )
2118 machine=ibmrs6000 opsys=aix3-2
2120 romp-ibm-bsd4.3* )
2121 machine=ibmrt opsys=bsd4-3
2123 romp-ibm-bsd4.2* )
2124 machine=ibmrt opsys=bsd4-2
2126 romp-ibm-aos4.3* )
2127 machine=ibmrt opsys=bsd4-3
2129 romp-ibm-aos4.2* )
2130 machine=ibmrt opsys=bsd4-2
2132 romp-ibm-aos* )
2133 machine=ibmrt opsys=bsd4-3
2135 romp-ibm-bsd* )
2136 machine=ibmrt opsys=bsd4-3
2138 romp-ibm-aix* )
2139 machine=ibmrt-aix opsys=usg5-2-2
2142 ## Integrated Solutions `Optimum V'
2143 m68*-isi-bsd4.2* )
2144 machine=isi-ov opsys=bsd4-2
2146 m68*-isi-bsd4.3* )
2147 machine=isi-ov opsys=bsd4-3
2150 ## Intel 386 machines where we do care about the manufacturer
2151 i[3456]86-intsys-sysv* )
2152 machine=is386 opsys=usg5-2-2
2155 ## Prime EXL
2156 i[3456]86-prime-sysv* )
2157 machine=i386 opsys=usg5-3
2160 ## Sequent Symmetry running Dynix
2161 i[3456]86-sequent-bsd* )
2162 machine=symmetry opsys=bsd4-3
2165 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2166 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2167 machine=sequent-ptx opsys=ptx4
2168 NON_GNU_CPP=/lib/cpp
2171 ## Sequent Symmetry running DYNIX/ptx
2172 ## Use the old cpp rather than the newer ANSI one.
2173 i[3456]86-sequent-ptx* )
2174 machine=sequent-ptx opsys=ptx
2175 NON_GNU_CPP="/lib/cpp"
2178 ## ncr machine running svr4.3.
2179 i[3456]86-ncr-sysv4.3 )
2180 machine=ncr386 opsys=usg5-4-3
2183 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2184 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2185 i[3456]86-ncr-sysv* )
2186 machine=ncr386 opsys=usg5-4-2
2189 ## Intel Paragon OSF/1
2190 i860-intel-osf1* )
2191 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2194 ## Intel 860
2195 i860-*-sysv4* )
2196 machine=i860 opsys=usg5-4
2197 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2198 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2201 ## Macintosh PowerPC
2202 powerpc*-*-linux-gnu* )
2203 machine=macppc opsys=gnu-linux
2206 ## Masscomp machines
2207 m68*-masscomp-rtu* )
2208 machine=masscomp opsys=rtu
2211 ## Megatest machines
2212 m68*-megatest-bsd* )
2213 machine=mega68 opsys=bsd4-2
2216 ## Workstations sold by MIPS
2217 ## This is not necessarily all workstations using the MIPS processor -
2218 ## Irises are produced by SGI, and DECstations by DEC.
2220 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2221 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2222 ## it gives for choosing between the alternatives seems to be "Use
2223 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2224 ## the BSD world." I'll assume that these are instructions for
2225 ## handling two odd situations, and that every other situation
2226 ## should use mips.h and usg5-2-2, they being listed first.
2227 mips-mips-usg* )
2228 machine=mips4
2229 ## Fall through to the general code at the bottom to decide on the OS.
2231 mips-mips-riscos4* )
2232 machine=mips4 opsys=bsd4-3
2233 NON_GNU_CC="cc -systype bsd43"
2234 NON_GNU_CPP="cc -systype bsd43 -E"
2236 mips-mips-riscos5* )
2237 machine=mips4 opsys=riscos5
2238 NON_GNU_CC="cc -systype bsd43"
2239 NON_GNU_CPP="cc -systype bsd43 -E"
2241 mips-mips-bsd* )
2242 machine=mips opsys=bsd4-3
2244 mips-mips-* )
2245 machine=mips opsys=usg5-2-2
2248 ## NeXT
2249 m68*-next-* | m68k-*-nextstep* )
2250 machine=m68k opsys=nextstep
2253 ## The complete machine from National Semiconductor
2254 ns32k-ns-genix* )
2255 machine=ns32000 opsys=usg5-2
2258 ## NCR machines
2259 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2260 machine=tower32 opsys=usg5-2-2
2262 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2263 machine=tower32v3 opsys=usg5-3
2266 ## NEC EWS4800
2267 mips-nec-sysv4*)
2268 machine=ews4800 opsys=ux4800
2271 ## Nixdorf Targon 31
2272 m68*-nixdorf-sysv* )
2273 machine=targon31 opsys=usg5-2-2
2276 ## Nu (TI or LMI)
2277 m68*-nu-sysv* )
2278 machine=nu opsys=usg5-2
2281 ## Plexus
2282 m68*-plexus-sysv* )
2283 machine=plexus opsys=usg5-2
2286 ## Pyramid machines
2287 ## I don't really have any idea what sort of processor the Pyramid has,
2288 ## so I'm assuming it is its own architecture.
2289 pyramid-pyramid-bsd* )
2290 machine=pyramid opsys=bsd4-2
2293 ## Sequent Balance
2294 ns32k-sequent-bsd4.2* )
2295 machine=sequent opsys=bsd4-2
2297 ns32k-sequent-bsd4.3* )
2298 machine=sequent opsys=bsd4-3
2301 ## Siemens Nixdorf
2302 mips-siemens-sysv* | mips-sni-sysv*)
2303 machine=mips-siemens opsys=usg5-4
2304 NON_GNU_CC=/usr/ccs/bin/cc
2305 NON_GNU_CPP=/usr/ccs/lib/cpp
2308 ## Silicon Graphics machines
2309 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2310 m68*-sgi-iris3.5* )
2311 machine=irist opsys=iris3-5
2313 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2314 machine=irist opsys=iris3-6
2316 ## Iris 4D
2317 mips-sgi-irix3* )
2318 machine=iris4d opsys=irix3-3
2320 mips-sgi-irix4* )
2321 machine=iris4d opsys=irix4-0
2323 mips-sgi-irix6.5 )
2324 machine=iris4d opsys=irix6-5
2325 # Without defining _LANGUAGE_C, things get masked out in the headers
2326 # so that, for instance, grepping for `free' in stdlib.h fails and
2327 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2328 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2329 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2331 mips-sgi-irix6* )
2332 machine=iris4d opsys=irix6-0
2333 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2334 # but presumably it does no harm.
2335 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2336 # -32 probably isn't necessary in later v.6s -- anyone know which?
2337 NON_GCC_TEST_OPTIONS=-32
2339 mips-sgi-irix5.[01]* )
2340 machine=iris4d opsys=irix5-0
2342 mips-sgi-irix5* | mips-sgi-irix* )
2343 machine=iris4d opsys=irix5-2
2346 ## SONY machines
2347 m68*-sony-bsd4.2* )
2348 machine=news opsys=bsd4-2
2350 m68*-sony-bsd4.3* )
2351 machine=news opsys=bsd4-3
2353 m68*-sony-newsos3* | m68*-sony-news3*)
2354 machine=news opsys=bsd4-3
2356 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2357 machine=news-risc opsys=bsd4-3
2359 mips-sony-newsos6* )
2360 machine=news-r6 opsys=newsos6
2362 mips-sony-news* )
2363 machine=news-risc opsys=newsos5
2366 ## Stride
2367 m68*-stride-sysv* )
2368 machine=stride opsys=usg5-2
2371 ## Suns
2372 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2373 machine=sparc opsys=gnu-linux
2376 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2377 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2378 | rs6000-*-solaris2*)
2379 case "${canonical}" in
2380 m68*-sunos1* ) machine=sun1 ;;
2381 m68*-sunos2* ) machine=sun2 ;;
2382 m68* ) machine=sun3 ;;
2383 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2384 i[3456]86-*-* ) machine=intel386 ;;
2385 powerpcle* ) machine=powerpcle ;;
2386 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2387 sparc* ) machine=sparc ;;
2388 * ) unported=yes ;;
2389 esac
2390 case "${canonical}" in
2391 ## The Sun386 didn't get past 4.0.
2392 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2393 *-sunos4.0* ) opsys=sunos4-0 ;;
2394 *-sunos4.1.[3-9]*noshare )
2395 ## This name is sunos413 instead of sunos4-1-3
2396 ## to avoid a file name conflict on MSDOS.
2397 opsys=sunos413
2398 NON_GNU_CPP=/usr/lib/cpp
2399 NON_GCC_TEST_OPTIONS=-Bstatic
2400 GCC_TEST_OPTIONS=-static
2402 *-sunos4.1.[3-9]* | *-sunos4shr*)
2403 opsys=sunos4shr
2404 NON_GNU_CPP=/usr/lib/cpp
2406 *-sunos4* | *-sunos )
2407 opsys=sunos4-1
2408 NON_GCC_TEST_OPTIONS=-Bstatic
2409 GCC_TEST_OPTIONS=-static
2411 *-sunos5.3* | *-solaris2.3* )
2412 opsys=sol2-3
2413 NON_GNU_CPP=/usr/ccs/lib/cpp
2415 *-sunos5.4* | *-solaris2.4* )
2416 opsys=sol2-4
2417 NON_GNU_CPP=/usr/ccs/lib/cpp
2418 RANLIB="ar -ts"
2420 *-sunos5.5* | *-solaris2.5* )
2421 opsys=sol2-5
2422 NON_GNU_CPP=/usr/ccs/lib/cpp
2423 RANLIB="ar -ts"
2425 *-sunos5.6* | *-solaris2.6* )
2426 opsys=sol2-6
2427 NON_GNU_CPP=/usr/ccs/lib/cpp
2428 RANLIB="ar -ts"
2430 *-sunos5* | *-solaris* )
2431 opsys=sol2-6
2432 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 * ) opsys=bsd4-2 ;;
2435 esac
2436 ## Watch out for a compiler that we know will not work.
2437 case "${canonical}" in
2438 *-solaris* | *-sunos5* )
2439 if [ "x$CC" = x/usr/ucb/cc ]; then
2440 ## /usr/ucb/cc doesn't work;
2441 ## we should find some other compiler that does work.
2442 unset CC
2445 *) ;;
2446 esac
2448 sparc-*-nextstep* )
2449 machine=sparc opsys=nextstep
2452 ## Tadpole 68k
2453 m68*-tadpole-sysv* )
2454 machine=tad68k opsys=usg5-3
2457 ## Tahoe machines
2458 tahoe-tahoe-bsd4.2* )
2459 machine=tahoe opsys=bsd4-2
2461 tahoe-tahoe-bsd4.3* )
2462 machine=tahoe opsys=bsd4-3
2465 ## Tandem Integrity S2
2466 mips-tandem-sysv* )
2467 machine=tandem-s2 opsys=usg5-3
2470 ## Tektronix XD88
2471 m88k-tektronix-sysv3* )
2472 machine=tekxd88 opsys=usg5-3
2475 ## Tektronix 16000 box (6130?)
2476 ns16k-tektronix-bsd* )
2477 machine=ns16000 opsys=bsd4-2
2479 ## Tektronix 4300
2480 ## src/m/tek4300.h hints that this is a m68k machine.
2481 m68*-tektronix-bsd* )
2482 machine=tek4300 opsys=bsd4-3
2485 ## Titan P2 or P3
2486 ## We seem to have lost the machine-description file titan.h!
2487 titan-titan-sysv* )
2488 machine=titan opsys=usg5-3
2491 ## Ustation E30 (SS5E)
2492 m68*-unisys-uniplus* )
2493 machine=ustation opsystem=unipl5-2
2496 ## Vaxen.
2497 vax-dec-* )
2498 machine=vax
2499 case "${canonical}" in
2500 *-bsd4.1* ) opsys=bsd4-1 ;;
2501 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2502 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2503 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2504 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2505 *-vms* ) opsys=vms ;;
2506 * ) unported=yes
2507 esac
2510 ## Whitechapel MG1
2511 ns16k-whitechapel-* )
2512 machine=mg1
2513 ## We don't know what sort of OS runs on these; we'll let the
2514 ## operating system guessing code below try.
2517 ## Wicat
2518 m68*-wicat-sysv* )
2519 machine=wicat opsys=usg5-2
2522 ## IA-64
2523 ia64*-*-linux* )
2524 machine=ia64 opsys=gnu-linux
2527 ## Intel 386 machines where we don't care about the manufacturer
2528 i[3456]86-*-* )
2529 machine=intel386
2530 case "${canonical}" in
2531 *-cygwin ) opsys=cygwin ;;
2532 *-darwin ) opsys=darwin
2533 CPP="${CC-cc} -E -no-cpp-precomp"
2535 *-lynxos* ) opsys=lynxos ;;
2536 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2537 *-isc2.2* ) opsys=isc2-2 ;;
2538 *-isc4.0* ) opsys=isc4-0 ;;
2539 *-isc4.* ) opsys=isc4-1
2540 GCC_TEST_OPTIONS=-posix
2541 NON_GCC_TEST_OPTIONS=-Xp
2543 *-isc* ) opsys=isc3-0 ;;
2544 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2545 *-esix* ) opsys=esix ;;
2546 *-xenix* ) opsys=xenix ;;
2547 *-linux-gnu* ) opsys=gnu-linux ;;
2548 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2549 *-sco3.2v5* ) opsys=sco5
2550 NON_GNU_CPP=/lib/cpp
2551 # Prevent -belf from being passed to $CPP.
2552 # /lib/cpp does not accept it.
2553 OVERRIDE_CPPFLAGS=" "
2555 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2556 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2557 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2558 *-386bsd* ) opsys=386bsd ;;
2559 *-nextstep* ) opsys=nextstep ;;
2560 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2561 esac
2564 ## m68k Linux-based GNU system
2565 m68k-*-linux-gnu* )
2566 machine=m68k opsys=gnu-linux
2569 ## Mips Linux-based GNU system
2570 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2571 machine=mips opsys=gnu-linux
2574 ## UXP/DS
2575 sparc-fujitsu-sysv4* )
2576 machine=sparc opsys=uxpds
2577 NON_GNU_CPP=/usr/ccs/lib/cpp
2578 RANLIB="ar -ts"
2581 ## UXP/V
2582 f301-fujitsu-uxpv4.1)
2583 machine=f301 opsys=uxpv
2586 ## Darwin / Mac OS X
2587 powerpc-apple-darwin* )
2588 machine=powermac opsys=darwin
2589 # Define CPP as follows to make autoconf work correctly.
2590 CPP="${CC-cc} -E -no-cpp-precomp"
2591 # Use fink packages if available.
2592 if test -d /sw/include && test -d /sw/lib; then
2593 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2594 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2595 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2599 ## AMD x86-64 Linux-based GNU system
2600 x86_64-*-linux-gnu* )
2601 machine=amdx86-64 opsys=gnu-linux
2605 unported=yes
2607 esac
2609 ### If the code above didn't choose an operating system, just choose
2610 ### an operating system based on the configuration name. You really
2611 ### only want to use this when you have no idea what the right
2612 ### operating system is; if you know what operating systems a machine
2613 ### runs, it's cleaner to make it explicit in the case statement
2614 ### above.
2615 if test x"${opsys}" = x; then
2616 case "${canonical}" in
2617 *-gnu* ) opsys=gnu ;;
2618 *-bsd4.[01] ) opsys=bsd4-1 ;;
2619 *-bsd4.2 ) opsys=bsd4-2 ;;
2620 *-bsd4.3 ) opsys=bsd4-3 ;;
2621 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2622 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2623 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2624 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2625 *-sysv4.2uw* ) opsys=unixware ;;
2626 *-sysv5uw* ) opsys=unixware ;;
2627 *-sysv5OpenUNIX* ) opsys=unixware ;;
2628 *-sysv4.1* | *-sysvr4.1* )
2629 NON_GNU_CPP=/usr/lib/cpp
2630 opsys=usg5-4 ;;
2631 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2632 if [ x$NON_GNU_CPP = x ]; then
2633 if [ -f /usr/ccs/lib/cpp ]; then
2634 NON_GNU_CPP=/usr/ccs/lib/cpp
2635 else
2636 NON_GNU_CPP=/lib/cpp
2639 opsys=usg5-4-2 ;;
2640 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2642 unported=yes
2644 esac
2649 if test $unported = yes; then
2650 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2651 Check \`etc/MACHINES' for recognized configuration names." >&5
2652 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2653 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2654 { (exit 1); exit 1; }; }
2657 machfile="m/${machine}.h"
2658 opsysfile="s/${opsys}.h"
2661 #### Choose a compiler.
2662 test -n "$CC" && cc_specified=yes
2664 # Save the value of CFLAGS that the user specified.
2665 SPECIFIED_CFLAGS="$CFLAGS"
2667 case ${with_gcc} in
2668 "yes" ) CC="gcc" GCC=yes ;;
2669 "no" ) : ${CC=cc} ;;
2671 esac
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 if test -n "$ac_tool_prefix"; then
2678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 echo "$as_me:$LINENO: result: $CC" >&5
2707 echo "${ECHO_T}$CC" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2714 if test -z "$ac_cv_prog_CC"; then
2715 ac_ct_CC=$CC
2716 # Extract the first word of "gcc", so it can be a program name with args.
2717 set dummy gcc; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC="gcc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745 echo "${ECHO_T}$ac_ct_CC" >&6
2746 else
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2751 CC=$ac_ct_CC
2752 else
2753 CC="$ac_cv_prog_CC"
2756 if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}cc; ac_word=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_CC="${ac_tool_prefix}cc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2784 CC=$ac_cv_prog_CC
2785 if test -n "$CC"; then
2786 echo "$as_me:$LINENO: result: $CC" >&5
2787 echo "${ECHO_T}$CC" >&6
2788 else
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2794 if test -z "$ac_cv_prog_CC"; then
2795 ac_ct_CC=$CC
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803 if test -n "$ac_ct_CC"; then
2804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813 ac_cv_prog_ac_ct_CC="cc"
2814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 break 2
2817 done
2818 done
2822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then
2824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2825 echo "${ECHO_T}$ac_ct_CC" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2831 CC=$ac_ct_CC
2832 else
2833 CC="$ac_cv_prog_CC"
2837 if test -z "$CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 ac_prog_rejected=no
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2857 ac_prog_rejected=yes
2858 continue
2860 ac_cv_prog_CC="cc"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2864 done
2865 done
2867 if test $ac_prog_rejected = yes; then
2868 # We found a bogon in the path, so make sure we never use it.
2869 set dummy $ac_cv_prog_CC
2870 shift
2871 if test $# != 0; then
2872 # We chose a different compiler from the bogus one.
2873 # However, it has the same basename, so the bogon will be chosen
2874 # first if we set CC to just the basename; use the full file name.
2875 shift
2876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883 echo "$as_me:$LINENO: result: $CC" >&5
2884 echo "${ECHO_T}$CC" >&6
2885 else
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2891 if test -z "$CC"; then
2892 if test -n "$ac_tool_prefix"; then
2893 for ac_prog in cl
2895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2930 test -n "$CC" && break
2931 done
2933 if test -z "$CC"; then
2934 ac_ct_CC=$CC
2935 for ac_prog in cl
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy $ac_prog; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_ac_ct_CC="$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964 if test -n "$ac_ct_CC"; then
2965 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2966 echo "${ECHO_T}$ac_ct_CC" >&6
2967 else
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$ac_ct_CC" && break
2973 done
2975 CC=$ac_ct_CC
2981 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: no acceptable C compiler found in \$PATH
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2987 # Provide some information about the compiler.
2988 echo "$as_me:$LINENO:" \
2989 "checking for C compiler version" >&5
2990 ac_compiler=`set X $ac_compile; echo $2`
2991 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2992 (eval $ac_compiler --version </dev/null >&5) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2997 (eval $ac_compiler -v </dev/null >&5) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3002 (eval $ac_compiler -V </dev/null >&5) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3007 cat >conftest.$ac_ext <<_ACEOF
3008 #line $LINENO "configure"
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3016 main ()
3020 return 0;
3022 _ACEOF
3023 ac_clean_files_save=$ac_clean_files
3024 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3025 # Try to create an executable without -o first, disregard a.out.
3026 # It will help us diagnose broken compilers, and finding out an intuition
3027 # of exeext.
3028 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3029 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3030 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3031 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3032 (eval $ac_link_default) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; then
3036 # Find the output, starting from the most likely. This scheme is
3037 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3038 # resort.
3040 # Be careful to initialize this variable, since it used to be cached.
3041 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3042 ac_cv_exeext=
3043 # b.out is created by i960 compilers.
3044 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3046 test -f "$ac_file" || continue
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3050 conftest.$ac_ext )
3051 # This is the source file.
3053 [ab].out )
3054 # We found the default executable, but exeext='' is most
3055 # certainly right.
3056 break;;
3057 *.* )
3058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 # FIXME: I believe we export ac_cv_exeext for Libtool,
3060 # but it would be cool to find out if it's true. Does anybody
3061 # maintain Libtool? --akim.
3062 export ac_cv_exeext
3063 break;;
3065 break;;
3066 esac
3067 done
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3073 See \`config.log' for more details." >&5
3074 echo "$as_me: error: C compiler cannot create executables
3075 See \`config.log' for more details." >&2;}
3076 { (exit 77); exit 77; }; }
3079 ac_exeext=$ac_cv_exeext
3080 echo "$as_me:$LINENO: result: $ac_file" >&5
3081 echo "${ECHO_T}$ac_file" >&6
3083 # Check the compiler produces executables we can run. If not, either
3084 # the compiler is broken, or we cross compile.
3085 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3086 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3087 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3088 # If not cross compiling, check that we can run a simple program.
3089 if test "$cross_compiling" != yes; then
3090 if { ac_try='./$ac_file'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 (eval $ac_try) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 cross_compiling=no
3097 else
3098 if test "$cross_compiling" = maybe; then
3099 cross_compiling=yes
3100 else
3101 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3102 If you meant to cross compile, use \`--host'.
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: cannot run C compiled programs.
3105 If you meant to cross compile, use \`--host'.
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3114 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3115 ac_clean_files=$ac_clean_files_save
3116 # Check the compiler produces executables we can run. If not, either
3117 # the compiler is broken, or we cross compile.
3118 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3119 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3120 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3121 echo "${ECHO_T}$cross_compiling" >&6
3123 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3124 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126 (eval $ac_link) 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; then
3130 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3131 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3132 # work properly (i.e., refer to `conftest.exe'), while it won't with
3133 # `rm'.
3134 for ac_file in conftest.exe conftest conftest.*; do
3135 test -f "$ac_file" || continue
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3138 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 export ac_cv_exeext
3140 break;;
3141 * ) break;;
3142 esac
3143 done
3144 else
3145 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3148 See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3152 rm -f conftest$ac_cv_exeext
3153 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3154 echo "${ECHO_T}$ac_cv_exeext" >&6
3156 rm -f conftest.$ac_ext
3157 EXEEXT=$ac_cv_exeext
3158 ac_exeext=$EXEEXT
3159 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3160 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3161 if test "${ac_cv_objext+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164 cat >conftest.$ac_ext <<_ACEOF
3165 #line $LINENO "configure"
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.o conftest.obj
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; then
3186 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3187 case $ac_file in
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190 break;;
3191 esac
3192 done
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3198 See \`config.log' for more details." >&5
3199 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3200 See \`config.log' for more details." >&2;}
3201 { (exit 1); exit 1; }; }
3204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3207 echo "${ECHO_T}$ac_cv_objext" >&6
3208 OBJEXT=$ac_cv_objext
3209 ac_objext=$OBJEXT
3210 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3211 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3212 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3224 main ()
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3231 return 0;
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -s conftest.$ac_objext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_compiler_gnu=yes
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 ac_compiler_gnu=no
3253 rm -f conftest.$ac_objext conftest.$ac_ext
3254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3258 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3259 GCC=`test $ac_compiler_gnu = yes && echo yes`
3260 ac_test_CFLAGS=${CFLAGS+set}
3261 ac_save_CFLAGS=$CFLAGS
3262 CFLAGS="-g"
3263 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3264 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3265 if test "${ac_cv_prog_cc_g+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 cat >conftest.$ac_ext <<_ACEOF
3269 #line $LINENO "configure"
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3277 main ()
3281 return 0;
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 (eval $ac_try) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_cv_prog_cc_g=yes
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 ac_cv_prog_cc_g=no
3303 rm -f conftest.$ac_objext conftest.$ac_ext
3305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3311 CFLAGS="-g -O2"
3312 else
3313 CFLAGS="-g"
3315 else
3316 if test "$GCC" = yes; then
3317 CFLAGS="-O2"
3318 else
3319 CFLAGS=
3322 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3323 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 ac_cv_prog_cc_stdc=no
3328 ac_save_CC=$CC
3329 cat >conftest.$ac_ext <<_ACEOF
3330 #line $LINENO "configure"
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 #include <stdarg.h>
3337 #include <stdio.h>
3338 #include <sys/types.h>
3339 #include <sys/stat.h>
3340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3341 struct buf { int x; };
3342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343 static char *e (p, i)
3344 char **p;
3345 int i;
3347 return p[i];
3349 static char *f (char * (*g) (char **, int), char **p, ...)
3351 char *s;
3352 va_list v;
3353 va_start (v,p);
3354 s = g (p, va_arg (v,int));
3355 va_end (v);
3356 return s;
3358 int test (int i, double x);
3359 struct s1 {int (*f) (int a);};
3360 struct s2 {int (*f) (double a);};
3361 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3362 int argc;
3363 char **argv;
3365 main ()
3367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3369 return 0;
3371 _ACEOF
3372 # Don't try gcc -ansi; that turns off useful extensions and
3373 # breaks some systems' header files.
3374 # AIX -qlanglvl=ansi
3375 # Ultrix and OSF/1 -std1
3376 # HP-UX 10.20 and later -Ae
3377 # HP-UX older versions -Aa -D_HPUX_SOURCE
3378 # SVR4 -Xc -D__EXTENSIONS__
3379 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_stdc=$ac_arg
3395 break
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3401 rm -f conftest.$ac_objext
3402 done
3403 rm -f conftest.$ac_ext conftest.$ac_objext
3404 CC=$ac_save_CC
3408 case "x$ac_cv_prog_cc_stdc" in
3409 x|xno)
3410 echo "$as_me:$LINENO: result: none needed" >&5
3411 echo "${ECHO_T}none needed" >&6 ;;
3413 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3414 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3415 CC="$CC $ac_cv_prog_cc_stdc" ;;
3416 esac
3418 # Some people use a C++ compiler to compile C. Since we use `exit',
3419 # in C++ we need to declare it. In case someone uses the same compiler
3420 # for both compiling C and C++ we need to have the C++ compiler decide
3421 # the declaration of exit, since it's the most demanding environment.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 #ifndef __cplusplus
3424 choke me
3425 #endif
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 (eval $ac_compile) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -s conftest.$ac_objext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 for ac_declaration in \
3441 '#include <stdlib.h>' \
3442 'extern "C" void std::exit (int) throw (); using std::exit;' \
3443 'extern "C" void std::exit (int); using std::exit;' \
3444 'extern "C" void exit (int) throw ();' \
3445 'extern "C" void exit (int);' \
3446 'void exit (int);'
3448 cat >conftest.$ac_ext <<_ACEOF
3449 #line $LINENO "configure"
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <stdlib.h>
3456 $ac_declaration
3458 main ()
3460 exit (42);
3462 return 0;
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 continue
3484 rm -f conftest.$ac_objext conftest.$ac_ext
3485 cat >conftest.$ac_ext <<_ACEOF
3486 #line $LINENO "configure"
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 $ac_declaration
3494 main ()
3496 exit (42);
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 break
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3519 rm -f conftest.$ac_objext conftest.$ac_ext
3520 done
3521 rm -f conftest*
3522 if test -n "$ac_declaration"; then
3523 echo '#ifdef __cplusplus' >>confdefs.h
3524 echo $ac_declaration >>confdefs.h
3525 echo '#endif' >>confdefs.h
3528 else
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f conftest.$ac_objext conftest.$ac_ext
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 # On Suns, sometimes $CPP names a directory.
3542 if test -n "$CPP" && test -d "$CPP"; then
3543 CPP=
3546 #### Some systems specify a CPP to use unless we are using GCC.
3547 #### Now that we know whether we are using GCC, we can decide whether
3548 #### to use that one.
3549 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3550 then
3551 CPP="$NON_GNU_CPP"
3554 #### Some systems specify a CC to use unless we are using GCC.
3555 #### Now that we know whether we are using GCC, we can decide whether
3556 #### to use that one.
3557 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3558 test x$cc_specified != xyes
3559 then
3560 CC="$NON_GNU_CC"
3563 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3564 then
3565 CC="$CC $GCC_TEST_OPTIONS"
3568 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3569 then
3570 CC="$CC $NON_GCC_TEST_OPTIONS"
3573 #### Some other nice autoconf tests.
3575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3577 LN_S=$as_ln_s
3578 if test "$LN_S" = "ln -s"; then
3579 echo "$as_me:$LINENO: result: yes" >&5
3580 echo "${ECHO_T}yes" >&6
3581 else
3582 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3583 echo "${ECHO_T}no, using $LN_S" >&6
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3592 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3593 # On Suns, sometimes $CPP names a directory.
3594 if test -n "$CPP" && test -d "$CPP"; then
3595 CPP=
3597 if test -z "$CPP"; then
3598 if test "${ac_cv_prog_CPP+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601 # Double quotes because CPP needs to be expanded
3602 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3604 ac_preproc_ok=false
3605 for ac_c_preproc_warn_flag in '' yes
3607 # Use a header file that comes with gcc, so configuring glibc
3608 # with a fresh cross-compiler works.
3609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610 # <limits.h> exists even on freestanding compilers.
3611 # On the NeXT, cc -E runs the code through the compiler's parser,
3612 # not just through cpp. "Syntax error" is here to catch this case.
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line $LINENO "configure"
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625 Syntax error
3626 _ACEOF
3627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } >/dev/null; then
3635 if test -s conftest.err; then
3636 ac_cpp_err=$ac_c_preproc_warn_flag
3637 else
3638 ac_cpp_err=
3640 else
3641 ac_cpp_err=yes
3643 if test -z "$ac_cpp_err"; then
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 # Broken: fails on valid input.
3650 continue
3652 rm -f conftest.err conftest.$ac_ext
3654 # OK, works on sane cases. Now check whether non-existent headers
3655 # can be detected and how.
3656 cat >conftest.$ac_ext <<_ACEOF
3657 #line $LINENO "configure"
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <ac_nonexistent.h>
3664 _ACEOF
3665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev/null; then
3673 if test -s conftest.err; then
3674 ac_cpp_err=$ac_c_preproc_warn_flag
3675 else
3676 ac_cpp_err=
3678 else
3679 ac_cpp_err=yes
3681 if test -z "$ac_cpp_err"; then
3682 # Broken: success on invalid input.
3683 continue
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 # Passes both tests.
3689 ac_preproc_ok=:
3690 break
3692 rm -f conftest.err conftest.$ac_ext
3694 done
3695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696 rm -f conftest.err conftest.$ac_ext
3697 if $ac_preproc_ok; then
3698 break
3701 done
3702 ac_cv_prog_CPP=$CPP
3705 CPP=$ac_cv_prog_CPP
3706 else
3707 ac_cv_prog_CPP=$CPP
3709 echo "$as_me:$LINENO: result: $CPP" >&5
3710 echo "${ECHO_T}$CPP" >&6
3711 ac_preproc_ok=false
3712 for ac_c_preproc_warn_flag in '' yes
3714 # Use a header file that comes with gcc, so configuring glibc
3715 # with a fresh cross-compiler works.
3716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3717 # <limits.h> exists even on freestanding compilers.
3718 # On the NeXT, cc -E runs the code through the compiler's parser,
3719 # not just through cpp. "Syntax error" is here to catch this case.
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3722 /* confdefs.h. */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 #ifdef __STDC__
3728 # include <limits.h>
3729 #else
3730 # include <assert.h>
3731 #endif
3732 Syntax error
3733 _ACEOF
3734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } >/dev/null; then
3742 if test -s conftest.err; then
3743 ac_cpp_err=$ac_c_preproc_warn_flag
3744 else
3745 ac_cpp_err=
3747 else
3748 ac_cpp_err=yes
3750 if test -z "$ac_cpp_err"; then
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 # Broken: fails on valid input.
3757 continue
3759 rm -f conftest.err conftest.$ac_ext
3761 # OK, works on sane cases. Now check whether non-existent headers
3762 # can be detected and how.
3763 cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <ac_nonexistent.h>
3771 _ACEOF
3772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } >/dev/null; then
3780 if test -s conftest.err; then
3781 ac_cpp_err=$ac_c_preproc_warn_flag
3782 else
3783 ac_cpp_err=
3785 else
3786 ac_cpp_err=yes
3788 if test -z "$ac_cpp_err"; then
3789 # Broken: success on invalid input.
3790 continue
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 # Passes both tests.
3796 ac_preproc_ok=:
3797 break
3799 rm -f conftest.err conftest.$ac_ext
3801 done
3802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3803 rm -f conftest.err conftest.$ac_ext
3804 if $ac_preproc_ok; then
3806 else
3807 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3808 See \`config.log' for more details." >&5
3809 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3810 See \`config.log' for more details." >&2;}
3811 { (exit 1); exit 1; }; }
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 # Find a good install program. We prefer a C program (faster),
3821 # so one script is as good as another. But avoid the broken or
3822 # incompatible versions:
3823 # SysV /etc/install, /usr/sbin/install
3824 # SunOS /usr/etc/install
3825 # IRIX /sbin/install
3826 # AIX /bin/install
3827 # AmigaOS /C/install, which installs bootblocks on floppy discs
3828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3831 # ./install, which can be erroneously created by make from ./install.sh.
3832 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3834 if test -z "$INSTALL"; then
3835 if test "${ac_cv_path_install+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 # Account for people who put trailing slashes in PATH elements.
3844 case $as_dir/ in
3845 ./ | .// | /cC/* | \
3846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3847 /usr/ucb/* ) ;;
3849 # OSF1 and SCO ODT 3.0 have their own names for install.
3850 # Don't use installbsd from OSF since it installs stuff as root
3851 # by default.
3852 for ac_prog in ginstall scoinst install; do
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3855 if test $ac_prog = install &&
3856 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3857 # AIX install. It has an incompatible calling convention.
3859 elif test $ac_prog = install &&
3860 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3861 # program-specific install script used by HP pwplus--don't use.
3863 else
3864 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3865 break 3
3868 done
3869 done
3871 esac
3872 done
3876 if test "${ac_cv_path_install+set}" = set; then
3877 INSTALL=$ac_cv_path_install
3878 else
3879 # As a last resort, use the slow shell script. We don't cache a
3880 # path for INSTALL within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the path is relative.
3883 INSTALL=$ac_install_sh
3886 echo "$as_me:$LINENO: result: $INSTALL" >&5
3887 echo "${ECHO_T}$INSTALL" >&6
3889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3890 # It thinks the first close brace ends the variable substitution.
3891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3897 if test "x$RANLIB" = x; then
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_prog_RANLIB+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 if test -n "$RANLIB"; then
3907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3920 done
3921 done
3925 RANLIB=$ac_cv_prog_RANLIB
3926 if test -n "$RANLIB"; then
3927 echo "$as_me:$LINENO: result: $RANLIB" >&5
3928 echo "${ECHO_T}$RANLIB" >&6
3929 else
3930 echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3935 if test -z "$ac_cv_prog_RANLIB"; then
3936 ac_ct_RANLIB=$RANLIB
3937 # Extract the first word of "ranlib", so it can be a program name with args.
3938 set dummy ranlib; ac_word=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 if test -n "$ac_ct_RANLIB"; then
3945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_RANLIB="ranlib"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3958 done
3959 done
3961 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3965 if test -n "$ac_ct_RANLIB"; then
3966 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3967 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3968 else
3969 echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3973 RANLIB=$ac_ct_RANLIB
3974 else
3975 RANLIB="$ac_cv_prog_RANLIB"
3979 # Extract the first word of "install-info", so it can be a program name with args.
3980 set dummy install-info; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 case $INSTALL_INFO in
3987 [\\/]* | ?:[\\/]*)
3988 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4002 done
4003 done
4006 esac
4008 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4010 if test -n "$INSTALL_INFO"; then
4011 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4012 echo "${ECHO_T}$INSTALL_INFO" >&6
4013 else
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4018 # Extract the first word of "install-info", so it can be a program name with args.
4019 set dummy install-info; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 case $INSTALL_INFO in
4026 [\\/]* | ?:[\\/]*)
4027 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in /usr/sbin
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4045 esac
4047 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4049 if test -n "$INSTALL_INFO"; then
4050 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4051 echo "${ECHO_T}$INSTALL_INFO" >&6
4052 else
4053 echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4057 # Extract the first word of "install-info", so it can be a program name with args.
4058 set dummy install-info; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 case $INSTALL_INFO in
4065 [\\/]* | ?:[\\/]*)
4066 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in /sbin
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4083 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4085 esac
4087 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4089 if test -n "$INSTALL_INFO"; then
4090 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4091 echo "${ECHO_T}$INSTALL_INFO" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4099 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4100 then
4101 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4104 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4105 then
4106 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4110 late_LDFLAGS=$LDFLAGS
4111 if test "$GCC" = yes; then
4112 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4113 else
4114 LDFLAGS="$LDFLAGS -znocombreloc"
4117 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4118 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4120 cat >conftest.$ac_ext <<_ACEOF
4121 main(){return 0;}
4122 _ACEOF
4123 rm -f conftest.$ac_objext conftest$ac_exeext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4125 (eval $ac_link) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -s conftest$ac_exeext'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 (eval $ac_try) 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4135 echo "$as_me:$LINENO: result: yes" >&5
4136 echo "${ECHO_T}yes" >&6
4137 else
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4141 LDFLAGS=$late_LDFLAGS
4142 echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4148 echo "$as_me:$LINENO: checking for egrep" >&5
4149 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4150 if test "${ac_cv_prog_egrep+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4154 then ac_cv_prog_egrep='grep -E'
4155 else ac_cv_prog_egrep='egrep'
4158 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4159 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4160 EGREP=$ac_cv_prog_egrep
4164 echo "$as_me:$LINENO: checking for AIX" >&5
4165 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4166 cat >conftest.$ac_ext <<_ACEOF
4167 #line $LINENO "configure"
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #ifdef _AIX
4175 #endif
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "yes" >/dev/null 2>&1; then
4180 echo "$as_me:$LINENO: result: yes" >&5
4181 echo "${ECHO_T}yes" >&6
4182 cat >>confdefs.h <<\_ACEOF
4183 #define _ALL_SOURCE 1
4184 _ACEOF
4186 else
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4190 rm -f conftest*
4195 #### Extract some information from the operating system and machine files.
4197 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4198 - which libraries the lib-src programs will want, and
4199 - whether the GNU malloc routines are usable..." >&5
4200 echo "$as_me: checking the machine- and system-dependent files to find out
4201 - which libraries the lib-src programs will want, and
4202 - whether the GNU malloc routines are usable..." >&6;}
4204 ### First figure out CFLAGS (which we use for running the compiler here)
4205 ### and REAL_CFLAGS (which we use for real compilation).
4206 ### The two are the same except on a few systems, where they are made
4207 ### different to work around various lossages. For example,
4208 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4209 ### as implying static linking.
4211 ### If the CFLAGS env var is specified, we use that value
4212 ### instead of the default.
4214 ### It's not important that this name contain the PID; you can't run
4215 ### two configures in the same directory and have anything work
4216 ### anyway.
4217 tempcname="conftest.c"
4219 echo '
4220 #include "'${srcdir}'/src/'${opsysfile}'"
4221 #include "'${srcdir}'/src/'${machfile}'"
4222 #ifndef LIBS_MACHINE
4223 #define LIBS_MACHINE
4224 #endif
4225 #ifndef LIBS_SYSTEM
4226 #define LIBS_SYSTEM
4227 #endif
4228 #ifndef C_SWITCH_SYSTEM
4229 #define C_SWITCH_SYSTEM
4230 #endif
4231 #ifndef C_SWITCH_MACHINE
4232 #define C_SWITCH_MACHINE
4233 #endif
4234 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4235 configure___ c_switch_system=C_SWITCH_SYSTEM
4236 configure___ c_switch_machine=C_SWITCH_MACHINE
4238 #ifndef LIB_X11_LIB
4239 #define LIB_X11_LIB -lX11
4240 #endif
4242 #ifndef LIBX11_MACHINE
4243 #define LIBX11_MACHINE
4244 #endif
4246 #ifndef LIBX11_SYSTEM
4247 #define LIBX11_SYSTEM
4248 #endif
4249 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4251 #ifdef UNEXEC
4252 configure___ unexec=UNEXEC
4253 #else
4254 configure___ unexec=unexec.o
4255 #endif
4257 #ifdef SYSTEM_MALLOC
4258 configure___ system_malloc=yes
4259 #else
4260 configure___ system_malloc=no
4261 #endif
4263 #ifdef USE_MMAP_FOR_BUFFERS
4264 configure___ use_mmap_for_buffers=yes
4265 #else
4266 configure___ use_mmap_for_buffers=no
4267 #endif
4269 #ifndef C_DEBUG_SWITCH
4270 #define C_DEBUG_SWITCH -g
4271 #endif
4273 #ifndef C_OPTIMIZE_SWITCH
4274 #ifdef __GNUC__
4275 #define C_OPTIMIZE_SWITCH -O2
4276 #else
4277 #define C_OPTIMIZE_SWITCH -O
4278 #endif
4279 #endif
4281 #ifndef LD_SWITCH_MACHINE
4282 #define LD_SWITCH_MACHINE
4283 #endif
4285 #ifndef LD_SWITCH_SYSTEM
4286 #define LD_SWITCH_SYSTEM
4287 #endif
4289 #ifndef LD_SWITCH_X_SITE_AUX
4290 #define LD_SWITCH_X_SITE_AUX
4291 #endif
4293 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4294 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4296 #ifdef THIS_IS_CONFIGURE
4298 /* Get the CFLAGS for tests in configure. */
4299 #ifdef __GNUC__
4300 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4301 #else
4302 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4303 #endif
4305 #else /* not THIS_IS_CONFIGURE */
4307 /* Get the CFLAGS for real compilation. */
4308 #ifdef __GNUC__
4309 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4310 #else
4311 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4312 #endif
4314 #endif /* not THIS_IS_CONFIGURE */
4315 ' > ${tempcname}
4317 # The value of CPP is a quoted variable reference, so we need to do this
4318 # to get its actual value...
4319 CPP=`eval "echo $CPP"`
4320 eval `${CPP} -Isrc ${tempcname} \
4321 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4322 if test "x$SPECIFIED_CFLAGS" = x; then
4323 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4324 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4325 else
4326 REAL_CFLAGS="$CFLAGS"
4328 rm ${tempcname}
4330 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4332 ### Make sure subsequent tests use flags consistent with the build flags.
4334 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4335 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4336 else
4337 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4343 cat >>confdefs.h <<\_ACEOF
4344 #define _GNU_SOURCE 1
4345 _ACEOF
4349 # Check whether --enable-largefile or --disable-largefile was given.
4350 if test "${enable_largefile+set}" = set; then
4351 enableval="$enable_largefile"
4354 if test "$enable_largefile" != no; then
4356 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4357 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4358 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 ac_cv_sys_largefile_CC=no
4362 if test "$GCC" != yes; then
4363 ac_save_CC=$CC
4364 while :; do
4365 # IRIX 6.2 and later do not support large files by default,
4366 # so use the C compiler's -n32 option if that helps.
4367 cat >conftest.$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <sys/types.h>
4375 /* Check that off_t can represent 2**63 - 1 correctly.
4376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4377 since some C++ compilers masquerading as C compilers
4378 incorrectly reject 9223372036854775807. */
4379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4381 && LARGE_OFF_T % 2147483647 == 1)
4382 ? 1 : -1];
4384 main ()
4388 return 0;
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 break
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4409 rm -f conftest.$ac_objext
4410 CC="$CC -n32"
4411 rm -f conftest.$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413 (eval $ac_compile) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_cv_sys_largefile_CC=' -n32'; break
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4429 rm -f conftest.$ac_objext
4430 break
4431 done
4432 CC=$ac_save_CC
4433 rm -f conftest.$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4437 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4438 if test "$ac_cv_sys_largefile_CC" != no; then
4439 CC=$CC$ac_cv_sys_largefile_CC
4442 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4443 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4444 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 while :; do
4448 ac_cv_sys_file_offset_bits=no
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <sys/types.h>
4457 /* Check that off_t can represent 2**63 - 1 correctly.
4458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4459 since some C++ compilers masquerading as C compilers
4460 incorrectly reject 9223372036854775807. */
4461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4463 && LARGE_OFF_T % 2147483647 == 1)
4464 ? 1 : -1];
4466 main ()
4470 return 0;
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 break
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 /* confdefs.h. */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #define _FILE_OFFSET_BITS 64
4500 #include <sys/types.h>
4501 /* Check that off_t can represent 2**63 - 1 correctly.
4502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4503 since some C++ compilers masquerading as C compilers
4504 incorrectly reject 9223372036854775807. */
4505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4507 && LARGE_OFF_T % 2147483647 == 1)
4508 ? 1 : -1];
4510 main ()
4514 return 0;
4516 _ACEOF
4517 rm -f conftest.$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_file_offset_bits=64; break
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4535 rm -f conftest.$ac_objext conftest.$ac_ext
4536 break
4537 done
4539 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4540 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4541 if test "$ac_cv_sys_file_offset_bits" != no; then
4543 cat >>confdefs.h <<_ACEOF
4544 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4545 _ACEOF
4548 rm -f conftest*
4549 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4550 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4551 if test "${ac_cv_sys_large_files+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 while :; do
4555 ac_cv_sys_large_files=no
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <sys/types.h>
4564 /* Check that off_t can represent 2**63 - 1 correctly.
4565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4566 since some C++ compilers masquerading as C compilers
4567 incorrectly reject 9223372036854775807. */
4568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4570 && LARGE_OFF_T % 2147483647 == 1)
4571 ? 1 : -1];
4573 main ()
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 break
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f conftest.$ac_objext conftest.$ac_ext
4599 cat >conftest.$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 #define _LARGE_FILES 1
4607 #include <sys/types.h>
4608 /* Check that off_t can represent 2**63 - 1 correctly.
4609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4610 since some C++ compilers masquerading as C compilers
4611 incorrectly reject 9223372036854775807. */
4612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4614 && LARGE_OFF_T % 2147483647 == 1)
4615 ? 1 : -1];
4617 main ()
4621 return 0;
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_sys_large_files=1; break
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4642 rm -f conftest.$ac_objext conftest.$ac_ext
4643 break
4644 done
4646 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4647 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4648 if test "$ac_cv_sys_large_files" != no; then
4650 cat >>confdefs.h <<_ACEOF
4651 #define _LARGE_FILES $ac_cv_sys_large_files
4652 _ACEOF
4655 rm -f conftest*
4659 if test "${with_sound}" != "no"; then
4660 # Sound support for GNU/Linux and the free BSDs.
4661 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4662 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4663 if test "${ac_cv_header_stdc+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line $LINENO "configure"
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 #include <stdlib.h>
4674 #include <stdarg.h>
4675 #include <string.h>
4676 #include <float.h>
4679 main ()
4683 return 0;
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_header_stdc=yes
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 ac_cv_header_stdc=no
4705 rm -f conftest.$ac_objext conftest.$ac_ext
4707 if test $ac_cv_header_stdc = yes; then
4708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4709 cat >conftest.$ac_ext <<_ACEOF
4710 #line $LINENO "configure"
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <string.h>
4718 _ACEOF
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720 $EGREP "memchr" >/dev/null 2>&1; then
4722 else
4723 ac_cv_header_stdc=no
4725 rm -f conftest*
4729 if test $ac_cv_header_stdc = yes; then
4730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <stdlib.h>
4740 _ACEOF
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "free" >/dev/null 2>&1; then
4744 else
4745 ac_cv_header_stdc=no
4747 rm -f conftest*
4751 if test $ac_cv_header_stdc = yes; then
4752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4753 if test "$cross_compiling" = yes; then
4755 else
4756 cat >conftest.$ac_ext <<_ACEOF
4757 #line $LINENO "configure"
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ctype.h>
4764 #if ((' ' & 0x0FF) == 0x020)
4765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4767 #else
4768 # define ISLOWER(c) \
4769 (('a' <= (c) && (c) <= 'i') \
4770 || ('j' <= (c) && (c) <= 'r') \
4771 || ('s' <= (c) && (c) <= 'z'))
4772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4773 #endif
4775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4777 main ()
4779 int i;
4780 for (i = 0; i < 256; i++)
4781 if (XOR (islower (i), ISLOWER (i))
4782 || toupper (i) != TOUPPER (i))
4783 exit(2);
4784 exit (0);
4786 _ACEOF
4787 rm -f conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4799 else
4800 echo "$as_me: program exited with status $ac_status" >&5
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 ( exit $ac_status )
4805 ac_cv_header_stdc=no
4807 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4811 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4812 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4813 if test $ac_cv_header_stdc = yes; then
4815 cat >>confdefs.h <<\_ACEOF
4816 #define STDC_HEADERS 1
4817 _ACEOF
4821 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4832 inttypes.h stdint.h unistd.h
4834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 cat >conftest.$ac_ext <<_ACEOF
4841 #line $LINENO "configure"
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 $ac_includes_default
4849 #include <$ac_header>
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 eval "$as_ac_Header=yes"
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 eval "$as_ac_Header=no"
4870 rm -f conftest.$ac_objext conftest.$ac_ext
4872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4875 cat >>confdefs.h <<_ACEOF
4876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4877 _ACEOF
4881 done
4887 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo "$as_me:$LINENO: checking for $ac_header" >&5
4892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4898 else
4899 # Is the header compilable?
4900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4902 cat >conftest.$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 $ac_includes_default
4910 #include <$ac_header>
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_header_compiler=yes
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_header_compiler=no
4931 rm -f conftest.$ac_objext conftest.$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4933 echo "${ECHO_T}$ac_header_compiler" >&6
4935 # Is the header present?
4936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4938 cat >conftest.$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4940 /* confdefs.h. */
4941 _ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 #include <$ac_header>
4946 _ACEOF
4947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null; then
4955 if test -s conftest.err; then
4956 ac_cpp_err=$ac_c_preproc_warn_flag
4957 else
4958 ac_cpp_err=
4960 else
4961 ac_cpp_err=yes
4963 if test -z "$ac_cpp_err"; then
4964 ac_header_preproc=yes
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 ac_header_preproc=no
4971 rm -f conftest.err conftest.$ac_ext
4972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4973 echo "${ECHO_T}$ac_header_preproc" >&6
4975 # So? What about this header?
4976 case $ac_header_compiler:$ac_header_preproc in
4977 yes:no )
4978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4983 cat <<\_ASBOX
4984 ## ------------------------------------ ##
4985 ## Report this to bug-autoconf@gnu.org. ##
4986 ## ------------------------------------ ##
4987 _ASBOX
4989 sed "s/^/$as_me: WARNING: /" >&2
4991 no:yes )
4992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4999 cat <<\_ASBOX
5000 ## ------------------------------------ ##
5001 ## Report this to bug-autoconf@gnu.org. ##
5002 ## ------------------------------------ ##
5003 _ASBOX
5005 sed "s/^/$as_me: WARNING: /" >&2
5007 esac
5008 echo "$as_me:$LINENO: checking for $ac_header" >&5
5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 eval "$as_ac_Header=$ac_header_preproc"
5015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5020 cat >>confdefs.h <<_ACEOF
5021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5022 _ACEOF
5026 done
5028 # Emulation library used on NetBSD.
5029 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5030 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5031 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 ac_check_lib_save_LIBS=$LIBS
5035 LIBS="-lossaudio $LIBS"
5036 cat >conftest.$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 #ifdef __cplusplus
5046 extern "C"
5047 #endif
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5050 char _oss_ioctl ();
5052 main ()
5054 _oss_ioctl ();
5056 return 0;
5058 _ACEOF
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5061 (eval $ac_link) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_lib_ossaudio__oss_ioctl=yes
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 ac_cv_lib_ossaudio__oss_ioctl=no
5078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5082 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5083 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5084 LIBSOUND=-lossaudio
5085 else
5086 LIBSOUND=
5117 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5118 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5119 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5120 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5121 sys/utsname.h pwd.h
5123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5125 echo "$as_me:$LINENO: checking for $ac_header" >&5
5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5132 else
5133 # Is the header compilable?
5134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 $ac_includes_default
5144 #include <$ac_header>
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_header_compiler=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_header_compiler=no
5165 rm -f conftest.$ac_objext conftest.$ac_ext
5166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5167 echo "${ECHO_T}$ac_header_compiler" >&6
5169 # Is the header present?
5170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5172 cat >conftest.$ac_ext <<_ACEOF
5173 #line $LINENO "configure"
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #include <$ac_header>
5180 _ACEOF
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null; then
5189 if test -s conftest.err; then
5190 ac_cpp_err=$ac_c_preproc_warn_flag
5191 else
5192 ac_cpp_err=
5194 else
5195 ac_cpp_err=yes
5197 if test -z "$ac_cpp_err"; then
5198 ac_header_preproc=yes
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 ac_header_preproc=no
5205 rm -f conftest.err conftest.$ac_ext
5206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5207 echo "${ECHO_T}$ac_header_preproc" >&6
5209 # So? What about this header?
5210 case $ac_header_compiler:$ac_header_preproc in
5211 yes:no )
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5217 cat <<\_ASBOX
5218 ## ------------------------------------ ##
5219 ## Report this to bug-autoconf@gnu.org. ##
5220 ## ------------------------------------ ##
5221 _ASBOX
5223 sed "s/^/$as_me: WARNING: /" >&2
5225 no:yes )
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5233 cat <<\_ASBOX
5234 ## ------------------------------------ ##
5235 ## Report this to bug-autoconf@gnu.org. ##
5236 ## ------------------------------------ ##
5237 _ASBOX
5239 sed "s/^/$as_me: WARNING: /" >&2
5241 esac
5242 echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 eval "$as_ac_Header=$ac_header_preproc"
5249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5254 cat >>confdefs.h <<_ACEOF
5255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5256 _ACEOF
5260 done
5263 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5264 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5267 /* confdefs.h. */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <sys/personality.h>
5274 main ()
5276 personality (PER_LINUX32)
5278 return 0;
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 emacs_cv_personality_linux32=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 emacs_cv_personality_linux32=no
5300 rm -f conftest.$ac_objext conftest.$ac_ext
5301 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5302 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5304 if test $emacs_cv_personality_linux32 = yes; then
5306 cat >>confdefs.h <<\_ACEOF
5307 #define HAVE_PERSONALITY_LINUX32 1
5308 _ACEOF
5313 for ac_header in term.h
5315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5316 echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <$ac_header>
5329 _ACEOF
5330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } >/dev/null; then
5338 if test -s conftest.err; then
5339 ac_cpp_err=$ac_c_preproc_warn_flag
5340 else
5341 ac_cpp_err=
5343 else
5344 ac_cpp_err=yes
5346 if test -z "$ac_cpp_err"; then
5347 eval "$as_ac_Header=yes"
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 eval "$as_ac_Header=no"
5354 rm -f conftest.err conftest.$ac_ext
5356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 _ACEOF
5365 done
5367 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5369 if test "${ac_cv_header_stdc+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 cat >conftest.$ac_ext <<_ACEOF
5373 #line $LINENO "configure"
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <stdlib.h>
5380 #include <stdarg.h>
5381 #include <string.h>
5382 #include <float.h>
5385 main ()
5389 return 0;
5391 _ACEOF
5392 rm -f conftest.$ac_objext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394 (eval $ac_compile) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_header_stdc=yes
5405 else
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 ac_cv_header_stdc=no
5411 rm -f conftest.$ac_objext conftest.$ac_ext
5413 if test $ac_cv_header_stdc = yes; then
5414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5415 cat >conftest.$ac_ext <<_ACEOF
5416 #line $LINENO "configure"
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <string.h>
5424 _ACEOF
5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "memchr" >/dev/null 2>&1; then
5428 else
5429 ac_cv_header_stdc=no
5431 rm -f conftest*
5435 if test $ac_cv_header_stdc = yes; then
5436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <stdlib.h>
5446 _ACEOF
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 $EGREP "free" >/dev/null 2>&1; then
5450 else
5451 ac_cv_header_stdc=no
5453 rm -f conftest*
5457 if test $ac_cv_header_stdc = yes; then
5458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5459 if test "$cross_compiling" = yes; then
5461 else
5462 cat >conftest.$ac_ext <<_ACEOF
5463 #line $LINENO "configure"
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #include <ctype.h>
5470 #if ((' ' & 0x0FF) == 0x020)
5471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5473 #else
5474 # define ISLOWER(c) \
5475 (('a' <= (c) && (c) <= 'i') \
5476 || ('j' <= (c) && (c) <= 'r') \
5477 || ('s' <= (c) && (c) <= 'z'))
5478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5479 #endif
5481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5483 main ()
5485 int i;
5486 for (i = 0; i < 256; i++)
5487 if (XOR (islower (i), ISLOWER (i))
5488 || toupper (i) != TOUPPER (i))
5489 exit(2);
5490 exit (0);
5492 _ACEOF
5493 rm -f conftest$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 (eval $ac_try) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5505 else
5506 echo "$as_me: program exited with status $ac_status" >&5
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ( exit $ac_status )
5511 ac_cv_header_stdc=no
5513 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5517 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5518 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5519 if test $ac_cv_header_stdc = yes; then
5521 cat >>confdefs.h <<\_ACEOF
5522 #define STDC_HEADERS 1
5523 _ACEOF
5527 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5528 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5529 if test "${ac_cv_header_time+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 cat >conftest.$ac_ext <<_ACEOF
5533 #line $LINENO "configure"
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <sys/types.h>
5540 #include <sys/time.h>
5541 #include <time.h>
5544 main ()
5546 if ((struct tm *) 0)
5547 return 0;
5549 return 0;
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554 (eval $ac_compile) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try='test -s conftest.$ac_objext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 (eval $ac_try) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 ac_cv_header_time=yes
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5569 ac_cv_header_time=no
5571 rm -f conftest.$ac_objext conftest.$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5574 echo "${ECHO_T}$ac_cv_header_time" >&6
5575 if test $ac_cv_header_time = yes; then
5577 cat >>confdefs.h <<\_ACEOF
5578 #define TIME_WITH_SYS_TIME 1
5579 _ACEOF
5583 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5584 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5585 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588 cat >conftest.$ac_ext <<_ACEOF
5589 #line $LINENO "configure"
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 $ac_includes_default
5597 main ()
5599 #ifndef sys_siglist
5600 char *p = (char *) sys_siglist;
5601 #endif
5604 return 0;
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_have_decl_sys_siglist=yes
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_cv_have_decl_sys_siglist=no
5626 rm -f conftest.$ac_objext conftest.$ac_ext
5628 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5629 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5630 if test $ac_cv_have_decl_sys_siglist = yes; then
5632 cat >>confdefs.h <<_ACEOF
5633 #define HAVE_DECL_SYS_SIGLIST 1
5634 _ACEOF
5637 else
5638 cat >>confdefs.h <<_ACEOF
5639 #define HAVE_DECL_SYS_SIGLIST 0
5640 _ACEOF
5646 if test $ac_cv_have_decl_sys_siglist != yes; then
5647 # For Tru64, at least:
5648 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5649 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5650 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5662 main ()
5664 #ifndef __sys_siglist
5665 char *p = (char *) __sys_siglist;
5666 #endif
5669 return 0;
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_have_decl___sys_siglist=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_cv_have_decl___sys_siglist=no
5691 rm -f conftest.$ac_objext conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5694 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5695 if test $ac_cv_have_decl___sys_siglist = yes; then
5697 cat >>confdefs.h <<_ACEOF
5698 #define HAVE_DECL___SYS_SIGLIST 1
5699 _ACEOF
5702 else
5703 cat >>confdefs.h <<_ACEOF
5704 #define HAVE_DECL___SYS_SIGLIST 0
5705 _ACEOF
5711 if test $ac_cv_have_decl___sys_siglist = yes; then
5713 cat >>confdefs.h <<\_ACEOF
5714 #define sys_siglist __sys_siglist
5715 _ACEOF
5719 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5720 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5721 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 #include <sys/wait.h>
5733 #ifndef WEXITSTATUS
5734 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5735 #endif
5736 #ifndef WIFEXITED
5737 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5738 #endif
5741 main ()
5743 int s;
5744 wait (&s);
5745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5747 return 0;
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try='test -s conftest.$ac_objext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_cv_header_sys_wait_h=yes
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_cv_header_sys_wait_h=no
5769 rm -f conftest.$ac_objext conftest.$ac_ext
5771 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5772 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5773 if test $ac_cv_header_sys_wait_h = yes; then
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_SYS_WAIT_H 1
5777 _ACEOF
5782 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5783 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5784 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5789 /* confdefs.h. */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 #ifdef TIME_WITH_SYS_TIME
5795 #include <sys/time.h>
5796 #include <time.h>
5797 #else
5798 #ifdef HAVE_SYS_TIME_H
5799 #include <sys/time.h>
5800 #else
5801 #include <time.h>
5802 #endif
5803 #endif
5804 #ifdef HAVE_UTIME_H
5805 #include <utime.h>
5806 #endif
5808 main ()
5810 static struct utimbuf x; x.actime = x.modtime;
5812 return 0;
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -s conftest.$ac_objext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 emacs_cv_struct_utimbuf=yes
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 emacs_cv_struct_utimbuf=no
5834 rm -f conftest.$ac_objext conftest.$ac_ext
5836 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5837 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5838 if test $emacs_cv_struct_utimbuf = yes; then
5840 cat >>confdefs.h <<\_ACEOF
5841 #define HAVE_STRUCT_UTIMBUF 1
5842 _ACEOF
5846 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5847 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5848 if test "${ac_cv_type_signal+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 cat >conftest.$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 #include <sys/types.h>
5859 #include <signal.h>
5860 #ifdef signal
5861 # undef signal
5862 #endif
5863 #ifdef __cplusplus
5864 extern "C" void (*signal (int, void (*)(int)))(int);
5865 #else
5866 void (*signal ()) ();
5867 #endif
5870 main ()
5872 int i;
5874 return 0;
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_cv_type_signal=void
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 ac_cv_type_signal=int
5896 rm -f conftest.$ac_objext conftest.$ac_ext
5898 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5899 echo "${ECHO_T}$ac_cv_type_signal" >&6
5901 cat >>confdefs.h <<_ACEOF
5902 #define RETSIGTYPE $ac_cv_type_signal
5903 _ACEOF
5907 echo "$as_me:$LINENO: checking for speed_t" >&5
5908 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5909 if test "${emacs_cv_speed_t+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 #line $LINENO "configure"
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #include <termios.h>
5921 main ()
5923 speed_t x = 1;
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 emacs_cv_speed_t=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 emacs_cv_speed_t=no
5947 rm -f conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5950 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5951 if test $emacs_cv_speed_t = yes; then
5953 cat >>confdefs.h <<\_ACEOF
5954 #define HAVE_SPEED_T 1
5955 _ACEOF
5959 echo "$as_me:$LINENO: checking for struct timeval" >&5
5960 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5961 if test "${emacs_cv_struct_timeval+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 #ifdef TIME_WITH_SYS_TIME
5972 #include <sys/time.h>
5973 #include <time.h>
5974 #else
5975 #ifdef HAVE_SYS_TIME_H
5976 #include <sys/time.h>
5977 #else
5978 #include <time.h>
5979 #endif
5980 #endif
5982 main ()
5984 static struct timeval x; x.tv_sec = x.tv_usec;
5986 return 0;
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 emacs_cv_struct_timeval=yes
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 emacs_cv_struct_timeval=no
6008 rm -f conftest.$ac_objext conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6011 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6012 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6013 if test $emacs_cv_struct_timeval = yes; then
6015 cat >>confdefs.h <<\_ACEOF
6016 #define HAVE_TIMEVAL 1
6017 _ACEOF
6021 echo "$as_me:$LINENO: checking for struct exception" >&5
6022 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6023 if test "${emacs_cv_struct_exception+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line $LINENO "configure"
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <math.h>
6035 main ()
6037 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6039 return 0;
6041 _ACEOF
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 emacs_cv_struct_exception=yes
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 emacs_cv_struct_exception=no
6061 rm -f conftest.$ac_objext conftest.$ac_ext
6063 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6064 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6065 HAVE_EXCEPTION=$emacs_cv_struct_exception
6066 if test $emacs_cv_struct_exception != yes; then
6068 cat >>confdefs.h <<\_ACEOF
6069 #define NO_MATHERR 1
6070 _ACEOF
6075 for ac_header in sys/socket.h
6077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086 else
6087 # Is the header compilable?
6088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 $ac_includes_default
6098 #include <$ac_header>
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_header_compiler=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_header_compiler=no
6119 rm -f conftest.$ac_objext conftest.$ac_ext
6120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6121 echo "${ECHO_T}$ac_header_compiler" >&6
6123 # Is the header present?
6124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <$ac_header>
6134 _ACEOF
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_c_preproc_warn_flag
6145 else
6146 ac_cpp_err=
6148 else
6149 ac_cpp_err=yes
6151 if test -z "$ac_cpp_err"; then
6152 ac_header_preproc=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 ac_header_preproc=no
6159 rm -f conftest.err conftest.$ac_ext
6160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6161 echo "${ECHO_T}$ac_header_preproc" >&6
6163 # So? What about this header?
6164 case $ac_header_compiler:$ac_header_preproc in
6165 yes:no )
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6171 cat <<\_ASBOX
6172 ## ------------------------------------ ##
6173 ## Report this to bug-autoconf@gnu.org. ##
6174 ## ------------------------------------ ##
6175 _ASBOX
6177 sed "s/^/$as_me: WARNING: /" >&2
6179 no:yes )
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6187 cat <<\_ASBOX
6188 ## ------------------------------------ ##
6189 ## Report this to bug-autoconf@gnu.org. ##
6190 ## ------------------------------------ ##
6191 _ASBOX
6193 sed "s/^/$as_me: WARNING: /" >&2
6195 esac
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 eval "$as_ac_Header=$ac_header_preproc"
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6208 cat >>confdefs.h <<_ACEOF
6209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6210 _ACEOF
6214 done
6217 for ac_header in net/if.h
6219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6220 echo "$as_me:$LINENO: checking for $ac_header" >&5
6221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 cat >conftest.$ac_ext <<_ACEOF
6226 #line $LINENO "configure"
6227 /* confdefs.h. */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233 #if HAVE_SYS_SOCKET_H
6234 #include <sys/socket.h>
6235 #endif
6237 #include <$ac_header>
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 eval "$as_ac_Header=yes"
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 eval "$as_ac_Header=no"
6258 rm -f conftest.$ac_objext conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h <<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 _ACEOF
6269 done
6272 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6273 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6274 if test "${ac_cv_struct_tm+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 cat >conftest.$ac_ext <<_ACEOF
6278 #line $LINENO "configure"
6279 /* confdefs.h. */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 #include <sys/types.h>
6285 #include <time.h>
6288 main ()
6290 struct tm *tp; tp->tm_sec;
6292 return 0;
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_struct_tm=time.h
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_cv_struct_tm=sys/time.h
6314 rm -f conftest.$ac_objext conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6317 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6318 if test $ac_cv_struct_tm = sys/time.h; then
6320 cat >>confdefs.h <<\_ACEOF
6321 #define TM_IN_SYS_TIME 1
6322 _ACEOF
6326 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6327 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6328 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 #line $LINENO "configure"
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 #include <sys/types.h>
6339 #include <$ac_cv_struct_tm>
6343 main ()
6345 static struct tm ac_aggr;
6346 if (ac_aggr.tm_zone)
6347 return 0;
6349 return 0;
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_member_struct_tm_tm_zone=yes
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 #include <sys/types.h>
6377 #include <$ac_cv_struct_tm>
6381 main ()
6383 static struct tm ac_aggr;
6384 if (sizeof ac_aggr.tm_zone)
6385 return 0;
6387 return 0;
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -s conftest.$ac_objext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_member_struct_tm_tm_zone=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6407 ac_cv_member_struct_tm_tm_zone=no
6409 rm -f conftest.$ac_objext conftest.$ac_ext
6411 rm -f conftest.$ac_objext conftest.$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6414 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6415 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6417 cat >>confdefs.h <<_ACEOF
6418 #define HAVE_STRUCT_TM_TM_ZONE 1
6419 _ACEOF
6424 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6426 cat >>confdefs.h <<\_ACEOF
6427 #define HAVE_TM_ZONE 1
6428 _ACEOF
6430 else
6431 echo "$as_me:$LINENO: checking for tzname" >&5
6432 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6433 if test "${ac_cv_var_tzname+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <time.h>
6444 #ifndef tzname /* For SGI. */
6445 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6446 #endif
6449 main ()
6451 atoi(*tzname);
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458 (eval $ac_link) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest$ac_exeext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_cv_var_tzname=yes
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_cv_var_tzname=no
6475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6477 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6478 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6479 if test $ac_cv_var_tzname = yes; then
6481 cat >>confdefs.h <<\_ACEOF
6482 #define HAVE_TZNAME 1
6483 _ACEOF
6488 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6489 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6490 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 cat >conftest.$ac_ext <<_ACEOF
6494 #line $LINENO "configure"
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <time.h>
6503 main ()
6505 static struct tm ac_aggr;
6506 if (ac_aggr.tm_gmtoff)
6507 return 0;
6509 return 0;
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_member_struct_tm_tm_gmtoff=yes
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 cat >conftest.$ac_ext <<_ACEOF
6530 #line $LINENO "configure"
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <time.h>
6539 main ()
6541 static struct tm ac_aggr;
6542 if (sizeof ac_aggr.tm_gmtoff)
6543 return 0;
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_member_struct_tm_tm_gmtoff=yes
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 ac_cv_member_struct_tm_tm_gmtoff=no
6567 rm -f conftest.$ac_objext conftest.$ac_ext
6569 rm -f conftest.$ac_objext conftest.$ac_ext
6571 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6572 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6573 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6575 cat >>confdefs.h <<\_ACEOF
6576 #define HAVE_TM_GMTOFF 1
6577 _ACEOF
6581 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6582 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6583 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 cat >conftest.$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6594 #if HAVE_SYS_SOCKET_H
6595 #include <sys/socket.h>
6596 #endif
6597 #if HAVE_NET_IF_H
6598 #include <net/if.h>
6599 #endif
6602 main ()
6604 static struct ifreq ac_aggr;
6605 if (ac_aggr.ifr_flags)
6606 return 0;
6608 return 0;
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_member_struct_ifreq_ifr_flags=yes
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 cat >conftest.$ac_ext <<_ACEOF
6629 #line $LINENO "configure"
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 #if HAVE_SYS_SOCKET_H
6637 #include <sys/socket.h>
6638 #endif
6639 #if HAVE_NET_IF_H
6640 #include <net/if.h>
6641 #endif
6644 main ()
6646 static struct ifreq ac_aggr;
6647 if (sizeof ac_aggr.ifr_flags)
6648 return 0;
6650 return 0;
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_member_struct_ifreq_ifr_flags=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_cv_member_struct_ifreq_ifr_flags=no
6672 rm -f conftest.$ac_objext conftest.$ac_ext
6674 rm -f conftest.$ac_objext conftest.$ac_ext
6676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6677 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6678 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6680 cat >>confdefs.h <<_ACEOF
6681 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6682 _ACEOF
6686 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6687 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6688 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691 cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6699 #if HAVE_SYS_SOCKET_H
6700 #include <sys/socket.h>
6701 #endif
6702 #if HAVE_NET_IF_H
6703 #include <net/if.h>
6704 #endif
6707 main ()
6709 static struct ifreq ac_aggr;
6710 if (ac_aggr.ifr_hwaddr)
6711 return 0;
6713 return 0;
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 (eval $ac_try) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 cat >conftest.$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 $ac_includes_default
6741 #if HAVE_SYS_SOCKET_H
6742 #include <sys/socket.h>
6743 #endif
6744 #if HAVE_NET_IF_H
6745 #include <net/if.h>
6746 #endif
6749 main ()
6751 static struct ifreq ac_aggr;
6752 if (sizeof ac_aggr.ifr_hwaddr)
6753 return 0;
6755 return 0;
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_cv_member_struct_ifreq_ifr_hwaddr=no
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6779 rm -f conftest.$ac_objext conftest.$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6782 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6783 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6785 cat >>confdefs.h <<_ACEOF
6786 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6787 _ACEOF
6791 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6792 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6793 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796 cat >conftest.$ac_ext <<_ACEOF
6797 #line $LINENO "configure"
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6804 #if HAVE_SYS_SOCKET_H
6805 #include <sys/socket.h>
6806 #endif
6807 #if HAVE_NET_IF_H
6808 #include <net/if.h>
6809 #endif
6812 main ()
6814 static struct ifreq ac_aggr;
6815 if (ac_aggr.ifr_netmask)
6816 return 0;
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_member_struct_ifreq_ifr_netmask=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 #if HAVE_SYS_SOCKET_H
6847 #include <sys/socket.h>
6848 #endif
6849 #if HAVE_NET_IF_H
6850 #include <net/if.h>
6851 #endif
6854 main ()
6856 static struct ifreq ac_aggr;
6857 if (sizeof ac_aggr.ifr_netmask)
6858 return 0;
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_member_struct_ifreq_ifr_netmask=yes
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 ac_cv_member_struct_ifreq_ifr_netmask=no
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6886 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6887 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6888 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6890 cat >>confdefs.h <<_ACEOF
6891 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6892 _ACEOF
6896 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6897 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6898 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 cat >conftest.$ac_ext <<_ACEOF
6902 #line $LINENO "configure"
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6909 #if HAVE_SYS_SOCKET_H
6910 #include <sys/socket.h>
6911 #endif
6912 #if HAVE_NET_IF_H
6913 #include <net/if.h>
6914 #endif
6917 main ()
6919 static struct ifreq ac_aggr;
6920 if (ac_aggr.ifr_broadaddr)
6921 return 0;
6923 return 0;
6925 _ACEOF
6926 rm -f conftest.$ac_objext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6939 else
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951 #if HAVE_SYS_SOCKET_H
6952 #include <sys/socket.h>
6953 #endif
6954 #if HAVE_NET_IF_H
6955 #include <net/if.h>
6956 #endif
6959 main ()
6961 static struct ifreq ac_aggr;
6962 if (sizeof ac_aggr.ifr_broadaddr)
6963 return 0;
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_cv_member_struct_ifreq_ifr_broadaddr=no
6987 rm -f conftest.$ac_objext conftest.$ac_ext
6989 rm -f conftest.$ac_objext conftest.$ac_ext
6991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6992 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6993 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6995 cat >>confdefs.h <<_ACEOF
6996 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6997 _ACEOF
7001 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7002 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7003 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7014 #if HAVE_SYS_SOCKET_H
7015 #include <sys/socket.h>
7016 #endif
7017 #if HAVE_NET_IF_H
7018 #include <net/if.h>
7019 #endif
7022 main ()
7024 static struct ifreq ac_aggr;
7025 if (ac_aggr.ifr_addr)
7026 return 0;
7028 return 0;
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7033 (eval $ac_compile) 2>&5
7034 ac_status=$?
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_member_struct_ifreq_ifr_addr=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 cat >conftest.$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 #if HAVE_SYS_SOCKET_H
7057 #include <sys/socket.h>
7058 #endif
7059 #if HAVE_NET_IF_H
7060 #include <net/if.h>
7061 #endif
7064 main ()
7066 static struct ifreq ac_aggr;
7067 if (sizeof ac_aggr.ifr_addr)
7068 return 0;
7070 return 0;
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_member_struct_ifreq_ifr_addr=yes
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_member_struct_ifreq_ifr_addr=no
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7094 rm -f conftest.$ac_objext conftest.$ac_ext
7096 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7097 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7098 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7100 cat >>confdefs.h <<_ACEOF
7101 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7102 _ACEOF
7109 echo "$as_me:$LINENO: checking for function prototypes" >&5
7110 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7111 if test "$ac_cv_prog_cc_stdc" != no; then
7112 echo "$as_me:$LINENO: result: yes" >&5
7113 echo "${ECHO_T}yes" >&6
7115 cat >>confdefs.h <<\_ACEOF
7116 #define PROTOTYPES 1
7117 _ACEOF
7120 cat >>confdefs.h <<\_ACEOF
7121 #define __PROTOTYPES 1
7122 _ACEOF
7124 else
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7129 echo "$as_me:$LINENO: checking for working volatile" >&5
7130 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7131 if test "${ac_cv_c_volatile+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 cat >conftest.$ac_ext <<_ACEOF
7135 #line $LINENO "configure"
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7143 main ()
7146 volatile int x;
7147 int * volatile y;
7149 return 0;
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>&5
7155 ac_status=$?
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 ac_cv_c_volatile=yes
7165 else
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 ac_cv_c_volatile=no
7171 rm -f conftest.$ac_objext conftest.$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7174 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7175 if test $ac_cv_c_volatile = no; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define volatile
7179 _ACEOF
7183 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7184 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7185 if test "${ac_cv_c_const+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 cat >conftest.$ac_ext <<_ACEOF
7189 #line $LINENO "configure"
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7197 main ()
7199 /* FIXME: Include the comments suggested by Paul. */
7200 #ifndef __cplusplus
7201 /* Ultrix mips cc rejects this. */
7202 typedef int charset[2];
7203 const charset x;
7204 /* SunOS 4.1.1 cc rejects this. */
7205 char const *const *ccp;
7206 char **p;
7207 /* NEC SVR4.0.2 mips cc rejects this. */
7208 struct point {int x, y;};
7209 static struct point const zero = {0,0};
7210 /* AIX XL C 1.02.0.0 rejects this.
7211 It does not let you subtract one const X* pointer from another in
7212 an arm of an if-expression whose if-part is not a constant
7213 expression */
7214 const char *g = "string";
7215 ccp = &g + (g ? g-g : 0);
7216 /* HPUX 7.0 cc rejects these. */
7217 ++ccp;
7218 p = (char**) ccp;
7219 ccp = (char const *const *) p;
7220 { /* SCO 3.2v4 cc rejects this. */
7221 char *t;
7222 char const *s = 0 ? (char *) 0 : (char const *) 0;
7224 *t++ = 0;
7226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7227 int x[] = {25, 17};
7228 const int *foo = &x[0];
7229 ++foo;
7231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7232 typedef const int *iptr;
7233 iptr p = 0;
7234 ++p;
7236 { /* AIX XL C 1.02.0.0 rejects this saying
7237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7238 struct s { int j; const int *ap[3]; };
7239 struct s *b; b->j = 5;
7241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7242 const int foo = 10;
7244 #endif
7247 return 0;
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 ac_cv_c_const=yes
7263 else
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 ac_cv_c_const=no
7269 rm -f conftest.$ac_objext conftest.$ac_ext
7271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7272 echo "${ECHO_T}$ac_cv_c_const" >&6
7273 if test $ac_cv_c_const = no; then
7275 cat >>confdefs.h <<\_ACEOF
7276 #define const
7277 _ACEOF
7281 echo "$as_me:$LINENO: checking for void * support" >&5
7282 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7283 if test "${emacs_cv_void_star+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7288 /* confdefs.h. */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7295 main ()
7297 void * foo;
7299 return 0;
7301 _ACEOF
7302 rm -f conftest.$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
7308 { ac_try='test -s conftest.$ac_objext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 emacs_cv_void_star=yes
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 emacs_cv_void_star=no
7321 rm -f conftest.$ac_objext conftest.$ac_ext
7323 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7324 echo "${ECHO_T}$emacs_cv_void_star" >&6
7325 if test $emacs_cv_void_star = yes; then
7326 cat >>confdefs.h <<\_ACEOF
7327 #define POINTER_TYPE void
7328 _ACEOF
7330 else
7331 cat >>confdefs.h <<\_ACEOF
7332 #define POINTER_TYPE char
7333 _ACEOF
7341 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7342 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7343 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
7344 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347 cat >conftest.make <<\_ACEOF
7348 all:
7349 @echo 'ac_maketemp="$(MAKE)"'
7350 _ACEOF
7351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7352 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7353 if test -n "$ac_maketemp"; then
7354 eval ac_cv_prog_make_${ac_make}_set=yes
7355 else
7356 eval ac_cv_prog_make_${ac_make}_set=no
7358 rm -f conftest.make
7360 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7361 echo "$as_me:$LINENO: result: yes" >&5
7362 echo "${ECHO_T}yes" >&6
7363 SET_MAKE=
7364 else
7365 echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7367 SET_MAKE="MAKE=${MAKE-make}"
7371 echo "$as_me:$LINENO: checking for long file names" >&5
7372 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7373 if test "${ac_cv_sys_long_file_names+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 ac_cv_sys_long_file_names=yes
7377 # Test for long file names in all the places we know might matter:
7378 # . the current directory, where building will happen
7379 # $prefix/lib where we will be installing things
7380 # $exec_prefix/lib likewise
7381 # eval it to expand exec_prefix.
7382 # $TMPDIR if set, where it might want to write temporary files
7383 # if $TMPDIR is not set:
7384 # /tmp where it might want to write temporary files
7385 # /var/tmp likewise
7386 # /usr/tmp likewise
7387 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7388 ac_tmpdirs=$TMPDIR
7389 else
7390 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7392 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7393 test -d $ac_dir || continue
7394 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7395 ac_xdir=$ac_dir/cf$$
7396 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7397 ac_tf1=$ac_xdir/conftest9012345
7398 ac_tf2=$ac_xdir/conftest9012346
7399 (echo 1 >$ac_tf1) 2>/dev/null
7400 (echo 2 >$ac_tf2) 2>/dev/null
7401 ac_val=`cat $ac_tf1 2>/dev/null`
7402 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7403 ac_cv_sys_long_file_names=no
7404 rm -rf $ac_xdir 2>/dev/null
7405 break
7407 rm -rf $ac_xdir 2>/dev/null
7408 done
7410 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7411 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7412 if test $ac_cv_sys_long_file_names = yes; then
7414 cat >>confdefs.h <<\_ACEOF
7415 #define HAVE_LONG_FILE_NAMES 1
7416 _ACEOF
7421 #### Choose a window system.
7423 echo "$as_me:$LINENO: checking for X" >&5
7424 echo $ECHO_N "checking for X... $ECHO_C" >&6
7427 # Check whether --with-x or --without-x was given.
7428 if test "${with_x+set}" = set; then
7429 withval="$with_x"
7432 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7433 if test "x$with_x" = xno; then
7434 # The user explicitly disabled X.
7435 have_x=disabled
7436 else
7437 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7438 # Both variables are already set.
7439 have_x=yes
7440 else
7441 if test "${ac_cv_have_x+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 # One or both of the vars are not set, and there is no cached value.
7445 ac_x_includes=no ac_x_libraries=no
7446 rm -fr conftest.dir
7447 if mkdir conftest.dir; then
7448 cd conftest.dir
7449 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7450 cat >Imakefile <<'_ACEOF'
7451 acfindx:
7452 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7453 _ACEOF
7454 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7455 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7456 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7457 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7458 for ac_extension in a so sl; do
7459 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7460 test -f $ac_im_libdir/libX11.$ac_extension; then
7461 ac_im_usrlibdir=$ac_im_libdir; break
7463 done
7464 # Screen out bogus values from the imake configuration. They are
7465 # bogus both because they are the default anyway, and because
7466 # using them would break gcc on systems where it needs fixed includes.
7467 case $ac_im_incroot in
7468 /usr/include) ;;
7469 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7470 esac
7471 case $ac_im_usrlibdir in
7472 /usr/lib | /lib) ;;
7473 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7474 esac
7476 cd ..
7477 rm -fr conftest.dir
7480 # Standard set of common directories for X headers.
7481 # Check X11 before X11Rn because it is often a symlink to the current release.
7482 ac_x_header_dirs='
7483 /usr/X11/include
7484 /usr/X11R6/include
7485 /usr/X11R5/include
7486 /usr/X11R4/include
7488 /usr/include/X11
7489 /usr/include/X11R6
7490 /usr/include/X11R5
7491 /usr/include/X11R4
7493 /usr/local/X11/include
7494 /usr/local/X11R6/include
7495 /usr/local/X11R5/include
7496 /usr/local/X11R4/include
7498 /usr/local/include/X11
7499 /usr/local/include/X11R6
7500 /usr/local/include/X11R5
7501 /usr/local/include/X11R4
7503 /usr/X386/include
7504 /usr/x386/include
7505 /usr/XFree86/include/X11
7507 /usr/include
7508 /usr/local/include
7509 /usr/unsupported/include
7510 /usr/athena/include
7511 /usr/local/x11r5/include
7512 /usr/lpp/Xamples/include
7514 /usr/openwin/include
7515 /usr/openwin/share/include'
7517 if test "$ac_x_includes" = no; then
7518 # Guess where to find include files, by looking for Intrinsic.h.
7519 # First, try using that file with no special directory specified.
7520 cat >conftest.$ac_ext <<_ACEOF
7521 #line $LINENO "configure"
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <X11/Intrinsic.h>
7528 _ACEOF
7529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } >/dev/null; then
7537 if test -s conftest.err; then
7538 ac_cpp_err=$ac_c_preproc_warn_flag
7539 else
7540 ac_cpp_err=
7542 else
7543 ac_cpp_err=yes
7545 if test -z "$ac_cpp_err"; then
7546 # We can compile using X headers with no special include directory.
7547 ac_x_includes=
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 for ac_dir in $ac_x_header_dirs; do
7553 if test -r "$ac_dir/X11/Intrinsic.h"; then
7554 ac_x_includes=$ac_dir
7555 break
7557 done
7559 rm -f conftest.err conftest.$ac_ext
7560 fi # $ac_x_includes = no
7562 if test "$ac_x_libraries" = no; then
7563 # Check for the libraries.
7564 # See if we find them without any special options.
7565 # Don't add to $LIBS permanently.
7566 ac_save_LIBS=$LIBS
7567 LIBS="-lXt $LIBS"
7568 cat >conftest.$ac_ext <<_ACEOF
7569 #line $LINENO "configure"
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 #include <X11/Intrinsic.h>
7577 main ()
7579 XtMalloc (0)
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -s conftest$ac_exeext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 LIBS=$ac_save_LIBS
7597 # We can link X programs with no special library path.
7598 ac_x_libraries=
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 LIBS=$ac_save_LIBS
7604 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7606 # Don't even attempt the hair of trying to link an X program!
7607 for ac_extension in a so sl; do
7608 if test -r $ac_dir/libXt.$ac_extension; then
7609 ac_x_libraries=$ac_dir
7610 break 2
7612 done
7613 done
7615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7616 fi # $ac_x_libraries = no
7618 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7619 # Didn't find X anywhere. Cache the known absence of X.
7620 ac_cv_have_x="have_x=no"
7621 else
7622 # Record where we found X for the cache.
7623 ac_cv_have_x="have_x=yes \
7624 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7629 eval "$ac_cv_have_x"
7630 fi # $with_x != no
7632 if test "$have_x" != yes; then
7633 echo "$as_me:$LINENO: result: $have_x" >&5
7634 echo "${ECHO_T}$have_x" >&6
7635 no_x=yes
7636 else
7637 # If each of the values was on the command line, it overrides each guess.
7638 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7639 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7640 # Update the cache value to reflect the command line values.
7641 ac_cv_have_x="have_x=yes \
7642 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7643 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7644 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7647 if test "$no_x" = yes; then
7648 window_system=none
7649 else
7650 window_system=x11
7653 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7654 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7655 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7656 x_default_search_path=""
7657 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7658 x_search_path="\
7659 ${x_library}/X11/%L/%T/%N%C%S:\
7660 ${x_library}/X11/%l/%T/%N%C%S:\
7661 ${x_library}/X11/%T/%N%C%S:\
7662 ${x_library}/X11/%L/%T/%N%S:\
7663 ${x_library}/X11/%l/%T/%N%S:\
7664 ${x_library}/X11/%T/%N%S"
7665 if test x"${x_default_search_path}" = x; then
7666 x_default_search_path=${x_search_path}
7667 else
7668 x_default_search_path="${x_search_path}:${x_default_search_path}"
7670 done
7672 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7673 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7676 if test x"${x_includes}" = x; then
7677 bitmapdir=/usr/include/X11/bitmaps
7678 else
7679 # accumulate include directories that have X11 bitmap subdirectories
7680 bmd_acc="dummyval"
7681 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7682 if test -d "${bmd}/X11/bitmaps"; then
7683 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7685 if test -d "${bmd}/bitmaps"; then
7686 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7688 done
7689 if test ${bmd_acc} != "dummyval"; then
7690 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7694 case "${window_system}" in
7695 x11 )
7696 HAVE_X_WINDOWS=yes
7697 HAVE_X11=yes
7698 case "${with_x_toolkit}" in
7699 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7700 motif ) USE_X_TOOLKIT=MOTIF ;;
7701 gtk ) with_gtk=yes
7702 USE_X_TOOLKIT=none ;;
7703 no ) USE_X_TOOLKIT=none ;;
7704 * ) USE_X_TOOLKIT=maybe ;;
7705 esac
7707 none )
7708 HAVE_X_WINDOWS=no
7709 HAVE_X11=no
7710 USE_X_TOOLKIT=none
7712 esac
7714 ### If we're using X11, we should use the X menu package.
7715 HAVE_MENUS=no
7716 case ${HAVE_X11} in
7717 yes ) HAVE_MENUS=yes ;;
7718 esac
7720 if test "${opsys}" = "hpux9"; then
7721 case "${x_libraries}" in
7722 *X11R4* )
7723 opsysfile="s/hpux9-x11r4.h"
7725 esac
7728 if test "${opsys}" = "hpux9shr"; then
7729 case "${x_libraries}" in
7730 *X11R4* )
7731 opsysfile="s/hpux9shxr4.h"
7733 esac
7736 HAVE_CARBON=no
7737 if test "${HAVE_X11}" != "yes"; then
7738 if test "${with_carbon}" != "no"; then
7739 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7740 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7741 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7742 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7746 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7747 else
7748 # Is the header compilable?
7749 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
7750 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759 #include <Carbon/Carbon.h>
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_header_compiler=yes
7774 else
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_compiler=no
7780 rm -f conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782 echo "${ECHO_T}$ac_header_compiler" >&6
7784 # Is the header present?
7785 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
7786 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
7787 cat >conftest.$ac_ext <<_ACEOF
7788 #line $LINENO "configure"
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <Carbon/Carbon.h>
7795 _ACEOF
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } >/dev/null; then
7804 if test -s conftest.err; then
7805 ac_cpp_err=$ac_c_preproc_warn_flag
7806 else
7807 ac_cpp_err=
7809 else
7810 ac_cpp_err=yes
7812 if test -z "$ac_cpp_err"; then
7813 ac_header_preproc=yes
7814 else
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 ac_header_preproc=no
7820 rm -f conftest.err conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822 echo "${ECHO_T}$ac_header_preproc" >&6
7824 # So? What about this header?
7825 case $ac_header_compiler:$ac_header_preproc in
7826 yes:no )
7827 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
7828 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7832 cat <<\_ASBOX
7833 ## ------------------------------------ ##
7834 ## Report this to bug-autoconf@gnu.org. ##
7835 ## ------------------------------------ ##
7836 _ASBOX
7838 sed "s/^/$as_me: WARNING: /" >&2
7840 no:yes )
7841 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7848 cat <<\_ASBOX
7849 ## ------------------------------------ ##
7850 ## Report this to bug-autoconf@gnu.org. ##
7851 ## ------------------------------------ ##
7852 _ASBOX
7854 sed "s/^/$as_me: WARNING: /" >&2
7856 esac
7857 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7858 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7859 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
7864 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7865 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7868 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7869 HAVE_CARBON=yes
7876 ### Compute the unexec source name from the object name.
7877 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
7879 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7880 # Assume not, until told otherwise.
7881 GNU_MALLOC=yes
7882 doug_lea_malloc=yes
7883 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7884 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7885 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 cat >conftest.$ac_ext <<_ACEOF
7889 #line $LINENO "configure"
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 /* System header to define __stub macros and hopefully few prototypes,
7896 which can conflict with char malloc_get_state (); below.
7897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898 <limits.h> exists even on freestanding compilers. */
7899 #ifdef __STDC__
7900 # include <limits.h>
7901 #else
7902 # include <assert.h>
7903 #endif
7904 /* Override any gcc2 internal prototype to avoid an error. */
7905 #ifdef __cplusplus
7906 extern "C"
7908 #endif
7909 /* We use char because int might match the return type of a gcc2
7910 builtin and then its argument prototype would still apply. */
7911 char malloc_get_state ();
7912 /* The GNU C library defines this for functions which it implements
7913 to always fail with ENOSYS. Some functions are actually named
7914 something starting with __ and the normal name is an alias. */
7915 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7916 choke me
7917 #else
7918 char (*f) () = malloc_get_state;
7919 #endif
7920 #ifdef __cplusplus
7922 #endif
7925 main ()
7927 return f != malloc_get_state;
7929 return 0;
7931 _ACEOF
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7934 (eval $ac_link) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_cv_func_malloc_get_state=yes
7945 else
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 ac_cv_func_malloc_get_state=no
7951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7954 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7955 if test $ac_cv_func_malloc_get_state = yes; then
7957 else
7958 doug_lea_malloc=no
7961 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7962 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7963 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 /* confdefs.h. */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 /* System header to define __stub macros and hopefully few prototypes,
7974 which can conflict with char malloc_set_state (); below.
7975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7976 <limits.h> exists even on freestanding compilers. */
7977 #ifdef __STDC__
7978 # include <limits.h>
7979 #else
7980 # include <assert.h>
7981 #endif
7982 /* Override any gcc2 internal prototype to avoid an error. */
7983 #ifdef __cplusplus
7984 extern "C"
7986 #endif
7987 /* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989 char malloc_set_state ();
7990 /* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7994 choke me
7995 #else
7996 char (*f) () = malloc_set_state;
7997 #endif
7998 #ifdef __cplusplus
8000 #endif
8003 main ()
8005 return f != malloc_set_state;
8007 return 0;
8009 _ACEOF
8010 rm -f conftest.$ac_objext conftest$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_func_malloc_set_state=yes
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_cv_func_malloc_set_state=no
8029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8032 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8033 if test $ac_cv_func_malloc_set_state = yes; then
8035 else
8036 doug_lea_malloc=no
8039 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8040 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8041 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 extern void (* __after_morecore_hook)();
8053 main ()
8055 __after_morecore_hook = 0
8057 return 0;
8059 _ACEOF
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 emacs_cv_var___after_morecore_hook=yes
8073 else
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 emacs_cv_var___after_morecore_hook=no
8079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8081 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8082 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8083 if test $emacs_cv_var___after_morecore_hook = no; then
8084 doug_lea_malloc=no
8086 if test "${system_malloc}" = "yes"; then
8087 GNU_MALLOC=no
8088 GNU_MALLOC_reason="
8089 (The GNU allocators don't work with this system configuration.)"
8091 if test "$doug_lea_malloc" = "yes" ; then
8092 if test "$GNU_MALLOC" = yes ; then
8093 GNU_MALLOC_reason="
8094 (Using Doug Lea's new malloc from the GNU C Library.)"
8097 cat >>confdefs.h <<\_ACEOF
8098 #define DOUG_LEA_MALLOC 1
8099 _ACEOF
8103 if test x"${REL_ALLOC}" = x; then
8104 REL_ALLOC=${GNU_MALLOC}
8110 for ac_header in stdlib.h unistd.h
8112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114 echo "$as_me:$LINENO: checking for $ac_header" >&5
8115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8121 else
8122 # Is the header compilable?
8123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8126 #line $LINENO "configure"
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 #include <$ac_header>
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_header_compiler=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_header_compiler=no
8154 rm -f conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <$ac_header>
8169 _ACEOF
8170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } >/dev/null; then
8178 if test -s conftest.err; then
8179 ac_cpp_err=$ac_c_preproc_warn_flag
8180 else
8181 ac_cpp_err=
8183 else
8184 ac_cpp_err=yes
8186 if test -z "$ac_cpp_err"; then
8187 ac_header_preproc=yes
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_header_preproc=no
8194 rm -f conftest.err conftest.$ac_ext
8195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8196 echo "${ECHO_T}$ac_header_preproc" >&6
8198 # So? What about this header?
8199 case $ac_header_compiler:$ac_header_preproc in
8200 yes:no )
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8206 cat <<\_ASBOX
8207 ## ------------------------------------ ##
8208 ## Report this to bug-autoconf@gnu.org. ##
8209 ## ------------------------------------ ##
8210 _ASBOX
8212 sed "s/^/$as_me: WARNING: /" >&2
8214 no:yes )
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8222 cat <<\_ASBOX
8223 ## ------------------------------------ ##
8224 ## Report this to bug-autoconf@gnu.org. ##
8225 ## ------------------------------------ ##
8226 _ASBOX
8228 sed "s/^/$as_me: WARNING: /" >&2
8230 esac
8231 echo "$as_me:$LINENO: checking for $ac_header" >&5
8232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236 eval "$as_ac_Header=$ac_header_preproc"
8238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8243 cat >>confdefs.h <<_ACEOF
8244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8245 _ACEOF
8249 done
8252 for ac_func in getpagesize
8254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8255 echo "$as_me:$LINENO: checking for $ac_func" >&5
8256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8257 if eval "test \"\${$as_ac_var+set}\" = set"; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char $ac_func (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8276 /* Override any gcc2 internal prototype to avoid an error. */
8277 #ifdef __cplusplus
8278 extern "C"
8280 #endif
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8283 char $ac_func ();
8284 /* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8288 choke me
8289 #else
8290 char (*f) () = $ac_func;
8291 #endif
8292 #ifdef __cplusplus
8294 #endif
8297 main ()
8299 return f != $ac_func;
8301 return 0;
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 (eval $ac_try) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 eval "$as_ac_var=yes"
8317 else
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 eval "$as_ac_var=no"
8323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8327 if test `eval echo '${'$as_ac_var'}'` = yes; then
8328 cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8330 _ACEOF
8333 done
8335 echo "$as_me:$LINENO: checking for working mmap" >&5
8336 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8337 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 if test "$cross_compiling" = yes; then
8341 ac_cv_func_mmap_fixed_mapped=no
8342 else
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 /* malloc might have been renamed as rpl_malloc. */
8352 #undef malloc
8354 /* Thanks to Mike Haertel and Jim Avera for this test.
8355 Here is a matrix of mmap possibilities:
8356 mmap private not fixed
8357 mmap private fixed at somewhere currently unmapped
8358 mmap private fixed at somewhere already mapped
8359 mmap shared not fixed
8360 mmap shared fixed at somewhere currently unmapped
8361 mmap shared fixed at somewhere already mapped
8362 For private mappings, we should verify that changes cannot be read()
8363 back from the file, nor mmap's back from the file at a different
8364 address. (There have been systems where private was not correctly
8365 implemented like the infamous i386 svr4.0, and systems where the
8366 VM page cache was not coherent with the file system buffer cache
8367 like early versions of FreeBSD and possibly contemporary NetBSD.)
8368 For shared mappings, we should conversely verify that changes get
8369 propagated back to all the places they're supposed to be.
8371 Grep wants private fixed already mapped.
8372 The main things grep needs to know about mmap are:
8373 * does it exist and is it safe to write into the mmap'd area
8374 * how to use it (BSD variants) */
8376 #include <fcntl.h>
8377 #include <sys/mman.h>
8379 #if !STDC_HEADERS && !HAVE_STDLIB_H
8380 char *malloc ();
8381 #endif
8383 /* This mess was copied from the GNU getpagesize.h. */
8384 #if !HAVE_GETPAGESIZE
8385 /* Assume that all systems that can run configure have sys/param.h. */
8386 # if !HAVE_SYS_PARAM_H
8387 # define HAVE_SYS_PARAM_H 1
8388 # endif
8390 # ifdef _SC_PAGESIZE
8391 # define getpagesize() sysconf(_SC_PAGESIZE)
8392 # else /* no _SC_PAGESIZE */
8393 # if HAVE_SYS_PARAM_H
8394 # include <sys/param.h>
8395 # ifdef EXEC_PAGESIZE
8396 # define getpagesize() EXEC_PAGESIZE
8397 # else /* no EXEC_PAGESIZE */
8398 # ifdef NBPG
8399 # define getpagesize() NBPG * CLSIZE
8400 # ifndef CLSIZE
8401 # define CLSIZE 1
8402 # endif /* no CLSIZE */
8403 # else /* no NBPG */
8404 # ifdef NBPC
8405 # define getpagesize() NBPC
8406 # else /* no NBPC */
8407 # ifdef PAGESIZE
8408 # define getpagesize() PAGESIZE
8409 # endif /* PAGESIZE */
8410 # endif /* no NBPC */
8411 # endif /* no NBPG */
8412 # endif /* no EXEC_PAGESIZE */
8413 # else /* no HAVE_SYS_PARAM_H */
8414 # define getpagesize() 8192 /* punt totally */
8415 # endif /* no HAVE_SYS_PARAM_H */
8416 # endif /* no _SC_PAGESIZE */
8418 #endif /* no HAVE_GETPAGESIZE */
8421 main ()
8423 char *data, *data2, *data3;
8424 int i, pagesize;
8425 int fd;
8427 pagesize = getpagesize ();
8429 /* First, make a file with some known garbage in it. */
8430 data = (char *) malloc (pagesize);
8431 if (!data)
8432 exit (1);
8433 for (i = 0; i < pagesize; ++i)
8434 *(data + i) = rand ();
8435 umask (0);
8436 fd = creat ("conftest.mmap", 0600);
8437 if (fd < 0)
8438 exit (1);
8439 if (write (fd, data, pagesize) != pagesize)
8440 exit (1);
8441 close (fd);
8443 /* Next, try to mmap the file at a fixed address which already has
8444 something else allocated at it. If we can, also make sure that
8445 we see the same garbage. */
8446 fd = open ("conftest.mmap", O_RDWR);
8447 if (fd < 0)
8448 exit (1);
8449 data2 = (char *) malloc (2 * pagesize);
8450 if (!data2)
8451 exit (1);
8452 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8453 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8454 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8455 exit (1);
8456 for (i = 0; i < pagesize; ++i)
8457 if (*(data + i) != *(data2 + i))
8458 exit (1);
8460 /* Finally, make sure that changes to the mapped area do not
8461 percolate back to the file as seen by read(). (This is a bug on
8462 some variants of i386 svr4.0.) */
8463 for (i = 0; i < pagesize; ++i)
8464 *(data2 + i) = *(data2 + i) + 1;
8465 data3 = (char *) malloc (pagesize);
8466 if (!data3)
8467 exit (1);
8468 if (read (fd, data3, pagesize) != pagesize)
8469 exit (1);
8470 for (i = 0; i < pagesize; ++i)
8471 if (*(data + i) != *(data3 + i))
8472 exit (1);
8473 close (fd);
8474 exit (0);
8476 _ACEOF
8477 rm -f conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_func_mmap_fixed_mapped=yes
8489 else
8490 echo "$as_me: program exited with status $ac_status" >&5
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ( exit $ac_status )
8495 ac_cv_func_mmap_fixed_mapped=no
8497 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8501 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8504 cat >>confdefs.h <<\_ACEOF
8505 #define HAVE_MMAP 1
8506 _ACEOF
8509 rm -f conftest.mmap
8511 if test $use_mmap_for_buffers = yes; then
8512 REL_ALLOC=no
8515 LIBS="$libsrc_libs $LIBS"
8518 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8519 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8520 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523 ac_check_lib_save_LIBS=$LIBS
8524 LIBS="-ldnet $LIBS"
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539 char dnet_ntoa ();
8541 main ()
8543 dnet_ntoa ();
8545 return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_dnet_dnet_ntoa=yes
8561 else
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_cv_lib_dnet_dnet_ntoa=no
8567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_lib_save_LIBS
8570 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8571 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8572 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8573 cat >>confdefs.h <<_ACEOF
8574 #define HAVE_LIBDNET 1
8575 _ACEOF
8577 LIBS="-ldnet $LIBS"
8582 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8583 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8584 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-lXbsd $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8599 main ()
8601 main ();
8603 return 0;
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_lib_Xbsd_main=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_lib_Xbsd_main=no
8625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8629 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8630 if test $ac_cv_lib_Xbsd_main = yes; then
8631 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8636 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8637 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8638 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-lpthreads $LIBS"
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8645 /* confdefs.h. */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8657 char cma_open ();
8659 main ()
8661 cma_open ();
8663 return 0;
8665 _ACEOF
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try='test -s conftest$ac_exeext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_cv_lib_pthreads_cma_open=yes
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_cv_lib_pthreads_cma_open=no
8685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8688 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8689 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8690 if test $ac_cv_lib_pthreads_cma_open = yes; then
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_LIBPTHREADS 1
8693 _ACEOF
8695 LIBS="-lpthreads $LIBS"
8700 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8701 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8702 if test -d /usr/X386/include; then
8703 HAVE_XFREE386=yes
8704 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8705 else
8706 HAVE_XFREE386=no
8708 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8709 echo "${ECHO_T}$HAVE_XFREE386" >&6
8712 case ${host_os} in
8713 aix*)
8714 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8715 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8716 if test "${gdb_cv_bigtoc+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8720 case $GCC in
8721 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8722 *) gdb_cv_bigtoc=-bbigtoc ;;
8723 esac
8725 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line $LINENO "configure"
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8735 main ()
8737 int i;
8739 return 0;
8741 _ACEOF
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8755 else
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 gdb_cv_bigtoc=
8761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8765 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8767 esac
8769 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8770 # used for the tests that follow. We set them back to REAL_CFLAGS and
8771 # REAL_CPPFLAGS later on.
8773 REAL_CPPFLAGS="$CPPFLAGS"
8775 if test "${HAVE_X11}" = "yes"; then
8776 DEFS="$C_SWITCH_X_SITE $DEFS"
8777 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8778 LIBS="$LIBX $LIBS"
8779 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8780 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8782 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8783 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8784 # but it's more convenient here to set LD_RUN_PATH
8785 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8786 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8787 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8788 export LD_RUN_PATH
8791 if test "${opsys}" = "gnu-linux"; then
8792 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8793 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8794 cat >conftest.$ac_ext <<_ACEOF
8795 #line $LINENO "configure"
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8803 main ()
8805 XOpenDisplay ("foo");
8807 return 0;
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 xlinux_first_failure=no
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 xlinux_first_failure=yes
8829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8830 if test "${xlinux_first_failure}" = "yes"; then
8831 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8832 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8833 OLD_CPPFLAGS="$CPPFLAGS"
8834 OLD_LIBS="$LIBS"
8835 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8836 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8837 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8838 LIBS="$LIBS -b i486-linuxaout"
8839 cat >conftest.$ac_ext <<_ACEOF
8840 #line $LINENO "configure"
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8848 main ()
8850 XOpenDisplay ("foo");
8852 return 0;
8854 _ACEOF
8855 rm -f conftest.$ac_objext conftest$ac_exeext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857 (eval $ac_link) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 xlinux_second_failure=no
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 xlinux_second_failure=yes
8874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8875 if test "${xlinux_second_failure}" = "yes"; then
8876 # If we get the same failure with -b, there is no use adding -b.
8877 # So take it out. This plays safe.
8878 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8879 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8880 CPPFLAGS="$OLD_CPPFLAGS"
8881 LIBS="$OLD_LIBS"
8882 echo "$as_me:$LINENO: result: no" >&5
8883 echo "${ECHO_T}no" >&6
8884 else
8885 echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6
8888 else
8889 echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8894 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8895 # header files included from there.
8896 echo "$as_me:$LINENO: checking for Xkb" >&5
8897 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 #include <X11/Xlib.h>
8906 #include <X11/XKBlib.h>
8908 main ()
8910 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8912 return 0;
8914 _ACEOF
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917 (eval $ac_link) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -s conftest$ac_exeext'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8927 emacs_xkb=yes
8928 else
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8932 emacs_xkb=no
8934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8935 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8936 echo "${ECHO_T}$emacs_xkb" >&6
8937 if test $emacs_xkb = yes; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_XKBGETKEYBOARD 1
8941 _ACEOF
8949 for ac_func in XrmSetDatabase XScreenResourceString \
8950 XScreenNumberOfScreen XSetWMProtocols
8952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8953 echo "$as_me:$LINENO: checking for $ac_func" >&5
8954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8955 if eval "test \"\${$as_ac_var+set}\" = set"; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958 cat >conftest.$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 /* System header to define __stub macros and hopefully few prototypes,
8966 which can conflict with char $ac_func (); below.
8967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8968 <limits.h> exists even on freestanding compilers. */
8969 #ifdef __STDC__
8970 # include <limits.h>
8971 #else
8972 # include <assert.h>
8973 #endif
8974 /* Override any gcc2 internal prototype to avoid an error. */
8975 #ifdef __cplusplus
8976 extern "C"
8978 #endif
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8981 char $ac_func ();
8982 /* The GNU C library defines this for functions which it implements
8983 to always fail with ENOSYS. Some functions are actually named
8984 something starting with __ and the normal name is an alias. */
8985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8986 choke me
8987 #else
8988 char (*f) () = $ac_func;
8989 #endif
8990 #ifdef __cplusplus
8992 #endif
8995 main ()
8997 return f != $ac_func;
8999 return 0;
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 eval "$as_ac_var=yes"
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 eval "$as_ac_var=no"
9021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9025 if test `eval echo '${'$as_ac_var'}'` = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9028 _ACEOF
9031 done
9035 if test "${window_system}" = "x11"; then
9036 echo "$as_me:$LINENO: checking X11 version 6" >&5
9037 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9038 if test "${emacs_cv_x11_version_6+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041 cat >conftest.$ac_ext <<_ACEOF
9042 #line $LINENO "configure"
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 #include <X11/Xlib.h>
9050 main ()
9052 #if XlibSpecificationRelease < 6
9053 fail;
9054 #endif
9057 return 0;
9059 _ACEOF
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 emacs_cv_x11_version_6=yes
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 emacs_cv_x11_version_6=no
9079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9082 if test $emacs_cv_x11_version_6 = yes; then
9083 echo "$as_me:$LINENO: result: 6 or newer" >&5
9084 echo "${ECHO_T}6 or newer" >&6
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_X11R6 1
9088 _ACEOF
9090 else
9091 echo "$as_me:$LINENO: result: before 6" >&5
9092 echo "${ECHO_T}before 6" >&6
9096 if test "${window_system}" = "x11"; then
9097 echo "$as_me:$LINENO: checking X11 version 5" >&5
9098 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9099 if test "${emacs_cv_x11_version_5+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9104 /* confdefs.h. */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #include <X11/Xlib.h>
9111 main ()
9113 #if XlibSpecificationRelease < 5
9114 fail;
9115 #endif
9118 return 0;
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 emacs_cv_x11_version_5=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 emacs_cv_x11_version_5=no
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9143 if test $emacs_cv_x11_version_5 = yes; then
9144 echo "$as_me:$LINENO: result: 5 or newer" >&5
9145 echo "${ECHO_T}5 or newer" >&6
9146 HAVE_X11R5=yes
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_X11R5 1
9150 _ACEOF
9152 else
9153 HAVE_X11R5=no
9154 echo "$as_me:$LINENO: result: before 5" >&5
9155 echo "${ECHO_T}before 5" >&6
9161 HAVE_GTK=no
9162 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9163 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9164 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9165 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9166 { (exit 1); exit 1; }; };
9168 GLIB_REQUIRED=2.0.1
9169 GTK_REQUIRED=2.0.1
9170 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9172 if test "X${with_pkg_config_prog}" != X; then
9173 PKG_CONFIG="${with_pkg_config_prog}"
9176 succeeded=no
9178 if test -z "$PKG_CONFIG"; then
9179 # Extract the first word of "pkg-config", so it can be a program name with args.
9180 set dummy pkg-config; ac_word=$2
9181 echo "$as_me:$LINENO: checking for $ac_word" >&5
9182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9183 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186 case $PKG_CONFIG in
9187 [\\/]* | ?:[\\/]*)
9188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in $PATH
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9198 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 break 2
9202 done
9203 done
9205 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9207 esac
9209 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9211 if test -n "$PKG_CONFIG"; then
9212 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9213 echo "${ECHO_T}$PKG_CONFIG" >&6
9214 else
9215 echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6
9221 if test "$PKG_CONFIG" = "no" ; then
9222 echo "*** The pkg-config script could not be found. Make sure it is"
9223 echo "*** in your path, or give the full path to pkg-config with"
9224 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9225 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9226 else
9227 PKG_CONFIG_MIN_VERSION=0.9.0
9228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9229 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9230 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9232 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9233 echo "$as_me:$LINENO: result: yes" >&5
9234 echo "${ECHO_T}yes" >&6
9235 succeeded=yes
9237 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9238 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9239 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9240 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9241 echo "${ECHO_T}$GTK_CFLAGS" >&6
9243 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9244 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9245 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9246 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9247 echo "${ECHO_T}$GTK_LIBS" >&6
9248 else
9249 GTK_CFLAGS=""
9250 GTK_LIBS=""
9251 ## If we have a custom action on failure, don't print errors, but
9252 ## do set a variable so people can do so.
9253 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9254 echo $GTK_PKG_ERRORS
9259 else
9260 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9261 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9265 if test $succeeded = yes; then
9267 else
9268 { { 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
9269 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;}
9270 { (exit 1); exit 1; }; }
9275 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9276 CFLAGS="$CFLAGS $GTK_CFLAGS"
9277 LIBS="$GTK_LIBS $LIBS"
9278 HAVE_GTK=yes
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_GTK 1
9282 _ACEOF
9284 USE_X_TOOLKIT=none
9286 if test "$with_toolkit_scroll_bars" != no; then
9287 with_toolkit_scroll_bars=yes
9290 HAVE_GTK_MULTIDISPLAY=no
9292 for ac_func in gdk_display_open
9294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9295 echo "$as_me:$LINENO: checking for $ac_func" >&5
9296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9297 if eval "test \"\${$as_ac_var+set}\" = set"; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300 cat >conftest.$ac_ext <<_ACEOF
9301 #line $LINENO "configure"
9302 /* confdefs.h. */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 /* System header to define __stub macros and hopefully few prototypes,
9308 which can conflict with char $ac_func (); below.
9309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9310 <limits.h> exists even on freestanding compilers. */
9311 #ifdef __STDC__
9312 # include <limits.h>
9313 #else
9314 # include <assert.h>
9315 #endif
9316 /* Override any gcc2 internal prototype to avoid an error. */
9317 #ifdef __cplusplus
9318 extern "C"
9320 #endif
9321 /* We use char because int might match the return type of a gcc2
9322 builtin and then its argument prototype would still apply. */
9323 char $ac_func ();
9324 /* The GNU C library defines this for functions which it implements
9325 to always fail with ENOSYS. Some functions are actually named
9326 something starting with __ and the normal name is an alias. */
9327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9328 choke me
9329 #else
9330 char (*f) () = $ac_func;
9331 #endif
9332 #ifdef __cplusplus
9334 #endif
9337 main ()
9339 return f != $ac_func;
9341 return 0;
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9356 eval "$as_ac_var=yes"
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 eval "$as_ac_var=no"
9363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9367 if test `eval echo '${'$as_ac_var'}'` = yes; then
9368 cat >>confdefs.h <<_ACEOF
9369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9370 _ACEOF
9371 HAVE_GTK_MULTIDISPLAY=yes
9373 done
9375 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9377 cat >>confdefs.h <<\_ACEOF
9378 #define HAVE_GTK_MULTIDISPLAY 1
9379 _ACEOF
9382 HAVE_GTK_FILE_SELECTION=no
9384 for ac_func in gtk_file_selection_new
9386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9387 echo "$as_me:$LINENO: checking for $ac_func" >&5
9388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9389 if eval "test \"\${$as_ac_var+set}\" = set"; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392 cat >conftest.$ac_ext <<_ACEOF
9393 #line $LINENO "configure"
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* System header to define __stub macros and hopefully few prototypes,
9400 which can conflict with char $ac_func (); below.
9401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9402 <limits.h> exists even on freestanding compilers. */
9403 #ifdef __STDC__
9404 # include <limits.h>
9405 #else
9406 # include <assert.h>
9407 #endif
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 #ifdef __cplusplus
9410 extern "C"
9412 #endif
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9415 char $ac_func ();
9416 /* The GNU C library defines this for functions which it implements
9417 to always fail with ENOSYS. Some functions are actually named
9418 something starting with __ and the normal name is an alias. */
9419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9420 choke me
9421 #else
9422 char (*f) () = $ac_func;
9423 #endif
9424 #ifdef __cplusplus
9426 #endif
9429 main ()
9431 return f != $ac_func;
9433 return 0;
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -s conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 eval "$as_ac_var=yes"
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 eval "$as_ac_var=no"
9455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9459 if test `eval echo '${'$as_ac_var'}'` = yes; then
9460 cat >>confdefs.h <<_ACEOF
9461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9462 _ACEOF
9463 HAVE_GTK_FILE_SELECTION=yes
9465 done
9468 HAVE_GTK_FILE_CHOOSER=no
9470 for ac_func in gtk_file_chooser_dialog_new
9472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9473 echo "$as_me:$LINENO: checking for $ac_func" >&5
9474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9475 if eval "test \"\${$as_ac_var+set}\" = set"; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 cat >conftest.$ac_ext <<_ACEOF
9479 #line $LINENO "configure"
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char $ac_func (); below.
9487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9488 <limits.h> exists even on freestanding compilers. */
9489 #ifdef __STDC__
9490 # include <limits.h>
9491 #else
9492 # include <assert.h>
9493 #endif
9494 /* Override any gcc2 internal prototype to avoid an error. */
9495 #ifdef __cplusplus
9496 extern "C"
9498 #endif
9499 /* We use char because int might match the return type of a gcc2
9500 builtin and then its argument prototype would still apply. */
9501 char $ac_func ();
9502 /* The GNU C library defines this for functions which it implements
9503 to always fail with ENOSYS. Some functions are actually named
9504 something starting with __ and the normal name is an alias. */
9505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9506 choke me
9507 #else
9508 char (*f) () = $ac_func;
9509 #endif
9510 #ifdef __cplusplus
9512 #endif
9515 main ()
9517 return f != $ac_func;
9519 return 0;
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 eval "$as_ac_var=yes"
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 eval "$as_ac_var=no"
9541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9545 if test `eval echo '${'$as_ac_var'}'` = yes; then
9546 cat >>confdefs.h <<_ACEOF
9547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9548 _ACEOF
9549 HAVE_GTK_FILE_CHOOSER=yes
9551 done
9554 if test "$HAVE_GTK_FILE_SELECTION" = yes \
9555 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_GTK_FILE_BOTH 1
9559 _ACEOF
9563 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9564 HAVE_GTK_AND_PTHREAD=no
9566 for ac_header in pthread.h
9568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9570 echo "$as_me:$LINENO: checking for $ac_header" >&5
9571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9577 else
9578 # Is the header compilable?
9579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 $ac_includes_default
9589 #include <$ac_header>
9590 _ACEOF
9591 rm -f conftest.$ac_objext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9593 (eval $ac_compile) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -s conftest.$ac_objext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_header_compiler=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_header_compiler=no
9610 rm -f conftest.$ac_objext conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9612 echo "${ECHO_T}$ac_header_compiler" >&6
9614 # Is the header present?
9615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9617 cat >conftest.$ac_ext <<_ACEOF
9618 #line $LINENO "configure"
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <$ac_header>
9625 _ACEOF
9626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } >/dev/null; then
9634 if test -s conftest.err; then
9635 ac_cpp_err=$ac_c_preproc_warn_flag
9636 else
9637 ac_cpp_err=
9639 else
9640 ac_cpp_err=yes
9642 if test -z "$ac_cpp_err"; then
9643 ac_header_preproc=yes
9644 else
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 ac_header_preproc=no
9650 rm -f conftest.err conftest.$ac_ext
9651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9652 echo "${ECHO_T}$ac_header_preproc" >&6
9654 # So? What about this header?
9655 case $ac_header_compiler:$ac_header_preproc in
9656 yes:no )
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9662 cat <<\_ASBOX
9663 ## ------------------------------------ ##
9664 ## Report this to bug-autoconf@gnu.org. ##
9665 ## ------------------------------------ ##
9666 _ASBOX
9668 sed "s/^/$as_me: WARNING: /" >&2
9670 no:yes )
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9678 cat <<\_ASBOX
9679 ## ------------------------------------ ##
9680 ## Report this to bug-autoconf@gnu.org. ##
9681 ## ------------------------------------ ##
9682 _ASBOX
9684 sed "s/^/$as_me: WARNING: /" >&2
9686 esac
9687 echo "$as_me:$LINENO: checking for $ac_header" >&5
9688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 eval "$as_ac_Header=$ac_header_preproc"
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9699 cat >>confdefs.h <<_ACEOF
9700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9701 _ACEOF
9705 done
9707 if test "$ac_cv_header_pthread_h"; then
9708 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
9709 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
9710 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lpthread $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any gcc2 internal prototype to avoid an error. */
9724 #ifdef __cplusplus
9725 extern "C"
9726 #endif
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9729 char pthread_self ();
9731 main ()
9733 pthread_self ();
9735 return 0;
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_lib_pthread_pthread_self=yes
9751 else
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_cv_lib_pthread_pthread_self=no
9757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9760 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
9761 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
9762 if test $ac_cv_lib_pthread_pthread_self = yes; then
9763 HAVE_GTK_AND_PTHREAD=yes
9767 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9768 GTK_LIBS="$GTK_LIBS -lpthread"
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_GTK_AND_PTHREAD 1
9772 _ACEOF
9778 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9779 if test x"${HAVE_X11R5}" = xyes; then
9780 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9781 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9782 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 #include <X11/Intrinsic.h>
9794 #include <X11/Xaw/Simple.h>
9796 main ()
9800 return 0;
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -s conftest$ac_exeext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 emacs_cv_x11_version_5_with_xaw=yes
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 emacs_cv_x11_version_5_with_xaw=no
9822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9825 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9826 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9827 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9828 USE_X_TOOLKIT=LUCID
9829 else
9830 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9831 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9832 USE_X_TOOLKIT=none
9834 else
9835 USE_X_TOOLKIT=none
9839 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9841 if test "${USE_X_TOOLKIT}" != "none"; then
9842 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9843 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9844 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <X11/Intrinsic.h>
9856 main ()
9858 #if XtSpecificationRelease < 6
9859 fail;
9860 #endif
9863 return 0;
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 emacs_cv_x11_toolkit_version_6=yes
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 emacs_cv_x11_toolkit_version_6=no
9885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9888 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9889 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9890 echo "$as_me:$LINENO: result: 6 or newer" >&5
9891 echo "${ECHO_T}6 or newer" >&6
9893 cat >>confdefs.h <<\_ACEOF
9894 #define HAVE_X11XTR6 1
9895 _ACEOF
9897 else
9898 echo "$as_me:$LINENO: result: before 6" >&5
9899 echo "${ECHO_T}before 6" >&6
9902 OLDLIBS="$LIBS"
9903 if test x$HAVE_X11XTR6 = xyes; then
9904 LIBS="-lXt -lSM -lICE $LIBS"
9905 else
9906 LIBS="-lXt $LIBS"
9909 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9910 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9911 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-lXmu $LIBS"
9916 cat >conftest.$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any gcc2 internal prototype to avoid an error. */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9930 char XmuConvertStandardSelection ();
9932 main ()
9934 XmuConvertStandardSelection ();
9936 return 0;
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -s conftest$ac_exeext'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9952 else
9953 echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9956 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9961 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9962 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9963 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_LIBXMU 1
9966 _ACEOF
9968 LIBS="-lXmu $LIBS"
9972 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9975 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9976 if test "${HAVE_X11}" = "yes"; then
9977 if test "${USE_X_TOOLKIT}" != "none"; then
9979 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9980 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9981 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 ac_check_lib_save_LIBS=$LIBS
9985 LIBS="-lXext $LIBS"
9986 cat >conftest.$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any gcc2 internal prototype to avoid an error. */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10000 char XShapeQueryExtension ();
10002 main ()
10004 XShapeQueryExtension ();
10006 return 0;
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_Xext_XShapeQueryExtension=yes
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_lib_Xext_XShapeQueryExtension=no
10028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10032 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10033 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_LIBXEXT 1
10036 _ACEOF
10038 LIBS="-lXext $LIBS"
10045 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10046 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10047 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10048 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 #line $LINENO "configure"
10053 /* confdefs.h. */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 #include <Xm/Xm.h>
10060 main ()
10062 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10063 int x = 5;
10064 #else
10065 Motif version prior to 2.1.
10066 #endif
10068 return 0;
10070 _ACEOF
10071 rm -f conftest.$ac_objext
10072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073 (eval $ac_compile) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -s conftest.$ac_objext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 emacs_cv_motif_version_2_1=yes
10084 else
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 emacs_cv_motif_version_2_1=no
10090 rm -f conftest.$ac_objext conftest.$ac_ext
10092 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10093 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10094 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10095 if test $emacs_cv_motif_version_2_1 = yes; then
10096 HAVE_LIBXP=no
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_MOTIF_2_1 1
10100 _ACEOF
10102 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10103 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10104 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107 ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-lXp $LIBS"
10109 cat >conftest.$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any gcc2 internal prototype to avoid an error. */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10123 char XpCreateContext ();
10125 main ()
10127 XpCreateContext ();
10129 return 0;
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_lib_Xp_XpCreateContext=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_lib_Xp_XpCreateContext=no
10151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10152 LIBS=$ac_check_lib_save_LIBS
10154 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10155 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10156 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10157 HAVE_LIBXP=yes
10160 if test ${HAVE_LIBXP} = yes; then
10162 cat >>confdefs.h <<\_ACEOF
10163 #define HAVE_LIBXP 1
10164 _ACEOF
10167 else
10168 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10169 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10170 if test "${emacs_cv_lesstif+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173 # We put this in CFLAGS temporarily to precede other -I options
10174 # that might be in CFLAGS temporarily.
10175 # We put this in CPPFLAGS where it precedes the other -I options.
10176 OLD_CPPFLAGS=$CPPFLAGS
10177 OLD_CFLAGS=$CFLAGS
10178 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10179 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10180 cat >conftest.$ac_ext <<_ACEOF
10181 #line $LINENO "configure"
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10189 main ()
10191 int x = 5;
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 emacs_cv_lesstif=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 emacs_cv_lesstif=no
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10218 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10219 if test $emacs_cv_lesstif = yes; then
10220 # Make sure this -I option remains in CPPFLAGS after it is set
10221 # back to REAL_CPPFLAGS.
10222 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10223 # have those other -I options anyway. Ultimately, having this
10224 # directory ultimately in CPPFLAGS will be enough.
10225 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10226 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10227 else
10228 CFLAGS=$OLD_CFLAGS
10229 CPPFLAGS=$OLD_CPPFLAGS
10234 ### Is -lXaw3d available?
10235 HAVE_XAW3D=no
10236 if test "${HAVE_X11}" = "yes"; then
10237 if test "${USE_X_TOOLKIT}" != "none"; then
10238 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10239 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10240 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 cat >conftest.$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <X11/Xaw3d/Scrollbar.h>
10251 _ACEOF
10252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } >/dev/null; then
10260 if test -s conftest.err; then
10261 ac_cpp_err=$ac_c_preproc_warn_flag
10262 else
10263 ac_cpp_err=
10265 else
10266 ac_cpp_err=yes
10268 if test -z "$ac_cpp_err"; then
10269 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10276 rm -f conftest.err conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10279 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10280 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10281 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10282 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10283 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286 ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lXaw3d $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 #line $LINENO "configure"
10290 /* confdefs.h. */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 /* Override any gcc2 internal prototype to avoid an error. */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char XawScrollbarSetThumb ();
10304 main ()
10306 XawScrollbarSetThumb ();
10308 return 0;
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10324 else
10325 echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10331 LIBS=$ac_check_lib_save_LIBS
10333 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10334 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10335 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10336 HAVE_XAW3D=yes
10342 if test "${HAVE_XAW3D}" = "yes"; then
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_XAW3D 1
10346 _ACEOF
10354 USE_TOOLKIT_SCROLL_BARS=no
10355 if test "${with_toolkit_scroll_bars}" != "no"; then
10356 if test "${USE_X_TOOLKIT}" != "none"; then
10357 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10358 cat >>confdefs.h <<\_ACEOF
10359 #define USE_TOOLKIT_SCROLL_BARS 1
10360 _ACEOF
10362 HAVE_XAW3D=no
10363 USE_TOOLKIT_SCROLL_BARS=yes
10364 elif test "${HAVE_XAW3D}" = "yes"; then
10365 cat >>confdefs.h <<\_ACEOF
10366 #define USE_TOOLKIT_SCROLL_BARS 1
10367 _ACEOF
10369 USE_TOOLKIT_SCROLL_BARS=yes
10371 elif test "${HAVE_GTK}" = "yes"; then
10372 cat >>confdefs.h <<\_ACEOF
10373 #define USE_TOOLKIT_SCROLL_BARS 1
10374 _ACEOF
10376 USE_TOOLKIT_SCROLL_BARS=yes
10377 elif test "${HAVE_CARBON}" = "yes"; then
10378 cat >>confdefs.h <<\_ACEOF
10379 #define USE_TOOLKIT_SCROLL_BARS 1
10380 _ACEOF
10382 USE_TOOLKIT_SCROLL_BARS=yes
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10394 #include <X11/Xlib.h>
10395 #include <X11/Xresource.h>
10397 main ()
10399 XIMProc callback;
10401 return 0;
10403 _ACEOF
10404 rm -f conftest.$ac_objext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -s conftest.$ac_objext'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }; then
10416 HAVE_XIM=yes
10418 cat >>confdefs.h <<\_ACEOF
10419 #define HAVE_XIM 1
10420 _ACEOF
10422 else
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10426 HAVE_XIM=no
10428 rm -f conftest.$ac_objext conftest.$ac_ext
10431 if test "${with_xim}" != "no"; then
10433 cat >>confdefs.h <<\_ACEOF
10434 #define USE_XIM 1
10435 _ACEOF
10440 if test "${HAVE_XIM}" != "no"; then
10441 late_CFLAGS=$CFLAGS
10442 if test "$GCC" = yes; then
10443 CFLAGS="$CFLAGS --pedantic-errors"
10445 cat >conftest.$ac_ext <<_ACEOF
10446 #line $LINENO "configure"
10447 /* confdefs.h. */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10453 #include <X11/Xlib.h>
10454 #include <X11/Xresource.h>
10456 main ()
10458 Display *display;
10459 XrmDatabase db;
10460 char *res_name;
10461 char *res_class;
10462 XIMProc callback;
10463 XPointer *client_data;
10464 #ifndef __GNUC__
10465 /* If we're not using GCC, it's probably not XFree86, and this is
10466 probably right, but we can't use something like --pedantic-errors. */
10467 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10468 char*, XIMProc, XPointer*);
10469 #endif
10470 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10471 client_data);
10473 return 0;
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 emacs_cv_arg6_star=yes
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10496 if test "$emacs_cv_arg6_star" = yes; then
10497 cat >>confdefs.h <<\_ACEOF
10498 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10499 _ACEOF
10501 else
10502 cat >>confdefs.h <<\_ACEOF
10503 #define XRegisterIMInstantiateCallback_arg6 XPointer
10504 _ACEOF
10507 CFLAGS=$late_CFLAGS
10510 ### Use -lXpm if available, unless `--with-xpm=no'.
10511 HAVE_XPM=no
10512 if test "${HAVE_X11}" = "yes"; then
10513 if test "${with_xpm}" != "no"; then
10514 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10515 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10516 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10517 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10521 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10522 else
10523 # Is the header compilable?
10524 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10525 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10526 cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 #include <X11/xpm.h>
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_header_compiler=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_header_compiler=no
10555 rm -f conftest.$ac_objext conftest.$ac_ext
10556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10557 echo "${ECHO_T}$ac_header_compiler" >&6
10559 # Is the header present?
10560 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10561 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10563 #line $LINENO "configure"
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 #include <X11/xpm.h>
10570 _ACEOF
10571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } >/dev/null; then
10579 if test -s conftest.err; then
10580 ac_cpp_err=$ac_c_preproc_warn_flag
10581 else
10582 ac_cpp_err=
10584 else
10585 ac_cpp_err=yes
10587 if test -z "$ac_cpp_err"; then
10588 ac_header_preproc=yes
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_header_preproc=no
10595 rm -f conftest.err conftest.$ac_ext
10596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10597 echo "${ECHO_T}$ac_header_preproc" >&6
10599 # So? What about this header?
10600 case $ac_header_compiler:$ac_header_preproc in
10601 yes:no )
10602 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10603 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10605 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10607 cat <<\_ASBOX
10608 ## ------------------------------------ ##
10609 ## Report this to bug-autoconf@gnu.org. ##
10610 ## ------------------------------------ ##
10611 _ASBOX
10613 sed "s/^/$as_me: WARNING: /" >&2
10615 no:yes )
10616 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10617 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10619 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10621 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10623 cat <<\_ASBOX
10624 ## ------------------------------------ ##
10625 ## Report this to bug-autoconf@gnu.org. ##
10626 ## ------------------------------------ ##
10627 _ASBOX
10629 sed "s/^/$as_me: WARNING: /" >&2
10631 esac
10632 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10633 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10634 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637 ac_cv_header_X11_xpm_h=$ac_header_preproc
10639 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10640 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10643 if test $ac_cv_header_X11_xpm_h = yes; then
10644 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10645 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10646 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-lXpm -lX11 $LIBS"
10651 cat >conftest.$ac_ext <<_ACEOF
10652 #line $LINENO "configure"
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10659 /* Override any gcc2 internal prototype to avoid an error. */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10665 char XpmReadFileToPixmap ();
10667 main ()
10669 XpmReadFileToPixmap ();
10671 return 0;
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10687 else
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10696 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10697 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10698 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10699 HAVE_XPM=yes
10705 if test "${HAVE_XPM}" = "yes"; then
10706 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10707 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10708 cat >conftest.$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include "X11/xpm.h"
10716 #ifndef XpmReturnAllocPixels
10717 no_return_alloc_pixels
10718 #endif
10720 _ACEOF
10721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10722 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10723 HAVE_XPM=no
10724 else
10725 HAVE_XPM=yes
10727 rm -f conftest*
10730 if test "${HAVE_XPM}" = "yes"; then
10731 echo "$as_me:$LINENO: result: yes" >&5
10732 echo "${ECHO_T}yes" >&6
10733 else
10734 echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10740 if test "${HAVE_XPM}" = "yes"; then
10742 cat >>confdefs.h <<\_ACEOF
10743 #define HAVE_XPM 1
10744 _ACEOF
10749 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10750 HAVE_JPEG=no
10751 if test "${HAVE_X11}" = "yes"; then
10752 if test "${with_jpeg}" != "no"; then
10753 if test "${ac_cv_header_jerror_h+set}" = set; then
10754 echo "$as_me:$LINENO: checking for jerror.h" >&5
10755 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10756 if test "${ac_cv_header_jerror_h+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10760 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10761 else
10762 # Is the header compilable?
10763 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10764 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10765 cat >conftest.$ac_ext <<_ACEOF
10766 #line $LINENO "configure"
10767 /* confdefs.h. */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 $ac_includes_default
10773 #include <jerror.h>
10774 _ACEOF
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -s conftest.$ac_objext'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_header_compiler=yes
10788 else
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_header_compiler=no
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10796 echo "${ECHO_T}$ac_header_compiler" >&6
10798 # Is the header present?
10799 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10800 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10801 cat >conftest.$ac_ext <<_ACEOF
10802 #line $LINENO "configure"
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 #include <jerror.h>
10809 _ACEOF
10810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } >/dev/null; then
10818 if test -s conftest.err; then
10819 ac_cpp_err=$ac_c_preproc_warn_flag
10820 else
10821 ac_cpp_err=
10823 else
10824 ac_cpp_err=yes
10826 if test -z "$ac_cpp_err"; then
10827 ac_header_preproc=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ac_header_preproc=no
10834 rm -f conftest.err conftest.$ac_ext
10835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10836 echo "${ECHO_T}$ac_header_preproc" >&6
10838 # So? What about this header?
10839 case $ac_header_compiler:$ac_header_preproc in
10840 yes:no )
10841 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10842 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10843 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10844 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10846 cat <<\_ASBOX
10847 ## ------------------------------------ ##
10848 ## Report this to bug-autoconf@gnu.org. ##
10849 ## ------------------------------------ ##
10850 _ASBOX
10852 sed "s/^/$as_me: WARNING: /" >&2
10854 no:yes )
10855 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10860 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10862 cat <<\_ASBOX
10863 ## ------------------------------------ ##
10864 ## Report this to bug-autoconf@gnu.org. ##
10865 ## ------------------------------------ ##
10866 _ASBOX
10868 sed "s/^/$as_me: WARNING: /" >&2
10870 esac
10871 echo "$as_me:$LINENO: checking for jerror.h" >&5
10872 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10873 if test "${ac_cv_header_jerror_h+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 ac_cv_header_jerror_h=$ac_header_preproc
10878 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10879 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10882 if test $ac_cv_header_jerror_h = yes; then
10883 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
10884 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
10885 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-ljpeg $LIBS"
10890 cat >conftest.$ac_ext <<_ACEOF
10891 #line $LINENO "configure"
10892 /* confdefs.h. */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10898 /* Override any gcc2 internal prototype to avoid an error. */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 /* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10904 char jpeg_destroy_compress ();
10906 main ()
10908 jpeg_destroy_compress ();
10910 return 0;
10912 _ACEOF
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -s conftest$ac_exeext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10936 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10937 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10938 HAVE_JPEG=yes
10947 if test "${HAVE_JPEG}" = "yes"; then
10948 cat >>confdefs.h <<\_ACEOF
10949 #define HAVE_JPEG 1
10950 _ACEOF
10952 cat >conftest.$ac_ext <<_ACEOF
10953 #line $LINENO "configure"
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <jpeglib.h>
10960 version=JPEG_LIB_VERSION
10962 _ACEOF
10963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10964 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define HAVE_JPEG 1
10967 _ACEOF
10969 else
10970 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10971 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10972 HAVE_JPEG=no
10974 rm -f conftest*
10979 ### Use -lpng if available, unless `--with-png=no'.
10980 HAVE_PNG=no
10981 if test "${HAVE_X11}" = "yes"; then
10982 if test "${with_png}" != "no"; then
10983 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10984 # in /usr/include/libpng.
10987 for ac_header in png.h libpng/png.h
10989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10991 echo "$as_me:$LINENO: checking for $ac_header" >&5
10992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10998 else
10999 # Is the header compilable?
11000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11002 cat >conftest.$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 $ac_includes_default
11010 #include <$ac_header>
11011 _ACEOF
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -s conftest.$ac_objext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 ac_header_compiler=yes
11025 else
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_header_compiler=no
11031 rm -f conftest.$ac_objext conftest.$ac_ext
11032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11033 echo "${ECHO_T}$ac_header_compiler" >&6
11035 # Is the header present?
11036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11039 #line $LINENO "configure"
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <$ac_header>
11046 _ACEOF
11047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } >/dev/null; then
11055 if test -s conftest.err; then
11056 ac_cpp_err=$ac_c_preproc_warn_flag
11057 else
11058 ac_cpp_err=
11060 else
11061 ac_cpp_err=yes
11063 if test -z "$ac_cpp_err"; then
11064 ac_header_preproc=yes
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_header_preproc=no
11071 rm -f conftest.err conftest.$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11073 echo "${ECHO_T}$ac_header_preproc" >&6
11075 # So? What about this header?
11076 case $ac_header_compiler:$ac_header_preproc in
11077 yes:no )
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11083 cat <<\_ASBOX
11084 ## ------------------------------------ ##
11085 ## Report this to bug-autoconf@gnu.org. ##
11086 ## ------------------------------------ ##
11087 _ASBOX
11089 sed "s/^/$as_me: WARNING: /" >&2
11091 no:yes )
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11099 cat <<\_ASBOX
11100 ## ------------------------------------ ##
11101 ## Report this to bug-autoconf@gnu.org. ##
11102 ## ------------------------------------ ##
11103 _ASBOX
11105 sed "s/^/$as_me: WARNING: /" >&2
11107 esac
11108 echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 eval "$as_ac_Header=$ac_header_preproc"
11115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122 _ACEOF
11126 done
11128 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11129 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11130 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11131 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-lpng -lz -lm $LIBS"
11136 cat >conftest.$ac_ext <<_ACEOF
11137 #line $LINENO "configure"
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11144 /* Override any gcc2 internal prototype to avoid an error. */
11145 #ifdef __cplusplus
11146 extern "C"
11147 #endif
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150 char png_get_channels ();
11152 main ()
11154 png_get_channels ();
11156 return 0;
11158 _ACEOF
11159 rm -f conftest.$ac_objext conftest$ac_exeext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161 (eval $ac_link) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_png_png_get_channels=yes
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 ac_cv_lib_png_png_get_channels=no
11178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11181 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11182 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11183 if test $ac_cv_lib_png_png_get_channels = yes; then
11184 HAVE_PNG=yes
11190 if test "${HAVE_PNG}" = "yes"; then
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_PNG 1
11194 _ACEOF
11199 ### Use -ltiff if available, unless `--with-tiff=no'.
11200 HAVE_TIFF=no
11201 if test "${HAVE_X11}" = "yes"; then
11202 if test "${with_tiff}" != "no"; then
11203 if test "${ac_cv_header_tiffio_h+set}" = set; then
11204 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11205 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11206 if test "${ac_cv_header_tiffio_h+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11210 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11211 else
11212 # Is the header compilable?
11213 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11214 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11215 cat >conftest.$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 $ac_includes_default
11223 #include <tiffio.h>
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_header_compiler=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_header_compiler=no
11244 rm -f conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246 echo "${ECHO_T}$ac_header_compiler" >&6
11248 # Is the header present?
11249 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11250 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11252 #line $LINENO "configure"
11253 /* confdefs.h. */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 #include <tiffio.h>
11259 _ACEOF
11260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } >/dev/null; then
11268 if test -s conftest.err; then
11269 ac_cpp_err=$ac_c_preproc_warn_flag
11270 else
11271 ac_cpp_err=
11273 else
11274 ac_cpp_err=yes
11276 if test -z "$ac_cpp_err"; then
11277 ac_header_preproc=yes
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 ac_header_preproc=no
11284 rm -f conftest.err conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc in
11290 yes:no )
11291 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11294 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11296 cat <<\_ASBOX
11297 ## ------------------------------------ ##
11298 ## Report this to bug-autoconf@gnu.org. ##
11299 ## ------------------------------------ ##
11300 _ASBOX
11302 sed "s/^/$as_me: WARNING: /" >&2
11304 no:yes )
11305 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11306 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11308 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11312 cat <<\_ASBOX
11313 ## ------------------------------------ ##
11314 ## Report this to bug-autoconf@gnu.org. ##
11315 ## ------------------------------------ ##
11316 _ASBOX
11318 sed "s/^/$as_me: WARNING: /" >&2
11320 esac
11321 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11322 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11323 if test "${ac_cv_header_tiffio_h+set}" = set; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326 ac_cv_header_tiffio_h=$ac_header_preproc
11328 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11329 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11332 if test $ac_cv_header_tiffio_h = yes; then
11333 tifflibs="-lz -lm"
11334 # At least one tiff package requires the jpeg library.
11335 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11336 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11337 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11338 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341 ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-ltiff $tifflibs $LIBS"
11343 cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11345 /* confdefs.h. */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11351 /* Override any gcc2 internal prototype to avoid an error. */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 /* We use char because int might match the return type of a gcc2
11356 builtin and then its argument prototype would still apply. */
11357 char TIFFGetVersion ();
11359 main ()
11361 TIFFGetVersion ();
11363 return 0;
11365 _ACEOF
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -s conftest$ac_exeext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_cv_lib_tiff_TIFFGetVersion=yes
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_cv_lib_tiff_TIFFGetVersion=no
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS
11388 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11389 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11390 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11391 HAVE_TIFF=yes
11399 if test "${HAVE_TIFF}" = "yes"; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_TIFF 1
11403 _ACEOF
11408 ### Use -lgif if available, unless `--with-gif=no'.
11409 HAVE_GIF=no
11410 if test "${HAVE_X11}" = "yes"; then
11411 if test "${with_gif}" != "no"; then
11412 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11413 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11414 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11415 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11419 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11420 else
11421 # Is the header compilable?
11422 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11423 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11425 #line $LINENO "configure"
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 $ac_includes_default
11432 #include <gif_lib.h>
11433 _ACEOF
11434 rm -f conftest.$ac_objext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11436 (eval $ac_compile) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_header_compiler=yes
11447 else
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_header_compiler=no
11453 rm -f conftest.$ac_objext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11455 echo "${ECHO_T}$ac_header_compiler" >&6
11457 # Is the header present?
11458 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11459 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 #include <gif_lib.h>
11468 _ACEOF
11469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } >/dev/null; then
11477 if test -s conftest.err; then
11478 ac_cpp_err=$ac_c_preproc_warn_flag
11479 else
11480 ac_cpp_err=
11482 else
11483 ac_cpp_err=yes
11485 if test -z "$ac_cpp_err"; then
11486 ac_header_preproc=yes
11487 else
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11491 ac_header_preproc=no
11493 rm -f conftest.err conftest.$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11495 echo "${ECHO_T}$ac_header_preproc" >&6
11497 # So? What about this header?
11498 case $ac_header_compiler:$ac_header_preproc in
11499 yes:no )
11500 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11501 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11503 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11505 cat <<\_ASBOX
11506 ## ------------------------------------ ##
11507 ## Report this to bug-autoconf@gnu.org. ##
11508 ## ------------------------------------ ##
11509 _ASBOX
11511 sed "s/^/$as_me: WARNING: /" >&2
11513 no:yes )
11514 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11515 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11517 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11519 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11521 cat <<\_ASBOX
11522 ## ------------------------------------ ##
11523 ## Report this to bug-autoconf@gnu.org. ##
11524 ## ------------------------------------ ##
11525 _ASBOX
11527 sed "s/^/$as_me: WARNING: /" >&2
11529 esac
11530 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11531 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11532 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535 ac_cv_header_gif_lib_h=$ac_header_preproc
11537 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11538 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11541 if test $ac_cv_header_gif_lib_h = yes; then
11542 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11543 # Earlier versions can crash Emacs.
11544 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11545 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11546 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lungif $LIBS"
11551 cat >conftest.$ac_ext <<_ACEOF
11552 #line $LINENO "configure"
11553 /* confdefs.h. */
11554 _ACEOF
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11559 /* Override any gcc2 internal prototype to avoid an error. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 /* We use char because int might match the return type of a gcc2
11564 builtin and then its argument prototype would still apply. */
11565 char EGifPutExtensionLast ();
11567 main ()
11569 EGifPutExtensionLast ();
11571 return 0;
11573 _ACEOF
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -s conftest$ac_exeext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11587 else
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_cv_lib_ungif_EGifPutExtensionLast=no
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11596 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11597 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11598 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11599 HAVE_GIF=yes
11607 if test "${HAVE_GIF}" = "yes"; then
11609 cat >>confdefs.h <<\_ACEOF
11610 #define HAVE_GIF 1
11611 _ACEOF
11616 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11617 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11618 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11619 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11623 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11624 else
11625 # Is the header compilable?
11626 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
11627 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
11628 cat >conftest.$ac_ext <<_ACEOF
11629 #line $LINENO "configure"
11630 /* confdefs.h. */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 $ac_includes_default
11636 #include <malloc/malloc.h>
11637 _ACEOF
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_header_compiler=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_compiler=no
11657 rm -f conftest.$ac_objext conftest.$ac_ext
11658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11659 echo "${ECHO_T}$ac_header_compiler" >&6
11661 # Is the header present?
11662 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
11663 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11665 #line $LINENO "configure"
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <malloc/malloc.h>
11672 _ACEOF
11673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } >/dev/null; then
11681 if test -s conftest.err; then
11682 ac_cpp_err=$ac_c_preproc_warn_flag
11683 else
11684 ac_cpp_err=
11686 else
11687 ac_cpp_err=yes
11689 if test -z "$ac_cpp_err"; then
11690 ac_header_preproc=yes
11691 else
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_header_preproc=no
11697 rm -f conftest.err conftest.$ac_ext
11698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc in
11703 yes:no )
11704 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11707 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11709 cat <<\_ASBOX
11710 ## ------------------------------------ ##
11711 ## Report this to bug-autoconf@gnu.org. ##
11712 ## ------------------------------------ ##
11713 _ASBOX
11715 sed "s/^/$as_me: WARNING: /" >&2
11717 no:yes )
11718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
11719 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
11721 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11723 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11725 cat <<\_ASBOX
11726 ## ------------------------------------ ##
11727 ## Report this to bug-autoconf@gnu.org. ##
11728 ## ------------------------------------ ##
11729 _ASBOX
11731 sed "s/^/$as_me: WARNING: /" >&2
11733 esac
11734 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11735 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11736 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739 ac_cv_header_malloc_malloc_h=$ac_header_preproc
11741 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11742 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11745 if test $ac_cv_header_malloc_malloc_h = yes; then
11747 cat >>confdefs.h <<\_ACEOF
11748 #define HAVE_MALLOC_MALLOC_H 1
11749 _ACEOF
11755 ### Use Mac OS X Carbon API to implement GUI.
11756 if test "${HAVE_CARBON}" = "yes"; then
11758 cat >>confdefs.h <<\_ACEOF
11759 #define HAVE_CARBON 1
11760 _ACEOF
11762 window_system=mac
11763 ## Specify the install directory
11764 carbon_appdir=
11765 if test "${carbon_appdir_x}" != ""; then
11766 case ${carbon_appdir_x} in
11767 y | ye | yes) carbon_appdir=/Applications ;;
11768 * ) carbon_appdir=${carbon_appdir_x} ;;
11769 esac
11771 # We also have mouse menus.
11772 HAVE_MENUS=yes
11774 tmp_CFLAGS="$CFLAGS"
11775 CFLAGS="$CFLAGS -framework Carbon"
11776 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
11777 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
11778 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 #line $LINENO "configure"
11783 /* confdefs.h. */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11788 /* System header to define __stub macros and hopefully few prototypes,
11789 which can conflict with char CancelMenuTracking (); below.
11790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11791 <limits.h> exists even on freestanding compilers. */
11792 #ifdef __STDC__
11793 # include <limits.h>
11794 #else
11795 # include <assert.h>
11796 #endif
11797 /* Override any gcc2 internal prototype to avoid an error. */
11798 #ifdef __cplusplus
11799 extern "C"
11801 #endif
11802 /* We use char because int might match the return type of a gcc2
11803 builtin and then its argument prototype would still apply. */
11804 char CancelMenuTracking ();
11805 /* The GNU C library defines this for functions which it implements
11806 to always fail with ENOSYS. Some functions are actually named
11807 something starting with __ and the normal name is an alias. */
11808 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
11809 choke me
11810 #else
11811 char (*f) () = CancelMenuTracking;
11812 #endif
11813 #ifdef __cplusplus
11815 #endif
11818 main ()
11820 return f != CancelMenuTracking;
11822 return 0;
11824 _ACEOF
11825 rm -f conftest.$ac_objext conftest$ac_exeext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11827 (eval $ac_link) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_func_CancelMenuTracking=yes
11838 else
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 ac_cv_func_CancelMenuTracking=no
11844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11846 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
11847 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
11848 if test $ac_cv_func_CancelMenuTracking = yes; then
11849 have_cmt=yes
11850 else
11851 have_cmt=no
11854 if test "$have_cmt" = yes; then
11856 cat >>confdefs.h <<\_ACEOF
11857 #define HAVE_CANCELMENUTRACKING 1
11858 _ACEOF
11861 CFLAGS="$tmp_CFLAGS"
11864 ### Use session management (-lSM -lICE) if available
11865 HAVE_X_SM=no
11866 if test "${HAVE_X11}" = "yes"; then
11867 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11868 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11869 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11870 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11874 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11875 else
11876 # Is the header compilable?
11877 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
11878 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
11879 cat >conftest.$ac_ext <<_ACEOF
11880 #line $LINENO "configure"
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 #include <X11/SM/SMlib.h>
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -s conftest.$ac_objext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_header_compiler=yes
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_header_compiler=no
11908 rm -f conftest.$ac_objext conftest.$ac_ext
11909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11910 echo "${ECHO_T}$ac_header_compiler" >&6
11912 # Is the header present?
11913 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
11914 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
11915 cat >conftest.$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 #include <X11/SM/SMlib.h>
11923 _ACEOF
11924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } >/dev/null; then
11932 if test -s conftest.err; then
11933 ac_cpp_err=$ac_c_preproc_warn_flag
11934 else
11935 ac_cpp_err=
11937 else
11938 ac_cpp_err=yes
11940 if test -z "$ac_cpp_err"; then
11941 ac_header_preproc=yes
11942 else
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11946 ac_header_preproc=no
11948 rm -f conftest.err conftest.$ac_ext
11949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950 echo "${ECHO_T}$ac_header_preproc" >&6
11952 # So? What about this header?
11953 case $ac_header_compiler:$ac_header_preproc in
11954 yes:no )
11955 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11956 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11958 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11960 cat <<\_ASBOX
11961 ## ------------------------------------ ##
11962 ## Report this to bug-autoconf@gnu.org. ##
11963 ## ------------------------------------ ##
11964 _ASBOX
11966 sed "s/^/$as_me: WARNING: /" >&2
11968 no:yes )
11969 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
11970 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
11972 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11974 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11976 cat <<\_ASBOX
11977 ## ------------------------------------ ##
11978 ## Report this to bug-autoconf@gnu.org. ##
11979 ## ------------------------------------ ##
11980 _ASBOX
11982 sed "s/^/$as_me: WARNING: /" >&2
11984 esac
11985 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11986 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11987 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
11992 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11993 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11996 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
11997 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
11998 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
11999 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002 ac_check_lib_save_LIBS=$LIBS
12003 LIBS="-lSM -lICE $LIBS"
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 /* Override any gcc2 internal prototype to avoid an error. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12018 char SmcOpenConnection ();
12020 main ()
12022 SmcOpenConnection ();
12024 return 0;
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_lib_SM_SmcOpenConnection=yes
12040 else
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_cv_lib_SM_SmcOpenConnection=no
12046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12047 LIBS=$ac_check_lib_save_LIBS
12049 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12050 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12051 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12052 HAVE_X_SM=yes
12059 if test "${HAVE_X_SM}" = "yes"; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_X_SM 1
12063 _ACEOF
12065 case "$LIBS" in
12066 *-lSM*) ;;
12067 *) LIBS="-lSM -lICE $LIBS" ;;
12068 esac
12072 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12073 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12074 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12075 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078 cat >conftest.$ac_ext <<_ACEOF
12079 #line $LINENO "configure"
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 #include <netdb.h>
12087 main ()
12089 return h_errno;
12091 return 0;
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 emacs_cv_netdb_declares_h_errno=yes
12107 else
12108 echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.$ac_ext >&5
12111 emacs_cv_netdb_declares_h_errno=no
12113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12116 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12117 if test $emacs_cv_netdb_declares_h_errno = yes; then
12119 cat >>confdefs.h <<\_ACEOF
12120 #define HAVE_H_ERRNO 1
12121 _ACEOF
12125 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12126 # for constant arguments. Useless!
12127 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12128 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12129 if test "${ac_cv_working_alloca_h+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132 cat >conftest.$ac_ext <<_ACEOF
12133 #line $LINENO "configure"
12134 /* confdefs.h. */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #include <alloca.h>
12141 main ()
12143 char *p = (char *) alloca (2 * sizeof (int));
12145 return 0;
12147 _ACEOF
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150 (eval $ac_link) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -s conftest$ac_exeext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_cv_working_alloca_h=yes
12161 else
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_working_alloca_h=no
12167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12169 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12170 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12171 if test $ac_cv_working_alloca_h = yes; then
12173 cat >>confdefs.h <<\_ACEOF
12174 #define HAVE_ALLOCA_H 1
12175 _ACEOF
12179 echo "$as_me:$LINENO: checking for alloca" >&5
12180 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12181 if test "${ac_cv_func_alloca_works+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 cat >conftest.$ac_ext <<_ACEOF
12185 #line $LINENO "configure"
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 #ifdef __GNUC__
12192 # define alloca __builtin_alloca
12193 #else
12194 # ifdef _MSC_VER
12195 # include <malloc.h>
12196 # define alloca _alloca
12197 # else
12198 # if HAVE_ALLOCA_H
12199 # include <alloca.h>
12200 # else
12201 # ifdef _AIX
12202 #pragma alloca
12203 # else
12204 # ifndef alloca /* predefined by HP cc +Olibcalls */
12205 char *alloca ();
12206 # endif
12207 # endif
12208 # endif
12209 # endif
12210 #endif
12213 main ()
12215 char *p = (char *) alloca (1);
12217 return 0;
12219 _ACEOF
12220 rm -f conftest.$ac_objext conftest$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222 (eval $ac_link) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -s conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_func_alloca_works=yes
12233 else
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 ac_cv_func_alloca_works=no
12239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12241 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12242 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12244 if test $ac_cv_func_alloca_works = yes; then
12246 cat >>confdefs.h <<\_ACEOF
12247 #define HAVE_ALLOCA 1
12248 _ACEOF
12250 else
12251 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12252 # that cause trouble. Some versions do not even contain alloca or
12253 # contain a buggy version. If you still want to use their alloca,
12254 # use ar to extract alloca.o from them instead of compiling alloca.c.
12256 ALLOCA=alloca.$ac_objext
12258 cat >>confdefs.h <<\_ACEOF
12259 #define C_ALLOCA 1
12260 _ACEOF
12263 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12264 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12265 if test "${ac_cv_os_cray+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 #if defined(CRAY) && ! defined(CRAY2)
12276 webecray
12277 #else
12278 wenotbecray
12279 #endif
12281 _ACEOF
12282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12283 $EGREP "webecray" >/dev/null 2>&1; then
12284 ac_cv_os_cray=yes
12285 else
12286 ac_cv_os_cray=no
12288 rm -f conftest*
12291 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12292 echo "${ECHO_T}$ac_cv_os_cray" >&6
12293 if test $ac_cv_os_cray = yes; then
12294 for ac_func in _getb67 GETB67 getb67; do
12295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12296 echo "$as_me:$LINENO: checking for $ac_func" >&5
12297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12298 if eval "test \"\${$as_ac_var+set}\" = set"; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301 cat >conftest.$ac_ext <<_ACEOF
12302 #line $LINENO "configure"
12303 /* confdefs.h. */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 /* System header to define __stub macros and hopefully few prototypes,
12309 which can conflict with char $ac_func (); below.
12310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311 <limits.h> exists even on freestanding compilers. */
12312 #ifdef __STDC__
12313 # include <limits.h>
12314 #else
12315 # include <assert.h>
12316 #endif
12317 /* Override any gcc2 internal prototype to avoid an error. */
12318 #ifdef __cplusplus
12319 extern "C"
12321 #endif
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12324 char $ac_func ();
12325 /* The GNU C library defines this for functions which it implements
12326 to always fail with ENOSYS. Some functions are actually named
12327 something starting with __ and the normal name is an alias. */
12328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12329 choke me
12330 #else
12331 char (*f) () = $ac_func;
12332 #endif
12333 #ifdef __cplusplus
12335 #endif
12338 main ()
12340 return f != $ac_func;
12342 return 0;
12344 _ACEOF
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 eval "$as_ac_var=no"
12364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12368 if test `eval echo '${'$as_ac_var'}'` = yes; then
12370 cat >>confdefs.h <<_ACEOF
12371 #define CRAY_STACKSEG_END $ac_func
12372 _ACEOF
12374 break
12377 done
12380 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12381 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12382 if test "${ac_cv_c_stack_direction+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 if test "$cross_compiling" = yes; then
12386 ac_cv_c_stack_direction=0
12387 else
12388 cat >conftest.$ac_ext <<_ACEOF
12389 #line $LINENO "configure"
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 find_stack_direction ()
12398 static char *addr = 0;
12399 auto char dummy;
12400 if (addr == 0)
12402 addr = &dummy;
12403 return find_stack_direction ();
12405 else
12406 return (&dummy > addr) ? 1 : -1;
12410 main ()
12412 exit (find_stack_direction () < 0);
12414 _ACEOF
12415 rm -f conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_cv_c_stack_direction=1
12427 else
12428 echo "$as_me: program exited with status $ac_status" >&5
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ( exit $ac_status )
12433 ac_cv_c_stack_direction=-1
12435 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12438 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12439 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12441 cat >>confdefs.h <<_ACEOF
12442 #define STACK_DIRECTION $ac_cv_c_stack_direction
12443 _ACEOF
12449 # fmod, logb, and frexp are found in -lm on most systems.
12450 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12452 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12453 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12454 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457 ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-lm $LIBS"
12459 cat >conftest.$ac_ext <<_ACEOF
12460 #line $LINENO "configure"
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any gcc2 internal prototype to avoid an error. */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 /* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */
12473 char sqrt ();
12475 main ()
12477 sqrt ();
12479 return 0;
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484 (eval $ac_link) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -s conftest$ac_exeext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_lib_m_sqrt=yes
12495 else
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_m_sqrt=no
12501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12504 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12505 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12506 if test $ac_cv_lib_m_sqrt = yes; then
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_LIBM 1
12509 _ACEOF
12511 LIBS="-lm $LIBS"
12516 # Check for mail-locking functions in a "mail" library. Probably this should
12517 # have the same check as for liblockfile below.
12519 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12520 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12521 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lmail $LIBS"
12526 cat >conftest.$ac_ext <<_ACEOF
12527 #line $LINENO "configure"
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any gcc2 internal prototype to avoid an error. */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */
12540 char maillock ();
12542 main ()
12544 maillock ();
12546 return 0;
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551 (eval $ac_link) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -s conftest$ac_exeext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_lib_mail_maillock=yes
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_cv_lib_mail_maillock=no
12568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12569 LIBS=$ac_check_lib_save_LIBS
12571 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12572 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12573 if test $ac_cv_lib_mail_maillock = yes; then
12574 cat >>confdefs.h <<_ACEOF
12575 #define HAVE_LIBMAIL 1
12576 _ACEOF
12578 LIBS="-lmail $LIBS"
12583 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12584 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12585 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-llockfile $LIBS"
12590 cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 /* Override any gcc2 internal prototype to avoid an error. */
12599 #ifdef __cplusplus
12600 extern "C"
12601 #endif
12602 /* We use char because int might match the return type of a gcc2
12603 builtin and then its argument prototype would still apply. */
12604 char maillock ();
12606 main ()
12608 maillock ();
12610 return 0;
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12615 (eval $ac_link) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -s conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_lib_lockfile_maillock=yes
12626 else
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ac_cv_lib_lockfile_maillock=no
12632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12633 LIBS=$ac_check_lib_save_LIBS
12635 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12636 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12637 if test $ac_cv_lib_lockfile_maillock = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define HAVE_LIBLOCKFILE 1
12640 _ACEOF
12642 LIBS="-llockfile $LIBS"
12646 # If we have the shared liblockfile, assume we must use it for mail
12647 # locking (e.g. Debian). If we couldn't link against liblockfile
12648 # (no liblockfile.a installed), ensure that we don't need to.
12649 if test "$ac_cv_lib_lockfile_maillock" = no; then
12650 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12651 set dummy liblockfile.so; ac_word=$2
12652 echo "$as_me:$LINENO: checking for $ac_word" >&5
12653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12654 if test "${ac_cv_prog_liblockfile+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657 if test -n "$liblockfile"; then
12658 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12659 else
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12662 for as_dir in $as_dummy
12664 IFS=$as_save_IFS
12665 test -z "$as_dir" && as_dir=.
12666 for ac_exec_ext in '' $ac_executable_extensions; do
12667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668 ac_cv_prog_liblockfile="yes"
12669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12670 break 2
12672 done
12673 done
12675 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12678 liblockfile=$ac_cv_prog_liblockfile
12679 if test -n "$liblockfile"; then
12680 echo "$as_me:$LINENO: result: $liblockfile" >&5
12681 echo "${ECHO_T}$liblockfile" >&6
12682 else
12683 echo "$as_me:$LINENO: result: no" >&5
12684 echo "${ECHO_T}no" >&6
12687 if test $ac_cv_prog_liblockfile = yes; then
12688 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12689 This probably means that movemail could lose mail.
12690 There may be a \`development' package to install containing liblockfile." >&5
12691 echo "$as_me: error: Shared liblockfile found but can't link against it.
12692 This probably means that movemail could lose mail.
12693 There may be a \`development' package to install containing liblockfile." >&2;}
12694 { (exit 1); exit 1; }; }
12695 else :
12699 for ac_func in touchlock
12701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12702 echo "$as_me:$LINENO: checking for $ac_func" >&5
12703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12704 if eval "test \"\${$as_ac_var+set}\" = set"; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707 cat >conftest.$ac_ext <<_ACEOF
12708 #line $LINENO "configure"
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 /* System header to define __stub macros and hopefully few prototypes,
12715 which can conflict with char $ac_func (); below.
12716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12717 <limits.h> exists even on freestanding compilers. */
12718 #ifdef __STDC__
12719 # include <limits.h>
12720 #else
12721 # include <assert.h>
12722 #endif
12723 /* Override any gcc2 internal prototype to avoid an error. */
12724 #ifdef __cplusplus
12725 extern "C"
12727 #endif
12728 /* We use char because int might match the return type of a gcc2
12729 builtin and then its argument prototype would still apply. */
12730 char $ac_func ();
12731 /* The GNU C library defines this for functions which it implements
12732 to always fail with ENOSYS. Some functions are actually named
12733 something starting with __ and the normal name is an alias. */
12734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12735 choke me
12736 #else
12737 char (*f) () = $ac_func;
12738 #endif
12739 #ifdef __cplusplus
12741 #endif
12744 main ()
12746 return f != $ac_func;
12748 return 0;
12750 _ACEOF
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753 (eval $ac_link) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -s conftest$ac_exeext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 eval "$as_ac_var=yes"
12764 else
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 eval "$as_ac_var=no"
12770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12774 if test `eval echo '${'$as_ac_var'}'` = yes; then
12775 cat >>confdefs.h <<_ACEOF
12776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12777 _ACEOF
12780 done
12783 for ac_header in maillock.h
12785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo "$as_me:$LINENO: checking for $ac_header" >&5
12788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12794 else
12795 # Is the header compilable?
12796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12798 cat >conftest.$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 $ac_includes_default
12806 #include <$ac_header>
12807 _ACEOF
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_header_compiler=yes
12821 else
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_header_compiler=no
12827 rm -f conftest.$ac_objext conftest.$ac_ext
12828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6
12831 # Is the header present?
12832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12834 cat >conftest.$ac_ext <<_ACEOF
12835 #line $LINENO "configure"
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <$ac_header>
12842 _ACEOF
12843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } >/dev/null; then
12851 if test -s conftest.err; then
12852 ac_cpp_err=$ac_c_preproc_warn_flag
12853 else
12854 ac_cpp_err=
12856 else
12857 ac_cpp_err=yes
12859 if test -z "$ac_cpp_err"; then
12860 ac_header_preproc=yes
12861 else
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_header_preproc=no
12867 rm -f conftest.err conftest.$ac_ext
12868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12869 echo "${ECHO_T}$ac_header_preproc" >&6
12871 # So? What about this header?
12872 case $ac_header_compiler:$ac_header_preproc in
12873 yes:no )
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12879 cat <<\_ASBOX
12880 ## ------------------------------------ ##
12881 ## Report this to bug-autoconf@gnu.org. ##
12882 ## ------------------------------------ ##
12883 _ASBOX
12885 sed "s/^/$as_me: WARNING: /" >&2
12887 no:yes )
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12895 cat <<\_ASBOX
12896 ## ------------------------------------ ##
12897 ## Report this to bug-autoconf@gnu.org. ##
12898 ## ------------------------------------ ##
12899 _ASBOX
12901 sed "s/^/$as_me: WARNING: /" >&2
12903 esac
12904 echo "$as_me:$LINENO: checking for $ac_header" >&5
12905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909 eval "$as_ac_Header=$ac_header_preproc"
12911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12916 cat >>confdefs.h <<_ACEOF
12917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12918 _ACEOF
12922 done
12992 for ac_func in gethostname getdomainname dup2 \
12993 rename closedir mkdir rmdir sysinfo getrusage \
12994 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
12995 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
12996 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12997 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
12998 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12999 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13000 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13003 echo "$as_me:$LINENO: checking for $ac_func" >&5
13004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13005 if eval "test \"\${$as_ac_var+set}\" = set"; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008 cat >conftest.$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13010 /* confdefs.h. */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 /* System header to define __stub macros and hopefully few prototypes,
13016 which can conflict with char $ac_func (); below.
13017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13018 <limits.h> exists even on freestanding compilers. */
13019 #ifdef __STDC__
13020 # include <limits.h>
13021 #else
13022 # include <assert.h>
13023 #endif
13024 /* Override any gcc2 internal prototype to avoid an error. */
13025 #ifdef __cplusplus
13026 extern "C"
13028 #endif
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13031 char $ac_func ();
13032 /* The GNU C library defines this for functions which it implements
13033 to always fail with ENOSYS. Some functions are actually named
13034 something starting with __ and the normal name is an alias. */
13035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13036 choke me
13037 #else
13038 char (*f) () = $ac_func;
13039 #endif
13040 #ifdef __cplusplus
13042 #endif
13045 main ()
13047 return f != $ac_func;
13049 return 0;
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13054 (eval $ac_link) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 eval "$as_ac_var=yes"
13065 else
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13069 eval "$as_ac_var=no"
13071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13075 if test `eval echo '${'$as_ac_var'}'` = yes; then
13076 cat >>confdefs.h <<_ACEOF
13077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13078 _ACEOF
13081 done
13085 for ac_header in sys/un.h
13087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13089 echo "$as_me:$LINENO: checking for $ac_header" >&5
13090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13096 else
13097 # Is the header compilable?
13098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13100 cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13102 /* confdefs.h. */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 $ac_includes_default
13108 #include <$ac_header>
13109 _ACEOF
13110 rm -f conftest.$ac_objext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_header_compiler=yes
13123 else
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_header_compiler=no
13129 rm -f conftest.$ac_objext conftest.$ac_ext
13130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13131 echo "${ECHO_T}$ac_header_compiler" >&6
13133 # Is the header present?
13134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13137 #line $LINENO "configure"
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 #include <$ac_header>
13144 _ACEOF
13145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev/null; then
13153 if test -s conftest.err; then
13154 ac_cpp_err=$ac_c_preproc_warn_flag
13155 else
13156 ac_cpp_err=
13158 else
13159 ac_cpp_err=yes
13161 if test -z "$ac_cpp_err"; then
13162 ac_header_preproc=yes
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_header_preproc=no
13169 rm -f conftest.err conftest.$ac_ext
13170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13171 echo "${ECHO_T}$ac_header_preproc" >&6
13173 # So? What about this header?
13174 case $ac_header_compiler:$ac_header_preproc in
13175 yes:no )
13176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13181 cat <<\_ASBOX
13182 ## ------------------------------------ ##
13183 ## Report this to bug-autoconf@gnu.org. ##
13184 ## ------------------------------------ ##
13185 _ASBOX
13187 sed "s/^/$as_me: WARNING: /" >&2
13189 no:yes )
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13197 cat <<\_ASBOX
13198 ## ------------------------------------ ##
13199 ## Report this to bug-autoconf@gnu.org. ##
13200 ## ------------------------------------ ##
13201 _ASBOX
13203 sed "s/^/$as_me: WARNING: /" >&2
13205 esac
13206 echo "$as_me:$LINENO: checking for $ac_header" >&5
13207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211 eval "$as_ac_Header=$ac_header_preproc"
13213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13218 cat >>confdefs.h <<_ACEOF
13219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13220 _ACEOF
13224 done
13229 for ac_header in sys/time.h unistd.h
13231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13233 echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13240 else
13241 # Is the header compilable?
13242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13244 cat >conftest.$ac_ext <<_ACEOF
13245 #line $LINENO "configure"
13246 /* confdefs.h. */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 $ac_includes_default
13252 #include <$ac_header>
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -s conftest.$ac_objext'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 ac_header_compiler=yes
13267 else
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ac_header_compiler=no
13273 rm -f conftest.$ac_objext conftest.$ac_ext
13274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 echo "${ECHO_T}$ac_header_compiler" >&6
13277 # Is the header present?
13278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <$ac_header>
13288 _ACEOF
13289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev/null; then
13297 if test -s conftest.err; then
13298 ac_cpp_err=$ac_c_preproc_warn_flag
13299 else
13300 ac_cpp_err=
13302 else
13303 ac_cpp_err=yes
13305 if test -z "$ac_cpp_err"; then
13306 ac_header_preproc=yes
13307 else
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 ac_header_preproc=no
13313 rm -f conftest.err conftest.$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13315 echo "${ECHO_T}$ac_header_preproc" >&6
13317 # So? What about this header?
13318 case $ac_header_compiler:$ac_header_preproc in
13319 yes:no )
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13325 cat <<\_ASBOX
13326 ## ------------------------------------ ##
13327 ## Report this to bug-autoconf@gnu.org. ##
13328 ## ------------------------------------ ##
13329 _ASBOX
13331 sed "s/^/$as_me: WARNING: /" >&2
13333 no:yes )
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13341 cat <<\_ASBOX
13342 ## ------------------------------------ ##
13343 ## Report this to bug-autoconf@gnu.org. ##
13344 ## ------------------------------------ ##
13345 _ASBOX
13347 sed "s/^/$as_me: WARNING: /" >&2
13349 esac
13350 echo "$as_me:$LINENO: checking for $ac_header" >&5
13351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355 eval "$as_ac_Header=$ac_header_preproc"
13357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13362 cat >>confdefs.h <<_ACEOF
13363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13364 _ACEOF
13368 done
13371 for ac_func in alarm
13373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13374 echo "$as_me:$LINENO: checking for $ac_func" >&5
13375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13376 if eval "test \"\${$as_ac_var+set}\" = set"; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379 cat >conftest.$ac_ext <<_ACEOF
13380 #line $LINENO "configure"
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386 /* System header to define __stub macros and hopefully few prototypes,
13387 which can conflict with char $ac_func (); below.
13388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13389 <limits.h> exists even on freestanding compilers. */
13390 #ifdef __STDC__
13391 # include <limits.h>
13392 #else
13393 # include <assert.h>
13394 #endif
13395 /* Override any gcc2 internal prototype to avoid an error. */
13396 #ifdef __cplusplus
13397 extern "C"
13399 #endif
13400 /* We use char because int might match the return type of a gcc2
13401 builtin and then its argument prototype would still apply. */
13402 char $ac_func ();
13403 /* The GNU C library defines this for functions which it implements
13404 to always fail with ENOSYS. Some functions are actually named
13405 something starting with __ and the normal name is an alias. */
13406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13407 choke me
13408 #else
13409 char (*f) () = $ac_func;
13410 #endif
13411 #ifdef __cplusplus
13413 #endif
13416 main ()
13418 return f != $ac_func;
13420 return 0;
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 eval "$as_ac_var=yes"
13436 else
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 eval "$as_ac_var=no"
13442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13446 if test `eval echo '${'$as_ac_var'}'` = yes; then
13447 cat >>confdefs.h <<_ACEOF
13448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13449 _ACEOF
13452 done
13454 echo "$as_me:$LINENO: checking for working mktime" >&5
13455 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13456 if test "${ac_cv_func_working_mktime+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459 if test "$cross_compiling" = yes; then
13460 ac_cv_func_working_mktime=no
13461 else
13462 cat >conftest.$ac_ext <<_ACEOF
13463 #line $LINENO "configure"
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 /* Test program from Paul Eggert and Tony Leneis. */
13470 #if TIME_WITH_SYS_TIME
13471 # include <sys/time.h>
13472 # include <time.h>
13473 #else
13474 # if HAVE_SYS_TIME_H
13475 # include <sys/time.h>
13476 # else
13477 # include <time.h>
13478 # endif
13479 #endif
13481 #if HAVE_UNISTD_H
13482 # include <unistd.h>
13483 #endif
13485 #if !HAVE_ALARM
13486 # define alarm(X) /* empty */
13487 #endif
13489 /* Work around redefinition to rpl_putenv by other config tests. */
13490 #undef putenv
13492 static time_t time_t_max;
13494 /* Values we'll use to set the TZ environment variable. */
13495 static const char *const tz_strings[] = {
13496 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
13497 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13499 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13501 /* Fail if mktime fails to convert a date in the spring-forward gap.
13502 Based on a problem report from Andreas Jaeger. */
13503 static void
13504 spring_forward_gap ()
13506 /* glibc (up to about 1998-10-07) failed this test. */
13507 struct tm tm;
13509 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13510 instead of "TZ=America/Vancouver" in order to detect the bug even
13511 on systems that don't support the Olson extension, or don't have the
13512 full zoneinfo tables installed. */
13513 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13515 tm.tm_year = 98;
13516 tm.tm_mon = 3;
13517 tm.tm_mday = 5;
13518 tm.tm_hour = 2;
13519 tm.tm_min = 0;
13520 tm.tm_sec = 0;
13521 tm.tm_isdst = -1;
13522 if (mktime (&tm) == (time_t)-1)
13523 exit (1);
13526 static void
13527 mktime_test (now)
13528 time_t now;
13530 struct tm *lt;
13531 if ((lt = localtime (&now)) && mktime (lt) != now)
13532 exit (1);
13533 now = time_t_max - now;
13534 if ((lt = localtime (&now)) && mktime (lt) != now)
13535 exit (1);
13538 static void
13539 irix_6_4_bug ()
13541 /* Based on code from Ariel Faigon. */
13542 struct tm tm;
13543 tm.tm_year = 96;
13544 tm.tm_mon = 3;
13545 tm.tm_mday = 0;
13546 tm.tm_hour = 0;
13547 tm.tm_min = 0;
13548 tm.tm_sec = 0;
13549 tm.tm_isdst = -1;
13550 mktime (&tm);
13551 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13552 exit (1);
13555 static void
13556 bigtime_test (j)
13557 int j;
13559 struct tm tm;
13560 time_t now;
13561 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13562 now = mktime (&tm);
13563 if (now != (time_t) -1)
13565 struct tm *lt = localtime (&now);
13566 if (! (lt
13567 && lt->tm_year == tm.tm_year
13568 && lt->tm_mon == tm.tm_mon
13569 && lt->tm_mday == tm.tm_mday
13570 && lt->tm_hour == tm.tm_hour
13571 && lt->tm_min == tm.tm_min
13572 && lt->tm_sec == tm.tm_sec
13573 && lt->tm_yday == tm.tm_yday
13574 && lt->tm_wday == tm.tm_wday
13575 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13576 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13577 exit (1);
13582 main ()
13584 time_t t, delta;
13585 int i, j;
13587 /* This test makes some buggy mktime implementations loop.
13588 Give up after 60 seconds; a mktime slower than that
13589 isn't worth using anyway. */
13590 alarm (60);
13592 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13593 continue;
13594 time_t_max--;
13595 delta = time_t_max / 997; /* a suitable prime number */
13596 for (i = 0; i < N_STRINGS; i++)
13598 if (tz_strings[i])
13599 putenv (tz_strings[i]);
13601 for (t = 0; t <= time_t_max - delta; t += delta)
13602 mktime_test (t);
13603 mktime_test ((time_t) 60 * 60);
13604 mktime_test ((time_t) 60 * 60 * 24);
13606 for (j = 1; 0 < j; j *= 2)
13607 bigtime_test (j);
13608 bigtime_test (j - 1);
13610 irix_6_4_bug ();
13611 spring_forward_gap ();
13612 exit (0);
13614 _ACEOF
13615 rm -f conftest$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617 (eval $ac_link) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_func_working_mktime=yes
13627 else
13628 echo "$as_me: program exited with status $ac_status" >&5
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ( exit $ac_status )
13633 ac_cv_func_working_mktime=no
13635 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13639 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13640 if test $ac_cv_func_working_mktime = no; then
13641 LIBOBJS="$LIBOBJS mktime.$ac_objext"
13644 if test "$ac_cv_func_working_mktime" = no; then
13646 cat >>confdefs.h <<\_ACEOF
13647 #define BROKEN_MKTIME 1
13648 _ACEOF
13652 ac_have_func=no # yes means we've found a way to get the load average.
13654 # Make sure getloadavg.c is where it belongs, at configure-time.
13655 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13656 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13657 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13658 { (exit 1); exit 1; }; }
13660 ac_save_LIBS=$LIBS
13662 # Check for getloadavg, but be sure not to touch the cache variable.
13663 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13664 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13665 if test "${ac_cv_func_getloadavg+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668 cat >conftest.$ac_ext <<_ACEOF
13669 #line $LINENO "configure"
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 /* System header to define __stub macros and hopefully few prototypes,
13676 which can conflict with char getloadavg (); below.
13677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13678 <limits.h> exists even on freestanding compilers. */
13679 #ifdef __STDC__
13680 # include <limits.h>
13681 #else
13682 # include <assert.h>
13683 #endif
13684 /* Override any gcc2 internal prototype to avoid an error. */
13685 #ifdef __cplusplus
13686 extern "C"
13688 #endif
13689 /* We use char because int might match the return type of a gcc2
13690 builtin and then its argument prototype would still apply. */
13691 char getloadavg ();
13692 /* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
13696 choke me
13697 #else
13698 char (*f) () = getloadavg;
13699 #endif
13700 #ifdef __cplusplus
13702 #endif
13705 main ()
13707 return f != getloadavg;
13709 return 0;
13711 _ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -s conftest$ac_exeext'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_func_getloadavg=yes
13725 else
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ac_cv_func_getloadavg=no
13731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13733 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
13734 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
13735 if test $ac_cv_func_getloadavg = yes; then
13736 exit 0
13737 else
13738 exit 1
13740 ) && ac_have_func=yes
13742 # On HPUX9, an unprivileged user can get load averages through this function.
13744 for ac_func in pstat_getdynamic
13746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13747 echo "$as_me:$LINENO: checking for $ac_func" >&5
13748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13749 if eval "test \"\${$as_ac_var+set}\" = set"; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 #line $LINENO "configure"
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 /* System header to define __stub macros and hopefully few prototypes,
13760 which can conflict with char $ac_func (); below.
13761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13762 <limits.h> exists even on freestanding compilers. */
13763 #ifdef __STDC__
13764 # include <limits.h>
13765 #else
13766 # include <assert.h>
13767 #endif
13768 /* Override any gcc2 internal prototype to avoid an error. */
13769 #ifdef __cplusplus
13770 extern "C"
13772 #endif
13773 /* We use char because int might match the return type of a gcc2
13774 builtin and then its argument prototype would still apply. */
13775 char $ac_func ();
13776 /* The GNU C library defines this for functions which it implements
13777 to always fail with ENOSYS. Some functions are actually named
13778 something starting with __ and the normal name is an alias. */
13779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13780 choke me
13781 #else
13782 char (*f) () = $ac_func;
13783 #endif
13784 #ifdef __cplusplus
13786 #endif
13789 main ()
13791 return f != $ac_func;
13793 return 0;
13795 _ACEOF
13796 rm -f conftest.$ac_objext conftest$ac_exeext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13798 (eval $ac_link) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -s conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 eval "$as_ac_var=yes"
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 eval "$as_ac_var=no"
13815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13819 if test `eval echo '${'$as_ac_var'}'` = yes; then
13820 cat >>confdefs.h <<_ACEOF
13821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13822 _ACEOF
13825 done
13828 # Solaris has libkstat which does not require root.
13830 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
13831 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
13832 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 ac_check_lib_save_LIBS=$LIBS
13836 LIBS="-lkstat $LIBS"
13837 cat >conftest.$ac_ext <<_ACEOF
13838 #line $LINENO "configure"
13839 /* confdefs.h. */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13845 /* Override any gcc2 internal prototype to avoid an error. */
13846 #ifdef __cplusplus
13847 extern "C"
13848 #endif
13849 /* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13851 char kstat_open ();
13853 main ()
13855 kstat_open ();
13857 return 0;
13859 _ACEOF
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -s conftest$ac_exeext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_lib_kstat_kstat_open=yes
13873 else
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13877 ac_cv_lib_kstat_kstat_open=no
13879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13880 LIBS=$ac_check_lib_save_LIBS
13882 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
13883 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
13884 if test $ac_cv_lib_kstat_kstat_open = yes; then
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_LIBKSTAT 1
13887 _ACEOF
13889 LIBS="-lkstat $LIBS"
13893 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13895 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13896 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13897 # to get the right answer into the cache.
13898 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13899 if test $ac_have_func = no; then
13900 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
13901 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
13902 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lelf $LIBS"
13907 cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 /* confdefs.h. */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13915 /* Override any gcc2 internal prototype to avoid an error. */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 /* We use char because int might match the return type of a gcc2
13920 builtin and then its argument prototype would still apply. */
13921 char elf_begin ();
13923 main ()
13925 elf_begin ();
13927 return 0;
13929 _ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -s conftest$ac_exeext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_cv_lib_elf_elf_begin=yes
13943 else
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 ac_cv_lib_elf_elf_begin=no
13949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13952 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
13953 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
13954 if test $ac_cv_lib_elf_elf_begin = yes; then
13955 LIBS="-lelf $LIBS"
13959 if test $ac_have_func = no; then
13960 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
13961 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
13962 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 else
13965 ac_check_lib_save_LIBS=$LIBS
13966 LIBS="-lkvm $LIBS"
13967 cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13975 /* Override any gcc2 internal prototype to avoid an error. */
13976 #ifdef __cplusplus
13977 extern "C"
13978 #endif
13979 /* We use char because int might match the return type of a gcc2
13980 builtin and then its argument prototype would still apply. */
13981 char kvm_open ();
13983 main ()
13985 kvm_open ();
13987 return 0;
13989 _ACEOF
13990 rm -f conftest.$ac_objext conftest$ac_exeext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13992 (eval $ac_link) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try='test -s conftest$ac_exeext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 ac_cv_lib_kvm_kvm_open=yes
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14007 ac_cv_lib_kvm_kvm_open=no
14009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14013 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14014 if test $ac_cv_lib_kvm_kvm_open = yes; then
14015 LIBS="-lkvm $LIBS"
14018 # Check for the 4.4BSD definition of getloadavg.
14019 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14020 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14021 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024 ac_check_lib_save_LIBS=$LIBS
14025 LIBS="-lutil $LIBS"
14026 cat >conftest.$ac_ext <<_ACEOF
14027 #line $LINENO "configure"
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14034 /* Override any gcc2 internal prototype to avoid an error. */
14035 #ifdef __cplusplus
14036 extern "C"
14037 #endif
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14040 char getloadavg ();
14042 main ()
14044 getloadavg ();
14046 return 0;
14048 _ACEOF
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14051 (eval $ac_link) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -s conftest$ac_exeext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_lib_util_getloadavg=yes
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_cv_lib_util_getloadavg=no
14068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14069 LIBS=$ac_check_lib_save_LIBS
14071 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14072 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14073 if test $ac_cv_lib_util_getloadavg = yes; then
14074 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14079 if test $ac_have_func = no; then
14080 # There is a commonly available library for RS/6000 AIX.
14081 # Since it is not a standard part of AIX, it might be installed locally.
14082 ac_getloadavg_LIBS=$LIBS
14083 LIBS="-L/usr/local/lib $LIBS"
14084 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14085 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14086 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089 ac_check_lib_save_LIBS=$LIBS
14090 LIBS="-lgetloadavg $LIBS"
14091 cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 /* confdefs.h. */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14099 /* Override any gcc2 internal prototype to avoid an error. */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 /* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14105 char getloadavg ();
14107 main ()
14109 getloadavg ();
14111 return 0;
14113 _ACEOF
14114 rm -f conftest.$ac_objext conftest$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 (eval $ac_link) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -s conftest$ac_exeext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_cv_lib_getloadavg_getloadavg=yes
14127 else
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_cv_lib_getloadavg_getloadavg=no
14133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14134 LIBS=$ac_check_lib_save_LIBS
14136 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14137 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14138 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14139 LIBS="-lgetloadavg $LIBS"
14140 else
14141 LIBS=$ac_getloadavg_LIBS
14146 # Make sure it is really in the library, if we think we found it,
14147 # otherwise set up the replacement function.
14149 for ac_func in getloadavg
14151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14152 echo "$as_me:$LINENO: checking for $ac_func" >&5
14153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14154 if eval "test \"\${$as_ac_var+set}\" = set"; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157 cat >conftest.$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14159 /* confdefs.h. */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 /* System header to define __stub macros and hopefully few prototypes,
14165 which can conflict with char $ac_func (); below.
14166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14167 <limits.h> exists even on freestanding compilers. */
14168 #ifdef __STDC__
14169 # include <limits.h>
14170 #else
14171 # include <assert.h>
14172 #endif
14173 /* Override any gcc2 internal prototype to avoid an error. */
14174 #ifdef __cplusplus
14175 extern "C"
14177 #endif
14178 /* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14180 char $ac_func ();
14181 /* The GNU C library defines this for functions which it implements
14182 to always fail with ENOSYS. Some functions are actually named
14183 something starting with __ and the normal name is an alias. */
14184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14185 choke me
14186 #else
14187 char (*f) () = $ac_func;
14188 #endif
14189 #ifdef __cplusplus
14191 #endif
14194 main ()
14196 return f != $ac_func;
14198 return 0;
14200 _ACEOF
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 eval "$as_ac_var=yes"
14214 else
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14218 eval "$as_ac_var=no"
14220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14224 if test `eval echo '${'$as_ac_var'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14227 _ACEOF
14229 else
14230 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
14232 cat >>confdefs.h <<\_ACEOF
14233 #define C_GETLOADAVG 1
14234 _ACEOF
14236 # Figure out what our getloadavg.c needs.
14237 ac_have_func=no
14238 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14239 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14240 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14241 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14245 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14246 else
14247 # Is the header compilable?
14248 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14249 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14250 cat >conftest.$ac_ext <<_ACEOF
14251 #line $LINENO "configure"
14252 /* confdefs.h. */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 $ac_includes_default
14258 #include <sys/dg_sys_info.h>
14259 _ACEOF
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_header_compiler=yes
14273 else
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 ac_header_compiler=no
14279 rm -f conftest.$ac_objext conftest.$ac_ext
14280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281 echo "${ECHO_T}$ac_header_compiler" >&6
14283 # Is the header present?
14284 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14285 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14286 cat >conftest.$ac_ext <<_ACEOF
14287 #line $LINENO "configure"
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <sys/dg_sys_info.h>
14294 _ACEOF
14295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14297 ac_status=$?
14298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } >/dev/null; then
14303 if test -s conftest.err; then
14304 ac_cpp_err=$ac_c_preproc_warn_flag
14305 else
14306 ac_cpp_err=
14308 else
14309 ac_cpp_err=yes
14311 if test -z "$ac_cpp_err"; then
14312 ac_header_preproc=yes
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 ac_header_preproc=no
14319 rm -f conftest.err conftest.$ac_ext
14320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14321 echo "${ECHO_T}$ac_header_preproc" >&6
14323 # So? What about this header?
14324 case $ac_header_compiler:$ac_header_preproc in
14325 yes:no )
14326 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14327 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14331 cat <<\_ASBOX
14332 ## ------------------------------------ ##
14333 ## Report this to bug-autoconf@gnu.org. ##
14334 ## ------------------------------------ ##
14335 _ASBOX
14337 sed "s/^/$as_me: WARNING: /" >&2
14339 no:yes )
14340 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14341 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14343 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14345 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14347 cat <<\_ASBOX
14348 ## ------------------------------------ ##
14349 ## Report this to bug-autoconf@gnu.org. ##
14350 ## ------------------------------------ ##
14351 _ASBOX
14353 sed "s/^/$as_me: WARNING: /" >&2
14355 esac
14356 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14357 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14358 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14363 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14364 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14367 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14368 ac_have_func=yes
14370 cat >>confdefs.h <<\_ACEOF
14371 #define DGUX 1
14372 _ACEOF
14375 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14376 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14377 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380 ac_check_lib_save_LIBS=$LIBS
14381 LIBS="-ldgc $LIBS"
14382 cat >conftest.$ac_ext <<_ACEOF
14383 #line $LINENO "configure"
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14390 /* Override any gcc2 internal prototype to avoid an error. */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 /* We use char because int might match the return type of a gcc2
14395 builtin and then its argument prototype would still apply. */
14396 char dg_sys_info ();
14398 main ()
14400 dg_sys_info ();
14402 return 0;
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 (eval $ac_link) 2>&5
14408 ac_status=$?
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -s conftest$ac_exeext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_cv_lib_dgc_dg_sys_info=yes
14418 else
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_lib_dgc_dg_sys_info=no
14424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14425 LIBS=$ac_check_lib_save_LIBS
14427 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14428 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14429 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14430 cat >>confdefs.h <<_ACEOF
14431 #define HAVE_LIBDGC 1
14432 _ACEOF
14434 LIBS="-ldgc $LIBS"
14442 if test "${ac_cv_header_locale_h+set}" = set; then
14443 echo "$as_me:$LINENO: checking for locale.h" >&5
14444 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14445 if test "${ac_cv_header_locale_h+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14449 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14450 else
14451 # Is the header compilable?
14452 echo "$as_me:$LINENO: checking locale.h usability" >&5
14453 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14454 cat >conftest.$ac_ext <<_ACEOF
14455 #line $LINENO "configure"
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14462 #include <locale.h>
14463 _ACEOF
14464 rm -f conftest.$ac_objext
14465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14466 (eval $ac_compile) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_header_compiler=yes
14477 else
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_header_compiler=no
14483 rm -f conftest.$ac_objext conftest.$ac_ext
14484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485 echo "${ECHO_T}$ac_header_compiler" >&6
14487 # Is the header present?
14488 echo "$as_me:$LINENO: checking locale.h presence" >&5
14489 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <locale.h>
14498 _ACEOF
14499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } >/dev/null; then
14507 if test -s conftest.err; then
14508 ac_cpp_err=$ac_c_preproc_warn_flag
14509 else
14510 ac_cpp_err=
14512 else
14513 ac_cpp_err=yes
14515 if test -z "$ac_cpp_err"; then
14516 ac_header_preproc=yes
14517 else
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_header_preproc=no
14523 rm -f conftest.err conftest.$ac_ext
14524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14525 echo "${ECHO_T}$ac_header_preproc" >&6
14527 # So? What about this header?
14528 case $ac_header_compiler:$ac_header_preproc in
14529 yes:no )
14530 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14531 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14533 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14535 cat <<\_ASBOX
14536 ## ------------------------------------ ##
14537 ## Report this to bug-autoconf@gnu.org. ##
14538 ## ------------------------------------ ##
14539 _ASBOX
14541 sed "s/^/$as_me: WARNING: /" >&2
14543 no:yes )
14544 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14545 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14547 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14549 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14551 cat <<\_ASBOX
14552 ## ------------------------------------ ##
14553 ## Report this to bug-autoconf@gnu.org. ##
14554 ## ------------------------------------ ##
14555 _ASBOX
14557 sed "s/^/$as_me: WARNING: /" >&2
14559 esac
14560 echo "$as_me:$LINENO: checking for locale.h" >&5
14561 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14562 if test "${ac_cv_header_locale_h+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 ac_cv_header_locale_h=$ac_header_preproc
14567 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14568 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14574 for ac_func in setlocale
14576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14577 echo "$as_me:$LINENO: checking for $ac_func" >&5
14578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14579 if eval "test \"\${$as_ac_var+set}\" = set"; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582 cat >conftest.$ac_ext <<_ACEOF
14583 #line $LINENO "configure"
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 /* System header to define __stub macros and hopefully few prototypes,
14590 which can conflict with char $ac_func (); below.
14591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14592 <limits.h> exists even on freestanding compilers. */
14593 #ifdef __STDC__
14594 # include <limits.h>
14595 #else
14596 # include <assert.h>
14597 #endif
14598 /* Override any gcc2 internal prototype to avoid an error. */
14599 #ifdef __cplusplus
14600 extern "C"
14602 #endif
14603 /* We use char because int might match the return type of a gcc2
14604 builtin and then its argument prototype would still apply. */
14605 char $ac_func ();
14606 /* The GNU C library defines this for functions which it implements
14607 to always fail with ENOSYS. Some functions are actually named
14608 something starting with __ and the normal name is an alias. */
14609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14610 choke me
14611 #else
14612 char (*f) () = $ac_func;
14613 #endif
14614 #ifdef __cplusplus
14616 #endif
14619 main ()
14621 return f != $ac_func;
14623 return 0;
14625 _ACEOF
14626 rm -f conftest.$ac_objext conftest$ac_exeext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14628 (eval $ac_link) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -s conftest$ac_exeext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 eval "$as_ac_var=yes"
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 eval "$as_ac_var=no"
14645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14649 if test `eval echo '${'$as_ac_var'}'` = yes; then
14650 cat >>confdefs.h <<_ACEOF
14651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14652 _ACEOF
14655 done
14658 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14659 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14660 # Irix 4.0.5F has the header but not the library.
14661 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
14662 ac_have_func=yes
14664 cat >>confdefs.h <<\_ACEOF
14665 #define SVR4 1
14666 _ACEOF
14670 if test $ac_have_func = no; then
14671 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14672 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14673 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14674 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14678 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14679 else
14680 # Is the header compilable?
14681 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
14682 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
14683 cat >conftest.$ac_ext <<_ACEOF
14684 #line $LINENO "configure"
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 $ac_includes_default
14691 #include <inq_stats/cpustats.h>
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -s conftest.$ac_objext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_header_compiler=yes
14706 else
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_header_compiler=no
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6
14716 # Is the header present?
14717 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
14718 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
14719 cat >conftest.$ac_ext <<_ACEOF
14720 #line $LINENO "configure"
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <inq_stats/cpustats.h>
14727 _ACEOF
14728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev/null; then
14736 if test -s conftest.err; then
14737 ac_cpp_err=$ac_c_preproc_warn_flag
14738 else
14739 ac_cpp_err=
14741 else
14742 ac_cpp_err=yes
14744 if test -z "$ac_cpp_err"; then
14745 ac_header_preproc=yes
14746 else
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_header_preproc=no
14752 rm -f conftest.err conftest.$ac_ext
14753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14754 echo "${ECHO_T}$ac_header_preproc" >&6
14756 # So? What about this header?
14757 case $ac_header_compiler:$ac_header_preproc in
14758 yes:no )
14759 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14760 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14762 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14764 cat <<\_ASBOX
14765 ## ------------------------------------ ##
14766 ## Report this to bug-autoconf@gnu.org. ##
14767 ## ------------------------------------ ##
14768 _ASBOX
14770 sed "s/^/$as_me: WARNING: /" >&2
14772 no:yes )
14773 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
14774 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
14776 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14778 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14780 cat <<\_ASBOX
14781 ## ------------------------------------ ##
14782 ## Report this to bug-autoconf@gnu.org. ##
14783 ## ------------------------------------ ##
14784 _ASBOX
14786 sed "s/^/$as_me: WARNING: /" >&2
14788 esac
14789 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14790 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14791 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
14796 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14800 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
14801 ac_have_func=yes
14803 cat >>confdefs.h <<\_ACEOF
14804 #define UMAX 1
14805 _ACEOF
14808 cat >>confdefs.h <<\_ACEOF
14809 #define UMAX4_3 1
14810 _ACEOF
14817 if test $ac_have_func = no; then
14818 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14819 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14820 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14821 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14825 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14826 else
14827 # Is the header compilable?
14828 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
14829 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
14830 cat >conftest.$ac_ext <<_ACEOF
14831 #line $LINENO "configure"
14832 /* confdefs.h. */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 $ac_includes_default
14838 #include <sys/cpustats.h>
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842 (eval $ac_compile) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_header_compiler=yes
14853 else
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ac_header_compiler=no
14859 rm -f conftest.$ac_objext conftest.$ac_ext
14860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14861 echo "${ECHO_T}$ac_header_compiler" >&6
14863 # Is the header present?
14864 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
14865 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/cpustats.h>
14874 _ACEOF
14875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } >/dev/null; then
14883 if test -s conftest.err; then
14884 ac_cpp_err=$ac_c_preproc_warn_flag
14885 else
14886 ac_cpp_err=
14888 else
14889 ac_cpp_err=yes
14891 if test -z "$ac_cpp_err"; then
14892 ac_header_preproc=yes
14893 else
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_header_preproc=no
14899 rm -f conftest.err conftest.$ac_ext
14900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14901 echo "${ECHO_T}$ac_header_preproc" >&6
14903 # So? What about this header?
14904 case $ac_header_compiler:$ac_header_preproc in
14905 yes:no )
14906 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14907 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14911 cat <<\_ASBOX
14912 ## ------------------------------------ ##
14913 ## Report this to bug-autoconf@gnu.org. ##
14914 ## ------------------------------------ ##
14915 _ASBOX
14917 sed "s/^/$as_me: WARNING: /" >&2
14919 no:yes )
14920 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14927 cat <<\_ASBOX
14928 ## ------------------------------------ ##
14929 ## Report this to bug-autoconf@gnu.org. ##
14930 ## ------------------------------------ ##
14931 _ASBOX
14933 sed "s/^/$as_me: WARNING: /" >&2
14935 esac
14936 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14937 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14938 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941 ac_cv_header_sys_cpustats_h=$ac_header_preproc
14943 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14944 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14947 if test $ac_cv_header_sys_cpustats_h = yes; then
14948 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
14949 #define UMAX 1
14950 _ACEOF
14957 if test $ac_have_func = no; then
14959 for ac_header in mach/mach.h
14961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14963 echo "$as_me:$LINENO: checking for $ac_header" >&5
14964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14970 else
14971 # Is the header compilable?
14972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14975 #line $LINENO "configure"
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 $ac_includes_default
14982 #include <$ac_header>
14983 _ACEOF
14984 rm -f conftest.$ac_objext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14986 (eval $ac_compile) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -s conftest.$ac_objext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_header_compiler=yes
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_header_compiler=no
15003 rm -f conftest.$ac_objext conftest.$ac_ext
15004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6
15007 # Is the header present?
15008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15010 cat >conftest.$ac_ext <<_ACEOF
15011 #line $LINENO "configure"
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 #include <$ac_header>
15018 _ACEOF
15019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev/null; then
15027 if test -s conftest.err; then
15028 ac_cpp_err=$ac_c_preproc_warn_flag
15029 else
15030 ac_cpp_err=
15032 else
15033 ac_cpp_err=yes
15035 if test -z "$ac_cpp_err"; then
15036 ac_header_preproc=yes
15037 else
15038 echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15041 ac_header_preproc=no
15043 rm -f conftest.err conftest.$ac_ext
15044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15045 echo "${ECHO_T}$ac_header_preproc" >&6
15047 # So? What about this header?
15048 case $ac_header_compiler:$ac_header_preproc in
15049 yes:no )
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15055 cat <<\_ASBOX
15056 ## ------------------------------------ ##
15057 ## Report this to bug-autoconf@gnu.org. ##
15058 ## ------------------------------------ ##
15059 _ASBOX
15061 sed "s/^/$as_me: WARNING: /" >&2
15063 no:yes )
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15071 cat <<\_ASBOX
15072 ## ------------------------------------ ##
15073 ## Report this to bug-autoconf@gnu.org. ##
15074 ## ------------------------------------ ##
15075 _ASBOX
15077 sed "s/^/$as_me: WARNING: /" >&2
15079 esac
15080 echo "$as_me:$LINENO: checking for $ac_header" >&5
15081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085 eval "$as_ac_Header=$ac_header_preproc"
15087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092 cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15094 _ACEOF
15098 done
15103 for ac_header in nlist.h
15105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15107 echo "$as_me:$LINENO: checking for $ac_header" >&5
15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15114 else
15115 # Is the header compilable?
15116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15119 #line $LINENO "configure"
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 $ac_includes_default
15126 #include <$ac_header>
15127 _ACEOF
15128 rm -f conftest.$ac_objext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_header_compiler=yes
15141 else
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_compiler=no
15147 rm -f conftest.$ac_objext conftest.$ac_ext
15148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149 echo "${ECHO_T}$ac_header_compiler" >&6
15151 # Is the header present?
15152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15155 #line $LINENO "configure"
15156 /* confdefs.h. */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 #include <$ac_header>
15162 _ACEOF
15163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } >/dev/null; then
15171 if test -s conftest.err; then
15172 ac_cpp_err=$ac_c_preproc_warn_flag
15173 else
15174 ac_cpp_err=
15176 else
15177 ac_cpp_err=yes
15179 if test -z "$ac_cpp_err"; then
15180 ac_header_preproc=yes
15181 else
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 ac_header_preproc=no
15187 rm -f conftest.err conftest.$ac_ext
15188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15189 echo "${ECHO_T}$ac_header_preproc" >&6
15191 # So? What about this header?
15192 case $ac_header_compiler:$ac_header_preproc in
15193 yes:no )
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15199 cat <<\_ASBOX
15200 ## ------------------------------------ ##
15201 ## Report this to bug-autoconf@gnu.org. ##
15202 ## ------------------------------------ ##
15203 _ASBOX
15205 sed "s/^/$as_me: WARNING: /" >&2
15207 no:yes )
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15215 cat <<\_ASBOX
15216 ## ------------------------------------ ##
15217 ## Report this to bug-autoconf@gnu.org. ##
15218 ## ------------------------------------ ##
15219 _ASBOX
15221 sed "s/^/$as_me: WARNING: /" >&2
15223 esac
15224 echo "$as_me:$LINENO: checking for $ac_header" >&5
15225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229 eval "$as_ac_Header=$ac_header_preproc"
15231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15236 cat >>confdefs.h <<_ACEOF
15237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15238 _ACEOF
15239 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15240 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15241 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244 cat >conftest.$ac_ext <<_ACEOF
15245 #line $LINENO "configure"
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 #include <nlist.h>
15254 main ()
15256 static struct nlist ac_aggr;
15257 if (ac_aggr.n_un.n_name)
15258 return 0;
15260 return 0;
15262 _ACEOF
15263 rm -f conftest.$ac_objext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -s conftest.$ac_objext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_cv_member_struct_nlist_n_un_n_name=yes
15276 else
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 cat >conftest.$ac_ext <<_ACEOF
15281 #line $LINENO "configure"
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 #include <nlist.h>
15290 main ()
15292 static struct nlist ac_aggr;
15293 if (sizeof ac_aggr.n_un.n_name)
15294 return 0;
15296 return 0;
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -s conftest.$ac_objext'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_cv_member_struct_nlist_n_un_n_name=yes
15312 else
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 ac_cv_member_struct_nlist_n_un_n_name=no
15318 rm -f conftest.$ac_objext conftest.$ac_ext
15320 rm -f conftest.$ac_objext conftest.$ac_ext
15322 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15323 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15324 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15326 cat >>confdefs.h <<_ACEOF
15327 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15328 _ACEOF
15331 cat >>confdefs.h <<\_ACEOF
15332 #define NLIST_NAME_UNION 1
15333 _ACEOF
15340 done
15343 done
15346 # Some definitions of getloadavg require that the program be installed setgid.
15347 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15348 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15349 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352 cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15360 #ifdef LDAV_PRIVILEGED
15361 Yowza Am I SETGID yet
15362 #endif
15363 _ACEOF
15364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15365 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15366 ac_cv_func_getloadavg_setgid=yes
15367 else
15368 ac_cv_func_getloadavg_setgid=no
15370 rm -f conftest*
15373 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15374 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15375 if test $ac_cv_func_getloadavg_setgid = yes; then
15376 NEED_SETGID=true
15378 cat >>confdefs.h <<\_ACEOF
15379 #define GETLOADAVG_PRIVILEGED 1
15380 _ACEOF
15382 else
15383 NEED_SETGID=false
15386 if test $ac_cv_func_getloadavg_setgid = yes; then
15387 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15388 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15389 if test "${ac_cv_group_kmem+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15393 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15394 # If we got an error (system does not support symlinks), try without -L.
15395 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15396 ac_cv_group_kmem=`echo $ac_ls_output \
15397 | sed -ne 's/[ ][ ]*/ /g;
15398 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15399 / /s/.* //;p;'`
15402 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15403 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15404 KMEM_GROUP=$ac_cv_group_kmem
15406 if test "x$ac_save_LIBS" = x; then
15407 GETLOADAVG_LIBS=$LIBS
15408 else
15409 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15411 LIBS=$ac_save_LIBS
15415 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15416 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15417 if test "${ac_cv_sys_largefile_source+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420 while :; do
15421 ac_cv_sys_largefile_source=no
15422 cat >conftest.$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15424 /* confdefs.h. */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 #include <stdio.h>
15431 main ()
15433 return !fseeko;
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 break
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15456 rm -f conftest.$ac_objext conftest.$ac_ext
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #define _LARGEFILE_SOURCE 1
15465 #include <stdio.h>
15467 main ()
15469 return !fseeko;
15471 return 0;
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15476 (eval $ac_compile) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_cv_sys_largefile_source=1; break
15487 else
15488 echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15492 rm -f conftest.$ac_objext conftest.$ac_ext
15493 break
15494 done
15496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15497 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15498 if test "$ac_cv_sys_largefile_source" != no; then
15500 cat >>confdefs.h <<_ACEOF
15501 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15502 _ACEOF
15505 rm -f conftest*
15507 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15508 # in glibc 2.1.3, but that breaks too many other things.
15509 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15510 echo "$as_me:$LINENO: checking for fseeko" >&5
15511 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15512 if test "${ac_cv_func_fseeko+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 cat >conftest.$ac_ext <<_ACEOF
15516 #line $LINENO "configure"
15517 /* confdefs.h. */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15522 #include <stdio.h>
15524 main ()
15526 return fseeko && fseeko (stdin, 0, 0);
15528 return 0;
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -s conftest$ac_exeext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_cv_func_fseeko=yes
15544 else
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 ac_cv_func_fseeko=no
15550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15553 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15554 if test $ac_cv_func_fseeko = yes; then
15556 cat >>confdefs.h <<\_ACEOF
15557 #define HAVE_FSEEKO 1
15558 _ACEOF
15563 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15564 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
15565 if test "${ac_cv_func_getpgrp_void+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568 # Use it with a single arg.
15569 cat >conftest.$ac_ext <<_ACEOF
15570 #line $LINENO "configure"
15571 /* confdefs.h. */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 $ac_includes_default
15578 main ()
15580 getpgrp (0);
15582 return 0;
15584 _ACEOF
15585 rm -f conftest.$ac_objext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_func_getpgrp_void=no
15598 else
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_cv_func_getpgrp_void=yes
15604 rm -f conftest.$ac_objext conftest.$ac_ext
15607 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15608 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
15609 if test $ac_cv_func_getpgrp_void = yes; then
15611 cat >>confdefs.h <<\_ACEOF
15612 #define GETPGRP_VOID 1
15613 _ACEOF
15619 for ac_func in strftime
15621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15622 echo "$as_me:$LINENO: checking for $ac_func" >&5
15623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15624 if eval "test \"\${$as_ac_var+set}\" = set"; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627 cat >conftest.$ac_ext <<_ACEOF
15628 #line $LINENO "configure"
15629 /* confdefs.h. */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func (); below.
15636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637 <limits.h> exists even on freestanding compilers. */
15638 #ifdef __STDC__
15639 # include <limits.h>
15640 #else
15641 # include <assert.h>
15642 #endif
15643 /* Override any gcc2 internal prototype to avoid an error. */
15644 #ifdef __cplusplus
15645 extern "C"
15647 #endif
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15650 char $ac_func ();
15651 /* The GNU C library defines this for functions which it implements
15652 to always fail with ENOSYS. Some functions are actually named
15653 something starting with __ and the normal name is an alias. */
15654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15655 choke me
15656 #else
15657 char (*f) () = $ac_func;
15658 #endif
15659 #ifdef __cplusplus
15661 #endif
15664 main ()
15666 return f != $ac_func;
15668 return 0;
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -s conftest$ac_exeext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 eval "$as_ac_var=yes"
15684 else
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 eval "$as_ac_var=no"
15690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15694 if test `eval echo '${'$as_ac_var'}'` = yes; then
15695 cat >>confdefs.h <<_ACEOF
15696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15697 _ACEOF
15699 else
15700 # strftime is in -lintl on SCO UNIX.
15701 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15702 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15703 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706 ac_check_lib_save_LIBS=$LIBS
15707 LIBS="-lintl $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15709 #line $LINENO "configure"
15710 /* confdefs.h. */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15716 /* Override any gcc2 internal prototype to avoid an error. */
15717 #ifdef __cplusplus
15718 extern "C"
15719 #endif
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15722 char strftime ();
15724 main ()
15726 strftime ();
15728 return 0;
15730 _ACEOF
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_lib_intl_strftime=yes
15744 else
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_cv_lib_intl_strftime=no
15750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15751 LIBS=$ac_check_lib_save_LIBS
15753 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15754 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15755 if test $ac_cv_lib_intl_strftime = yes; then
15756 cat >>confdefs.h <<\_ACEOF
15757 #define HAVE_STRFTIME 1
15758 _ACEOF
15760 LIBS="-lintl $LIBS"
15764 done
15767 # UNIX98 PTYs.
15769 for ac_func in grantpt
15771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 echo "$as_me:$LINENO: checking for $ac_func" >&5
15773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15774 if eval "test \"\${$as_ac_var+set}\" = set"; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 /* System header to define __stub macros and hopefully few prototypes,
15785 which can conflict with char $ac_func (); below.
15786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15787 <limits.h> exists even on freestanding compilers. */
15788 #ifdef __STDC__
15789 # include <limits.h>
15790 #else
15791 # include <assert.h>
15792 #endif
15793 /* Override any gcc2 internal prototype to avoid an error. */
15794 #ifdef __cplusplus
15795 extern "C"
15797 #endif
15798 /* We use char because int might match the return type of a gcc2
15799 builtin and then its argument prototype would still apply. */
15800 char $ac_func ();
15801 /* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15805 choke me
15806 #else
15807 char (*f) () = $ac_func;
15808 #endif
15809 #ifdef __cplusplus
15811 #endif
15814 main ()
15816 return f != $ac_func;
15818 return 0;
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -s conftest$ac_exeext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 eval "$as_ac_var=yes"
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 eval "$as_ac_var=no"
15840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15844 if test `eval echo '${'$as_ac_var'}'` = yes; then
15845 cat >>confdefs.h <<_ACEOF
15846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15847 _ACEOF
15850 done
15853 # PTY-related GNU extensions.
15855 for ac_func in getpt
15857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15858 echo "$as_me:$LINENO: checking for $ac_func" >&5
15859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15860 if eval "test \"\${$as_ac_var+set}\" = set"; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 else
15863 cat >conftest.$ac_ext <<_ACEOF
15864 #line $LINENO "configure"
15865 /* confdefs.h. */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 /* System header to define __stub macros and hopefully few prototypes,
15871 which can conflict with char $ac_func (); below.
15872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873 <limits.h> exists even on freestanding compilers. */
15874 #ifdef __STDC__
15875 # include <limits.h>
15876 #else
15877 # include <assert.h>
15878 #endif
15879 /* Override any gcc2 internal prototype to avoid an error. */
15880 #ifdef __cplusplus
15881 extern "C"
15883 #endif
15884 /* We use char because int might match the return type of a gcc2
15885 builtin and then its argument prototype would still apply. */
15886 char $ac_func ();
15887 /* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15891 choke me
15892 #else
15893 char (*f) () = $ac_func;
15894 #endif
15895 #ifdef __cplusplus
15897 #endif
15900 main ()
15902 return f != $ac_func;
15904 return 0;
15906 _ACEOF
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -s conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 eval "$as_ac_var=yes"
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 eval "$as_ac_var=no"
15926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15930 if test `eval echo '${'$as_ac_var'}'` = yes; then
15931 cat >>confdefs.h <<_ACEOF
15932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15933 _ACEOF
15936 done
15939 # Check this now, so that we will NOT find the above functions in ncurses.
15940 # That is because we have not set up to link ncurses in lib-src.
15941 # It's better to believe a function is not available
15942 # than to expect to find it in ncurses.
15944 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
15945 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
15946 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 else
15949 ac_check_lib_save_LIBS=$LIBS
15950 LIBS="-lncurses $LIBS"
15951 cat >conftest.$ac_ext <<_ACEOF
15952 #line $LINENO "configure"
15953 /* confdefs.h. */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15959 /* Override any gcc2 internal prototype to avoid an error. */
15960 #ifdef __cplusplus
15961 extern "C"
15962 #endif
15963 /* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15965 char tparm ();
15967 main ()
15969 tparm ();
15971 return 0;
15973 _ACEOF
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15976 (eval $ac_link) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
15980 { ac_try='test -s conftest$ac_exeext'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_cv_lib_ncurses_tparm=yes
15987 else
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_cv_lib_ncurses_tparm=no
15993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15996 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
15997 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
15998 if test $ac_cv_lib_ncurses_tparm = yes; then
15999 cat >>confdefs.h <<_ACEOF
16000 #define HAVE_LIBNCURSES 1
16001 _ACEOF
16003 LIBS="-lncurses $LIBS"
16008 # Do we need the Hesiod library to provide the support routines?
16009 if test "$with_hesiod" = yes ; then
16010 # Don't set $LIBS here -- see comments above.
16011 resolv=no
16012 echo "$as_me:$LINENO: checking for res_send" >&5
16013 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16014 if test "${ac_cv_func_res_send+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 else
16017 cat >conftest.$ac_ext <<_ACEOF
16018 #line $LINENO "configure"
16019 /* confdefs.h. */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 /* System header to define __stub macros and hopefully few prototypes,
16025 which can conflict with char res_send (); below.
16026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16027 <limits.h> exists even on freestanding compilers. */
16028 #ifdef __STDC__
16029 # include <limits.h>
16030 #else
16031 # include <assert.h>
16032 #endif
16033 /* Override any gcc2 internal prototype to avoid an error. */
16034 #ifdef __cplusplus
16035 extern "C"
16037 #endif
16038 /* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
16040 char res_send ();
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined (__stub_res_send) || defined (__stub___res_send)
16045 choke me
16046 #else
16047 char (*f) () = res_send;
16048 #endif
16049 #ifdef __cplusplus
16051 #endif
16054 main ()
16056 return f != res_send;
16058 return 0;
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -s conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_cv_func_res_send=yes
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 ac_cv_func_res_send=no
16080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16082 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16083 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16084 if test $ac_cv_func_res_send = yes; then
16086 else
16087 echo "$as_me:$LINENO: checking for __res_send" >&5
16088 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16089 if test "${ac_cv_func___res_send+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092 cat >conftest.$ac_ext <<_ACEOF
16093 #line $LINENO "configure"
16094 /* confdefs.h. */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char __res_send (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16103 #ifdef __STDC__
16104 # include <limits.h>
16105 #else
16106 # include <assert.h>
16107 #endif
16108 /* Override any gcc2 internal prototype to avoid an error. */
16109 #ifdef __cplusplus
16110 extern "C"
16112 #endif
16113 /* We use char because int might match the return type of a gcc2
16114 builtin and then its argument prototype would still apply. */
16115 char __res_send ();
16116 /* The GNU C library defines this for functions which it implements
16117 to always fail with ENOSYS. Some functions are actually named
16118 something starting with __ and the normal name is an alias. */
16119 #if defined (__stub___res_send) || defined (__stub_____res_send)
16120 choke me
16121 #else
16122 char (*f) () = __res_send;
16123 #endif
16124 #ifdef __cplusplus
16126 #endif
16129 main ()
16131 return f != __res_send;
16133 return 0;
16135 _ACEOF
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138 (eval $ac_link) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try='test -s conftest$ac_exeext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 ac_cv_func___res_send=yes
16149 else
16150 echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16153 ac_cv_func___res_send=no
16155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16157 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16158 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16159 if test $ac_cv_func___res_send = yes; then
16161 else
16162 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16163 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16164 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167 ac_check_lib_save_LIBS=$LIBS
16168 LIBS="-lresolv $LIBS"
16169 cat >conftest.$ac_ext <<_ACEOF
16170 #line $LINENO "configure"
16171 /* confdefs.h. */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16177 /* Override any gcc2 internal prototype to avoid an error. */
16178 #ifdef __cplusplus
16179 extern "C"
16180 #endif
16181 /* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16183 char res_send ();
16185 main ()
16187 res_send ();
16189 return 0;
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -s conftest$ac_exeext'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_cv_lib_resolv_res_send=yes
16205 else
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ac_cv_lib_resolv_res_send=no
16211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16212 LIBS=$ac_check_lib_save_LIBS
16214 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16215 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16216 if test $ac_cv_lib_resolv_res_send = yes; then
16217 resolv=yes
16218 else
16219 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16220 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16221 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224 ac_check_lib_save_LIBS=$LIBS
16225 LIBS="-lresolv $LIBS"
16226 cat >conftest.$ac_ext <<_ACEOF
16227 #line $LINENO "configure"
16228 /* confdefs.h. */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16234 /* Override any gcc2 internal prototype to avoid an error. */
16235 #ifdef __cplusplus
16236 extern "C"
16237 #endif
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16240 char __res_send ();
16242 main ()
16244 __res_send ();
16246 return 0;
16248 _ACEOF
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16251 (eval $ac_link) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_lib_resolv___res_send=yes
16262 else
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_cv_lib_resolv___res_send=no
16268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16269 LIBS=$ac_check_lib_save_LIBS
16271 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16272 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16273 if test $ac_cv_lib_resolv___res_send = yes; then
16274 resolv=yes
16283 if test "$resolv" = yes ; then
16284 RESOLVLIB=-lresolv
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_LIBRESOLV 1
16288 _ACEOF
16290 else
16291 RESOLVLIB=
16293 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16294 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16295 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298 cat >conftest.$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 /* System header to define __stub macros and hopefully few prototypes,
16306 which can conflict with char hes_getmailhost (); below.
16307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16308 <limits.h> exists even on freestanding compilers. */
16309 #ifdef __STDC__
16310 # include <limits.h>
16311 #else
16312 # include <assert.h>
16313 #endif
16314 /* Override any gcc2 internal prototype to avoid an error. */
16315 #ifdef __cplusplus
16316 extern "C"
16318 #endif
16319 /* We use char because int might match the return type of a gcc2
16320 builtin and then its argument prototype would still apply. */
16321 char hes_getmailhost ();
16322 /* The GNU C library defines this for functions which it implements
16323 to always fail with ENOSYS. Some functions are actually named
16324 something starting with __ and the normal name is an alias. */
16325 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
16326 choke me
16327 #else
16328 char (*f) () = hes_getmailhost;
16329 #endif
16330 #ifdef __cplusplus
16332 #endif
16335 main ()
16337 return f != hes_getmailhost;
16339 return 0;
16341 _ACEOF
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -s conftest$ac_exeext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_cv_func_hes_getmailhost=yes
16355 else
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_cv_func_hes_getmailhost=no
16361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16363 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
16364 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
16365 if test $ac_cv_func_hes_getmailhost = yes; then
16367 else
16368 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
16369 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
16370 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 ac_check_lib_save_LIBS=$LIBS
16374 LIBS="-lhesiod $RESOLVLIB $LIBS"
16375 cat >conftest.$ac_ext <<_ACEOF
16376 #line $LINENO "configure"
16377 /* confdefs.h. */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16383 /* Override any gcc2 internal prototype to avoid an error. */
16384 #ifdef __cplusplus
16385 extern "C"
16386 #endif
16387 /* We use char because int might match the return type of a gcc2
16388 builtin and then its argument prototype would still apply. */
16389 char hes_getmailhost ();
16391 main ()
16393 hes_getmailhost ();
16395 return 0;
16397 _ACEOF
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400 (eval $ac_link) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_cv_lib_hesiod_hes_getmailhost=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_cv_lib_hesiod_hes_getmailhost=no
16417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16418 LIBS=$ac_check_lib_save_LIBS
16420 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16421 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
16422 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_LIBHESIOD 1
16426 _ACEOF
16428 else
16436 # These tell us which Kerberos-related libraries to use.
16437 if test "${with_kerberos+set}" = set; then
16439 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
16440 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
16441 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 else
16444 ac_check_lib_save_LIBS=$LIBS
16445 LIBS="-lcom_err $LIBS"
16446 cat >conftest.$ac_ext <<_ACEOF
16447 #line $LINENO "configure"
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16454 /* Override any gcc2 internal prototype to avoid an error. */
16455 #ifdef __cplusplus
16456 extern "C"
16457 #endif
16458 /* We use char because int might match the return type of a gcc2
16459 builtin and then its argument prototype would still apply. */
16460 char com_err ();
16462 main ()
16464 com_err ();
16466 return 0;
16468 _ACEOF
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16471 (eval $ac_link) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -s conftest$ac_exeext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_lib_com_err_com_err=yes
16482 else
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 ac_cv_lib_com_err_com_err=no
16488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16489 LIBS=$ac_check_lib_save_LIBS
16491 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
16492 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
16493 if test $ac_cv_lib_com_err_com_err = yes; then
16494 cat >>confdefs.h <<_ACEOF
16495 #define HAVE_LIBCOM_ERR 1
16496 _ACEOF
16498 LIBS="-lcom_err $LIBS"
16503 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16504 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
16505 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508 ac_check_lib_save_LIBS=$LIBS
16509 LIBS="-lk5crypto $LIBS"
16510 cat >conftest.$ac_ext <<_ACEOF
16511 #line $LINENO "configure"
16512 /* confdefs.h. */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16518 /* Override any gcc2 internal prototype to avoid an error. */
16519 #ifdef __cplusplus
16520 extern "C"
16521 #endif
16522 /* We use char because int might match the return type of a gcc2
16523 builtin and then its argument prototype would still apply. */
16524 char mit_des_cbc_encrypt ();
16526 main ()
16528 mit_des_cbc_encrypt ();
16530 return 0;
16532 _ACEOF
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535 (eval $ac_link) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } &&
16539 { ac_try='test -s conftest$ac_exeext'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16546 else
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16553 LIBS=$ac_check_lib_save_LIBS
16555 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16556 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
16557 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_LIBK5CRYPTO 1
16560 _ACEOF
16562 LIBS="-lk5crypto $LIBS"
16567 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16568 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
16569 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572 ac_check_lib_save_LIBS=$LIBS
16573 LIBS="-lcrypto $LIBS"
16574 cat >conftest.$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16582 /* Override any gcc2 internal prototype to avoid an error. */
16583 #ifdef __cplusplus
16584 extern "C"
16585 #endif
16586 /* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588 char mit_des_cbc_encrypt ();
16590 main ()
16592 mit_des_cbc_encrypt ();
16594 return 0;
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
16616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16617 LIBS=$ac_check_lib_save_LIBS
16619 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16620 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
16621 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define HAVE_LIBCRYPTO 1
16624 _ACEOF
16626 LIBS="-lcrypto $LIBS"
16631 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
16632 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
16633 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636 ac_check_lib_save_LIBS=$LIBS
16637 LIBS="-lkrb5 $LIBS"
16638 cat >conftest.$ac_ext <<_ACEOF
16639 #line $LINENO "configure"
16640 /* confdefs.h. */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16646 /* Override any gcc2 internal prototype to avoid an error. */
16647 #ifdef __cplusplus
16648 extern "C"
16649 #endif
16650 /* We use char because int might match the return type of a gcc2
16651 builtin and then its argument prototype would still apply. */
16652 char krb5_init_context ();
16654 main ()
16656 krb5_init_context ();
16658 return 0;
16660 _ACEOF
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16663 (eval $ac_link) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -s conftest$ac_exeext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_lib_krb5_krb5_init_context=yes
16674 else
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 ac_cv_lib_krb5_krb5_init_context=no
16680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16683 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16684 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
16685 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
16686 cat >>confdefs.h <<_ACEOF
16687 #define HAVE_LIBKRB5 1
16688 _ACEOF
16690 LIBS="-lkrb5 $LIBS"
16694 if test "${with_kerberos5+set}" != set; then
16696 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16697 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
16698 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701 ac_check_lib_save_LIBS=$LIBS
16702 LIBS="-ldes425 $LIBS"
16703 cat >conftest.$ac_ext <<_ACEOF
16704 #line $LINENO "configure"
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16711 /* Override any gcc2 internal prototype to avoid an error. */
16712 #ifdef __cplusplus
16713 extern "C"
16714 #endif
16715 /* We use char because int might match the return type of a gcc2
16716 builtin and then its argument prototype would still apply. */
16717 char des_cbc_encrypt ();
16719 main ()
16721 des_cbc_encrypt ();
16723 return 0;
16725 _ACEOF
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_cv_lib_des425_des_cbc_encrypt=yes
16739 else
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 ac_cv_lib_des425_des_cbc_encrypt=no
16745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16748 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16749 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
16750 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16751 cat >>confdefs.h <<_ACEOF
16752 #define HAVE_LIBDES425 1
16753 _ACEOF
16755 LIBS="-ldes425 $LIBS"
16757 else
16759 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16760 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
16761 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 ac_check_lib_save_LIBS=$LIBS
16765 LIBS="-ldes $LIBS"
16766 cat >conftest.$ac_ext <<_ACEOF
16767 #line $LINENO "configure"
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16774 /* Override any gcc2 internal prototype to avoid an error. */
16775 #ifdef __cplusplus
16776 extern "C"
16777 #endif
16778 /* We use char because int might match the return type of a gcc2
16779 builtin and then its argument prototype would still apply. */
16780 char des_cbc_encrypt ();
16782 main ()
16784 des_cbc_encrypt ();
16786 return 0;
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791 (eval $ac_link) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -s conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_lib_des_des_cbc_encrypt=yes
16802 else
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_lib_des_des_cbc_encrypt=no
16808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16809 LIBS=$ac_check_lib_save_LIBS
16811 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16812 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
16813 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16814 cat >>confdefs.h <<_ACEOF
16815 #define HAVE_LIBDES 1
16816 _ACEOF
16818 LIBS="-ldes $LIBS"
16825 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
16826 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
16827 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830 ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-lkrb4 $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 #line $LINENO "configure"
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16840 /* Override any gcc2 internal prototype to avoid an error. */
16841 #ifdef __cplusplus
16842 extern "C"
16843 #endif
16844 /* We use char because int might match the return type of a gcc2
16845 builtin and then its argument prototype would still apply. */
16846 char krb_get_cred ();
16848 main ()
16850 krb_get_cred ();
16852 return 0;
16854 _ACEOF
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857 (eval $ac_link) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -s conftest$ac_exeext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_lib_krb4_krb_get_cred=yes
16868 else
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 ac_cv_lib_krb4_krb_get_cred=no
16874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16875 LIBS=$ac_check_lib_save_LIBS
16877 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16878 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
16879 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
16880 cat >>confdefs.h <<_ACEOF
16881 #define HAVE_LIBKRB4 1
16882 _ACEOF
16884 LIBS="-lkrb4 $LIBS"
16886 else
16888 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
16889 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
16890 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893 ac_check_lib_save_LIBS=$LIBS
16894 LIBS="-lkrb $LIBS"
16895 cat >conftest.$ac_ext <<_ACEOF
16896 #line $LINENO "configure"
16897 /* confdefs.h. */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16903 /* Override any gcc2 internal prototype to avoid an error. */
16904 #ifdef __cplusplus
16905 extern "C"
16906 #endif
16907 /* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
16909 char krb_get_cred ();
16911 main ()
16913 krb_get_cred ();
16915 return 0;
16917 _ACEOF
16918 rm -f conftest.$ac_objext conftest$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -s conftest$ac_exeext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_lib_krb_krb_get_cred=yes
16931 else
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ac_cv_lib_krb_krb_get_cred=no
16937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16938 LIBS=$ac_check_lib_save_LIBS
16940 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
16941 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
16942 if test $ac_cv_lib_krb_krb_get_cred = yes; then
16943 cat >>confdefs.h <<_ACEOF
16944 #define HAVE_LIBKRB 1
16945 _ACEOF
16947 LIBS="-lkrb $LIBS"
16955 if test "${with_kerberos5+set}" = set; then
16957 for ac_header in krb5.h
16959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo "$as_me:$LINENO: checking for $ac_header" >&5
16962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16968 else
16969 # Is the header compilable?
16970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16972 cat >conftest.$ac_ext <<_ACEOF
16973 #line $LINENO "configure"
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 $ac_includes_default
16980 #include <$ac_header>
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984 (eval $ac_compile) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -s conftest.$ac_objext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_header_compiler=yes
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_header_compiler=no
17001 rm -f conftest.$ac_objext conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17003 echo "${ECHO_T}$ac_header_compiler" >&6
17005 # Is the header present?
17006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17008 cat >conftest.$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 #include <$ac_header>
17016 _ACEOF
17017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } >/dev/null; then
17025 if test -s conftest.err; then
17026 ac_cpp_err=$ac_c_preproc_warn_flag
17027 else
17028 ac_cpp_err=
17030 else
17031 ac_cpp_err=yes
17033 if test -z "$ac_cpp_err"; then
17034 ac_header_preproc=yes
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_preproc=no
17041 rm -f conftest.err conftest.$ac_ext
17042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17043 echo "${ECHO_T}$ac_header_preproc" >&6
17045 # So? What about this header?
17046 case $ac_header_compiler:$ac_header_preproc in
17047 yes:no )
17048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17053 cat <<\_ASBOX
17054 ## ------------------------------------ ##
17055 ## Report this to bug-autoconf@gnu.org. ##
17056 ## ------------------------------------ ##
17057 _ASBOX
17059 sed "s/^/$as_me: WARNING: /" >&2
17061 no:yes )
17062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17069 cat <<\_ASBOX
17070 ## ------------------------------------ ##
17071 ## Report this to bug-autoconf@gnu.org. ##
17072 ## ------------------------------------ ##
17073 _ASBOX
17075 sed "s/^/$as_me: WARNING: /" >&2
17077 esac
17078 echo "$as_me:$LINENO: checking for $ac_header" >&5
17079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083 eval "$as_ac_Header=$ac_header_preproc"
17085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17092 _ACEOF
17096 done
17098 else
17100 for ac_header in des.h
17102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo "$as_me:$LINENO: checking for $ac_header" >&5
17105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17111 else
17112 # Is the header compilable?
17113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17115 cat >conftest.$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17117 /* confdefs.h. */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 #include <$ac_header>
17124 _ACEOF
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try='test -s conftest.$ac_objext'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_header_compiler=yes
17138 else
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17142 ac_header_compiler=no
17144 rm -f conftest.$ac_objext conftest.$ac_ext
17145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17146 echo "${ECHO_T}$ac_header_compiler" >&6
17148 # Is the header present?
17149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17151 cat >conftest.$ac_ext <<_ACEOF
17152 #line $LINENO "configure"
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 #include <$ac_header>
17159 _ACEOF
17160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } >/dev/null; then
17168 if test -s conftest.err; then
17169 ac_cpp_err=$ac_c_preproc_warn_flag
17170 else
17171 ac_cpp_err=
17173 else
17174 ac_cpp_err=yes
17176 if test -z "$ac_cpp_err"; then
17177 ac_header_preproc=yes
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 ac_header_preproc=no
17184 rm -f conftest.err conftest.$ac_ext
17185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17186 echo "${ECHO_T}$ac_header_preproc" >&6
17188 # So? What about this header?
17189 case $ac_header_compiler:$ac_header_preproc in
17190 yes:no )
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17196 cat <<\_ASBOX
17197 ## ------------------------------------ ##
17198 ## Report this to bug-autoconf@gnu.org. ##
17199 ## ------------------------------------ ##
17200 _ASBOX
17202 sed "s/^/$as_me: WARNING: /" >&2
17204 no:yes )
17205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17212 cat <<\_ASBOX
17213 ## ------------------------------------ ##
17214 ## Report this to bug-autoconf@gnu.org. ##
17215 ## ------------------------------------ ##
17216 _ASBOX
17218 sed "s/^/$as_me: WARNING: /" >&2
17220 esac
17221 echo "$as_me:$LINENO: checking for $ac_header" >&5
17222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 eval "$as_ac_Header=$ac_header_preproc"
17228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17233 cat >>confdefs.h <<_ACEOF
17234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17235 _ACEOF
17237 else
17239 for ac_header in kerberosIV/des.h
17241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17243 echo "$as_me:$LINENO: checking for $ac_header" >&5
17244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17250 else
17251 # Is the header compilable?
17252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17254 cat >conftest.$ac_ext <<_ACEOF
17255 #line $LINENO "configure"
17256 /* confdefs.h. */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 $ac_includes_default
17262 #include <$ac_header>
17263 _ACEOF
17264 rm -f conftest.$ac_objext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17266 (eval $ac_compile) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try='test -s conftest.$ac_objext'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_header_compiler=yes
17277 else
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 ac_header_compiler=no
17283 rm -f conftest.$ac_objext conftest.$ac_ext
17284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6
17287 # Is the header present?
17288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17290 cat >conftest.$ac_ext <<_ACEOF
17291 #line $LINENO "configure"
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 #include <$ac_header>
17298 _ACEOF
17299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } >/dev/null; then
17307 if test -s conftest.err; then
17308 ac_cpp_err=$ac_c_preproc_warn_flag
17309 else
17310 ac_cpp_err=
17312 else
17313 ac_cpp_err=yes
17315 if test -z "$ac_cpp_err"; then
17316 ac_header_preproc=yes
17317 else
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_header_preproc=no
17323 rm -f conftest.err conftest.$ac_ext
17324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17325 echo "${ECHO_T}$ac_header_preproc" >&6
17327 # So? What about this header?
17328 case $ac_header_compiler:$ac_header_preproc in
17329 yes:no )
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17335 cat <<\_ASBOX
17336 ## ------------------------------------ ##
17337 ## Report this to bug-autoconf@gnu.org. ##
17338 ## ------------------------------------ ##
17339 _ASBOX
17341 sed "s/^/$as_me: WARNING: /" >&2
17343 no:yes )
17344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17351 cat <<\_ASBOX
17352 ## ------------------------------------ ##
17353 ## Report this to bug-autoconf@gnu.org. ##
17354 ## ------------------------------------ ##
17355 _ASBOX
17357 sed "s/^/$as_me: WARNING: /" >&2
17359 esac
17360 echo "$as_me:$LINENO: checking for $ac_header" >&5
17361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365 eval "$as_ac_Header=$ac_header_preproc"
17367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17372 cat >>confdefs.h <<_ACEOF
17373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17374 _ACEOF
17376 else
17378 for ac_header in kerberos/des.h
17380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo "$as_me:$LINENO: checking for $ac_header" >&5
17383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17389 else
17390 # Is the header compilable?
17391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17393 cat >conftest.$ac_ext <<_ACEOF
17394 #line $LINENO "configure"
17395 /* confdefs.h. */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 $ac_includes_default
17401 #include <$ac_header>
17402 _ACEOF
17403 rm -f conftest.$ac_objext
17404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17405 (eval $ac_compile) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -s conftest.$ac_objext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_header_compiler=yes
17416 else
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ac_header_compiler=no
17422 rm -f conftest.$ac_objext conftest.$ac_ext
17423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17424 echo "${ECHO_T}$ac_header_compiler" >&6
17426 # Is the header present?
17427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17429 cat >conftest.$ac_ext <<_ACEOF
17430 #line $LINENO "configure"
17431 /* confdefs.h. */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 #include <$ac_header>
17437 _ACEOF
17438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } >/dev/null; then
17446 if test -s conftest.err; then
17447 ac_cpp_err=$ac_c_preproc_warn_flag
17448 else
17449 ac_cpp_err=
17451 else
17452 ac_cpp_err=yes
17454 if test -z "$ac_cpp_err"; then
17455 ac_header_preproc=yes
17456 else
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_header_preproc=no
17462 rm -f conftest.err conftest.$ac_ext
17463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17464 echo "${ECHO_T}$ac_header_preproc" >&6
17466 # So? What about this header?
17467 case $ac_header_compiler:$ac_header_preproc in
17468 yes:no )
17469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17474 cat <<\_ASBOX
17475 ## ------------------------------------ ##
17476 ## Report this to bug-autoconf@gnu.org. ##
17477 ## ------------------------------------ ##
17478 _ASBOX
17480 sed "s/^/$as_me: WARNING: /" >&2
17482 no:yes )
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17490 cat <<\_ASBOX
17491 ## ------------------------------------ ##
17492 ## Report this to bug-autoconf@gnu.org. ##
17493 ## ------------------------------------ ##
17494 _ASBOX
17496 sed "s/^/$as_me: WARNING: /" >&2
17498 esac
17499 echo "$as_me:$LINENO: checking for $ac_header" >&5
17500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504 eval "$as_ac_Header=$ac_header_preproc"
17506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17513 _ACEOF
17517 done
17521 done
17525 done
17528 for ac_header in krb.h
17530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17532 echo "$as_me:$LINENO: checking for $ac_header" >&5
17533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17539 else
17540 # Is the header compilable?
17541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17543 cat >conftest.$ac_ext <<_ACEOF
17544 #line $LINENO "configure"
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 $ac_includes_default
17551 #include <$ac_header>
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_header_compiler=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_header_compiler=no
17572 rm -f conftest.$ac_objext conftest.$ac_ext
17573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17574 echo "${ECHO_T}$ac_header_compiler" >&6
17576 # Is the header present?
17577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17579 cat >conftest.$ac_ext <<_ACEOF
17580 #line $LINENO "configure"
17581 /* confdefs.h. */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 #include <$ac_header>
17587 _ACEOF
17588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } >/dev/null; then
17596 if test -s conftest.err; then
17597 ac_cpp_err=$ac_c_preproc_warn_flag
17598 else
17599 ac_cpp_err=
17601 else
17602 ac_cpp_err=yes
17604 if test -z "$ac_cpp_err"; then
17605 ac_header_preproc=yes
17606 else
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 ac_header_preproc=no
17612 rm -f conftest.err conftest.$ac_ext
17613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17614 echo "${ECHO_T}$ac_header_preproc" >&6
17616 # So? What about this header?
17617 case $ac_header_compiler:$ac_header_preproc in
17618 yes:no )
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17624 cat <<\_ASBOX
17625 ## ------------------------------------ ##
17626 ## Report this to bug-autoconf@gnu.org. ##
17627 ## ------------------------------------ ##
17628 _ASBOX
17630 sed "s/^/$as_me: WARNING: /" >&2
17632 no:yes )
17633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17640 cat <<\_ASBOX
17641 ## ------------------------------------ ##
17642 ## Report this to bug-autoconf@gnu.org. ##
17643 ## ------------------------------------ ##
17644 _ASBOX
17646 sed "s/^/$as_me: WARNING: /" >&2
17648 esac
17649 echo "$as_me:$LINENO: checking for $ac_header" >&5
17650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654 eval "$as_ac_Header=$ac_header_preproc"
17656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17661 cat >>confdefs.h <<_ACEOF
17662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17663 _ACEOF
17665 else
17667 for ac_header in kerberosIV/krb.h
17669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17671 echo "$as_me:$LINENO: checking for $ac_header" >&5
17672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17678 else
17679 # Is the header compilable?
17680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17683 #line $LINENO "configure"
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 #include <$ac_header>
17691 _ACEOF
17692 rm -f conftest.$ac_objext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17694 (eval $ac_compile) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try='test -s conftest.$ac_objext'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 ac_header_compiler=yes
17705 else
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 ac_header_compiler=no
17711 rm -f conftest.$ac_objext conftest.$ac_ext
17712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17713 echo "${ECHO_T}$ac_header_compiler" >&6
17715 # Is the header present?
17716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17718 cat >conftest.$ac_ext <<_ACEOF
17719 #line $LINENO "configure"
17720 /* confdefs.h. */
17721 _ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725 #include <$ac_header>
17726 _ACEOF
17727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17729 ac_status=$?
17730 grep -v '^ *+' conftest.er1 >conftest.err
17731 rm -f conftest.er1
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } >/dev/null; then
17735 if test -s conftest.err; then
17736 ac_cpp_err=$ac_c_preproc_warn_flag
17737 else
17738 ac_cpp_err=
17740 else
17741 ac_cpp_err=yes
17743 if test -z "$ac_cpp_err"; then
17744 ac_header_preproc=yes
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_header_preproc=no
17751 rm -f conftest.err conftest.$ac_ext
17752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17753 echo "${ECHO_T}$ac_header_preproc" >&6
17755 # So? What about this header?
17756 case $ac_header_compiler:$ac_header_preproc in
17757 yes:no )
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17763 cat <<\_ASBOX
17764 ## ------------------------------------ ##
17765 ## Report this to bug-autoconf@gnu.org. ##
17766 ## ------------------------------------ ##
17767 _ASBOX
17769 sed "s/^/$as_me: WARNING: /" >&2
17771 no:yes )
17772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17779 cat <<\_ASBOX
17780 ## ------------------------------------ ##
17781 ## Report this to bug-autoconf@gnu.org. ##
17782 ## ------------------------------------ ##
17783 _ASBOX
17785 sed "s/^/$as_me: WARNING: /" >&2
17787 esac
17788 echo "$as_me:$LINENO: checking for $ac_header" >&5
17789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793 eval "$as_ac_Header=$ac_header_preproc"
17795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17800 cat >>confdefs.h <<_ACEOF
17801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17802 _ACEOF
17804 else
17806 for ac_header in kerberos/krb.h
17808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17810 echo "$as_me:$LINENO: checking for $ac_header" >&5
17811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17817 else
17818 # Is the header compilable?
17819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17821 cat >conftest.$ac_ext <<_ACEOF
17822 #line $LINENO "configure"
17823 /* confdefs.h. */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 $ac_includes_default
17829 #include <$ac_header>
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -s conftest.$ac_objext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_header_compiler=yes
17844 else
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_header_compiler=no
17850 rm -f conftest.$ac_objext conftest.$ac_ext
17851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17852 echo "${ECHO_T}$ac_header_compiler" >&6
17854 # Is the header present?
17855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17857 cat >conftest.$ac_ext <<_ACEOF
17858 #line $LINENO "configure"
17859 /* confdefs.h. */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 #include <$ac_header>
17865 _ACEOF
17866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } >/dev/null; then
17874 if test -s conftest.err; then
17875 ac_cpp_err=$ac_c_preproc_warn_flag
17876 else
17877 ac_cpp_err=
17879 else
17880 ac_cpp_err=yes
17882 if test -z "$ac_cpp_err"; then
17883 ac_header_preproc=yes
17884 else
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 ac_header_preproc=no
17890 rm -f conftest.err conftest.$ac_ext
17891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17892 echo "${ECHO_T}$ac_header_preproc" >&6
17894 # So? What about this header?
17895 case $ac_header_compiler:$ac_header_preproc in
17896 yes:no )
17897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17902 cat <<\_ASBOX
17903 ## ------------------------------------ ##
17904 ## Report this to bug-autoconf@gnu.org. ##
17905 ## ------------------------------------ ##
17906 _ASBOX
17908 sed "s/^/$as_me: WARNING: /" >&2
17910 no:yes )
17911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17918 cat <<\_ASBOX
17919 ## ------------------------------------ ##
17920 ## Report this to bug-autoconf@gnu.org. ##
17921 ## ------------------------------------ ##
17922 _ASBOX
17924 sed "s/^/$as_me: WARNING: /" >&2
17926 esac
17927 echo "$as_me:$LINENO: checking for $ac_header" >&5
17928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 eval "$as_ac_Header=$ac_header_preproc"
17934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17939 cat >>confdefs.h <<_ACEOF
17940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17941 _ACEOF
17945 done
17949 done
17953 done
17957 for ac_header in com_err.h
17959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17961 echo "$as_me:$LINENO: checking for $ac_header" >&5
17962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17968 else
17969 # Is the header compilable?
17970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17972 cat >conftest.$ac_ext <<_ACEOF
17973 #line $LINENO "configure"
17974 /* confdefs.h. */
17975 _ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17979 $ac_includes_default
17980 #include <$ac_header>
17981 _ACEOF
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -s conftest.$ac_objext'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 ac_header_compiler=yes
17995 else
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_header_compiler=no
18001 rm -f conftest.$ac_objext conftest.$ac_ext
18002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18003 echo "${ECHO_T}$ac_header_compiler" >&6
18005 # Is the header present?
18006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18008 cat >conftest.$ac_ext <<_ACEOF
18009 #line $LINENO "configure"
18010 /* confdefs.h. */
18011 _ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18015 #include <$ac_header>
18016 _ACEOF
18017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } >/dev/null; then
18025 if test -s conftest.err; then
18026 ac_cpp_err=$ac_c_preproc_warn_flag
18027 else
18028 ac_cpp_err=
18030 else
18031 ac_cpp_err=yes
18033 if test -z "$ac_cpp_err"; then
18034 ac_header_preproc=yes
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 ac_header_preproc=no
18041 rm -f conftest.err conftest.$ac_ext
18042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18043 echo "${ECHO_T}$ac_header_preproc" >&6
18045 # So? What about this header?
18046 case $ac_header_compiler:$ac_header_preproc in
18047 yes:no )
18048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18053 cat <<\_ASBOX
18054 ## ------------------------------------ ##
18055 ## Report this to bug-autoconf@gnu.org. ##
18056 ## ------------------------------------ ##
18057 _ASBOX
18059 sed "s/^/$as_me: WARNING: /" >&2
18061 no:yes )
18062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18069 cat <<\_ASBOX
18070 ## ------------------------------------ ##
18071 ## Report this to bug-autoconf@gnu.org. ##
18072 ## ------------------------------------ ##
18073 _ASBOX
18075 sed "s/^/$as_me: WARNING: /" >&2
18077 esac
18078 echo "$as_me:$LINENO: checking for $ac_header" >&5
18079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083 eval "$as_ac_Header=$ac_header_preproc"
18085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18090 cat >>confdefs.h <<_ACEOF
18091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18092 _ACEOF
18096 done
18100 # Solaris requires -lintl if you want strerror (which calls dgettext)
18101 # to return localized messages.
18103 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18104 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18105 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 ac_check_lib_save_LIBS=$LIBS
18109 LIBS="-lintl $LIBS"
18110 cat >conftest.$ac_ext <<_ACEOF
18111 #line $LINENO "configure"
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 /* Override any gcc2 internal prototype to avoid an error. */
18119 #ifdef __cplusplus
18120 extern "C"
18121 #endif
18122 /* We use char because int might match the return type of a gcc2
18123 builtin and then its argument prototype would still apply. */
18124 char dgettext ();
18126 main ()
18128 dgettext ();
18130 return 0;
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -s conftest$ac_exeext'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_cv_lib_intl_dgettext=yes
18146 else
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18150 ac_cv_lib_intl_dgettext=no
18152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18153 LIBS=$ac_check_lib_save_LIBS
18155 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
18156 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
18157 if test $ac_cv_lib_intl_dgettext = yes; then
18158 cat >>confdefs.h <<_ACEOF
18159 #define HAVE_LIBINTL 1
18160 _ACEOF
18162 LIBS="-lintl $LIBS"
18167 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
18168 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
18169 if test "${emacs_cv_localtime_cache+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172 if test x$ac_cv_func_tzset = xyes; then
18173 if test "$cross_compiling" = yes; then
18174 # If we have tzset, assume the worst when cross-compiling.
18175 emacs_cv_localtime_cache=yes
18176 else
18177 cat >conftest.$ac_ext <<_ACEOF
18178 #line $LINENO "configure"
18179 /* confdefs.h. */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184 #include <time.h>
18185 extern char **environ;
18186 unset_TZ ()
18188 char **from, **to;
18189 for (to = from = environ; (*to = *from); from++)
18190 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
18191 to++;
18193 char TZ_GMT0[] = "TZ=GMT0";
18194 char TZ_PST8[] = "TZ=PST8";
18195 main()
18197 time_t now = time ((time_t *) 0);
18198 int hour_GMT0, hour_unset;
18199 if (putenv (TZ_GMT0) != 0)
18200 exit (1);
18201 hour_GMT0 = localtime (&now)->tm_hour;
18202 unset_TZ ();
18203 hour_unset = localtime (&now)->tm_hour;
18204 if (putenv (TZ_PST8) != 0)
18205 exit (1);
18206 if (localtime (&now)->tm_hour == hour_GMT0)
18207 exit (1);
18208 unset_TZ ();
18209 if (localtime (&now)->tm_hour != hour_unset)
18210 exit (1);
18211 exit (0);
18213 _ACEOF
18214 rm -f conftest$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216 (eval $ac_link) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225 emacs_cv_localtime_cache=no
18226 else
18227 echo "$as_me: program exited with status $ac_status" >&5
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 ( exit $ac_status )
18232 emacs_cv_localtime_cache=yes
18234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18236 else
18237 # If we lack tzset, report that localtime does not cache TZ,
18238 # since we can't invalidate the cache if we don't have tzset.
18239 emacs_cv_localtime_cache=no
18242 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
18243 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
18244 if test $emacs_cv_localtime_cache = yes; then
18246 cat >>confdefs.h <<\_ACEOF
18247 #define LOCALTIME_CACHE 1
18248 _ACEOF
18252 if test "x$HAVE_TIMEVAL" = xyes; then
18254 for ac_func in gettimeofday
18256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18257 echo "$as_me:$LINENO: checking for $ac_func" >&5
18258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18259 if eval "test \"\${$as_ac_var+set}\" = set"; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262 cat >conftest.$ac_ext <<_ACEOF
18263 #line $LINENO "configure"
18264 /* confdefs.h. */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 /* System header to define __stub macros and hopefully few prototypes,
18270 which can conflict with char $ac_func (); below.
18271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18272 <limits.h> exists even on freestanding compilers. */
18273 #ifdef __STDC__
18274 # include <limits.h>
18275 #else
18276 # include <assert.h>
18277 #endif
18278 /* Override any gcc2 internal prototype to avoid an error. */
18279 #ifdef __cplusplus
18280 extern "C"
18282 #endif
18283 /* We use char because int might match the return type of a gcc2
18284 builtin and then its argument prototype would still apply. */
18285 char $ac_func ();
18286 /* The GNU C library defines this for functions which it implements
18287 to always fail with ENOSYS. Some functions are actually named
18288 something starting with __ and the normal name is an alias. */
18289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18290 choke me
18291 #else
18292 char (*f) () = $ac_func;
18293 #endif
18294 #ifdef __cplusplus
18296 #endif
18299 main ()
18301 return f != $ac_func;
18303 return 0;
18305 _ACEOF
18306 rm -f conftest.$ac_objext conftest$ac_exeext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18308 (eval $ac_link) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -s conftest$ac_exeext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 eval "$as_ac_var=yes"
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 eval "$as_ac_var=no"
18325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18332 _ACEOF
18335 done
18337 if test $ac_cv_func_gettimeofday = yes; then
18338 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
18339 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
18340 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343 cat >conftest.$ac_ext <<_ACEOF
18344 #line $LINENO "configure"
18345 /* confdefs.h. */
18346 _ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18351 #ifdef TIME_WITH_SYS_TIME
18352 #include <sys/time.h>
18353 #include <time.h>
18354 #else
18355 #ifdef HAVE_SYS_TIME_H
18356 #include <sys/time.h>
18357 #else
18358 #include <time.h>
18359 #endif
18360 #endif
18362 main ()
18364 struct timeval time;
18365 gettimeofday (&time, 0);
18367 return 0;
18369 _ACEOF
18370 rm -f conftest.$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372 (eval $ac_compile) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -s conftest.$ac_objext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 emacs_cv_gettimeofday_two_arguments=yes
18383 else
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 emacs_cv_gettimeofday_two_arguments=no
18389 rm -f conftest.$ac_objext conftest.$ac_ext
18391 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
18392 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
18393 if test $emacs_cv_gettimeofday_two_arguments = no; then
18395 cat >>confdefs.h <<\_ACEOF
18396 #define GETTIMEOFDAY_ONE_ARGUMENT 1
18397 _ACEOF
18403 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18404 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18405 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18406 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409 cat >conftest.$ac_ext <<_ACEOF
18410 #line $LINENO "configure"
18411 /* confdefs.h. */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 #include <sys/types.h>
18417 #include <$ac_cv_struct_tm>
18421 main ()
18423 static struct tm ac_aggr;
18424 if (ac_aggr.tm_zone)
18425 return 0;
18427 return 0;
18429 _ACEOF
18430 rm -f conftest.$ac_objext
18431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18432 (eval $ac_compile) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -s conftest.$ac_objext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_member_struct_tm_tm_zone=yes
18443 else
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 cat >conftest.$ac_ext <<_ACEOF
18448 #line $LINENO "configure"
18449 /* confdefs.h. */
18450 _ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h. */
18454 #include <sys/types.h>
18455 #include <$ac_cv_struct_tm>
18459 main ()
18461 static struct tm ac_aggr;
18462 if (sizeof ac_aggr.tm_zone)
18463 return 0;
18465 return 0;
18467 _ACEOF
18468 rm -f conftest.$ac_objext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18470 (eval $ac_compile) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_member_struct_tm_tm_zone=yes
18481 else
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_member_struct_tm_tm_zone=no
18487 rm -f conftest.$ac_objext conftest.$ac_ext
18489 rm -f conftest.$ac_objext conftest.$ac_ext
18491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18492 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18493 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18495 cat >>confdefs.h <<_ACEOF
18496 #define HAVE_STRUCT_TM_TM_ZONE 1
18497 _ACEOF
18502 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18504 cat >>confdefs.h <<\_ACEOF
18505 #define HAVE_TM_ZONE 1
18506 _ACEOF
18508 else
18509 echo "$as_me:$LINENO: checking for tzname" >&5
18510 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18511 if test "${ac_cv_var_tzname+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 cat >conftest.$ac_ext <<_ACEOF
18515 #line $LINENO "configure"
18516 /* confdefs.h. */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 #include <time.h>
18522 #ifndef tzname /* For SGI. */
18523 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
18524 #endif
18527 main ()
18529 atoi(*tzname);
18531 return 0;
18533 _ACEOF
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18536 (eval $ac_link) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
18540 { ac_try='test -s conftest$ac_exeext'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_var_tzname=yes
18547 else
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_var_tzname=no
18553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18555 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18556 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18557 if test $ac_cv_var_tzname = yes; then
18559 cat >>confdefs.h <<\_ACEOF
18560 #define HAVE_TZNAME 1
18561 _ACEOF
18567 if test "$ac_cv_func_gettimeofday" = yes; then
18568 echo "$as_me:$LINENO: checking for struct timezone" >&5
18569 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
18570 if test "${emacs_cv_struct_timezone+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573 cat >conftest.$ac_ext <<_ACEOF
18574 #line $LINENO "configure"
18575 /* confdefs.h. */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 #include <sys/time.h>
18582 main ()
18584 struct timezone tz;
18586 return 0;
18588 _ACEOF
18589 rm -f conftest.$ac_objext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18591 (eval $ac_compile) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -s conftest.$ac_objext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 if test "$cross_compiling" = yes; then
18602 emacs_cv_struct_timezone=yes
18603 else
18604 cat >conftest.$ac_ext <<_ACEOF
18605 #line $LINENO "configure"
18606 /* confdefs.h. */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18612 #ifdef TIME_WITH_SYS_TIME
18613 #include <sys/time.h>
18614 #include <time.h>
18615 #else
18616 #ifdef HAVE_SYS_TIME_H
18617 #include <sys/time.h>
18618 #else
18619 #include <time.h>
18620 #endif
18621 #endif
18622 main () {
18623 struct timeval time;
18624 struct timezone dummy;
18625 exit (gettimeofday (&time, &dummy));
18627 _ACEOF
18628 rm -f conftest$ac_exeext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18630 (eval $ac_link) 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 emacs_cv_struct_timezone=yes
18640 else
18641 echo "$as_me: program exited with status $ac_status" >&5
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 ( exit $ac_status )
18646 emacs_cv_struct_timezone=no
18648 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18650 else
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18654 emacs_cv_struct_timezone=no
18656 rm -f conftest.$ac_objext conftest.$ac_ext
18658 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
18659 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
18662 ok_so_far=yes
18663 echo "$as_me:$LINENO: checking for socket" >&5
18664 echo $ECHO_N "checking for socket... $ECHO_C" >&6
18665 if test "${ac_cv_func_socket+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668 cat >conftest.$ac_ext <<_ACEOF
18669 #line $LINENO "configure"
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 /* System header to define __stub macros and hopefully few prototypes,
18676 which can conflict with char socket (); below.
18677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18678 <limits.h> exists even on freestanding compilers. */
18679 #ifdef __STDC__
18680 # include <limits.h>
18681 #else
18682 # include <assert.h>
18683 #endif
18684 /* Override any gcc2 internal prototype to avoid an error. */
18685 #ifdef __cplusplus
18686 extern "C"
18688 #endif
18689 /* We use char because int might match the return type of a gcc2
18690 builtin and then its argument prototype would still apply. */
18691 char socket ();
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined (__stub_socket) || defined (__stub___socket)
18696 choke me
18697 #else
18698 char (*f) () = socket;
18699 #endif
18700 #ifdef __cplusplus
18702 #endif
18705 main ()
18707 return f != socket;
18709 return 0;
18711 _ACEOF
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -s conftest$ac_exeext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_cv_func_socket=yes
18725 else
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729 ac_cv_func_socket=no
18731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18733 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18734 echo "${ECHO_T}$ac_cv_func_socket" >&6
18735 if test $ac_cv_func_socket = yes; then
18737 else
18738 ok_so_far=no
18741 if test $ok_so_far = yes; then
18742 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18743 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18744 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18745 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18749 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18750 else
18751 # Is the header compilable?
18752 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
18753 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
18754 cat >conftest.$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761 $ac_includes_default
18762 #include <netinet/in.h>
18763 _ACEOF
18764 rm -f conftest.$ac_objext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766 (eval $ac_compile) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try='test -s conftest.$ac_objext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_header_compiler=yes
18777 else
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18781 ac_header_compiler=no
18783 rm -f conftest.$ac_objext conftest.$ac_ext
18784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18785 echo "${ECHO_T}$ac_header_compiler" >&6
18787 # Is the header present?
18788 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
18789 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
18790 cat >conftest.$ac_ext <<_ACEOF
18791 #line $LINENO "configure"
18792 /* confdefs.h. */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 #include <netinet/in.h>
18798 _ACEOF
18799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18801 ac_status=$?
18802 grep -v '^ *+' conftest.er1 >conftest.err
18803 rm -f conftest.er1
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } >/dev/null; then
18807 if test -s conftest.err; then
18808 ac_cpp_err=$ac_c_preproc_warn_flag
18809 else
18810 ac_cpp_err=
18812 else
18813 ac_cpp_err=yes
18815 if test -z "$ac_cpp_err"; then
18816 ac_header_preproc=yes
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_header_preproc=no
18823 rm -f conftest.err conftest.$ac_ext
18824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18825 echo "${ECHO_T}$ac_header_preproc" >&6
18827 # So? What about this header?
18828 case $ac_header_compiler:$ac_header_preproc in
18829 yes:no )
18830 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
18831 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18832 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18833 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18835 cat <<\_ASBOX
18836 ## ------------------------------------ ##
18837 ## Report this to bug-autoconf@gnu.org. ##
18838 ## ------------------------------------ ##
18839 _ASBOX
18841 sed "s/^/$as_me: WARNING: /" >&2
18843 no:yes )
18844 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
18845 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
18847 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18849 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18851 cat <<\_ASBOX
18852 ## ------------------------------------ ##
18853 ## Report this to bug-autoconf@gnu.org. ##
18854 ## ------------------------------------ ##
18855 _ASBOX
18857 sed "s/^/$as_me: WARNING: /" >&2
18859 esac
18860 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18861 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865 ac_cv_header_netinet_in_h=$ac_header_preproc
18867 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18868 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18871 if test $ac_cv_header_netinet_in_h = yes; then
18873 else
18874 ok_so_far=no
18879 if test $ok_so_far = yes; then
18880 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18881 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18882 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18883 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18887 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18888 else
18889 # Is the header compilable?
18890 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
18891 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
18892 cat >conftest.$ac_ext <<_ACEOF
18893 #line $LINENO "configure"
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 $ac_includes_default
18900 #include <arpa/inet.h>
18901 _ACEOF
18902 rm -f conftest.$ac_objext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18904 (eval $ac_compile) 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
18908 { ac_try='test -s conftest.$ac_objext'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_header_compiler=yes
18915 else
18916 echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18919 ac_header_compiler=no
18921 rm -f conftest.$ac_objext conftest.$ac_ext
18922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18923 echo "${ECHO_T}$ac_header_compiler" >&6
18925 # Is the header present?
18926 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
18927 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
18928 cat >conftest.$ac_ext <<_ACEOF
18929 #line $LINENO "configure"
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <arpa/inet.h>
18936 _ACEOF
18937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } >/dev/null; then
18945 if test -s conftest.err; then
18946 ac_cpp_err=$ac_c_preproc_warn_flag
18947 else
18948 ac_cpp_err=
18950 else
18951 ac_cpp_err=yes
18953 if test -z "$ac_cpp_err"; then
18954 ac_header_preproc=yes
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 ac_header_preproc=no
18961 rm -f conftest.err conftest.$ac_ext
18962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18963 echo "${ECHO_T}$ac_header_preproc" >&6
18965 # So? What about this header?
18966 case $ac_header_compiler:$ac_header_preproc in
18967 yes:no )
18968 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
18969 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18971 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18973 cat <<\_ASBOX
18974 ## ------------------------------------ ##
18975 ## Report this to bug-autoconf@gnu.org. ##
18976 ## ------------------------------------ ##
18977 _ASBOX
18979 sed "s/^/$as_me: WARNING: /" >&2
18981 no:yes )
18982 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
18983 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
18984 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
18985 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
18986 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18987 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18989 cat <<\_ASBOX
18990 ## ------------------------------------ ##
18991 ## Report this to bug-autoconf@gnu.org. ##
18992 ## ------------------------------------ ##
18993 _ASBOX
18995 sed "s/^/$as_me: WARNING: /" >&2
18997 esac
18998 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18999 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19000 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003 ac_cv_header_arpa_inet_h=$ac_header_preproc
19005 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19006 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19009 if test $ac_cv_header_arpa_inet_h = yes; then
19011 else
19012 ok_so_far=no
19017 if test $ok_so_far = yes; then
19019 cat >>confdefs.h <<\_ACEOF
19020 #define HAVE_INET_SOCKETS 1
19021 _ACEOF
19026 for ac_header in sys/ioctl.h
19028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030 echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19037 else
19038 # Is the header compilable?
19039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19041 cat >conftest.$ac_ext <<_ACEOF
19042 #line $LINENO "configure"
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 $ac_includes_default
19049 #include <$ac_header>
19050 _ACEOF
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
19057 { ac_try='test -s conftest.$ac_objext'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 ac_header_compiler=yes
19064 else
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 ac_header_compiler=no
19070 rm -f conftest.$ac_objext conftest.$ac_ext
19071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19072 echo "${ECHO_T}$ac_header_compiler" >&6
19074 # Is the header present?
19075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19077 cat >conftest.$ac_ext <<_ACEOF
19078 #line $LINENO "configure"
19079 /* confdefs.h. */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 #include <$ac_header>
19085 _ACEOF
19086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19088 ac_status=$?
19089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } >/dev/null; then
19094 if test -s conftest.err; then
19095 ac_cpp_err=$ac_c_preproc_warn_flag
19096 else
19097 ac_cpp_err=
19099 else
19100 ac_cpp_err=yes
19102 if test -z "$ac_cpp_err"; then
19103 ac_header_preproc=yes
19104 else
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 ac_header_preproc=no
19110 rm -f conftest.err conftest.$ac_ext
19111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19112 echo "${ECHO_T}$ac_header_preproc" >&6
19114 # So? What about this header?
19115 case $ac_header_compiler:$ac_header_preproc in
19116 yes:no )
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19122 cat <<\_ASBOX
19123 ## ------------------------------------ ##
19124 ## Report this to bug-autoconf@gnu.org. ##
19125 ## ------------------------------------ ##
19126 _ASBOX
19128 sed "s/^/$as_me: WARNING: /" >&2
19130 no:yes )
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19138 cat <<\_ASBOX
19139 ## ------------------------------------ ##
19140 ## Report this to bug-autoconf@gnu.org. ##
19141 ## ------------------------------------ ##
19142 _ASBOX
19144 sed "s/^/$as_me: WARNING: /" >&2
19146 esac
19147 echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19151 else
19152 eval "$as_ac_Header=$ac_header_preproc"
19154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19159 cat >>confdefs.h <<_ACEOF
19160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19161 _ACEOF
19165 done
19168 if test -f /usr/lpp/X11/bin/smt.exp; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_AIX_SMT_EXP 1
19172 _ACEOF
19176 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
19177 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
19178 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19179 echo "$as_me:$LINENO: result: yes" >&5
19180 echo "${ECHO_T}yes" >&6
19182 cat >>confdefs.h <<\_ACEOF
19183 #define HAVE_DEV_PTMX 1
19184 _ACEOF
19186 else
19187 echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6
19191 echo "$as_me:$LINENO: checking for pid_t" >&5
19192 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19193 if test "${ac_cv_type_pid_t+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196 cat >conftest.$ac_ext <<_ACEOF
19197 #line $LINENO "configure"
19198 /* confdefs.h. */
19199 _ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 $ac_includes_default
19205 main ()
19207 if ((pid_t *) 0)
19208 return 0;
19209 if (sizeof (pid_t))
19210 return 0;
19212 return 0;
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -s conftest.$ac_objext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_type_pid_t=yes
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_type_pid_t=no
19234 rm -f conftest.$ac_objext conftest.$ac_ext
19236 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19237 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19238 if test $ac_cv_type_pid_t = yes; then
19240 else
19242 cat >>confdefs.h <<_ACEOF
19243 #define pid_t int
19244 _ACEOF
19250 for ac_header in unistd.h vfork.h
19252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19254 echo "$as_me:$LINENO: checking for $ac_header" >&5
19255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19261 else
19262 # Is the header compilable?
19263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19265 cat >conftest.$ac_ext <<_ACEOF
19266 #line $LINENO "configure"
19267 /* confdefs.h. */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 $ac_includes_default
19273 #include <$ac_header>
19274 _ACEOF
19275 rm -f conftest.$ac_objext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19277 (eval $ac_compile) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
19281 { ac_try='test -s conftest.$ac_objext'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_header_compiler=yes
19288 else
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 ac_header_compiler=no
19294 rm -f conftest.$ac_objext conftest.$ac_ext
19295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19296 echo "${ECHO_T}$ac_header_compiler" >&6
19298 # Is the header present?
19299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19301 cat >conftest.$ac_ext <<_ACEOF
19302 #line $LINENO "configure"
19303 /* confdefs.h. */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 #include <$ac_header>
19309 _ACEOF
19310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } >/dev/null; then
19318 if test -s conftest.err; then
19319 ac_cpp_err=$ac_c_preproc_warn_flag
19320 else
19321 ac_cpp_err=
19323 else
19324 ac_cpp_err=yes
19326 if test -z "$ac_cpp_err"; then
19327 ac_header_preproc=yes
19328 else
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_header_preproc=no
19334 rm -f conftest.err conftest.$ac_ext
19335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19336 echo "${ECHO_T}$ac_header_preproc" >&6
19338 # So? What about this header?
19339 case $ac_header_compiler:$ac_header_preproc in
19340 yes:no )
19341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19346 cat <<\_ASBOX
19347 ## ------------------------------------ ##
19348 ## Report this to bug-autoconf@gnu.org. ##
19349 ## ------------------------------------ ##
19350 _ASBOX
19352 sed "s/^/$as_me: WARNING: /" >&2
19354 no:yes )
19355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19362 cat <<\_ASBOX
19363 ## ------------------------------------ ##
19364 ## Report this to bug-autoconf@gnu.org. ##
19365 ## ------------------------------------ ##
19366 _ASBOX
19368 sed "s/^/$as_me: WARNING: /" >&2
19370 esac
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 eval "$as_ac_Header=$ac_header_preproc"
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19383 cat >>confdefs.h <<_ACEOF
19384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19385 _ACEOF
19389 done
19393 for ac_func in fork vfork
19395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19396 echo "$as_me:$LINENO: checking for $ac_func" >&5
19397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_var+set}\" = set"; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19401 cat >conftest.$ac_ext <<_ACEOF
19402 #line $LINENO "configure"
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 /* System header to define __stub macros and hopefully few prototypes,
19409 which can conflict with char $ac_func (); below.
19410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19411 <limits.h> exists even on freestanding compilers. */
19412 #ifdef __STDC__
19413 # include <limits.h>
19414 #else
19415 # include <assert.h>
19416 #endif
19417 /* Override any gcc2 internal prototype to avoid an error. */
19418 #ifdef __cplusplus
19419 extern "C"
19421 #endif
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19424 char $ac_func ();
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19429 choke me
19430 #else
19431 char (*f) () = $ac_func;
19432 #endif
19433 #ifdef __cplusplus
19435 #endif
19438 main ()
19440 return f != $ac_func;
19442 return 0;
19444 _ACEOF
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447 (eval $ac_link) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
19451 { ac_try='test -s conftest$ac_exeext'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457 eval "$as_ac_var=yes"
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 eval "$as_ac_var=no"
19464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19468 if test `eval echo '${'$as_ac_var'}'` = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19471 _ACEOF
19474 done
19476 if test "x$ac_cv_func_fork" = xyes; then
19477 echo "$as_me:$LINENO: checking for working fork" >&5
19478 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19479 if test "${ac_cv_func_fork_works+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 else
19482 if test "$cross_compiling" = yes; then
19483 ac_cv_func_fork_works=cross
19484 else
19485 cat >conftest.$ac_ext <<_ACEOF
19486 /* By Ruediger Kuhlmann. */
19487 #include <sys/types.h>
19488 #if HAVE_UNISTD_H
19489 # include <unistd.h>
19490 #endif
19491 /* Some systems only have a dummy stub for fork() */
19492 int main ()
19494 if (fork() < 0)
19495 exit (1);
19496 exit (0);
19498 _ACEOF
19499 rm -f conftest$ac_exeext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501 (eval $ac_link) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_func_fork_works=yes
19511 else
19512 echo "$as_me: program exited with status $ac_status" >&5
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ( exit $ac_status )
19517 ac_cv_func_fork_works=no
19519 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19522 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19523 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19525 else
19526 ac_cv_func_fork_works=$ac_cv_func_fork
19528 if test "x$ac_cv_func_fork_works" = xcross; then
19529 case $host in
19530 *-*-amigaos* | *-*-msdosdjgpp*)
19531 # Override, as these systems have only a dummy fork() stub
19532 ac_cv_func_fork_works=no
19535 ac_cv_func_fork_works=yes
19537 esac
19538 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19539 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19541 ac_cv_func_vfork_works=$ac_cv_func_vfork
19542 if test "x$ac_cv_func_vfork" = xyes; then
19543 echo "$as_me:$LINENO: checking for working vfork" >&5
19544 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19545 if test "${ac_cv_func_vfork_works+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 if test "$cross_compiling" = yes; then
19549 ac_cv_func_vfork_works=cross
19550 else
19551 cat >conftest.$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 /* Thanks to Paul Eggert for this test. */
19559 #include <stdio.h>
19560 #include <stdlib.h>
19561 #include <sys/types.h>
19562 #include <sys/stat.h>
19563 #include <sys/wait.h>
19564 #if HAVE_UNISTD_H
19565 # include <unistd.h>
19566 #endif
19567 #if HAVE_VFORK_H
19568 # include <vfork.h>
19569 #endif
19570 /* On some sparc systems, changes by the child to local and incoming
19571 argument registers are propagated back to the parent. The compiler
19572 is told about this with #include <vfork.h>, but some compilers
19573 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19574 static variable whose address is put into a register that is
19575 clobbered by the vfork. */
19576 static void
19577 #ifdef __cplusplus
19578 sparc_address_test (int arg)
19579 # else
19580 sparc_address_test (arg) int arg;
19581 #endif
19583 static pid_t child;
19584 if (!child) {
19585 child = vfork ();
19586 if (child < 0) {
19587 perror ("vfork");
19588 _exit(2);
19590 if (!child) {
19591 arg = getpid();
19592 write(-1, "", 0);
19593 _exit (arg);
19599 main ()
19601 pid_t parent = getpid ();
19602 pid_t child;
19604 sparc_address_test (0);
19606 child = vfork ();
19608 if (child == 0) {
19609 /* Here is another test for sparc vfork register problems. This
19610 test uses lots of local variables, at least as many local
19611 variables as main has allocated so far including compiler
19612 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19613 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19614 reuse the register of parent for one of the local variables,
19615 since it will think that parent can't possibly be used any more
19616 in this routine. Assigning to the local variable will thus
19617 munge parent in the parent process. */
19618 pid_t
19619 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19620 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19621 /* Convince the compiler that p..p7 are live; otherwise, it might
19622 use the same hardware register for all 8 local variables. */
19623 if (p != p1 || p != p2 || p != p3 || p != p4
19624 || p != p5 || p != p6 || p != p7)
19625 _exit(1);
19627 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19628 from child file descriptors. If the child closes a descriptor
19629 before it execs or exits, this munges the parent's descriptor
19630 as well. Test for this by closing stdout in the child. */
19631 _exit(close(fileno(stdout)) != 0);
19632 } else {
19633 int status;
19634 struct stat st;
19636 while (wait(&status) != child)
19638 exit(
19639 /* Was there some problem with vforking? */
19640 child < 0
19642 /* Did the child fail? (This shouldn't happen.) */
19643 || status
19645 /* Did the vfork/compiler bug occur? */
19646 || parent != getpid()
19648 /* Did the file descriptor bug occur? */
19649 || fstat(fileno(stdout), &st) != 0
19653 _ACEOF
19654 rm -f conftest$ac_exeext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19656 (eval $ac_link) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_cv_func_vfork_works=yes
19666 else
19667 echo "$as_me: program exited with status $ac_status" >&5
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ( exit $ac_status )
19672 ac_cv_func_vfork_works=no
19674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19677 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19678 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19681 if test "x$ac_cv_func_fork_works" = xcross; then
19682 ac_cv_func_vfork_works=ac_cv_func_vfork
19683 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19684 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19687 if test "x$ac_cv_func_vfork_works" = xyes; then
19689 cat >>confdefs.h <<\_ACEOF
19690 #define HAVE_WORKING_VFORK 1
19691 _ACEOF
19693 else
19695 cat >>confdefs.h <<\_ACEOF
19696 #define vfork fork
19697 _ACEOF
19700 if test "x$ac_cv_func_fork_works" = xyes; then
19702 cat >>confdefs.h <<\_ACEOF
19703 #define HAVE_WORKING_FORK 1
19704 _ACEOF
19709 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
19710 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
19711 if test "${emacs_cv_langinfo_codeset+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 cat >conftest.$ac_ext <<_ACEOF
19715 #line $LINENO "configure"
19716 /* confdefs.h. */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <langinfo.h>
19723 main ()
19725 char* cs = nl_langinfo(CODESET);
19727 return 0;
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732 (eval $ac_link) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try='test -s conftest$ac_exeext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 emacs_cv_langinfo_codeset=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 emacs_cv_langinfo_codeset=no
19749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19752 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
19753 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
19754 if test $emacs_cv_langinfo_codeset = yes; then
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_LANGINFO_CODESET 1
19758 _ACEOF
19762 echo "$as_me:$LINENO: checking for size_t" >&5
19763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19764 if test "${ac_cv_type_size_t+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767 cat >conftest.$ac_ext <<_ACEOF
19768 #line $LINENO "configure"
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 $ac_includes_default
19776 main ()
19778 if ((size_t *) 0)
19779 return 0;
19780 if (sizeof (size_t))
19781 return 0;
19783 return 0;
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try='test -s conftest.$ac_objext'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; }; then
19798 ac_cv_type_size_t=yes
19799 else
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ac_cv_type_size_t=no
19805 rm -f conftest.$ac_objext conftest.$ac_ext
19807 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19808 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19809 if test $ac_cv_type_size_t = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_SIZE_T 1
19813 _ACEOF
19819 echo "$as_me:$LINENO: checking for mbstate_t" >&5
19820 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
19821 if test "${ac_cv_type_mbstate_t+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824 cat >conftest.$ac_ext <<_ACEOF
19825 #line $LINENO "configure"
19826 /* confdefs.h. */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 $ac_includes_default
19832 # include <wchar.h>
19834 main ()
19836 mbstate_t x; return sizeof x;
19838 return 0;
19840 _ACEOF
19841 rm -f conftest.$ac_objext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843 (eval $ac_compile) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_type_mbstate_t=yes
19854 else
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 ac_cv_type_mbstate_t=no
19860 rm -f conftest.$ac_objext conftest.$ac_ext
19862 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
19863 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
19864 if test $ac_cv_type_mbstate_t = yes; then
19866 cat >>confdefs.h <<\_ACEOF
19867 #define HAVE_MBSTATE_T 1
19868 _ACEOF
19870 else
19872 cat >>confdefs.h <<\_ACEOF
19873 #define mbstate_t int
19874 _ACEOF
19878 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
19879 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
19880 if test "${emacs_cv_c_restrict+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883 cat >conftest.$ac_ext <<_ACEOF
19884 #line $LINENO "configure"
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 void fred (int *restrict x);
19892 main ()
19896 return 0;
19898 _ACEOF
19899 rm -f conftest.$ac_objext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } &&
19905 { ac_try='test -s conftest.$ac_objext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 emacs_cv_c_restrict=yes
19912 else
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 cat >conftest.$ac_ext <<_ACEOF
19917 #line $LINENO "configure"
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 void fred (int *__restrict x);
19925 main ()
19929 return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934 (eval $ac_compile) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -s conftest.$ac_objext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 emacs_cv_c_restrict=__restrict
19945 else
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 emacs_cv_c_restrict=no
19951 rm -f conftest.$ac_objext conftest.$ac_ext
19953 rm -f conftest.$ac_objext conftest.$ac_ext
19955 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
19956 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
19957 case "$emacs_cv_c_restrict" in
19958 yes) emacs_restrict=restrict;;
19959 no) emacs_restrict="";;
19960 *) emacs_restrict="$emacs_cv_c_restrict";;
19961 esac
19962 if test "$emacs_restrict" != __restrict; then
19964 cat >>confdefs.h <<_ACEOF
19965 #define __restrict $emacs_restrict
19966 _ACEOF
19970 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
19971 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
19972 if test "${emacs_cv_c_restrict_arr+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 cat >conftest.$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 void fred (int x[__restrict]);
19984 main ()
19988 return 0;
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20003 emacs_cv_c_restrict_arr=yes
20004 else
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 emacs_cv_c_restrict_arr=no
20010 rm -f conftest.$ac_objext conftest.$ac_ext
20012 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
20013 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
20014 if test "$emacs_cv_c_restrict_arr" = yes; then
20016 cat >>confdefs.h <<\_ACEOF
20017 #define __restrict_arr __restrict
20018 _ACEOF
20024 # Set up the CFLAGS for real compilation, so we can substitute it.
20025 CFLAGS="$REAL_CFLAGS"
20026 CPPFLAGS="$REAL_CPPFLAGS"
20028 #### Find out which version of Emacs this is.
20029 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
20030 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
20031 if test x"${version}" = x; then
20032 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
20033 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
20034 { (exit 1); exit 1; }; }
20037 ### Specify what sort of things we'll be editing into Makefile and config.h.
20038 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20074 cat >>confdefs.h <<_ACEOF
20075 #define EMACS_CONFIGURATION "${canonical}"
20076 _ACEOF
20079 cat >>confdefs.h <<_ACEOF
20080 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20081 _ACEOF
20084 cat >>confdefs.h <<_ACEOF
20085 #define config_machfile "${machfile}"
20086 _ACEOF
20089 cat >>confdefs.h <<_ACEOF
20090 #define config_opsysfile "${opsysfile}"
20091 _ACEOF
20094 cat >>confdefs.h <<_ACEOF
20095 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
20096 _ACEOF
20099 cat >>confdefs.h <<_ACEOF
20100 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
20101 _ACEOF
20104 cat >>confdefs.h <<_ACEOF
20105 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
20106 _ACEOF
20109 cat >>confdefs.h <<_ACEOF
20110 #define UNEXEC_SRC ${UNEXEC_SRC}
20111 _ACEOF
20114 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_X_WINDOWS 1
20118 _ACEOF
20121 if test "${USE_X_TOOLKIT}" != "none" ; then
20123 cat >>confdefs.h <<\_ACEOF
20124 #define USE_X_TOOLKIT 1
20125 _ACEOF
20128 if test "${HAVE_X11}" = "yes" ; then
20130 cat >>confdefs.h <<\_ACEOF
20131 #define HAVE_X11 1
20132 _ACEOF
20135 if test "${HAVE_XFREE386}" = "yes" ; then
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_XFREE386 1
20139 _ACEOF
20142 if test "${HAVE_MENUS}" = "yes" ; then
20144 cat >>confdefs.h <<\_ACEOF
20145 #define HAVE_MENUS 1
20146 _ACEOF
20149 if test "${GNU_MALLOC}" = "yes" ; then
20151 cat >>confdefs.h <<\_ACEOF
20152 #define GNU_MALLOC 1
20153 _ACEOF
20156 if test "${REL_ALLOC}" = "yes" ; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define REL_ALLOC 1
20160 _ACEOF
20168 #### Report on what we decided to do.
20169 #### Report GTK as a toolkit, even if it doesn't use Xt.
20170 #### It makes printing result more understandable as using GTK sets
20171 #### toolkit_scroll_bars to yes by default.
20172 if test "${HAVE_GTK}" = "yes"; then
20173 USE_X_TOOLKIT=GTK
20176 echo "
20177 Configured for \`${canonical}'.
20179 Where should the build process find the source code? ${srcdir}
20180 What operating system and machine description files should Emacs use?
20181 \`${opsysfile}' and \`${machfile}'
20182 What compiler should emacs be built with? ${CC} ${CFLAGS}
20183 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20184 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20185 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20186 What window system should Emacs use? ${window_system}
20187 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20189 if test -n "${x_includes}"; then
20190 echo " Where do we find X Windows header files? ${x_includes}"
20191 else
20192 echo " Where do we find X Windows header files? Standard dirs"
20194 if test -n "${x_libraries}"; then
20195 echo " Where do we find X Windows libraries? ${x_libraries}"
20196 else
20197 echo " Where do we find X Windows libraries? Standard dirs"
20200 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20201 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20202 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20203 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20204 echo " Does Emacs use -lungif? ${HAVE_GIF}"
20205 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20206 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20207 echo
20209 if test $USE_XASSERTS = yes; then
20210 echo " Compiling with asserts turned on."
20211 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20212 echo
20217 # Remove any trailing slashes in these variables.
20218 test "${prefix}" != NONE &&
20219 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20220 test "${exec_prefix}" != NONE &&
20221 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20223 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
20224 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
20225 ## from Makefile.c can correctly provide the arg `-traditional' to the
20226 ## C preprocessor.
20228 cat >conftest.$ac_ext <<_ACEOF
20229 #line $LINENO "configure"
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 yes..yes
20236 _ACEOF
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238 $EGREP "yes..yes" >/dev/null 2>&1; then
20239 CPP_NEED_TRADITIONAL=no
20240 else
20241 CPP_NEED_TRADITIONAL=yes
20243 rm -f conftest*
20246 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"
20247 ac_config_commands="$ac_config_commands default"
20248 cat >confcache <<\_ACEOF
20249 # This file is a shell script that caches the results of configure
20250 # tests run on this system so they can be shared between configure
20251 # scripts and configure runs, see configure's option --config-cache.
20252 # It is not useful on other systems. If it contains results you don't
20253 # want to keep, you may remove or edit it.
20255 # config.status only pays attention to the cache file if you give it
20256 # the --recheck option to rerun configure.
20258 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20259 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20260 # following values.
20262 _ACEOF
20264 # The following way of writing the cache mishandles newlines in values,
20265 # but we know of no workaround that is simple, portable, and efficient.
20266 # So, don't put newlines in cache variables' values.
20267 # Ultrix sh set writes to stderr and can't be redirected directly,
20268 # and sets the high bit in the cache file unless we assign to the vars.
20270 (set) 2>&1 |
20271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20272 *ac_space=\ *)
20273 # `set' does not quote correctly, so add quotes (double-quote
20274 # substitution turns \\\\ into \\, and sed turns \\ into \).
20275 sed -n \
20276 "s/'/'\\\\''/g;
20277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20280 # `set' quotes correctly as required by POSIX, so do not add quotes.
20281 sed -n \
20282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20284 esac;
20286 sed '
20287 t clear
20288 : clear
20289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20290 t end
20291 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20292 : end' >>confcache
20293 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20294 if test -w $cache_file; then
20295 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20296 cat confcache >$cache_file
20297 else
20298 echo "not updating unwritable cache $cache_file"
20301 rm -f confcache
20303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20304 # Let make expand exec_prefix.
20305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20307 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20308 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20309 # trailing colons and then remove the whole line if VPATH becomes empty
20310 # (actually we leave an empty line to preserve line numbers).
20311 if test "x$srcdir" = x.; then
20312 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20313 s/:*\$(srcdir):*/:/;
20314 s/:*\${srcdir}:*/:/;
20315 s/:*@srcdir@:*/:/;
20316 s/^\([^=]*=[ ]*\):*/\1/;
20317 s/:*$//;
20318 s/^[^=]*=[ ]*$//;
20322 DEFS=-DHAVE_CONFIG_H
20324 ac_libobjs=
20325 ac_ltlibobjs=
20326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20327 # 1. Remove the extension, and $U if already installed.
20328 ac_i=`echo "$ac_i" |
20329 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20330 # 2. Add them.
20331 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20332 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20333 done
20334 LIBOBJS=$ac_libobjs
20336 LTLIBOBJS=$ac_ltlibobjs
20340 : ${CONFIG_STATUS=./config.status}
20341 ac_clean_files_save=$ac_clean_files
20342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20343 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20344 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20345 cat >$CONFIG_STATUS <<_ACEOF
20346 #! $SHELL
20347 # Generated by $as_me.
20348 # Run this file to recreate the current configuration.
20349 # Compiler output produced by configure, useful for debugging
20350 # configure, is in config.log if it exists.
20352 debug=false
20353 ac_cs_recheck=false
20354 ac_cs_silent=false
20355 SHELL=\${CONFIG_SHELL-$SHELL}
20356 _ACEOF
20358 cat >>$CONFIG_STATUS <<\_ACEOF
20359 ## --------------------- ##
20360 ## M4sh Initialization. ##
20361 ## --------------------- ##
20363 # Be Bourne compatible
20364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20365 emulate sh
20366 NULLCMD=:
20367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20368 # is contrary to our usage. Disable this feature.
20369 alias -g '${1+"$@"}'='"$@"'
20370 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20371 set -o posix
20374 # Support unset when possible.
20375 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20376 as_unset=unset
20377 else
20378 as_unset=false
20382 # Work around bugs in pre-3.0 UWIN ksh.
20383 $as_unset ENV MAIL MAILPATH
20384 PS1='$ '
20385 PS2='> '
20386 PS4='+ '
20388 # NLS nuisances.
20389 for as_var in \
20390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20392 LC_TELEPHONE LC_TIME
20394 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
20395 eval $as_var=C; export $as_var
20396 else
20397 $as_unset $as_var
20399 done
20401 # Required to use basename.
20402 if expr a : '\(a\)' >/dev/null 2>&1; then
20403 as_expr=expr
20404 else
20405 as_expr=false
20408 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20409 as_basename=basename
20410 else
20411 as_basename=false
20415 # Name of the executable.
20416 as_me=`$as_basename "$0" ||
20417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20418 X"$0" : 'X\(//\)$' \| \
20419 X"$0" : 'X\(/\)$' \| \
20420 . : '\(.\)' 2>/dev/null ||
20421 echo X/"$0" |
20422 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20423 /^X\/\(\/\/\)$/{ s//\1/; q; }
20424 /^X\/\(\/\).*/{ s//\1/; q; }
20425 s/.*/./; q'`
20428 # PATH needs CR, and LINENO needs CR and PATH.
20429 # Avoid depending upon Character Ranges.
20430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20433 as_cr_digits='0123456789'
20434 as_cr_alnum=$as_cr_Letters$as_cr_digits
20436 # The user is always right.
20437 if test "${PATH_SEPARATOR+set}" != set; then
20438 echo "#! /bin/sh" >conf$$.sh
20439 echo "exit 0" >>conf$$.sh
20440 chmod +x conf$$.sh
20441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20442 PATH_SEPARATOR=';'
20443 else
20444 PATH_SEPARATOR=:
20446 rm -f conf$$.sh
20450 as_lineno_1=$LINENO
20451 as_lineno_2=$LINENO
20452 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20453 test "x$as_lineno_1" != "x$as_lineno_2" &&
20454 test "x$as_lineno_3" = "x$as_lineno_2" || {
20455 # Find who we are. Look in the path if we contain no path at all
20456 # relative or not.
20457 case $0 in
20458 *[\\/]* ) as_myself=$0 ;;
20459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20460 for as_dir in $PATH
20462 IFS=$as_save_IFS
20463 test -z "$as_dir" && as_dir=.
20464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20465 done
20468 esac
20469 # We did not find ourselves, most probably we were run as `sh COMMAND'
20470 # in which case we are not to be found in the path.
20471 if test "x$as_myself" = x; then
20472 as_myself=$0
20474 if test ! -f "$as_myself"; then
20475 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20476 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20477 { (exit 1); exit 1; }; }
20479 case $CONFIG_SHELL in
20481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20482 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20484 IFS=$as_save_IFS
20485 test -z "$as_dir" && as_dir=.
20486 for as_base in sh bash ksh sh5; do
20487 case $as_dir in
20489 if ("$as_dir/$as_base" -c '
20490 as_lineno_1=$LINENO
20491 as_lineno_2=$LINENO
20492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20493 test "x$as_lineno_1" != "x$as_lineno_2" &&
20494 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20495 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20496 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20497 CONFIG_SHELL=$as_dir/$as_base
20498 export CONFIG_SHELL
20499 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20500 fi;;
20501 esac
20502 done
20503 done
20505 esac
20507 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20508 # uniformly replaced by the line number. The first 'sed' inserts a
20509 # line-number line before each line; the second 'sed' does the real
20510 # work. The second script uses 'N' to pair each line-number line
20511 # with the numbered line, and appends trailing '-' during
20512 # substitution so that $LINENO is not a special case at line end.
20513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20514 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20515 sed '=' <$as_myself |
20516 sed '
20518 s,$,-,
20519 : loop
20520 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20521 t loop
20522 s,-$,,
20523 s,^['$as_cr_digits']*\n,,
20524 ' >$as_me.lineno &&
20525 chmod +x $as_me.lineno ||
20526 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20527 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20528 { (exit 1); exit 1; }; }
20530 # Don't try to exec as it changes $[0], causing all sort of problems
20531 # (the dirname of $[0] is not the place where we might find the
20532 # original and so on. Autoconf is especially sensible to this).
20533 . ./$as_me.lineno
20534 # Exit status is that of the last command.
20535 exit
20539 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20540 *c*,-n*) ECHO_N= ECHO_C='
20541 ' ECHO_T=' ' ;;
20542 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20543 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20544 esac
20546 if expr a : '\(a\)' >/dev/null 2>&1; then
20547 as_expr=expr
20548 else
20549 as_expr=false
20552 rm -f conf$$ conf$$.exe conf$$.file
20553 echo >conf$$.file
20554 if ln -s conf$$.file conf$$ 2>/dev/null; then
20555 # We could just check for DJGPP; but this test a) works b) is more generic
20556 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20557 if test -f conf$$.exe; then
20558 # Don't use ln at all; we don't have any links
20559 as_ln_s='cp -p'
20560 else
20561 as_ln_s='ln -s'
20563 elif ln conf$$.file conf$$ 2>/dev/null; then
20564 as_ln_s=ln
20565 else
20566 as_ln_s='cp -p'
20568 rm -f conf$$ conf$$.exe conf$$.file
20570 if mkdir -p . 2>/dev/null; then
20571 as_mkdir_p=:
20572 else
20573 as_mkdir_p=false
20576 as_executable_p="test -f"
20578 # Sed expression to map a string onto a valid CPP name.
20579 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20581 # Sed expression to map a string onto a valid variable name.
20582 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20585 # IFS
20586 # We need space, tab and new line, in precisely that order.
20587 as_nl='
20589 IFS=" $as_nl"
20591 # CDPATH.
20592 $as_unset CDPATH
20594 exec 6>&1
20596 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20597 # report actual input values of CONFIG_FILES etc. instead of their
20598 # values after options handling. Logging --version etc. is OK.
20599 exec 5>>config.log
20601 echo
20602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20603 ## Running $as_me. ##
20604 _ASBOX
20605 } >&5
20606 cat >&5 <<_CSEOF
20608 This file was extended by $as_me, which was
20609 generated by GNU Autoconf 2.57. Invocation command line was
20611 CONFIG_FILES = $CONFIG_FILES
20612 CONFIG_HEADERS = $CONFIG_HEADERS
20613 CONFIG_LINKS = $CONFIG_LINKS
20614 CONFIG_COMMANDS = $CONFIG_COMMANDS
20615 $ $0 $@
20617 _CSEOF
20618 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20619 echo >&5
20620 _ACEOF
20622 # Files that config.status was made for.
20623 if test -n "$ac_config_files"; then
20624 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20627 if test -n "$ac_config_headers"; then
20628 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20631 if test -n "$ac_config_links"; then
20632 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20635 if test -n "$ac_config_commands"; then
20636 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20639 cat >>$CONFIG_STATUS <<\_ACEOF
20641 ac_cs_usage="\
20642 \`$as_me' instantiates files from templates according to the
20643 current configuration.
20645 Usage: $0 [OPTIONS] [FILE]...
20647 -h, --help print this help, then exit
20648 -V, --version print version number, then exit
20649 -q, --quiet do not print progress messages
20650 -d, --debug don't remove temporary files
20651 --recheck update $as_me by reconfiguring in the same conditions
20652 --file=FILE[:TEMPLATE]
20653 instantiate the configuration file FILE
20654 --header=FILE[:TEMPLATE]
20655 instantiate the configuration header FILE
20657 Configuration files:
20658 $config_files
20660 Configuration headers:
20661 $config_headers
20663 Configuration commands:
20664 $config_commands
20666 Report bugs to <bug-autoconf@gnu.org>."
20667 _ACEOF
20669 cat >>$CONFIG_STATUS <<_ACEOF
20670 ac_cs_version="\\
20671 config.status
20672 configured by $0, generated by GNU Autoconf 2.57,
20673 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20675 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20676 Free Software Foundation, Inc.
20677 This config.status script is free software; the Free Software Foundation
20678 gives unlimited permission to copy, distribute and modify it."
20679 srcdir=$srcdir
20680 INSTALL="$INSTALL"
20681 _ACEOF
20683 cat >>$CONFIG_STATUS <<\_ACEOF
20684 # If no file are specified by the user, then we need to provide default
20685 # value. By we need to know if files were specified by the user.
20686 ac_need_defaults=:
20687 while test $# != 0
20689 case $1 in
20690 --*=*)
20691 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20692 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20693 ac_shift=:
20696 ac_option=$1
20697 ac_optarg=$2
20698 ac_shift=shift
20700 *) # This is not an option, so the user has probably given explicit
20701 # arguments.
20702 ac_option=$1
20703 ac_need_defaults=false;;
20704 esac
20706 case $ac_option in
20707 # Handling of the options.
20708 _ACEOF
20709 cat >>$CONFIG_STATUS <<\_ACEOF
20710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20711 ac_cs_recheck=: ;;
20712 --version | --vers* | -V )
20713 echo "$ac_cs_version"; exit 0 ;;
20714 --he | --h)
20715 # Conflict between --help and --header
20716 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20717 Try \`$0 --help' for more information." >&5
20718 echo "$as_me: error: ambiguous option: $1
20719 Try \`$0 --help' for more information." >&2;}
20720 { (exit 1); exit 1; }; };;
20721 --help | --hel | -h )
20722 echo "$ac_cs_usage"; exit 0 ;;
20723 --debug | --d* | -d )
20724 debug=: ;;
20725 --file | --fil | --fi | --f )
20726 $ac_shift
20727 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20728 ac_need_defaults=false;;
20729 --header | --heade | --head | --hea )
20730 $ac_shift
20731 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20732 ac_need_defaults=false;;
20733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20734 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20735 ac_cs_silent=: ;;
20737 # This is an error.
20738 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20739 Try \`$0 --help' for more information." >&5
20740 echo "$as_me: error: unrecognized option: $1
20741 Try \`$0 --help' for more information." >&2;}
20742 { (exit 1); exit 1; }; } ;;
20744 *) ac_config_targets="$ac_config_targets $1" ;;
20746 esac
20747 shift
20748 done
20750 ac_configure_extra_args=
20752 if $ac_cs_silent; then
20753 exec 6>/dev/null
20754 ac_configure_extra_args="$ac_configure_extra_args --silent"
20757 _ACEOF
20758 cat >>$CONFIG_STATUS <<_ACEOF
20759 if \$ac_cs_recheck; then
20760 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20761 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20764 _ACEOF
20766 cat >>$CONFIG_STATUS <<_ACEOF
20768 # INIT-COMMANDS section.
20771 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
20773 _ACEOF
20777 cat >>$CONFIG_STATUS <<\_ACEOF
20778 for ac_config_target in $ac_config_targets
20780 case "$ac_config_target" in
20781 # Handling of arguments.
20782 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20783 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
20784 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20785 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20786 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20787 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
20788 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20789 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
20790 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
20791 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20792 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20793 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20794 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20795 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20796 { (exit 1); exit 1; }; };;
20797 esac
20798 done
20800 # If the user did not use the arguments to specify the items to instantiate,
20801 # then the envvar interface is used. Set only those that are not.
20802 # We use the long form for the default assignment because of an extremely
20803 # bizarre bug on SunOS 4.1.3.
20804 if $ac_need_defaults; then
20805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20810 # Have a temporary directory for convenience. Make it in the build tree
20811 # simply because there is no reason to put it here, and in addition,
20812 # creating and moving files from /tmp can sometimes cause problems.
20813 # Create a temporary directory, and hook for its removal unless debugging.
20814 $debug ||
20816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20817 trap '{ (exit 1); exit 1; }' 1 2 13 15
20820 # Create a (secure) tmp directory for tmp files.
20823 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20824 test -n "$tmp" && test -d "$tmp"
20825 } ||
20827 tmp=./confstat$$-$RANDOM
20828 (umask 077 && mkdir $tmp)
20829 } ||
20831 echo "$me: cannot create a temporary directory in ." >&2
20832 { (exit 1); exit 1; }
20835 _ACEOF
20837 cat >>$CONFIG_STATUS <<_ACEOF
20840 # CONFIG_FILES section.
20843 # No need to generate the scripts if there are no CONFIG_FILES.
20844 # This happens for instance when ./config.status config.h
20845 if test -n "\$CONFIG_FILES"; then
20846 # Protect against being on the right side of a sed subst in config.status.
20847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20849 s,@SHELL@,$SHELL,;t t
20850 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20851 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20852 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20853 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20854 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20855 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20856 s,@exec_prefix@,$exec_prefix,;t t
20857 s,@prefix@,$prefix,;t t
20858 s,@program_transform_name@,$program_transform_name,;t t
20859 s,@bindir@,$bindir,;t t
20860 s,@sbindir@,$sbindir,;t t
20861 s,@libexecdir@,$libexecdir,;t t
20862 s,@datadir@,$datadir,;t t
20863 s,@sysconfdir@,$sysconfdir,;t t
20864 s,@sharedstatedir@,$sharedstatedir,;t t
20865 s,@localstatedir@,$localstatedir,;t t
20866 s,@libdir@,$libdir,;t t
20867 s,@includedir@,$includedir,;t t
20868 s,@oldincludedir@,$oldincludedir,;t t
20869 s,@infodir@,$infodir,;t t
20870 s,@mandir@,$mandir,;t t
20871 s,@build_alias@,$build_alias,;t t
20872 s,@host_alias@,$host_alias,;t t
20873 s,@target_alias@,$target_alias,;t t
20874 s,@DEFS@,$DEFS,;t t
20875 s,@ECHO_C@,$ECHO_C,;t t
20876 s,@ECHO_N@,$ECHO_N,;t t
20877 s,@ECHO_T@,$ECHO_T,;t t
20878 s,@LIBS@,$LIBS,;t t
20879 s,@MAINT@,$MAINT,;t t
20880 s,@build@,$build,;t t
20881 s,@build_cpu@,$build_cpu,;t t
20882 s,@build_vendor@,$build_vendor,;t t
20883 s,@build_os@,$build_os,;t t
20884 s,@host@,$host,;t t
20885 s,@host_cpu@,$host_cpu,;t t
20886 s,@host_vendor@,$host_vendor,;t t
20887 s,@host_os@,$host_os,;t t
20888 s,@CC@,$CC,;t t
20889 s,@CFLAGS@,$CFLAGS,;t t
20890 s,@LDFLAGS@,$LDFLAGS,;t t
20891 s,@CPPFLAGS@,$CPPFLAGS,;t t
20892 s,@ac_ct_CC@,$ac_ct_CC,;t t
20893 s,@EXEEXT@,$EXEEXT,;t t
20894 s,@OBJEXT@,$OBJEXT,;t t
20895 s,@LN_S@,$LN_S,;t t
20896 s,@CPP@,$CPP,;t t
20897 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20898 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20899 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20900 s,@RANLIB@,$RANLIB,;t t
20901 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20902 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
20903 s,@EGREP@,$EGREP,;t t
20904 s,@LIBSOUND@,$LIBSOUND,;t t
20905 s,@SET_MAKE@,$SET_MAKE,;t t
20906 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20907 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20908 s,@GTK_LIBS@,$GTK_LIBS,;t t
20909 s,@ALLOCA@,$ALLOCA,;t t
20910 s,@liblockfile@,$liblockfile,;t t
20911 s,@LIBOBJS@,$LIBOBJS,;t t
20912 s,@NEED_SETGID@,$NEED_SETGID,;t t
20913 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
20914 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
20915 s,@version@,$version,;t t
20916 s,@configuration@,$configuration,;t t
20917 s,@canonical@,$canonical,;t t
20918 s,@srcdir@,$srcdir,;t t
20919 s,@lispdir@,$lispdir,;t t
20920 s,@locallisppath@,$locallisppath,;t t
20921 s,@lisppath@,$lisppath,;t t
20922 s,@x_default_search_path@,$x_default_search_path,;t t
20923 s,@etcdir@,$etcdir,;t t
20924 s,@archlibdir@,$archlibdir,;t t
20925 s,@docdir@,$docdir,;t t
20926 s,@bitmapdir@,$bitmapdir,;t t
20927 s,@gamedir@,$gamedir,;t t
20928 s,@gameuser@,$gameuser,;t t
20929 s,@c_switch_system@,$c_switch_system,;t t
20930 s,@c_switch_machine@,$c_switch_machine,;t t
20931 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
20932 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
20933 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
20934 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
20935 s,@machfile@,$machfile,;t t
20936 s,@opsysfile@,$opsysfile,;t t
20937 s,@carbon_appdir@,$carbon_appdir,;t t
20938 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20939 CEOF
20941 _ACEOF
20943 cat >>$CONFIG_STATUS <<\_ACEOF
20944 # Split the substitutions into bite-sized pieces for seds with
20945 # small command number limits, like on Digital OSF/1 and HP-UX.
20946 ac_max_sed_lines=48
20947 ac_sed_frag=1 # Number of current file.
20948 ac_beg=1 # First line for current file.
20949 ac_end=$ac_max_sed_lines # Line after last line for current file.
20950 ac_more_lines=:
20951 ac_sed_cmds=
20952 while $ac_more_lines; do
20953 if test $ac_beg -gt 1; then
20954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20955 else
20956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20958 if test ! -s $tmp/subs.frag; then
20959 ac_more_lines=false
20960 else
20961 # The purpose of the label and of the branching condition is to
20962 # speed up the sed processing (if there are no `@' at all, there
20963 # is no need to browse any of the substitutions).
20964 # These are the two extra sed commands mentioned above.
20965 (echo ':t
20966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20967 if test -z "$ac_sed_cmds"; then
20968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20969 else
20970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20972 ac_sed_frag=`expr $ac_sed_frag + 1`
20973 ac_beg=$ac_end
20974 ac_end=`expr $ac_end + $ac_max_sed_lines`
20976 done
20977 if test -z "$ac_sed_cmds"; then
20978 ac_sed_cmds=cat
20980 fi # test -n "$CONFIG_FILES"
20982 _ACEOF
20983 cat >>$CONFIG_STATUS <<\_ACEOF
20984 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20986 case $ac_file in
20987 - | *:- | *:-:* ) # input from stdin
20988 cat >$tmp/stdin
20989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20993 * ) ac_file_in=$ac_file.in ;;
20994 esac
20996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20999 X"$ac_file" : 'X\(//\)[^/]' \| \
21000 X"$ac_file" : 'X\(//\)$' \| \
21001 X"$ac_file" : 'X\(/\)' \| \
21002 . : '\(.\)' 2>/dev/null ||
21003 echo X"$ac_file" |
21004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21006 /^X\(\/\/\)$/{ s//\1/; q; }
21007 /^X\(\/\).*/{ s//\1/; q; }
21008 s/.*/./; q'`
21009 { if $as_mkdir_p; then
21010 mkdir -p "$ac_dir"
21011 else
21012 as_dir="$ac_dir"
21013 as_dirs=
21014 while test ! -d "$as_dir"; do
21015 as_dirs="$as_dir $as_dirs"
21016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21018 X"$as_dir" : 'X\(//\)[^/]' \| \
21019 X"$as_dir" : 'X\(//\)$' \| \
21020 X"$as_dir" : 'X\(/\)' \| \
21021 . : '\(.\)' 2>/dev/null ||
21022 echo X"$as_dir" |
21023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21025 /^X\(\/\/\)$/{ s//\1/; q; }
21026 /^X\(\/\).*/{ s//\1/; q; }
21027 s/.*/./; q'`
21028 done
21029 test ! -n "$as_dirs" || mkdir $as_dirs
21030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21032 { (exit 1); exit 1; }; }; }
21034 ac_builddir=.
21036 if test "$ac_dir" != .; then
21037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21038 # A "../" for each directory in $ac_dir_suffix.
21039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21040 else
21041 ac_dir_suffix= ac_top_builddir=
21044 case $srcdir in
21045 .) # No --srcdir option. We are building in place.
21046 ac_srcdir=.
21047 if test -z "$ac_top_builddir"; then
21048 ac_top_srcdir=.
21049 else
21050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21051 fi ;;
21052 [\\/]* | ?:[\\/]* ) # Absolute path.
21053 ac_srcdir=$srcdir$ac_dir_suffix;
21054 ac_top_srcdir=$srcdir ;;
21055 *) # Relative path.
21056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21058 esac
21059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21060 # absolute.
21061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
21062 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21067 case $INSTALL in
21068 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21069 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21070 esac
21072 if test x"$ac_file" != x-; then
21073 { echo "$as_me:$LINENO: creating $ac_file" >&5
21074 echo "$as_me: creating $ac_file" >&6;}
21075 rm -f "$ac_file"
21077 # Let's still pretend it is `configure' which instantiates (i.e., don't
21078 # use $as_me), people would be surprised to read:
21079 # /* config.h. Generated by config.status. */
21080 if test x"$ac_file" = x-; then
21081 configure_input=
21082 else
21083 configure_input="$ac_file. "
21085 configure_input=$configure_input"Generated from `echo $ac_file_in |
21086 sed 's,.*/,,'` by configure."
21088 # First look for the input files in the build tree, otherwise in the
21089 # src tree.
21090 ac_file_inputs=`IFS=:
21091 for f in $ac_file_in; do
21092 case $f in
21093 -) echo $tmp/stdin ;;
21094 [\\/$]*)
21095 # Absolute (can't be DOS-style, as IFS=:)
21096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21097 echo "$as_me: error: cannot find input file: $f" >&2;}
21098 { (exit 1); exit 1; }; }
21099 echo $f;;
21100 *) # Relative
21101 if test -f "$f"; then
21102 # Build tree
21103 echo $f
21104 elif test -f "$srcdir/$f"; then
21105 # Source tree
21106 echo $srcdir/$f
21107 else
21108 # /dev/null tree
21109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21110 echo "$as_me: error: cannot find input file: $f" >&2;}
21111 { (exit 1); exit 1; }; }
21112 fi;;
21113 esac
21114 done` || { (exit 1); exit 1; }
21115 _ACEOF
21116 cat >>$CONFIG_STATUS <<_ACEOF
21117 sed "$ac_vpsub
21118 $extrasub
21119 _ACEOF
21120 cat >>$CONFIG_STATUS <<\_ACEOF
21122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21123 s,@configure_input@,$configure_input,;t t
21124 s,@srcdir@,$ac_srcdir,;t t
21125 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21126 s,@top_srcdir@,$ac_top_srcdir,;t t
21127 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21128 s,@builddir@,$ac_builddir,;t t
21129 s,@abs_builddir@,$ac_abs_builddir,;t t
21130 s,@top_builddir@,$ac_top_builddir,;t t
21131 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21132 s,@INSTALL@,$ac_INSTALL,;t t
21133 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21134 rm -f $tmp/stdin
21135 if test x"$ac_file" != x-; then
21136 mv $tmp/out $ac_file
21137 else
21138 cat $tmp/out
21139 rm -f $tmp/out
21142 done
21143 _ACEOF
21144 cat >>$CONFIG_STATUS <<\_ACEOF
21147 # CONFIG_HEADER section.
21150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21153 # ac_d sets the value in "#define NAME VALUE" lines.
21154 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21155 ac_dB='[ ].*$,\1#\2'
21156 ac_dC=' '
21157 ac_dD=',;t'
21158 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21159 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21160 ac_uB='$,\1#\2define\3'
21161 ac_uC=' '
21162 ac_uD=',;t'
21164 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21166 case $ac_file in
21167 - | *:- | *:-:* ) # input from stdin
21168 cat >$tmp/stdin
21169 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21171 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21173 * ) ac_file_in=$ac_file.in ;;
21174 esac
21176 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21177 echo "$as_me: creating $ac_file" >&6;}
21179 # First look for the input files in the build tree, otherwise in the
21180 # src tree.
21181 ac_file_inputs=`IFS=:
21182 for f in $ac_file_in; do
21183 case $f in
21184 -) echo $tmp/stdin ;;
21185 [\\/$]*)
21186 # Absolute (can't be DOS-style, as IFS=:)
21187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21188 echo "$as_me: error: cannot find input file: $f" >&2;}
21189 { (exit 1); exit 1; }; }
21190 echo $f;;
21191 *) # Relative
21192 if test -f "$f"; then
21193 # Build tree
21194 echo $f
21195 elif test -f "$srcdir/$f"; then
21196 # Source tree
21197 echo $srcdir/$f
21198 else
21199 # /dev/null tree
21200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21201 echo "$as_me: error: cannot find input file: $f" >&2;}
21202 { (exit 1); exit 1; }; }
21203 fi;;
21204 esac
21205 done` || { (exit 1); exit 1; }
21206 # Remove the trailing spaces.
21207 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21209 _ACEOF
21211 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21212 # `conftest.undefs', that substitutes the proper values into
21213 # config.h.in to produce config.h. The first handles `#define'
21214 # templates, and the second `#undef' templates.
21215 # And first: Protect against being on the right side of a sed subst in
21216 # config.status. Protect against being in an unquoted here document
21217 # in config.status.
21218 rm -f conftest.defines conftest.undefs
21219 # Using a here document instead of a string reduces the quoting nightmare.
21220 # Putting comments in sed scripts is not portable.
21222 # `end' is used to avoid that the second main sed command (meant for
21223 # 0-ary CPP macros) applies to n-ary macro definitions.
21224 # See the Autoconf documentation for `clear'.
21225 cat >confdef2sed.sed <<\_ACEOF
21226 s/[\\&,]/\\&/g
21227 s,[\\$`],\\&,g
21228 t clear
21229 : clear
21230 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21231 t end
21232 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21233 : end
21234 _ACEOF
21235 # If some macros were called several times there might be several times
21236 # the same #defines, which is useless. Nevertheless, we may not want to
21237 # sort them, since we want the *last* AC-DEFINE to be honored.
21238 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21239 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21240 rm -f confdef2sed.sed
21242 # This sed command replaces #undef with comments. This is necessary, for
21243 # example, in the case of _POSIX_SOURCE, which is predefined and required
21244 # on some systems where configure will not decide to define it.
21245 cat >>conftest.undefs <<\_ACEOF
21246 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21247 _ACEOF
21249 # Break up conftest.defines because some shells have a limit on the size
21250 # of here documents, and old seds have small limits too (100 cmds).
21251 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21252 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21253 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21254 echo ' :' >>$CONFIG_STATUS
21255 rm -f conftest.tail
21256 while grep . conftest.defines >/dev/null
21258 # Write a limited-size here document to $tmp/defines.sed.
21259 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21260 # Speed up: don't consider the non `#define' lines.
21261 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21262 # Work around the forget-to-reset-the-flag bug.
21263 echo 't clr' >>$CONFIG_STATUS
21264 echo ': clr' >>$CONFIG_STATUS
21265 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21266 echo 'CEOF
21267 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21268 rm -f $tmp/in
21269 mv $tmp/out $tmp/in
21270 ' >>$CONFIG_STATUS
21271 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21272 rm -f conftest.defines
21273 mv conftest.tail conftest.defines
21274 done
21275 rm -f conftest.defines
21276 echo ' fi # grep' >>$CONFIG_STATUS
21277 echo >>$CONFIG_STATUS
21279 # Break up conftest.undefs because some shells have a limit on the size
21280 # of here documents, and old seds have small limits too (100 cmds).
21281 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21282 rm -f conftest.tail
21283 while grep . conftest.undefs >/dev/null
21285 # Write a limited-size here document to $tmp/undefs.sed.
21286 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21287 # Speed up: don't consider the non `#undef'
21288 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21289 # Work around the forget-to-reset-the-flag bug.
21290 echo 't clr' >>$CONFIG_STATUS
21291 echo ': clr' >>$CONFIG_STATUS
21292 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21293 echo 'CEOF
21294 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21295 rm -f $tmp/in
21296 mv $tmp/out $tmp/in
21297 ' >>$CONFIG_STATUS
21298 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21299 rm -f conftest.undefs
21300 mv conftest.tail conftest.undefs
21301 done
21302 rm -f conftest.undefs
21304 cat >>$CONFIG_STATUS <<\_ACEOF
21305 # Let's still pretend it is `configure' which instantiates (i.e., don't
21306 # use $as_me), people would be surprised to read:
21307 # /* config.h. Generated by config.status. */
21308 if test x"$ac_file" = x-; then
21309 echo "/* Generated by configure. */" >$tmp/config.h
21310 else
21311 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21313 cat $tmp/in >>$tmp/config.h
21314 rm -f $tmp/in
21315 if test x"$ac_file" != x-; then
21316 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21318 echo "$as_me: $ac_file is unchanged" >&6;}
21319 else
21320 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21322 X"$ac_file" : 'X\(//\)[^/]' \| \
21323 X"$ac_file" : 'X\(//\)$' \| \
21324 X"$ac_file" : 'X\(/\)' \| \
21325 . : '\(.\)' 2>/dev/null ||
21326 echo X"$ac_file" |
21327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21329 /^X\(\/\/\)$/{ s//\1/; q; }
21330 /^X\(\/\).*/{ s//\1/; q; }
21331 s/.*/./; q'`
21332 { if $as_mkdir_p; then
21333 mkdir -p "$ac_dir"
21334 else
21335 as_dir="$ac_dir"
21336 as_dirs=
21337 while test ! -d "$as_dir"; do
21338 as_dirs="$as_dir $as_dirs"
21339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21341 X"$as_dir" : 'X\(//\)[^/]' \| \
21342 X"$as_dir" : 'X\(//\)$' \| \
21343 X"$as_dir" : 'X\(/\)' \| \
21344 . : '\(.\)' 2>/dev/null ||
21345 echo X"$as_dir" |
21346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21348 /^X\(\/\/\)$/{ s//\1/; q; }
21349 /^X\(\/\).*/{ s//\1/; q; }
21350 s/.*/./; q'`
21351 done
21352 test ! -n "$as_dirs" || mkdir $as_dirs
21353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21355 { (exit 1); exit 1; }; }; }
21357 rm -f $ac_file
21358 mv $tmp/config.h $ac_file
21360 else
21361 cat $tmp/config.h
21362 rm -f $tmp/config.h
21364 done
21365 _ACEOF
21366 cat >>$CONFIG_STATUS <<\_ACEOF
21369 # CONFIG_COMMANDS section.
21371 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21372 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21373 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21374 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21375 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21376 X"$ac_dest" : 'X\(//\)[^/]' \| \
21377 X"$ac_dest" : 'X\(//\)$' \| \
21378 X"$ac_dest" : 'X\(/\)' \| \
21379 . : '\(.\)' 2>/dev/null ||
21380 echo X"$ac_dest" |
21381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21383 /^X\(\/\/\)$/{ s//\1/; q; }
21384 /^X\(\/\).*/{ s//\1/; q; }
21385 s/.*/./; q'`
21386 ac_builddir=.
21388 if test "$ac_dir" != .; then
21389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21390 # A "../" for each directory in $ac_dir_suffix.
21391 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21392 else
21393 ac_dir_suffix= ac_top_builddir=
21396 case $srcdir in
21397 .) # No --srcdir option. We are building in place.
21398 ac_srcdir=.
21399 if test -z "$ac_top_builddir"; then
21400 ac_top_srcdir=.
21401 else
21402 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21403 fi ;;
21404 [\\/]* | ?:[\\/]* ) # Absolute path.
21405 ac_srcdir=$srcdir$ac_dir_suffix;
21406 ac_top_srcdir=$srcdir ;;
21407 *) # Relative path.
21408 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21409 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21410 esac
21411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21412 # absolute.
21413 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
21414 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21415 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21416 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21419 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21420 echo "$as_me: executing $ac_dest commands" >&6;}
21421 case $ac_dest in
21422 default )
21424 ### Make the necessary directories, if they don't exist.
21425 for dir in etc lisp ; do
21426 test -d ${dir} || mkdir ${dir}
21427 done
21429 # Build src/Makefile from ${srcdir}/src/Makefile.c
21430 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
21431 # This must be done after src/config.h is built, since we rely on that file.
21433 # Now get this: Some word that is part of the ${srcdir} directory name
21434 # or the ${configuration} value might, just might, happen to be an
21435 # identifier like `sun4' or `i386' or something, and be predefined by
21436 # the C preprocessor to some helpful value like 1, or maybe the empty
21437 # string. Needless to say consequent macro substitutions are less
21438 # than conducive to the makefile finding the correct directory.
21439 undefs="`echo $top_srcdir $configuration $canonical |
21440 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
21441 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
21444 echo creating src/epaths.h
21445 ${MAKE-make} epaths-force
21447 # As of 2000-11-19, newest development versions of GNU cpp preprocess
21448 # `..' to `. .' unless invoked with -traditional
21450 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
21451 CPPFLAGS="$CPPFLAGS -traditional"
21454 echo creating lib-src/Makefile
21455 ( cd lib-src
21456 rm -f junk.c junk1.c junk2.c
21457 sed -e '/start of cpp stuff/q' \
21458 < Makefile.c > junk1.c
21459 sed -e '1,/start of cpp stuff/d'\
21460 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21461 < Makefile.c > junk.c
21462 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
21463 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21464 cat junk1.c junk2.c > Makefile.new
21465 rm -f junk.c junk1.c junk2.c
21466 chmod 444 Makefile.new
21467 mv -f Makefile.new Makefile
21470 echo creating src/Makefile
21471 ( cd src
21472 rm -f junk.c junk1.c junk2.c
21473 sed -e '/start of cpp stuff/q' \
21474 < Makefile.c > junk1.c
21475 sed -e '1,/start of cpp stuff/d'\
21476 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21477 < Makefile.c > junk.c
21478 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
21479 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21480 cat junk1.c junk2.c > Makefile.new
21481 rm -f junk.c junk1.c junk2.c
21482 chmod 444 Makefile.new
21483 mv -f Makefile.new Makefile
21486 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21487 echo creating src/.gdbinit
21488 echo source $srcdir/src/.gdbinit > src/.gdbinit
21491 # This is how we know whether to re-run configure in certain cases.
21492 touch src/config.stamp
21495 esac
21496 done
21497 _ACEOF
21499 cat >>$CONFIG_STATUS <<\_ACEOF
21501 { (exit 0); exit 0; }
21502 _ACEOF
21503 chmod +x $CONFIG_STATUS
21504 ac_clean_files=$ac_clean_files_save
21507 # configure is writing to config.log, and then calls config.status.
21508 # config.status does its own redirection, appending to config.log.
21509 # Unfortunately, on DOS this fails, as config.log is still kept open
21510 # by configure, so config.status won't be able to write to it; its
21511 # output is simply discarded. So we exec the FD to /dev/null,
21512 # effectively closing config.log, so it can be properly (re)opened and
21513 # appended to by config.status. When coming back to configure, we
21514 # need to make the FD available again.
21515 if test "$no_create" != yes; then
21516 ac_cs_success=:
21517 ac_config_status_args=
21518 test "$silent" = yes &&
21519 ac_config_status_args="$ac_config_status_args --quiet"
21520 exec 5>/dev/null
21521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21522 exec 5>>config.log
21523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21524 # would make configure fail if this is the last instruction.
21525 $ac_cs_success || { (exit 1); exit 1; }