(lisp, shortlisp): byte-run, float-sup, map-ynp, and
[emacs.git] / configure
blob4be93dd246765679754dda3a923c16981a2896ed
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 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 --disable-largefile omit support for large files
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
896 _ACEOF
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd $ac_popdir
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
974 $ $0 $@
976 _ACEOF
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 _ASUNAME
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1010 } >&5
1012 cat >&5 <<_ACEOF
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1019 _ACEOF
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1034 for ac_arg
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1081 echo
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 esac;
1104 echo
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1205 done
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it if useless.
1309 cat <<\_ACEOF >conftest.sed
1310 s/[\\$]/&&/g;s/;s,x,x,$//
1311 _ACEOF
1312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313 rm conftest.sed
1316 lispdir='${datadir}/emacs/${version}/lisp'
1317 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath='${locallisppath}:${lispdir}'
1320 etcdir='${datadir}/emacs/${version}/etc'
1321 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir='${datadir}/emacs/${version}/etc'
1323 gamedir='${localstatedir}/games/emacs'
1325 gameuser=games
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339 #define MAIL_USE_POP 1
1340 _ACEOF
1342 else :
1344 else
1345 cat >>confdefs.h <<\_ACEOF
1346 #define MAIL_USE_POP 1
1347 _ACEOF
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356 #define KERBEROS 1
1357 _ACEOF
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369 #define KERBEROS 1
1370 _ACEOF
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1385 cat >>confdefs.h <<\_ACEOF
1386 #define HESIOD 1
1387 _ACEOF
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1418 esac
1419 with_x_toolkit=$val
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1449 withval="$with_png"
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1493 unset CDPATH
1494 case "${srcdir}" in
1495 /* ) ;;
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1503 then
1504 srcdir="$PWD"
1505 else
1506 srcdir="`(cd ${srcdir}; pwd)`"
1509 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1510 esac
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1528 extrasub='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1541 ### Canonicalize the configuration name.
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622 canonical=$host
1623 configuration=${host_alias-$host}
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1650 machine='' opsys='' unported=no
1651 case "${canonical}" in
1653 ## FreeBSD ports
1654 *-*-freebsd* )
1655 opsys=freebsd
1656 case "${canonical}" in
1657 alpha*-*-freebsd*) machine=alpha ;;
1658 i[3456]86-*-freebsd*) machine=intel386 ;;
1659 esac
1662 ## NetBSD ports
1663 *-*-netbsd* )
1664 opsys=netbsd
1665 case "${canonical}" in
1666 alpha*-*-netbsd*) machine=alpha ;;
1667 i[3456]86-*-netbsd*) machine=intel386 ;;
1668 m68k-*-netbsd*)
1669 # This is somewhat bogus.
1670 machine=hp9000s300 ;;
1671 powerpc-apple-netbsd*) machine=macppc ;;
1672 mips-*-netbsd*) machine=pmax ;;
1673 mipsel-*-netbsd*) machine=pmax ;;
1674 mipseb-*-netbsd*) machine=pmax ;;
1675 ns32k-*-netbsd*) machine=ns32000 ;;
1676 powerpc-*-netbsd*) machine=macppc ;;
1677 sparc*-*-netbsd*) machine=sparc ;;
1678 vax-*-netbsd*) machine=vax ;;
1679 arm-*-netbsd*) machine=arm ;;
1680 esac
1683 ## OpenBSD ports
1684 *-*-openbsd* )
1685 opsys=openbsd
1686 case "${canonical}" in
1687 alpha*-*-openbsd*) machine=alpha ;;
1688 i386-*-openbsd*) machine=intel386 ;;
1689 m68k-*-openbsd*) machine=hp9000s300 ;;
1690 mipsel-*-openbsd*) machine=pmax ;;
1691 ns32k-*-openbsd*) machine=ns32000 ;;
1692 sparc-*-openbsd*) machine=sparc ;;
1693 vax-*-openbsd*) machine=vax ;;
1694 esac
1697 ## Acorn RISCiX:
1698 arm-acorn-riscix1.1* )
1699 machine=acorn opsys=riscix1-1
1701 arm-acorn-riscix1.2* | arm-acorn-riscix )
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine=acorn opsys=riscix12
1707 ## BSDI ports
1708 *-*-bsdi* )
1709 opsys=bsdi
1710 case "${canonical}" in
1711 i[345]86-*-bsdi*) machine=intel386 ;;
1712 sparc-*-bsdi*) machine=sparc ;;
1713 powerpc-*-bsdi*) machine=macppc ;;
1714 esac
1715 case "${canonical}" in
1716 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1717 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1718 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1719 *-*-bsdi3* ) opsys=bsdos3 ;;
1720 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1721 esac
1724 ## Alliant machines
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1730 fx80-alliant-* )
1731 machine=alliant4 opsys=bsd4-2
1733 i860-alliant-* )
1734 machine=alliant-2800 opsys=bsd4-3
1737 ## Alpha (DEC) machines.
1738 alpha*-dec-osf* )
1739 machine=alpha opsys=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1742 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP=/usr/bin/cpp
1748 case "${canonical}" in
1749 alpha*-dec-osf[5-9]*)
1750 opsys=osf5-0 ;;
1751 esac
1754 alpha*-*-linux-gnu* )
1755 machine=alpha opsys=gnu-linux
1758 arm*-*-linux-gnu* )
1759 machine=arm opsys=gnu-linux
1762 ppc-*-linux | \
1763 powerpc-*-linux* )
1764 machine=macppc opsys=gnu-linux
1767 ## Altos 3068
1768 m68*-altos-sysv* )
1769 machine=altos opsys=usg5-2
1772 ## Amdahl UTS
1773 580-amdahl-sysv* )
1774 machine=amdahl opsys=usg5-2-2
1777 ## Apollo, Domain/OS
1778 m68*-apollo-* )
1779 machine=apollo opsys=bsd4-3
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1783 we32k-att-sysv* )
1784 machine=att3b opsys=usg5-2-2
1787 ## AT&T 3b1 - The Mighty Unix PC!
1788 m68*-att-sysv* )
1789 machine=7300 opsys=usg5-2-2
1792 ## Bull dpx20
1793 rs6000-bull-bosx* )
1794 machine=ibmrs6000 opsys=aix3-2
1797 ## Bull dpx2
1798 m68*-bull-sysv3* )
1799 machine=dpx2 opsys=usg5-3
1802 ## Bull sps7
1803 m68*-bull-sysv2* )
1804 machine=sps7 opsys=usg5-2
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1809 ## Celerity
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd* )
1814 machine=celerity opsys=bsd4-2
1817 ## Clipper
1818 ## What operating systems does this chip run that Emacs has been
1819 ## tested on?
1820 clipper-* )
1821 machine=clipper
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1826 ## Compaq Nonstop
1827 mips-compaq-nonstopux* )
1828 machine=nonstopux opsys=nonstopux
1831 ## Convex
1832 *-convex-bsd* | *-convex-convexos* )
1833 machine=convex opsys=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP="cc -E -P"
1838 ## Cubix QBx/386
1839 i[3456]86-cubix-sysv* )
1840 machine=intel386 opsys=usg5-3
1843 ## Cydra 5
1844 cydra*-cydrome-sysv* )
1845 machine=cydra5 opsys=usg5-3
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1855 machine=aviion opsys=dgux4
1857 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine=aviion opsys=dgux5-4-3
1862 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1863 machine=aviion opsys=dgux5-4r2
1865 m88k-dg-dgux* )
1866 machine=aviion opsys=dgux
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i[345]86-dg-dguxR4* )
1873 machine=aviion-intel opsys=dgux4
1876 ## DECstations
1877 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1878 machine=pmax opsys=bsd4-2
1880 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1881 machine=pmax opsys=bsd4-3
1883 mips-dec-ultrix* )
1884 machine=pmax opsys=ultrix4-3
1886 mips-dec-osf* )
1887 machine=pmax opsys=osf1
1889 mips-dec-mach_bsd4.3* )
1890 machine=pmax opsys=mach-bsd4-3
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv* | m68000-motorola-sysv* )
1895 machine=delta opsys=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1897 then
1898 if test -s /etc/167config
1899 then CC="gnucc -m68040"
1900 else CC="gnucc -m68881"
1902 else
1903 if test -z "`type gcc | grep 'not found'`"
1904 then CC=gcc
1905 else CC=cc
1909 m88k-motorola-sysv4* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine=delta88k opsys=usg5-4-2
1916 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1917 machine=delta88k opsys=usg5-3
1920 ## Dual machines
1921 m68*-dual-sysv* )
1922 machine=dual opsys=usg5-2
1924 m68*-dual-uniplus* )
1925 machine=dual opsys=unipl5-2
1928 ## Elxsi 6400
1929 elxsi-elxsi-sysv* )
1930 machine=elxsi opsys=usg5-2
1933 ## Encore machines
1934 ns16k-encore-bsd* )
1935 machine=ns16000 opsys=umax
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1941 ## Gould Power Node and NP1
1942 pn-gould-bsd4.2* )
1943 machine=gould opsys=bsd4-2
1945 pn-gould-bsd4.3* )
1946 machine=gould opsys=bsd4-3
1948 np1-gould-bsd* )
1949 machine=gould-np1 opsys=bsd4-3
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1954 m88k-harris-cxux* )
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1958 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1959 esac
1960 NON_GNU_CPP="/lib/cpp"
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1963 m68k-harris-cxux* )
1964 machine=nh3000 opsys=cxux
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix )
1968 machine=nh6000 opsys=powerunix
1969 NON_GNU_CPP="cc -Xo -E -P"
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1-hitachi-hiuxmpp* )
1973 machine=sr2k opsys=hiuxmpp
1975 hppa1.1-hitachi-hiuxwe2* )
1976 machine=sr2k opsys=hiuxwe2
1978 ## Honeywell XPS100
1979 xps*-honeywell-sysv* )
1980 machine=xps100 opsys=usg5-2
1983 ## HP 9000 series 200 or 300
1984 m68*-hp-bsd* )
1985 machine=hp9000s300 opsys=bsd4-3
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1988 m68*-hp-hpux* )
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1993 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1994 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1995 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1996 *) machine=hp9000s300 opsys=hpux ;;
1997 esac
2000 ## HP 9000 series 700 and 800, running HP/UX
2001 hppa*-hp-hpux7* )
2002 machine=hp800 opsys=hpux
2004 hppa*-hp-hpux8* )
2005 machine=hp800 opsys=hpux8
2007 hppa*-hp-hpux9shr* )
2008 machine=hp800 opsys=hpux9shr
2010 hppa*-hp-hpux9* )
2011 machine=hp800 opsys=hpux9
2013 hppa*-hp-hpux10.2* )
2014 machine=hp800 opsys=hpux10-20
2016 hppa*-hp-hpux10* )
2017 machine=hp800 opsys=hpux10
2019 hppa*-hp-hpux1[1-9]* )
2020 machine=hp800 opsys=hpux11
2023 hppa*-*-linux-gnu* )
2024 machine=hp800 opsys=gnu-linux
2027 ## HP 9000 series 700 and 800, running HP/UX
2028 hppa*-hp-hpux* )
2029 ## Cross-compilation? Nah!
2030 case "`uname -r`" in
2031 ## Someone's system reports A.B8.05 for this.
2032 ## I wonder what other possibilities there are.
2033 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2034 *.08.* ) machine=hp800 opsys=hpux8 ;;
2035 *.09.* ) machine=hp800 opsys=hpux9 ;;
2036 *) machine=hp800 opsys=hpux10 ;;
2037 esac
2039 hppa*-*-nextstep* )
2040 machine=hp800 opsys=nextstep
2043 ## Orion machines
2044 orion-orion-bsd* )
2045 machine=orion opsys=bsd4-2
2047 clipper-orion-bsd* )
2048 machine=orion105 opsys=bsd4-2
2051 ## IBM machines
2052 i[3456]86-ibm-aix1.1* )
2053 machine=ibmps2-aix opsys=usg5-2-2
2055 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2056 machine=ibmps2-aix opsys=usg5-3
2058 i370-ibm-aix*)
2059 machine=ibm370aix opsys=usg5-3
2061 s390-*-linux-gnu* )
2062 machine=ibms390 opsys=gnu-linux
2064 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2065 machine=ibmrs6000 opsys=aix3-1
2067 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2068 machine=ibmrs6000 opsys=aix3-2-5
2070 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2071 machine=ibmrs6000 opsys=aix4-1
2073 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2074 machine=ibmrs6000 opsys=aix4-2
2076 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2077 machine=ibmrs6000 opsys=aix4-2
2079 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2080 machine=ibmrs6000 opsys=aix4
2082 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2083 machine=ibmrs6000 opsys=aix4-1
2085 rs6000-ibm-aix* | powerpc-ibm-aix* )
2086 machine=ibmrs6000 opsys=aix3-2
2088 romp-ibm-bsd4.3* )
2089 machine=ibmrt opsys=bsd4-3
2091 romp-ibm-bsd4.2* )
2092 machine=ibmrt opsys=bsd4-2
2094 romp-ibm-aos4.3* )
2095 machine=ibmrt opsys=bsd4-3
2097 romp-ibm-aos4.2* )
2098 machine=ibmrt opsys=bsd4-2
2100 romp-ibm-aos* )
2101 machine=ibmrt opsys=bsd4-3
2103 romp-ibm-bsd* )
2104 machine=ibmrt opsys=bsd4-3
2106 romp-ibm-aix* )
2107 machine=ibmrt-aix opsys=usg5-2-2
2110 ## Integrated Solutions `Optimum V'
2111 m68*-isi-bsd4.2* )
2112 machine=isi-ov opsys=bsd4-2
2114 m68*-isi-bsd4.3* )
2115 machine=isi-ov opsys=bsd4-3
2118 ## Intel 386 machines where we do care about the manufacturer
2119 i[3456]86-intsys-sysv* )
2120 machine=is386 opsys=usg5-2-2
2123 ## Prime EXL
2124 i[3456]86-prime-sysv* )
2125 machine=i386 opsys=usg5-3
2128 ## Sequent Symmetry running Dynix
2129 i[3456]86-sequent-bsd* )
2130 machine=symmetry opsys=bsd4-3
2133 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2134 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2135 machine=sequent-ptx opsys=ptx4
2136 NON_GNU_CPP=/lib/cpp
2139 ## Sequent Symmetry running DYNIX/ptx
2140 ## Use the old cpp rather than the newer ANSI one.
2141 i[3456]86-sequent-ptx* )
2142 machine=sequent-ptx opsys=ptx
2143 NON_GNU_CPP="/lib/cpp"
2146 ## ncr machine running svr4.3.
2147 i[3456]86-ncr-sysv4.3 )
2148 machine=ncr386 opsys=usg5-4-3
2151 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2152 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2153 i[3456]86-ncr-sysv* )
2154 machine=ncr386 opsys=usg5-4-2
2157 ## Intel Paragon OSF/1
2158 i860-intel-osf1* )
2159 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2162 ## Intel 860
2163 i860-*-sysv4* )
2164 machine=i860 opsys=usg5-4
2165 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2166 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2169 ## Macintosh PowerPC
2170 powerpc*-*-linux-gnu* )
2171 machine=macppc opsys=gnu-linux
2174 ## Masscomp machines
2175 m68*-masscomp-rtu* )
2176 machine=masscomp opsys=rtu
2179 ## Megatest machines
2180 m68*-megatest-bsd* )
2181 machine=mega68 opsys=bsd4-2
2184 ## Workstations sold by MIPS
2185 ## This is not necessarily all workstations using the MIPS processor -
2186 ## Irises are produced by SGI, and DECstations by DEC.
2188 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2189 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2190 ## it gives for choosing between the alternatives seems to be "Use
2191 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2192 ## the BSD world." I'll assume that these are instructions for
2193 ## handling two odd situations, and that every other situation
2194 ## should use mips.h and usg5-2-2, they being listed first.
2195 mips-mips-usg* )
2196 machine=mips4
2197 ## Fall through to the general code at the bottom to decide on the OS.
2199 mips-mips-riscos4* )
2200 machine=mips4 opsys=bsd4-3
2201 NON_GNU_CC="cc -systype bsd43"
2202 NON_GNU_CPP="cc -systype bsd43 -E"
2204 mips-mips-riscos5* )
2205 machine=mips4 opsys=riscos5
2206 NON_GNU_CC="cc -systype bsd43"
2207 NON_GNU_CPP="cc -systype bsd43 -E"
2209 mips-mips-bsd* )
2210 machine=mips opsys=bsd4-3
2212 mips-mips-* )
2213 machine=mips opsys=usg5-2-2
2216 ## NeXT
2217 m68*-next-* | m68k-*-nextstep* )
2218 machine=m68k opsys=nextstep
2221 ## The complete machine from National Semiconductor
2222 ns32k-ns-genix* )
2223 machine=ns32000 opsys=usg5-2
2226 ## NCR machines
2227 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2228 machine=tower32 opsys=usg5-2-2
2230 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2231 machine=tower32v3 opsys=usg5-3
2234 ## NEC EWS4800
2235 mips-nec-sysv4*)
2236 machine=ews4800 opsys=ux4800
2239 ## Nixdorf Targon 31
2240 m68*-nixdorf-sysv* )
2241 machine=targon31 opsys=usg5-2-2
2244 ## Nu (TI or LMI)
2245 m68*-nu-sysv* )
2246 machine=nu opsys=usg5-2
2249 ## Plexus
2250 m68*-plexus-sysv* )
2251 machine=plexus opsys=usg5-2
2254 ## Pyramid machines
2255 ## I don't really have any idea what sort of processor the Pyramid has,
2256 ## so I'm assuming it is its own architecture.
2257 pyramid-pyramid-bsd* )
2258 machine=pyramid opsys=bsd4-2
2261 ## Sequent Balance
2262 ns32k-sequent-bsd4.2* )
2263 machine=sequent opsys=bsd4-2
2265 ns32k-sequent-bsd4.3* )
2266 machine=sequent opsys=bsd4-3
2269 ## Siemens Nixdorf
2270 mips-siemens-sysv* | mips-sni-sysv*)
2271 machine=mips-siemens opsys=usg5-4
2272 NON_GNU_CC=/usr/ccs/bin/cc
2273 NON_GNU_CPP=/usr/ccs/lib/cpp
2276 ## Silicon Graphics machines
2277 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2278 m68*-sgi-iris3.5* )
2279 machine=irist opsys=iris3-5
2281 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2282 machine=irist opsys=iris3-6
2284 ## Iris 4D
2285 mips-sgi-irix3* )
2286 machine=iris4d opsys=irix3-3
2288 mips-sgi-irix4* )
2289 machine=iris4d opsys=irix4-0
2291 mips-sgi-irix6.5 )
2292 machine=iris4d opsys=irix6-5
2293 # Without defining _LANGUAGE_C, things get masked out in the headers
2294 # so that, for instance, grepping for `free' in stdlib.h fails and
2295 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2296 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2297 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2299 mips-sgi-irix6* )
2300 machine=iris4d opsys=irix6-0
2301 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2302 # but presumably it does no harm.
2303 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2304 # -32 probably isn't necessary in later v.6s -- anyone know which?
2305 NON_GCC_TEST_OPTIONS=-32
2307 mips-sgi-irix5.[01]* )
2308 machine=iris4d opsys=irix5-0
2310 mips-sgi-irix5* | mips-sgi-irix* )
2311 machine=iris4d opsys=irix5-2
2314 ## SONY machines
2315 m68*-sony-bsd4.2* )
2316 machine=news opsys=bsd4-2
2318 m68*-sony-bsd4.3* )
2319 machine=news opsys=bsd4-3
2321 m68*-sony-newsos3* | m68*-sony-news3*)
2322 machine=news opsys=bsd4-3
2324 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2325 machine=news-risc opsys=bsd4-3
2327 mips-sony-newsos6* )
2328 machine=news-r6 opsys=newsos6
2330 mips-sony-news* )
2331 machine=news-risc opsys=newsos5
2334 ## Stride
2335 m68*-stride-sysv* )
2336 machine=stride opsys=usg5-2
2339 ## Suns
2340 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2341 machine=sparc opsys=gnu-linux
2344 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2345 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2346 | rs6000-*-solaris2*)
2347 case "${canonical}" in
2348 m68*-sunos1* ) machine=sun1 ;;
2349 m68*-sunos2* ) machine=sun2 ;;
2350 m68* ) machine=sun3 ;;
2351 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2352 i[3456]86-*-* ) machine=intel386 ;;
2353 powerpcle* ) machine=powerpcle ;;
2354 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2355 sparc* ) machine=sparc ;;
2356 * ) unported=yes ;;
2357 esac
2358 case "${canonical}" in
2359 ## The Sun386 didn't get past 4.0.
2360 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2361 *-sunos4.0* ) opsys=sunos4-0 ;;
2362 *-sunos4.1.[3-9]*noshare )
2363 ## This name is sunos413 instead of sunos4-1-3
2364 ## to avoid a file name conflict on MSDOS.
2365 opsys=sunos413
2366 NON_GNU_CPP=/usr/lib/cpp
2367 NON_GCC_TEST_OPTIONS=-Bstatic
2368 GCC_TEST_OPTIONS=-static
2370 *-sunos4.1.[3-9]* | *-sunos4shr*)
2371 opsys=sunos4shr
2372 NON_GNU_CPP=/usr/lib/cpp
2374 *-sunos4* | *-sunos )
2375 opsys=sunos4-1
2376 NON_GCC_TEST_OPTIONS=-Bstatic
2377 GCC_TEST_OPTIONS=-static
2379 *-sunos5.3* | *-solaris2.3* )
2380 opsys=sol2-3
2381 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 *-sunos5.4* | *-solaris2.4* )
2384 opsys=sol2-4
2385 NON_GNU_CPP=/usr/ccs/lib/cpp
2386 RANLIB="ar -ts"
2388 *-sunos5.5* | *-solaris2.5* )
2389 opsys=sol2-5
2390 NON_GNU_CPP=/usr/ccs/lib/cpp
2391 RANLIB="ar -ts"
2393 *-sunos5.6* | *-solaris2.6* )
2394 opsys=sol2-6
2395 NON_GNU_CPP=/usr/ccs/lib/cpp
2396 RANLIB="ar -ts"
2398 *-sunos5* | *-solaris* )
2399 opsys=sol2-6
2400 NON_GNU_CPP=/usr/ccs/lib/cpp
2402 * ) opsys=bsd4-2 ;;
2403 esac
2404 ## Watch out for a compiler that we know will not work.
2405 case "${canonical}" in
2406 *-solaris* | *-sunos5* )
2407 if [ "x$CC" = x/usr/ucb/cc ]; then
2408 ## /usr/ucb/cc doesn't work;
2409 ## we should find some other compiler that does work.
2410 unset CC
2413 *) ;;
2414 esac
2416 sparc-*-nextstep* )
2417 machine=sparc opsys=nextstep
2420 ## Tadpole 68k
2421 m68*-tadpole-sysv* )
2422 machine=tad68k opsys=usg5-3
2425 ## Tahoe machines
2426 tahoe-tahoe-bsd4.2* )
2427 machine=tahoe opsys=bsd4-2
2429 tahoe-tahoe-bsd4.3* )
2430 machine=tahoe opsys=bsd4-3
2433 ## Tandem Integrity S2
2434 mips-tandem-sysv* )
2435 machine=tandem-s2 opsys=usg5-3
2438 ## Tektronix XD88
2439 m88k-tektronix-sysv3* )
2440 machine=tekxd88 opsys=usg5-3
2443 ## Tektronix 16000 box (6130?)
2444 ns16k-tektronix-bsd* )
2445 machine=ns16000 opsys=bsd4-2
2447 ## Tektronix 4300
2448 ## src/m/tek4300.h hints that this is a m68k machine.
2449 m68*-tektronix-bsd* )
2450 machine=tek4300 opsys=bsd4-3
2453 ## Titan P2 or P3
2454 ## We seem to have lost the machine-description file titan.h!
2455 titan-titan-sysv* )
2456 machine=titan opsys=usg5-3
2459 ## Ustation E30 (SS5E)
2460 m68*-unisys-uniplus* )
2461 machine=ustation opsystem=unipl5-2
2464 ## Vaxen.
2465 vax-dec-* )
2466 machine=vax
2467 case "${canonical}" in
2468 *-bsd4.1* ) opsys=bsd4-1 ;;
2469 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2470 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2471 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2472 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2473 *-vms* ) opsys=vms ;;
2474 * ) unported=yes
2475 esac
2478 ## Whitechapel MG1
2479 ns16k-whitechapel-* )
2480 machine=mg1
2481 ## We don't know what sort of OS runs on these; we'll let the
2482 ## operating system guessing code below try.
2485 ## Wicat
2486 m68*-wicat-sysv* )
2487 machine=wicat opsys=usg5-2
2490 ## IA-64
2491 ia64*-*-linux* )
2492 machine=ia64 opsys=gnu-linux
2495 ## Intel 386 machines where we don't care about the manufacturer
2496 i[3456]86-*-* )
2497 machine=intel386
2498 case "${canonical}" in
2499 *-cygwin ) opsys=cygwin ;;
2500 *-lynxos* ) opsys=lynxos ;;
2501 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2502 *-isc2.2* ) opsys=isc2-2 ;;
2503 *-isc4.0* ) opsys=isc4-0 ;;
2504 *-isc4.* ) opsys=isc4-1
2505 GCC_TEST_OPTIONS=-posix
2506 NON_GCC_TEST_OPTIONS=-Xp
2508 *-isc* ) opsys=isc3-0 ;;
2509 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2510 *-esix* ) opsys=esix ;;
2511 *-xenix* ) opsys=xenix ;;
2512 *-linux-gnu* ) opsys=gnu-linux ;;
2513 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2514 *-sco3.2v5* ) opsys=sco5
2515 NON_GNU_CPP=/lib/cpp
2516 # Prevent -belf from being passed to $CPP.
2517 # /lib/cpp does not accept it.
2518 OVERRIDE_CPPFLAGS=" "
2520 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2521 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2522 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2523 *-386bsd* ) opsys=386bsd ;;
2524 *-nextstep* ) opsys=nextstep ;;
2525 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2526 esac
2529 ## m68k Linux-based GNU system
2530 m68k-*-linux-gnu* )
2531 machine=m68k opsys=gnu-linux
2534 ## Mips Linux-based GNU system
2535 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2536 machine=mips opsys=gnu-linux
2539 ## UXP/DS
2540 sparc-fujitsu-sysv4* )
2541 machine=sparc opsys=uxpds
2542 NON_GNU_CPP=/usr/ccs/lib/cpp
2543 RANLIB="ar -ts"
2546 ## UXP/V
2547 f301-fujitsu-uxpv4.1)
2548 machine=f301 opsys=uxpv
2551 ## Darwin / Mac OS X
2552 powerpc-apple-darwin* )
2553 machine=powermac opsys=darwin
2554 # Define CPP as follows to make autoconf work correctly.
2555 CPP="cc -E -traditional-cpp"
2558 ## AMD x86-64 Linux-based GNU system
2559 x86_64-*-linux-gnu* )
2560 machine=amdx86-64 opsys=gnu-linux
2564 unported=yes
2566 esac
2568 ### If the code above didn't choose an operating system, just choose
2569 ### an operating system based on the configuration name. You really
2570 ### only want to use this when you have no idea what the right
2571 ### operating system is; if you know what operating systems a machine
2572 ### runs, it's cleaner to make it explicit in the case statement
2573 ### above.
2574 if test x"${opsys}" = x; then
2575 case "${canonical}" in
2576 *-gnu* ) opsys=gnu ;;
2577 *-bsd4.[01] ) opsys=bsd4-1 ;;
2578 *-bsd4.2 ) opsys=bsd4-2 ;;
2579 *-bsd4.3 ) opsys=bsd4-3 ;;
2580 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2581 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2582 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2583 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2584 *-sysv4.2uw* ) opsys=unixware ;;
2585 *-sysv5uw* ) opsys=unixware ;;
2586 *-sysv5OpenUNIX* ) opsys=unixware ;;
2587 *-sysv4.1* | *-sysvr4.1* )
2588 NON_GNU_CPP=/usr/lib/cpp
2589 opsys=usg5-4 ;;
2590 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2591 if [ x$NON_GNU_CPP = x ]; then
2592 if [ -f /usr/ccs/lib/cpp ]; then
2593 NON_GNU_CPP=/usr/ccs/lib/cpp
2594 else
2595 NON_GNU_CPP=/lib/cpp
2598 opsys=usg5-4-2 ;;
2599 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2601 unported=yes
2603 esac
2608 if test $unported = yes; then
2609 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2610 Check \`etc/MACHINES' for recognized configuration names." >&5
2611 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2612 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2613 { (exit 1); exit 1; }; }
2616 machfile="m/${machine}.h"
2617 opsysfile="s/${opsys}.h"
2620 #### Choose a compiler.
2621 test -n "$CC" && cc_specified=yes
2623 # Save the value of CFLAGS that the user specified.
2624 SPECIFIED_CFLAGS="$CFLAGS"
2626 case ${with_gcc} in
2627 "yes" ) CC="gcc" GCC=yes ;;
2628 "no" ) : ${CC=cc} ;;
2630 esac
2631 ac_ext=c
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665 echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6
2667 else
2668 echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6
2673 if test -z "$ac_cv_prog_CC"; then
2674 ac_ct_CC=$CC
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_CC="gcc"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702 if test -n "$ac_ct_CC"; then
2703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704 echo "${ECHO_T}$ac_ct_CC" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 CC=$ac_ct_CC
2711 else
2712 CC="$ac_cv_prog_CC"
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}cc; ac_word=$2
2719 echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_CC="${ac_tool_prefix}cc"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2738 done
2739 done
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6
2747 else
2748 echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2753 if test -z "$ac_cv_prog_CC"; then
2754 ac_ct_CC=$CC
2755 # Extract the first word of "cc", so it can be a program name with args.
2756 set dummy cc; ac_word=$2
2757 echo "$as_me:$LINENO: checking for $ac_word" >&5
2758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_ac_ct_CC="cc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2776 done
2777 done
2781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784 echo "${ECHO_T}$ac_ct_CC" >&6
2785 else
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2790 CC=$ac_ct_CC
2791 else
2792 CC="$ac_cv_prog_CC"
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc; ac_word=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 else
2807 ac_prog_rejected=no
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected=yes
2817 continue
2819 ac_cv_prog_CC="cc"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2823 done
2824 done
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy $ac_cv_prog_CC
2829 shift
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2834 shift
2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842 echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6
2844 else
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 for ac_prog in cl
2854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2875 done
2876 done
2880 CC=$ac_cv_prog_CC
2881 if test -n "$CC"; then
2882 echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6
2884 else
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2889 test -n "$CC" && break
2890 done
2892 if test -z "$CC"; then
2893 ac_ct_CC=$CC
2894 for ac_prog in cl
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_CC="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2925 echo "${ECHO_T}$ac_ct_CC" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$ac_ct_CC" && break
2932 done
2934 CC=$ac_ct_CC
2940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2946 # Provide some information about the compiler.
2947 echo "$as_me:$LINENO:" \
2948 "checking for C compiler version" >&5
2949 ac_compiler=`set X $ac_compile; echo $2`
2950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2951 (eval $ac_compiler --version </dev/null >&5) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2956 (eval $ac_compiler -v </dev/null >&5) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2961 (eval $ac_compiler -V </dev/null >&5) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2975 main ()
2979 return 0;
2981 _ACEOF
2982 ac_clean_files_save=$ac_clean_files
2983 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2984 # Try to create an executable without -o first, disregard a.out.
2985 # It will help us diagnose broken compilers, and finding out an intuition
2986 # of exeext.
2987 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2988 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2989 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2991 (eval $ac_link_default) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; then
2995 # Find the output, starting from the most likely. This scheme is
2996 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2997 # resort.
2999 # Be careful to initialize this variable, since it used to be cached.
3000 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3001 ac_cv_exeext=
3002 # b.out is created by i960 compilers.
3003 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3005 test -f "$ac_file" || continue
3006 case $ac_file in
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3009 conftest.$ac_ext )
3010 # This is the source file.
3012 [ab].out )
3013 # We found the default executable, but exeext='' is most
3014 # certainly right.
3015 break;;
3016 *.* )
3017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 # FIXME: I believe we export ac_cv_exeext for Libtool,
3019 # but it would be cool to find out if it's true. Does anybody
3020 # maintain Libtool? --akim.
3021 export ac_cv_exeext
3022 break;;
3024 break;;
3025 esac
3026 done
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: C compiler cannot create executables
3034 See \`config.log' for more details." >&2;}
3035 { (exit 77); exit 77; }; }
3038 ac_exeext=$ac_cv_exeext
3039 echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6
3042 # Check the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3045 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3046 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3047 # If not cross compiling, check that we can run a simple program.
3048 if test "$cross_compiling" != yes; then
3049 if { ac_try='./$ac_file'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 cross_compiling=no
3056 else
3057 if test "$cross_compiling" = maybe; then
3058 cross_compiling=yes
3059 else
3060 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot run C compiled programs.
3064 If you meant to cross compile, use \`--host'.
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3070 echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6
3073 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3074 ac_clean_files=$ac_clean_files_save
3075 # Check the compiler produces executables we can run. If not, either
3076 # the compiler is broken, or we cross compile.
3077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3080 echo "${ECHO_T}$cross_compiling" >&6
3082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; then
3089 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3090 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3091 # work properly (i.e., refer to `conftest.exe'), while it won't with
3092 # `rm'.
3093 for ac_file in conftest.exe conftest conftest.*; do
3094 test -f "$ac_file" || continue
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3097 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098 export ac_cv_exeext
3099 break;;
3100 * ) break;;
3101 esac
3102 done
3103 else
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3111 rm -f conftest$ac_cv_exeext
3112 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3113 echo "${ECHO_T}$ac_cv_exeext" >&6
3115 rm -f conftest.$ac_ext
3116 EXEEXT=$ac_cv_exeext
3117 ac_exeext=$EXEEXT
3118 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3119 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3120 if test "${ac_cv_objext+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3132 main ()
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.o conftest.obj
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3146 case $ac_file in
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 break;;
3150 esac
3151 done
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3166 echo "${ECHO_T}$ac_cv_objext" >&6
3167 OBJEXT=$ac_cv_objext
3168 ac_objext=$OBJEXT
3169 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3170 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3171 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3183 main ()
3185 #ifndef __GNUC__
3186 choke me
3187 #endif
3190 return 0;
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_compiler_gnu=yes
3206 else
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 ac_compiler_gnu=no
3212 rm -f conftest.$ac_objext conftest.$ac_ext
3213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3216 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3217 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3218 GCC=`test $ac_compiler_gnu = yes && echo yes`
3219 ac_test_CFLAGS=${CFLAGS+set}
3220 ac_save_CFLAGS=$CFLAGS
3221 CFLAGS="-g"
3222 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3224 if test "${ac_cv_prog_cc_g+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3236 main ()
3240 return 0;
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_prog_cc_g=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_cv_prog_cc_g=no
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3266 if test "$ac_test_CFLAGS" = set; then
3267 CFLAGS=$ac_save_CFLAGS
3268 elif test $ac_cv_prog_cc_g = yes; then
3269 if test "$GCC" = yes; then
3270 CFLAGS="-g -O2"
3271 else
3272 CFLAGS="-g"
3274 else
3275 if test "$GCC" = yes; then
3276 CFLAGS="-O2"
3277 else
3278 CFLAGS=
3281 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3282 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 ac_cv_prog_cc_stdc=no
3287 ac_save_CC=$CC
3288 cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <stdarg.h>
3296 #include <stdio.h>
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3303 char **p;
3304 int i;
3306 return p[i];
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3310 char *s;
3311 va_list v;
3312 va_start (v,p);
3313 s = g (p, va_arg (v,int));
3314 va_end (v);
3315 return s;
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 int argc;
3322 char **argv;
3324 main ()
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 return 0;
3330 _ACEOF
3331 # Don't try gcc -ansi; that turns off useful extensions and
3332 # breaks some systems' header files.
3333 # AIX -qlanglvl=ansi
3334 # Ultrix and OSF/1 -std1
3335 # HP-UX 10.20 and later -Ae
3336 # HP-UX older versions -Aa -D_HPUX_SOURCE
3337 # SVR4 -Xc -D__EXTENSIONS__
3338 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC="$ac_save_CC $ac_arg"
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_stdc=$ac_arg
3354 break
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f conftest.$ac_objext
3361 done
3362 rm -f conftest.$ac_ext conftest.$ac_objext
3363 CC=$ac_save_CC
3367 case "x$ac_cv_prog_cc_stdc" in
3368 x|xno)
3369 echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6 ;;
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3374 CC="$CC $ac_cv_prog_cc_stdc" ;;
3375 esac
3377 # Some people use a C++ compiler to compile C. Since we use `exit',
3378 # in C++ we need to declare it. In case someone uses the same compiler
3379 # for both compiling C and C++ we need to have the C++ compiler decide
3380 # the declaration of exit, since it's the most demanding environment.
3381 cat >conftest.$ac_ext <<_ACEOF
3382 #ifndef __cplusplus
3383 choke me
3384 #endif
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 for ac_declaration in \
3400 '#include <stdlib.h>' \
3401 'extern "C" void std::exit (int) throw (); using std::exit;' \
3402 'extern "C" void std::exit (int); using std::exit;' \
3403 'extern "C" void exit (int) throw ();' \
3404 'extern "C" void exit (int);' \
3405 'void exit (int);'
3407 cat >conftest.$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <stdlib.h>
3415 $ac_declaration
3417 main ()
3419 exit (42);
3421 return 0;
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 continue
3443 rm -f conftest.$ac_objext conftest.$ac_ext
3444 cat >conftest.$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 $ac_declaration
3453 main ()
3455 exit (42);
3457 return 0;
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 break
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3478 rm -f conftest.$ac_objext conftest.$ac_ext
3479 done
3480 rm -f conftest*
3481 if test -n "$ac_declaration"; then
3482 echo '#ifdef __cplusplus' >>confdefs.h
3483 echo $ac_declaration >>confdefs.h
3484 echo '#endif' >>confdefs.h
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f conftest.$ac_objext conftest.$ac_ext
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 # On Suns, sometimes $CPP names a directory.
3501 if test -n "$CPP" && test -d "$CPP"; then
3502 CPP=
3505 #### Some systems specify a CPP to use unless we are using GCC.
3506 #### Now that we know whether we are using GCC, we can decide whether
3507 #### to use that one.
3508 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3509 then
3510 CPP="$NON_GNU_CPP"
3513 #### Some systems specify a CC to use unless we are using GCC.
3514 #### Now that we know whether we are using GCC, we can decide whether
3515 #### to use that one.
3516 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3517 test x$cc_specified != xyes
3518 then
3519 CC="$NON_GNU_CC"
3522 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3523 then
3524 CC="$CC $GCC_TEST_OPTIONS"
3527 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3528 then
3529 CC="$CC $NON_GCC_TEST_OPTIONS"
3532 #### Some other nice autoconf tests.
3534 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3535 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3536 LN_S=$as_ln_s
3537 if test "$LN_S" = "ln -s"; then
3538 echo "$as_me:$LINENO: result: yes" >&5
3539 echo "${ECHO_T}yes" >&6
3540 else
3541 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3542 echo "${ECHO_T}no, using $LN_S" >&6
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3552 # On Suns, sometimes $CPP names a directory.
3553 if test -n "$CPP" && test -d "$CPP"; then
3554 CPP=
3556 if test -z "$CPP"; then
3557 if test "${ac_cv_prog_CPP+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 # Double quotes because CPP needs to be expanded
3561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3563 ac_preproc_ok=false
3564 for ac_c_preproc_warn_flag in '' yes
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
3572 cat >conftest.$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3574 /* confdefs.h. */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584 Syntax error
3585 _ACEOF
3586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 else
3597 ac_cpp_err=
3599 else
3600 ac_cpp_err=yes
3602 if test -z "$ac_cpp_err"; then
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 # Broken: fails on valid input.
3609 continue
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether non-existent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3623 _ACEOF
3624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null; then
3632 if test -s conftest.err; then
3633 ac_cpp_err=$ac_c_preproc_warn_flag
3634 else
3635 ac_cpp_err=
3637 else
3638 ac_cpp_err=yes
3640 if test -z "$ac_cpp_err"; then
3641 # Broken: success on invalid input.
3642 continue
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3651 rm -f conftest.err conftest.$ac_ext
3653 done
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then
3657 break
3660 done
3661 ac_cv_prog_CPP=$CPP
3664 CPP=$ac_cv_prog_CPP
3665 else
3666 ac_cv_prog_CPP=$CPP
3668 echo "$as_me:$LINENO: result: $CPP" >&5
3669 echo "${ECHO_T}$CPP" >&6
3670 ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #ifdef __STDC__
3687 # include <limits.h>
3688 #else
3689 # include <assert.h>
3690 #endif
3691 Syntax error
3692 _ACEOF
3693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev/null; then
3701 if test -s conftest.err; then
3702 ac_cpp_err=$ac_c_preproc_warn_flag
3703 else
3704 ac_cpp_err=
3706 else
3707 ac_cpp_err=yes
3709 if test -z "$ac_cpp_err"; then
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 # Broken: fails on valid input.
3716 continue
3718 rm -f conftest.err conftest.$ac_ext
3720 # OK, works on sane cases. Now check whether non-existent headers
3721 # can be detected and how.
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3730 _ACEOF
3731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_c_preproc_warn_flag
3741 else
3742 ac_cpp_err=
3744 else
3745 ac_cpp_err=yes
3747 if test -z "$ac_cpp_err"; then
3748 # Broken: success on invalid input.
3749 continue
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 # Passes both tests.
3755 ac_preproc_ok=:
3756 break
3758 rm -f conftest.err conftest.$ac_ext
3760 done
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then
3765 else
3766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3769 See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 # Find a good install program. We prefer a C program (faster),
3780 # so one script is as good as another. But avoid the broken or
3781 # incompatible versions:
3782 # SysV /etc/install, /usr/sbin/install
3783 # SunOS /usr/etc/install
3784 # IRIX /sbin/install
3785 # AIX /bin/install
3786 # AmigaOS /C/install, which installs bootblocks on floppy discs
3787 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3790 # ./install, which can be erroneously created by make from ./install.sh.
3791 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3793 if test -z "$INSTALL"; then
3794 if test "${ac_cv_path_install+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3803 case $as_dir/ in
3804 ./ | .// | /cC/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 /usr/ucb/* ) ;;
3808 # OSF1 and SCO ODT 3.0 have their own names for install.
3809 # Don't use installbsd from OSF since it installs stuff as root
3810 # by default.
3811 for ac_prog in ginstall scoinst install; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3814 if test $ac_prog = install &&
3815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3816 # AIX install. It has an incompatible calling convention.
3818 elif test $ac_prog = install &&
3819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # program-specific install script used by HP pwplus--don't use.
3822 else
3823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3824 break 3
3827 done
3828 done
3830 esac
3831 done
3835 if test "${ac_cv_path_install+set}" = set; then
3836 INSTALL=$ac_cv_path_install
3837 else
3838 # As a last resort, use the slow shell script. We don't cache a
3839 # path for INSTALL within a source directory, because that will
3840 # break other packages using the cache if that directory is
3841 # removed, or if the path is relative.
3842 INSTALL=$ac_install_sh
3845 echo "$as_me:$LINENO: result: $INSTALL" >&5
3846 echo "${ECHO_T}$INSTALL" >&6
3848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849 # It thinks the first close brace ends the variable substitution.
3850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3856 if test "x$RANLIB" = x; then
3857 if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_RANLIB+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 if test -n "$RANLIB"; then
3866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3879 done
3880 done
3884 RANLIB=$ac_cv_prog_RANLIB
3885 if test -n "$RANLIB"; then
3886 echo "$as_me:$LINENO: result: $RANLIB" >&5
3887 echo "${ECHO_T}$RANLIB" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3894 if test -z "$ac_cv_prog_RANLIB"; then
3895 ac_ct_RANLIB=$RANLIB
3896 # Extract the first word of "ranlib", so it can be a program name with args.
3897 set dummy ranlib; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 if test -n "$ac_ct_RANLIB"; then
3904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_ac_ct_RANLIB="ranlib"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3917 done
3918 done
3920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3924 if test -n "$ac_ct_RANLIB"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 RANLIB=$ac_ct_RANLIB
3933 else
3934 RANLIB="$ac_cv_prog_RANLIB"
3938 # Extract the first word of "install-info", so it can be a program name with args.
3939 set dummy install-info; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 case $INSTALL_INFO in
3946 [\\/]* | ?:[\\/]*)
3947 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3961 done
3962 done
3965 esac
3967 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3969 if test -n "$INSTALL_INFO"; then
3970 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3971 echo "${ECHO_T}$INSTALL_INFO" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3977 # Extract the first word of "install-info", so it can be a program name with args.
3978 set dummy install-info; ac_word=$2
3979 echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 case $INSTALL_INFO in
3985 [\\/]* | ?:[\\/]*)
3986 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in /usr/sbin
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4004 esac
4006 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4008 if test -n "$INSTALL_INFO"; then
4009 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4010 echo "${ECHO_T}$INSTALL_INFO" >&6
4011 else
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 # Extract the first word of "install-info", so it can be a program name with args.
4017 set dummy install-info; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 case $INSTALL_INFO in
4024 [\\/]* | ?:[\\/]*)
4025 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in /sbin
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4042 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4044 esac
4046 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4048 if test -n "$INSTALL_INFO"; then
4049 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4050 echo "${ECHO_T}$INSTALL_INFO" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4058 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4059 then
4060 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4063 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4064 then
4065 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4070 echo "$as_me:$LINENO: checking for egrep" >&5
4071 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4072 if test "${ac_cv_prog_egrep+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4076 then ac_cv_prog_egrep='grep -E'
4077 else ac_cv_prog_egrep='egrep'
4080 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4081 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4082 EGREP=$ac_cv_prog_egrep
4086 echo "$as_me:$LINENO: checking for AIX" >&5
4087 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #ifdef _AIX
4097 #endif
4099 _ACEOF
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "yes" >/dev/null 2>&1; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103 echo "${ECHO_T}yes" >&6
4104 cat >>confdefs.h <<\_ACEOF
4105 #define _ALL_SOURCE 1
4106 _ACEOF
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4112 rm -f conftest*
4116 #### Extract some information from the operating system and machine files.
4118 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4119 - which libraries the lib-src programs will want, and
4120 - whether the GNU malloc routines are usable..." >&5
4121 echo "$as_me: checking the machine- and system-dependent files to find out
4122 - which libraries the lib-src programs will want, and
4123 - whether the GNU malloc routines are usable..." >&6;}
4125 ### First figure out CFLAGS (which we use for running the compiler here)
4126 ### and REAL_CFLAGS (which we use for real compilation).
4127 ### The two are the same except on a few systems, where they are made
4128 ### different to work around various lossages. For example,
4129 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4130 ### as implying static linking.
4132 ### If the CFLAGS env var is specified, we use that value
4133 ### instead of the default.
4135 ### It's not important that this name contain the PID; you can't run
4136 ### two configures in the same directory and have anything work
4137 ### anyway.
4138 tempcname="conftest.c"
4140 echo '
4141 #include "'${srcdir}'/src/'${opsysfile}'"
4142 #include "'${srcdir}'/src/'${machfile}'"
4143 #ifndef LIBS_MACHINE
4144 #define LIBS_MACHINE
4145 #endif
4146 #ifndef LIBS_SYSTEM
4147 #define LIBS_SYSTEM
4148 #endif
4149 #ifndef C_SWITCH_SYSTEM
4150 #define C_SWITCH_SYSTEM
4151 #endif
4152 #ifndef C_SWITCH_MACHINE
4153 #define C_SWITCH_MACHINE
4154 #endif
4155 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4156 configure___ c_switch_system=C_SWITCH_SYSTEM
4157 configure___ c_switch_machine=C_SWITCH_MACHINE
4159 #ifndef LIB_X11_LIB
4160 #define LIB_X11_LIB -lX11
4161 #endif
4163 #ifndef LIBX11_MACHINE
4164 #define LIBX11_MACHINE
4165 #endif
4167 #ifndef LIBX11_SYSTEM
4168 #define LIBX11_SYSTEM
4169 #endif
4170 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4172 #ifdef UNEXEC
4173 configure___ unexec=UNEXEC
4174 #else
4175 configure___ unexec=unexec.o
4176 #endif
4178 #ifdef SYSTEM_MALLOC
4179 configure___ system_malloc=yes
4180 #else
4181 configure___ system_malloc=no
4182 #endif
4184 #ifdef USE_MMAP_FOR_BUFFERS
4185 configure___ use_mmap_for_buffers=yes
4186 #else
4187 configure___ use_mmap_for_buffers=no
4188 #endif
4190 #ifndef C_DEBUG_SWITCH
4191 #define C_DEBUG_SWITCH -g
4192 #endif
4194 #ifndef C_OPTIMIZE_SWITCH
4195 #ifdef __GNUC__
4196 #define C_OPTIMIZE_SWITCH -O2
4197 #else
4198 #define C_OPTIMIZE_SWITCH -O
4199 #endif
4200 #endif
4202 #ifndef LD_SWITCH_MACHINE
4203 #define LD_SWITCH_MACHINE
4204 #endif
4206 #ifndef LD_SWITCH_SYSTEM
4207 #define LD_SWITCH_SYSTEM
4208 #endif
4210 #ifndef LD_SWITCH_X_SITE_AUX
4211 #define LD_SWITCH_X_SITE_AUX
4212 #endif
4214 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4215 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4217 #ifdef THIS_IS_CONFIGURE
4219 /* Get the CFLAGS for tests in configure. */
4220 #ifdef __GNUC__
4221 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4222 #else
4223 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4224 #endif
4226 #else /* not THIS_IS_CONFIGURE */
4228 /* Get the CFLAGS for real compilation. */
4229 #ifdef __GNUC__
4230 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4231 #else
4232 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4233 #endif
4235 #endif /* not THIS_IS_CONFIGURE */
4236 ' > ${tempcname}
4238 # The value of CPP is a quoted variable reference, so we need to do this
4239 # to get its actual value...
4240 CPP=`eval "echo $CPP"`
4241 eval `${CPP} -Isrc ${tempcname} \
4242 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4243 if test "x$SPECIFIED_CFLAGS" = x; then
4244 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4245 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4246 else
4247 REAL_CFLAGS="$CFLAGS"
4249 rm ${tempcname}
4251 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4253 ### Make sure subsequent tests use flags consistent with the build flags.
4255 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4256 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4257 else
4258 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4264 cat >>confdefs.h <<\_ACEOF
4265 #define _GNU_SOURCE 1
4266 _ACEOF
4270 # Check whether --enable-largefile or --disable-largefile was given.
4271 if test "${enable_largefile+set}" = set; then
4272 enableval="$enable_largefile"
4275 if test "$enable_largefile" != no; then
4277 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4278 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4279 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 ac_cv_sys_largefile_CC=no
4283 if test "$GCC" != yes; then
4284 ac_save_CC=$CC
4285 while :; do
4286 # IRIX 6.2 and later do not support large files by default,
4287 # so use the C compiler's -n32 option if that helps.
4288 cat >conftest.$ac_ext <<_ACEOF
4289 #line $LINENO "configure"
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <sys/types.h>
4296 /* Check that off_t can represent 2**63 - 1 correctly.
4297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4298 since some C++ compilers masquerading as C compilers
4299 incorrectly reject 9223372036854775807. */
4300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4302 && LARGE_OFF_T % 2147483647 == 1)
4303 ? 1 : -1];
4305 main ()
4309 return 0;
4311 _ACEOF
4312 rm -f conftest.$ac_objext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 break
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.$ac_objext
4331 CC="$CC -n32"
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_sys_largefile_CC=' -n32'; break
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4350 rm -f conftest.$ac_objext
4351 break
4352 done
4353 CC=$ac_save_CC
4354 rm -f conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4358 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4359 if test "$ac_cv_sys_largefile_CC" != no; then
4360 CC=$CC$ac_cv_sys_largefile_CC
4363 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4364 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4365 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 while :; do
4369 ac_cv_sys_file_offset_bits=no
4370 cat >conftest.$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4372 /* confdefs.h. */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <sys/types.h>
4378 /* Check that off_t can represent 2**63 - 1 correctly.
4379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4380 since some C++ compilers masquerading as C compilers
4381 incorrectly reject 9223372036854775807. */
4382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4384 && LARGE_OFF_T % 2147483647 == 1)
4385 ? 1 : -1];
4387 main ()
4391 return 0;
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 break
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4412 rm -f conftest.$ac_objext conftest.$ac_ext
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #define _FILE_OFFSET_BITS 64
4421 #include <sys/types.h>
4422 /* Check that off_t can represent 2**63 - 1 correctly.
4423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424 since some C++ compilers masquerading as C compilers
4425 incorrectly reject 9223372036854775807. */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428 && LARGE_OFF_T % 2147483647 == 1)
4429 ? 1 : -1];
4431 main ()
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_sys_file_offset_bits=64; break
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4456 rm -f conftest.$ac_objext conftest.$ac_ext
4457 break
4458 done
4460 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4461 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4462 if test "$ac_cv_sys_file_offset_bits" != no; then
4464 cat >>confdefs.h <<_ACEOF
4465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4466 _ACEOF
4469 rm -f conftest*
4470 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4471 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4472 if test "${ac_cv_sys_large_files+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 while :; do
4476 ac_cv_sys_large_files=no
4477 cat >conftest.$ac_ext <<_ACEOF
4478 #line $LINENO "configure"
4479 /* confdefs.h. */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <sys/types.h>
4485 /* Check that off_t can represent 2**63 - 1 correctly.
4486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4487 since some C++ compilers masquerading as C compilers
4488 incorrectly reject 9223372036854775807. */
4489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4491 && LARGE_OFF_T % 2147483647 == 1)
4492 ? 1 : -1];
4494 main ()
4498 return 0;
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try='test -s conftest.$ac_objext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 break
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4519 rm -f conftest.$ac_objext conftest.$ac_ext
4520 cat >conftest.$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #define _LARGE_FILES 1
4528 #include <sys/types.h>
4529 /* Check that off_t can represent 2**63 - 1 correctly.
4530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4531 since some C++ compilers masquerading as C compilers
4532 incorrectly reject 9223372036854775807. */
4533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4535 && LARGE_OFF_T % 2147483647 == 1)
4536 ? 1 : -1];
4538 main ()
4542 return 0;
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_sys_large_files=1; break
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4563 rm -f conftest.$ac_objext conftest.$ac_ext
4564 break
4565 done
4567 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4568 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4569 if test "$ac_cv_sys_large_files" != no; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define _LARGE_FILES $ac_cv_sys_large_files
4573 _ACEOF
4576 rm -f conftest*
4580 if test "${with_sound}" != "no"; then
4581 # Sound support for GNU/Linux and the free BSDs.
4582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4584 if test "${ac_cv_header_stdc+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 cat >conftest.$ac_ext <<_ACEOF
4588 #line $LINENO "configure"
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 #include <stdlib.h>
4595 #include <stdarg.h>
4596 #include <string.h>
4597 #include <float.h>
4600 main ()
4604 return 0;
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_header_stdc=yes
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_cv_header_stdc=no
4626 rm -f conftest.$ac_objext conftest.$ac_ext
4628 if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 #include <string.h>
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "memchr" >/dev/null 2>&1; then
4643 else
4644 ac_cv_header_stdc=no
4646 rm -f conftest*
4650 if test $ac_cv_header_stdc = yes; then
4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652 cat >conftest.$ac_ext <<_ACEOF
4653 #line $LINENO "configure"
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #include <stdlib.h>
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "free" >/dev/null 2>&1; then
4665 else
4666 ac_cv_header_stdc=no
4668 rm -f conftest*
4672 if test $ac_cv_header_stdc = yes; then
4673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674 if test "$cross_compiling" = yes; then
4676 else
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #include <ctype.h>
4685 #if ((' ' & 0x0FF) == 0x020)
4686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4688 #else
4689 # define ISLOWER(c) \
4690 (('a' <= (c) && (c) <= 'i') \
4691 || ('j' <= (c) && (c) <= 'r') \
4692 || ('s' <= (c) && (c) <= 'z'))
4693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4694 #endif
4696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4698 main ()
4700 int i;
4701 for (i = 0; i < 256; i++)
4702 if (XOR (islower (i), ISLOWER (i))
4703 || toupper (i) != TOUPPER (i))
4704 exit(2);
4705 exit (0);
4707 _ACEOF
4708 rm -f conftest$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4720 else
4721 echo "$as_me: program exited with status $ac_status" >&5
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 ( exit $ac_status )
4726 ac_cv_header_stdc=no
4728 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4734 if test $ac_cv_header_stdc = yes; then
4736 cat >>confdefs.h <<\_ACEOF
4737 #define STDC_HEADERS 1
4738 _ACEOF
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 cat >conftest.$ac_ext <<_ACEOF
4762 #line $LINENO "configure"
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4770 #include <$ac_header>
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 eval "$as_ac_Header=yes"
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 eval "$as_ac_Header=no"
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4796 cat >>confdefs.h <<_ACEOF
4797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4798 _ACEOF
4802 done
4808 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4812 echo "$as_me:$LINENO: checking for $ac_header" >&5
4813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 else
4820 # Is the header compilable?
4821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4823 cat >conftest.$ac_ext <<_ACEOF
4824 #line $LINENO "configure"
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 #include <$ac_header>
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_header_compiler=yes
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_header_compiler=no
4852 rm -f conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4854 echo "${ECHO_T}$ac_header_compiler" >&6
4856 # Is the header present?
4857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4859 cat >conftest.$ac_ext <<_ACEOF
4860 #line $LINENO "configure"
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <$ac_header>
4867 _ACEOF
4868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null; then
4876 if test -s conftest.err; then
4877 ac_cpp_err=$ac_c_preproc_warn_flag
4878 else
4879 ac_cpp_err=
4881 else
4882 ac_cpp_err=yes
4884 if test -z "$ac_cpp_err"; then
4885 ac_header_preproc=yes
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 ac_header_preproc=no
4892 rm -f conftest.err conftest.$ac_ext
4893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4894 echo "${ECHO_T}$ac_header_preproc" >&6
4896 # So? What about this header?
4897 case $ac_header_compiler:$ac_header_preproc in
4898 yes:no )
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904 cat <<\_ASBOX
4905 ## ------------------------------------ ##
4906 ## Report this to bug-autoconf@gnu.org. ##
4907 ## ------------------------------------ ##
4908 _ASBOX
4910 sed "s/^/$as_me: WARNING: /" >&2
4912 no:yes )
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920 cat <<\_ASBOX
4921 ## ------------------------------------ ##
4922 ## Report this to bug-autoconf@gnu.org. ##
4923 ## ------------------------------------ ##
4924 _ASBOX
4926 sed "s/^/$as_me: WARNING: /" >&2
4928 esac
4929 echo "$as_me:$LINENO: checking for $ac_header" >&5
4930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 eval "$as_ac_Header=$ac_header_preproc"
4936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941 cat >>confdefs.h <<_ACEOF
4942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 _ACEOF
4947 done
4949 # Emulation library used on NetBSD.
4950 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4951 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4952 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955 ac_check_lib_save_LIBS=$LIBS
4956 LIBS="-lossaudio $LIBS"
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 #ifdef __cplusplus
4967 extern "C"
4968 #endif
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4971 char _oss_ioctl ();
4973 main ()
4975 _oss_ioctl ();
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext conftest$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_lib_ossaudio__oss_ioctl=yes
4993 else
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_cv_lib_ossaudio__oss_ioctl=no
4999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000 LIBS=$ac_check_lib_save_LIBS
5002 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5003 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5004 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5005 LIBSOUND=-lossaudio
5006 else
5007 LIBSOUND=
5034 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5035 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5036 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5037 sys/param.h sys/vlimit.h sys/resource.h
5039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5041 echo "$as_me:$LINENO: checking for $ac_header" >&5
5042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5048 else
5049 # Is the header compilable?
5050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5052 cat >conftest.$ac_ext <<_ACEOF
5053 #line $LINENO "configure"
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 $ac_includes_default
5060 #include <$ac_header>
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_header_compiler=yes
5075 else
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_header_compiler=no
5081 rm -f conftest.$ac_objext conftest.$ac_ext
5082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083 echo "${ECHO_T}$ac_header_compiler" >&6
5085 # Is the header present?
5086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line $LINENO "configure"
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #include <$ac_header>
5096 _ACEOF
5097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } >/dev/null; then
5105 if test -s conftest.err; then
5106 ac_cpp_err=$ac_c_preproc_warn_flag
5107 else
5108 ac_cpp_err=
5110 else
5111 ac_cpp_err=yes
5113 if test -z "$ac_cpp_err"; then
5114 ac_header_preproc=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ac_header_preproc=no
5121 rm -f conftest.err conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5123 echo "${ECHO_T}$ac_header_preproc" >&6
5125 # So? What about this header?
5126 case $ac_header_compiler:$ac_header_preproc in
5127 yes:no )
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5133 cat <<\_ASBOX
5134 ## ------------------------------------ ##
5135 ## Report this to bug-autoconf@gnu.org. ##
5136 ## ------------------------------------ ##
5137 _ASBOX
5139 sed "s/^/$as_me: WARNING: /" >&2
5141 no:yes )
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5149 cat <<\_ASBOX
5150 ## ------------------------------------ ##
5151 ## Report this to bug-autoconf@gnu.org. ##
5152 ## ------------------------------------ ##
5153 _ASBOX
5155 sed "s/^/$as_me: WARNING: /" >&2
5157 esac
5158 echo "$as_me:$LINENO: checking for $ac_header" >&5
5159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 eval "$as_ac_Header=$ac_header_preproc"
5165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5170 cat >>confdefs.h <<_ACEOF
5171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5172 _ACEOF
5176 done
5179 for ac_header in term.h
5181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 cat >conftest.$ac_ext <<_ACEOF
5188 #line $LINENO "configure"
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 #include <$ac_header>
5195 _ACEOF
5196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5198 ac_status=$?
5199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } >/dev/null; then
5204 if test -s conftest.err; then
5205 ac_cpp_err=$ac_c_preproc_warn_flag
5206 else
5207 ac_cpp_err=
5209 else
5210 ac_cpp_err=yes
5212 if test -z "$ac_cpp_err"; then
5213 eval "$as_ac_Header=yes"
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 eval "$as_ac_Header=no"
5220 rm -f conftest.err conftest.$ac_ext
5222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5225 cat >>confdefs.h <<_ACEOF
5226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5227 _ACEOF
5231 done
5233 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5234 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5235 if test "${ac_cv_header_stdc+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #include <stdlib.h>
5246 #include <stdarg.h>
5247 #include <string.h>
5248 #include <float.h>
5251 main ()
5255 return 0;
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_header_stdc=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_cv_header_stdc=no
5277 rm -f conftest.$ac_objext conftest.$ac_ext
5279 if test $ac_cv_header_stdc = yes; then
5280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 #line $LINENO "configure"
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 #include <string.h>
5290 _ACEOF
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "memchr" >/dev/null 2>&1; then
5294 else
5295 ac_cv_header_stdc=no
5297 rm -f conftest*
5301 if test $ac_cv_header_stdc = yes; then
5302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5303 cat >conftest.$ac_ext <<_ACEOF
5304 #line $LINENO "configure"
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #include <stdlib.h>
5312 _ACEOF
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 $EGREP "free" >/dev/null 2>&1; then
5316 else
5317 ac_cv_header_stdc=no
5319 rm -f conftest*
5323 if test $ac_cv_header_stdc = yes; then
5324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5325 if test "$cross_compiling" = yes; then
5327 else
5328 cat >conftest.$ac_ext <<_ACEOF
5329 #line $LINENO "configure"
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <ctype.h>
5336 #if ((' ' & 0x0FF) == 0x020)
5337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5339 #else
5340 # define ISLOWER(c) \
5341 (('a' <= (c) && (c) <= 'i') \
5342 || ('j' <= (c) && (c) <= 'r') \
5343 || ('s' <= (c) && (c) <= 'z'))
5344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5345 #endif
5347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5349 main ()
5351 int i;
5352 for (i = 0; i < 256; i++)
5353 if (XOR (islower (i), ISLOWER (i))
5354 || toupper (i) != TOUPPER (i))
5355 exit(2);
5356 exit (0);
5358 _ACEOF
5359 rm -f conftest$ac_exeext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5371 else
5372 echo "$as_me: program exited with status $ac_status" >&5
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 ( exit $ac_status )
5377 ac_cv_header_stdc=no
5379 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5383 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5384 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5385 if test $ac_cv_header_stdc = yes; then
5387 cat >>confdefs.h <<\_ACEOF
5388 #define STDC_HEADERS 1
5389 _ACEOF
5393 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5394 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5395 if test "${ac_cv_header_time+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 /* confdefs.h. */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 #include <sys/types.h>
5406 #include <sys/time.h>
5407 #include <time.h>
5410 main ()
5412 if ((struct tm *) 0)
5413 return 0;
5415 return 0;
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_cv_header_time=yes
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 ac_cv_header_time=no
5437 rm -f conftest.$ac_objext conftest.$ac_ext
5439 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5440 echo "${ECHO_T}$ac_cv_header_time" >&6
5441 if test $ac_cv_header_time = yes; then
5443 cat >>confdefs.h <<\_ACEOF
5444 #define TIME_WITH_SYS_TIME 1
5445 _ACEOF
5449 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5450 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5451 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 cat >conftest.$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5463 main ()
5465 #ifndef sys_siglist
5466 char *p = (char *) sys_siglist;
5467 #endif
5470 return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
5479 { ac_try='test -s conftest.$ac_objext'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; }; then
5485 ac_cv_have_decl_sys_siglist=yes
5486 else
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5490 ac_cv_have_decl_sys_siglist=no
5492 rm -f conftest.$ac_objext conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5495 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5496 if test $ac_cv_have_decl_sys_siglist = yes; then
5498 cat >>confdefs.h <<_ACEOF
5499 #define HAVE_DECL_SYS_SIGLIST 1
5500 _ACEOF
5503 else
5504 cat >>confdefs.h <<_ACEOF
5505 #define HAVE_DECL_SYS_SIGLIST 0
5506 _ACEOF
5512 if test $ac_cv_have_decl_sys_siglist != yes; then
5513 # For Tru64, at least:
5514 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5515 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5516 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 cat >conftest.$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5528 main ()
5530 #ifndef __sys_siglist
5531 char *p = (char *) __sys_siglist;
5532 #endif
5535 return 0;
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_have_decl___sys_siglist=yes
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 ac_cv_have_decl___sys_siglist=no
5557 rm -f conftest.$ac_objext conftest.$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5560 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5561 if test $ac_cv_have_decl___sys_siglist = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564 #define HAVE_DECL___SYS_SIGLIST 1
5565 _ACEOF
5568 else
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_DECL___SYS_SIGLIST 0
5571 _ACEOF
5577 if test $ac_cv_have_decl___sys_siglist = yes; then
5579 cat >>confdefs.h <<\_ACEOF
5580 #define sys_siglist __sys_siglist
5581 _ACEOF
5585 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5586 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5587 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 cat >conftest.$ac_ext <<_ACEOF
5591 #line $LINENO "configure"
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <sys/types.h>
5598 #include <sys/wait.h>
5599 #ifndef WEXITSTATUS
5600 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5601 #endif
5602 #ifndef WIFEXITED
5603 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5604 #endif
5607 main ()
5609 int s;
5610 wait (&s);
5611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5613 return 0;
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618 (eval $ac_compile) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_header_sys_wait_h=yes
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_cv_header_sys_wait_h=no
5635 rm -f conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5638 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5639 if test $ac_cv_header_sys_wait_h = yes; then
5641 cat >>confdefs.h <<\_ACEOF
5642 #define HAVE_SYS_WAIT_H 1
5643 _ACEOF
5648 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5649 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5650 if test "${emacs_cv_struct_utimbuf+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 #ifdef TIME_WITH_SYS_TIME
5661 #include <sys/time.h>
5662 #include <time.h>
5663 #else
5664 #ifdef HAVE_SYS_TIME_H
5665 #include <sys/time.h>
5666 #else
5667 #include <time.h>
5668 #endif
5669 #endif
5670 #ifdef HAVE_UTIME_H
5671 #include <utime.h>
5672 #endif
5674 main ()
5676 static struct utimbuf x; x.actime = x.modtime;
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683 (eval $ac_compile) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -s conftest.$ac_objext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 emacs_cv_struct_utimbuf=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 emacs_cv_struct_utimbuf=no
5700 rm -f conftest.$ac_objext conftest.$ac_ext
5702 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5703 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5704 if test $emacs_cv_struct_utimbuf = yes; then
5706 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_STRUCT_UTIMBUF 1
5708 _ACEOF
5712 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5713 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5714 if test "${ac_cv_type_signal+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 cat >conftest.$ac_ext <<_ACEOF
5718 #line $LINENO "configure"
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #include <sys/types.h>
5725 #include <signal.h>
5726 #ifdef signal
5727 # undef signal
5728 #endif
5729 #ifdef __cplusplus
5730 extern "C" void (*signal (int, void (*)(int)))(int);
5731 #else
5732 void (*signal ()) ();
5733 #endif
5736 main ()
5738 int i;
5740 return 0;
5742 _ACEOF
5743 rm -f conftest.$ac_objext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5745 (eval $ac_compile) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_type_signal=void
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_cv_type_signal=int
5762 rm -f conftest.$ac_objext conftest.$ac_ext
5764 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5765 echo "${ECHO_T}$ac_cv_type_signal" >&6
5767 cat >>confdefs.h <<_ACEOF
5768 #define RETSIGTYPE $ac_cv_type_signal
5769 _ACEOF
5773 echo "$as_me:$LINENO: checking for speed_t" >&5
5774 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5775 if test "${emacs_cv_speed_t+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 cat >conftest.$ac_ext <<_ACEOF
5779 #line $LINENO "configure"
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <termios.h>
5787 main ()
5789 speed_t x = 1;
5791 return 0;
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796 (eval $ac_compile) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 emacs_cv_speed_t=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 emacs_cv_speed_t=no
5813 rm -f conftest.$ac_objext conftest.$ac_ext
5815 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5816 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5817 if test $emacs_cv_speed_t = yes; then
5819 cat >>confdefs.h <<\_ACEOF
5820 #define HAVE_SPEED_T 1
5821 _ACEOF
5825 echo "$as_me:$LINENO: checking for struct timeval" >&5
5826 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5827 if test "${emacs_cv_struct_timeval+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 #ifdef TIME_WITH_SYS_TIME
5838 #include <sys/time.h>
5839 #include <time.h>
5840 #else
5841 #ifdef HAVE_SYS_TIME_H
5842 #include <sys/time.h>
5843 #else
5844 #include <time.h>
5845 #endif
5846 #endif
5848 main ()
5850 static struct timeval x; x.tv_sec = x.tv_usec;
5852 return 0;
5854 _ACEOF
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -s conftest.$ac_objext'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 emacs_cv_struct_timeval=yes
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 emacs_cv_struct_timeval=no
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5877 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5878 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5879 if test $emacs_cv_struct_timeval = yes; then
5881 cat >>confdefs.h <<\_ACEOF
5882 #define HAVE_TIMEVAL 1
5883 _ACEOF
5887 echo "$as_me:$LINENO: checking for struct exception" >&5
5888 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5889 if test "${emacs_cv_struct_exception+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <math.h>
5901 main ()
5903 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5905 return 0;
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 emacs_cv_struct_exception=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 emacs_cv_struct_exception=no
5927 rm -f conftest.$ac_objext conftest.$ac_ext
5929 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5930 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5931 HAVE_EXCEPTION=$emacs_cv_struct_exception
5932 if test $emacs_cv_struct_exception != yes; then
5934 cat >>confdefs.h <<\_ACEOF
5935 #define NO_MATHERR 1
5936 _ACEOF
5940 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5941 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5942 if test "${ac_cv_struct_tm+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 #include <time.h>
5956 main ()
5958 struct tm *tp; tp->tm_sec;
5960 return 0;
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_cv_struct_tm=time.h
5976 else
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_cv_struct_tm=sys/time.h
5982 rm -f conftest.$ac_objext conftest.$ac_ext
5984 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5985 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5986 if test $ac_cv_struct_tm = sys/time.h; then
5988 cat >>confdefs.h <<\_ACEOF
5989 #define TM_IN_SYS_TIME 1
5990 _ACEOF
5994 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5995 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5996 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 cat >conftest.$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #include <sys/types.h>
6007 #include <$ac_cv_struct_tm>
6011 main ()
6013 static struct tm ac_aggr;
6014 if (ac_aggr.tm_zone)
6015 return 0;
6017 return 0;
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_member_struct_tm_tm_zone=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 cat >conftest.$ac_ext <<_ACEOF
6038 #line $LINENO "configure"
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6045 #include <$ac_cv_struct_tm>
6049 main ()
6051 static struct tm ac_aggr;
6052 if (sizeof ac_aggr.tm_zone)
6053 return 0;
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_member_struct_tm_tm_zone=yes
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 ac_cv_member_struct_tm_tm_zone=no
6077 rm -f conftest.$ac_objext conftest.$ac_ext
6079 rm -f conftest.$ac_objext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6082 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6083 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6085 cat >>confdefs.h <<_ACEOF
6086 #define HAVE_STRUCT_TM_TM_ZONE 1
6087 _ACEOF
6092 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6094 cat >>confdefs.h <<\_ACEOF
6095 #define HAVE_TM_ZONE 1
6096 _ACEOF
6098 else
6099 echo "$as_me:$LINENO: checking for tzname" >&5
6100 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6101 if test "${ac_cv_var_tzname+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 #line $LINENO "configure"
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <time.h>
6112 #ifndef tzname /* For SGI. */
6113 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6114 #endif
6117 main ()
6119 atoi(*tzname);
6121 return 0;
6123 _ACEOF
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -s conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_var_tzname=yes
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 ac_cv_var_tzname=no
6143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6145 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6146 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6147 if test $ac_cv_var_tzname = yes; then
6149 cat >>confdefs.h <<\_ACEOF
6150 #define HAVE_TZNAME 1
6151 _ACEOF
6156 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6157 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6158 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 cat >conftest.$ac_ext <<_ACEOF
6162 #line $LINENO "configure"
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <time.h>
6171 main ()
6173 static struct tm ac_aggr;
6174 if (ac_aggr.tm_gmtoff)
6175 return 0;
6177 return 0;
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 ac_cv_member_struct_tm_tm_gmtoff=yes
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 #include <time.h>
6207 main ()
6209 static struct tm ac_aggr;
6210 if (sizeof ac_aggr.tm_gmtoff)
6211 return 0;
6213 return 0;
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_member_struct_tm_tm_gmtoff=yes
6229 else
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_cv_member_struct_tm_tm_gmtoff=no
6235 rm -f conftest.$ac_objext conftest.$ac_ext
6237 rm -f conftest.$ac_objext conftest.$ac_ext
6239 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6240 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6241 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6243 cat >>confdefs.h <<\_ACEOF
6244 #define HAVE_TM_GMTOFF 1
6245 _ACEOF
6251 echo "$as_me:$LINENO: checking for function prototypes" >&5
6252 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6253 if test "$ac_cv_prog_cc_stdc" != no; then
6254 echo "$as_me:$LINENO: result: yes" >&5
6255 echo "${ECHO_T}yes" >&6
6257 cat >>confdefs.h <<\_ACEOF
6258 #define PROTOTYPES 1
6259 _ACEOF
6262 cat >>confdefs.h <<\_ACEOF
6263 #define __PROTOTYPES 1
6264 _ACEOF
6266 else
6267 echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6
6271 echo "$as_me:$LINENO: checking for working volatile" >&5
6272 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6273 if test "${ac_cv_c_volatile+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276 cat >conftest.$ac_ext <<_ACEOF
6277 #line $LINENO "configure"
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6285 main ()
6288 volatile int x;
6289 int * volatile y;
6291 return 0;
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try='test -s conftest.$ac_objext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_c_volatile=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_cv_c_volatile=no
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6316 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6317 if test $ac_cv_c_volatile = no; then
6319 cat >>confdefs.h <<\_ACEOF
6320 #define volatile
6321 _ACEOF
6325 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6326 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6327 if test "${ac_cv_c_const+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6339 main ()
6341 /* FIXME: Include the comments suggested by Paul. */
6342 #ifndef __cplusplus
6343 /* Ultrix mips cc rejects this. */
6344 typedef int charset[2];
6345 const charset x;
6346 /* SunOS 4.1.1 cc rejects this. */
6347 char const *const *ccp;
6348 char **p;
6349 /* NEC SVR4.0.2 mips cc rejects this. */
6350 struct point {int x, y;};
6351 static struct point const zero = {0,0};
6352 /* AIX XL C 1.02.0.0 rejects this.
6353 It does not let you subtract one const X* pointer from another in
6354 an arm of an if-expression whose if-part is not a constant
6355 expression */
6356 const char *g = "string";
6357 ccp = &g + (g ? g-g : 0);
6358 /* HPUX 7.0 cc rejects these. */
6359 ++ccp;
6360 p = (char**) ccp;
6361 ccp = (char const *const *) p;
6362 { /* SCO 3.2v4 cc rejects this. */
6363 char *t;
6364 char const *s = 0 ? (char *) 0 : (char const *) 0;
6366 *t++ = 0;
6368 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6369 int x[] = {25, 17};
6370 const int *foo = &x[0];
6371 ++foo;
6373 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6374 typedef const int *iptr;
6375 iptr p = 0;
6376 ++p;
6378 { /* AIX XL C 1.02.0.0 rejects this saying
6379 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6380 struct s { int j; const int *ap[3]; };
6381 struct s *b; b->j = 5;
6383 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6384 const int foo = 10;
6386 #endif
6389 return 0;
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_c_const=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_cv_c_const=no
6411 rm -f conftest.$ac_objext conftest.$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6414 echo "${ECHO_T}$ac_cv_c_const" >&6
6415 if test $ac_cv_c_const = no; then
6417 cat >>confdefs.h <<\_ACEOF
6418 #define const
6419 _ACEOF
6423 echo "$as_me:$LINENO: checking for void * support" >&5
6424 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6425 if test "${emacs_cv_void_star+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428 cat >conftest.$ac_ext <<_ACEOF
6429 #line $LINENO "configure"
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6437 main ()
6439 void * foo;
6441 return 0;
6443 _ACEOF
6444 rm -f conftest.$ac_objext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 emacs_cv_void_star=yes
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 emacs_cv_void_star=no
6463 rm -f conftest.$ac_objext conftest.$ac_ext
6465 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6466 echo "${ECHO_T}$emacs_cv_void_star" >&6
6467 if test $emacs_cv_void_star = yes; then
6468 cat >>confdefs.h <<\_ACEOF
6469 #define POINTER_TYPE void
6470 _ACEOF
6472 else
6473 cat >>confdefs.h <<\_ACEOF
6474 #define POINTER_TYPE char
6475 _ACEOF
6481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 cat >conftest.make <<\_ACEOF
6488 all:
6489 @echo 'ac_maketemp="$(MAKE)"'
6490 _ACEOF
6491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6493 if test -n "$ac_maketemp"; then
6494 eval ac_cv_prog_make_${ac_make}_set=yes
6495 else
6496 eval ac_cv_prog_make_${ac_make}_set=no
6498 rm -f conftest.make
6500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6501 echo "$as_me:$LINENO: result: yes" >&5
6502 echo "${ECHO_T}yes" >&6
6503 SET_MAKE=
6504 else
6505 echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6
6507 SET_MAKE="MAKE=${MAKE-make}"
6511 echo "$as_me:$LINENO: checking for long file names" >&5
6512 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6513 if test "${ac_cv_sys_long_file_names+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 ac_cv_sys_long_file_names=yes
6517 # Test for long file names in all the places we know might matter:
6518 # . the current directory, where building will happen
6519 # $prefix/lib where we will be installing things
6520 # $exec_prefix/lib likewise
6521 # eval it to expand exec_prefix.
6522 # $TMPDIR if set, where it might want to write temporary files
6523 # if $TMPDIR is not set:
6524 # /tmp where it might want to write temporary files
6525 # /var/tmp likewise
6526 # /usr/tmp likewise
6527 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6528 ac_tmpdirs=$TMPDIR
6529 else
6530 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6532 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6533 test -d $ac_dir || continue
6534 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6535 ac_xdir=$ac_dir/cf$$
6536 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6537 ac_tf1=$ac_xdir/conftest9012345
6538 ac_tf2=$ac_xdir/conftest9012346
6539 (echo 1 >$ac_tf1) 2>/dev/null
6540 (echo 2 >$ac_tf2) 2>/dev/null
6541 ac_val=`cat $ac_tf1 2>/dev/null`
6542 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6543 ac_cv_sys_long_file_names=no
6544 rm -rf $ac_xdir 2>/dev/null
6545 break
6547 rm -rf $ac_xdir 2>/dev/null
6548 done
6550 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6551 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6552 if test $ac_cv_sys_long_file_names = yes; then
6554 cat >>confdefs.h <<\_ACEOF
6555 #define HAVE_LONG_FILE_NAMES 1
6556 _ACEOF
6561 #### Choose a window system.
6563 echo "$as_me:$LINENO: checking for X" >&5
6564 echo $ECHO_N "checking for X... $ECHO_C" >&6
6567 # Check whether --with-x or --without-x was given.
6568 if test "${with_x+set}" = set; then
6569 withval="$with_x"
6572 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6573 if test "x$with_x" = xno; then
6574 # The user explicitly disabled X.
6575 have_x=disabled
6576 else
6577 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6578 # Both variables are already set.
6579 have_x=yes
6580 else
6581 if test "${ac_cv_have_x+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584 # One or both of the vars are not set, and there is no cached value.
6585 ac_x_includes=no ac_x_libraries=no
6586 rm -fr conftest.dir
6587 if mkdir conftest.dir; then
6588 cd conftest.dir
6589 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6590 cat >Imakefile <<'_ACEOF'
6591 acfindx:
6592 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6593 _ACEOF
6594 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6596 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6597 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6598 for ac_extension in a so sl; do
6599 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6600 test -f $ac_im_libdir/libX11.$ac_extension; then
6601 ac_im_usrlibdir=$ac_im_libdir; break
6603 done
6604 # Screen out bogus values from the imake configuration. They are
6605 # bogus both because they are the default anyway, and because
6606 # using them would break gcc on systems where it needs fixed includes.
6607 case $ac_im_incroot in
6608 /usr/include) ;;
6609 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6610 esac
6611 case $ac_im_usrlibdir in
6612 /usr/lib | /lib) ;;
6613 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6614 esac
6616 cd ..
6617 rm -fr conftest.dir
6620 # Standard set of common directories for X headers.
6621 # Check X11 before X11Rn because it is often a symlink to the current release.
6622 ac_x_header_dirs='
6623 /usr/X11/include
6624 /usr/X11R6/include
6625 /usr/X11R5/include
6626 /usr/X11R4/include
6628 /usr/include/X11
6629 /usr/include/X11R6
6630 /usr/include/X11R5
6631 /usr/include/X11R4
6633 /usr/local/X11/include
6634 /usr/local/X11R6/include
6635 /usr/local/X11R5/include
6636 /usr/local/X11R4/include
6638 /usr/local/include/X11
6639 /usr/local/include/X11R6
6640 /usr/local/include/X11R5
6641 /usr/local/include/X11R4
6643 /usr/X386/include
6644 /usr/x386/include
6645 /usr/XFree86/include/X11
6647 /usr/include
6648 /usr/local/include
6649 /usr/unsupported/include
6650 /usr/athena/include
6651 /usr/local/x11r5/include
6652 /usr/lpp/Xamples/include
6654 /usr/openwin/include
6655 /usr/openwin/share/include'
6657 if test "$ac_x_includes" = no; then
6658 # Guess where to find include files, by looking for Intrinsic.h.
6659 # First, try using that file with no special directory specified.
6660 cat >conftest.$ac_ext <<_ACEOF
6661 #line $LINENO "configure"
6662 /* confdefs.h. */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6667 #include <X11/Intrinsic.h>
6668 _ACEOF
6669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } >/dev/null; then
6677 if test -s conftest.err; then
6678 ac_cpp_err=$ac_c_preproc_warn_flag
6679 else
6680 ac_cpp_err=
6682 else
6683 ac_cpp_err=yes
6685 if test -z "$ac_cpp_err"; then
6686 # We can compile using X headers with no special include directory.
6687 ac_x_includes=
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 for ac_dir in $ac_x_header_dirs; do
6693 if test -r "$ac_dir/X11/Intrinsic.h"; then
6694 ac_x_includes=$ac_dir
6695 break
6697 done
6699 rm -f conftest.err conftest.$ac_ext
6700 fi # $ac_x_includes = no
6702 if test "$ac_x_libraries" = no; then
6703 # Check for the libraries.
6704 # See if we find them without any special options.
6705 # Don't add to $LIBS permanently.
6706 ac_save_LIBS=$LIBS
6707 LIBS="-lXt $LIBS"
6708 cat >conftest.$ac_ext <<_ACEOF
6709 #line $LINENO "configure"
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 #include <X11/Intrinsic.h>
6717 main ()
6719 XtMalloc (0)
6721 return 0;
6723 _ACEOF
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try='test -s conftest$ac_exeext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 LIBS=$ac_save_LIBS
6737 # We can link X programs with no special library path.
6738 ac_x_libraries=
6739 else
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6743 LIBS=$ac_save_LIBS
6744 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6746 # Don't even attempt the hair of trying to link an X program!
6747 for ac_extension in a so sl; do
6748 if test -r $ac_dir/libXt.$ac_extension; then
6749 ac_x_libraries=$ac_dir
6750 break 2
6752 done
6753 done
6755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6756 fi # $ac_x_libraries = no
6758 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6759 # Didn't find X anywhere. Cache the known absence of X.
6760 ac_cv_have_x="have_x=no"
6761 else
6762 # Record where we found X for the cache.
6763 ac_cv_have_x="have_x=yes \
6764 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6769 eval "$ac_cv_have_x"
6770 fi # $with_x != no
6772 if test "$have_x" != yes; then
6773 echo "$as_me:$LINENO: result: $have_x" >&5
6774 echo "${ECHO_T}$have_x" >&6
6775 no_x=yes
6776 else
6777 # If each of the values was on the command line, it overrides each guess.
6778 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6779 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6780 # Update the cache value to reflect the command line values.
6781 ac_cv_have_x="have_x=yes \
6782 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6783 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6784 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6787 if test "$no_x" = yes; then
6788 window_system=none
6789 else
6790 window_system=x11
6793 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6794 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6795 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6796 x_default_search_path=""
6797 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6798 x_search_path="\
6799 ${x_library}/X11/%L/%T/%N%C%S:\
6800 ${x_library}/X11/%l/%T/%N%C%S:\
6801 ${x_library}/X11/%T/%N%C%S:\
6802 ${x_library}/X11/%L/%T/%N%S:\
6803 ${x_library}/X11/%l/%T/%N%S:\
6804 ${x_library}/X11/%T/%N%S"
6805 if test x"${x_default_search_path}" = x; then
6806 x_default_search_path=${x_search_path}
6807 else
6808 x_default_search_path="${x_search_path}:${x_default_search_path}"
6810 done
6812 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6813 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6816 if test x"${x_includes}" = x; then
6817 bitmapdir=/usr/include/X11/bitmaps
6818 else
6819 # accumulate include directories that have X11 bitmap subdirectories
6820 bmd_acc="dummyval"
6821 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6822 if test -d "${bmd}/X11/bitmaps"; then
6823 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6825 if test -d "${bmd}/bitmaps"; then
6826 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6828 done
6829 if test ${bmd_acc} != "dummyval"; then
6830 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6834 case "${window_system}" in
6835 x11 )
6836 HAVE_X_WINDOWS=yes
6837 HAVE_X11=yes
6838 case "${with_x_toolkit}" in
6839 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6840 motif ) USE_X_TOOLKIT=MOTIF ;;
6841 gtk ) with_gtk=yes
6842 USE_X_TOOLKIT=none ;;
6843 no ) USE_X_TOOLKIT=none ;;
6844 * ) USE_X_TOOLKIT=maybe ;;
6845 esac
6847 none )
6848 HAVE_X_WINDOWS=no
6849 HAVE_X11=no
6850 USE_X_TOOLKIT=none
6852 esac
6854 ### If we're using X11, we should use the X menu package.
6855 HAVE_MENUS=no
6856 case ${HAVE_X11} in
6857 yes ) HAVE_MENUS=yes ;;
6858 esac
6860 if test "${opsys}" = "hpux9"; then
6861 case "${x_libraries}" in
6862 *X11R4* )
6863 opsysfile="s/hpux9-x11r4.h"
6865 esac
6868 if test "${opsys}" = "hpux9shr"; then
6869 case "${x_libraries}" in
6870 *X11R4* )
6871 opsysfile="s/hpux9shxr4.h"
6873 esac
6876 ### Compute the unexec source name from the object name.
6877 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6879 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6880 # Assume not, until told otherwise.
6881 GNU_MALLOC=yes
6882 doug_lea_malloc=yes
6883 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6884 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6885 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 /* System header to define __stub macros and hopefully few prototypes,
6896 which can conflict with char malloc_get_state (); below.
6897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6898 <limits.h> exists even on freestanding compilers. */
6899 #ifdef __STDC__
6900 # include <limits.h>
6901 #else
6902 # include <assert.h>
6903 #endif
6904 /* Override any gcc2 internal prototype to avoid an error. */
6905 #ifdef __cplusplus
6906 extern "C"
6908 #endif
6909 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */
6911 char malloc_get_state ();
6912 /* The GNU C library defines this for functions which it implements
6913 to always fail with ENOSYS. Some functions are actually named
6914 something starting with __ and the normal name is an alias. */
6915 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6916 choke me
6917 #else
6918 char (*f) () = malloc_get_state;
6919 #endif
6920 #ifdef __cplusplus
6922 #endif
6925 main ()
6927 return f != malloc_get_state;
6929 return 0;
6931 _ACEOF
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934 (eval $ac_link) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest$ac_exeext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_cv_func_malloc_get_state=yes
6945 else
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 ac_cv_func_malloc_get_state=no
6951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6953 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6954 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6955 if test $ac_cv_func_malloc_get_state = yes; then
6957 else
6958 doug_lea_malloc=no
6961 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6962 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6963 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966 cat >conftest.$ac_ext <<_ACEOF
6967 #line $LINENO "configure"
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 /* System header to define __stub macros and hopefully few prototypes,
6974 which can conflict with char malloc_set_state (); below.
6975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6976 <limits.h> exists even on freestanding compilers. */
6977 #ifdef __STDC__
6978 # include <limits.h>
6979 #else
6980 # include <assert.h>
6981 #endif
6982 /* Override any gcc2 internal prototype to avoid an error. */
6983 #ifdef __cplusplus
6984 extern "C"
6986 #endif
6987 /* We use char because int might match the return type of a gcc2
6988 builtin and then its argument prototype would still apply. */
6989 char malloc_set_state ();
6990 /* The GNU C library defines this for functions which it implements
6991 to always fail with ENOSYS. Some functions are actually named
6992 something starting with __ and the normal name is an alias. */
6993 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6994 choke me
6995 #else
6996 char (*f) () = malloc_set_state;
6997 #endif
6998 #ifdef __cplusplus
7000 #endif
7003 main ()
7005 return f != malloc_set_state;
7007 return 0;
7009 _ACEOF
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_func_malloc_set_state=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_cv_func_malloc_set_state=no
7029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7031 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7032 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7033 if test $ac_cv_func_malloc_set_state = yes; then
7035 else
7036 doug_lea_malloc=no
7039 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7040 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7041 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 cat >conftest.$ac_ext <<_ACEOF
7045 #line $LINENO "configure"
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 extern void (* __after_morecore_hook)();
7053 main ()
7055 __after_morecore_hook = 0
7057 return 0;
7059 _ACEOF
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -s conftest$ac_exeext'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; }; then
7072 emacs_cv_var___after_morecore_hook=yes
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7077 emacs_cv_var___after_morecore_hook=no
7079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7081 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7082 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7083 if test $emacs_cv_var___after_morecore_hook = no; then
7084 doug_lea_malloc=no
7086 if test "${system_malloc}" = "yes"; then
7087 GNU_MALLOC=no
7088 GNU_MALLOC_reason="
7089 (The GNU allocators don't work with this system configuration.)"
7091 if test "$doug_lea_malloc" = "yes" ; then
7092 if test "$GNU_MALLOC" = yes ; then
7093 GNU_MALLOC_reason="
7094 (Using Doug Lea's new malloc from the GNU C Library.)"
7097 cat >>confdefs.h <<\_ACEOF
7098 #define DOUG_LEA_MALLOC 1
7099 _ACEOF
7103 if test x"${REL_ALLOC}" = x; then
7104 REL_ALLOC=${GNU_MALLOC}
7110 for ac_header in stdlib.h unistd.h
7112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7114 echo "$as_me:$LINENO: checking for $ac_header" >&5
7115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7121 else
7122 # Is the header compilable?
7123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7125 cat >conftest.$ac_ext <<_ACEOF
7126 #line $LINENO "configure"
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 $ac_includes_default
7133 #include <$ac_header>
7134 _ACEOF
7135 rm -f conftest.$ac_objext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7137 (eval $ac_compile) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } &&
7141 { ac_try='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_header_compiler=yes
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_header_compiler=no
7154 rm -f conftest.$ac_objext conftest.$ac_ext
7155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7156 echo "${ECHO_T}$ac_header_compiler" >&6
7158 # Is the header present?
7159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line $LINENO "configure"
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <$ac_header>
7169 _ACEOF
7170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } >/dev/null; then
7178 if test -s conftest.err; then
7179 ac_cpp_err=$ac_c_preproc_warn_flag
7180 else
7181 ac_cpp_err=
7183 else
7184 ac_cpp_err=yes
7186 if test -z "$ac_cpp_err"; then
7187 ac_header_preproc=yes
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7192 ac_header_preproc=no
7194 rm -f conftest.err conftest.$ac_ext
7195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7196 echo "${ECHO_T}$ac_header_preproc" >&6
7198 # So? What about this header?
7199 case $ac_header_compiler:$ac_header_preproc in
7200 yes:no )
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7206 cat <<\_ASBOX
7207 ## ------------------------------------ ##
7208 ## Report this to bug-autoconf@gnu.org. ##
7209 ## ------------------------------------ ##
7210 _ASBOX
7212 sed "s/^/$as_me: WARNING: /" >&2
7214 no:yes )
7215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7222 cat <<\_ASBOX
7223 ## ------------------------------------ ##
7224 ## Report this to bug-autoconf@gnu.org. ##
7225 ## ------------------------------------ ##
7226 _ASBOX
7228 sed "s/^/$as_me: WARNING: /" >&2
7230 esac
7231 echo "$as_me:$LINENO: checking for $ac_header" >&5
7232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 eval "$as_ac_Header=$ac_header_preproc"
7238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7243 cat >>confdefs.h <<_ACEOF
7244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7245 _ACEOF
7249 done
7252 for ac_func in getpagesize
7254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7255 echo "$as_me:$LINENO: checking for $ac_func" >&5
7256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7257 if eval "test \"\${$as_ac_var+set}\" = set"; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 cat >conftest.$ac_ext <<_ACEOF
7261 #line $LINENO "configure"
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 /* System header to define __stub macros and hopefully few prototypes,
7268 which can conflict with char $ac_func (); below.
7269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7270 <limits.h> exists even on freestanding compilers. */
7271 #ifdef __STDC__
7272 # include <limits.h>
7273 #else
7274 # include <assert.h>
7275 #endif
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 #ifdef __cplusplus
7278 extern "C"
7280 #endif
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283 char $ac_func ();
7284 /* The GNU C library defines this for functions which it implements
7285 to always fail with ENOSYS. Some functions are actually named
7286 something starting with __ and the normal name is an alias. */
7287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7288 choke me
7289 #else
7290 char (*f) () = $ac_func;
7291 #endif
7292 #ifdef __cplusplus
7294 #endif
7297 main ()
7299 return f != $ac_func;
7301 return 0;
7303 _ACEOF
7304 rm -f conftest.$ac_objext conftest$ac_exeext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306 (eval $ac_link) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -s conftest$ac_exeext'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then
7316 eval "$as_ac_var=yes"
7317 else
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 eval "$as_ac_var=no"
7323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7327 if test `eval echo '${'$as_ac_var'}'` = yes; then
7328 cat >>confdefs.h <<_ACEOF
7329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7330 _ACEOF
7333 done
7335 echo "$as_me:$LINENO: checking for working mmap" >&5
7336 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7337 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 if test "$cross_compiling" = yes; then
7341 ac_cv_func_mmap_fixed_mapped=no
7342 else
7343 cat >conftest.$ac_ext <<_ACEOF
7344 #line $LINENO "configure"
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 $ac_includes_default
7351 /* malloc might have been renamed as rpl_malloc. */
7352 #undef malloc
7354 /* Thanks to Mike Haertel and Jim Avera for this test.
7355 Here is a matrix of mmap possibilities:
7356 mmap private not fixed
7357 mmap private fixed at somewhere currently unmapped
7358 mmap private fixed at somewhere already mapped
7359 mmap shared not fixed
7360 mmap shared fixed at somewhere currently unmapped
7361 mmap shared fixed at somewhere already mapped
7362 For private mappings, we should verify that changes cannot be read()
7363 back from the file, nor mmap's back from the file at a different
7364 address. (There have been systems where private was not correctly
7365 implemented like the infamous i386 svr4.0, and systems where the
7366 VM page cache was not coherent with the file system buffer cache
7367 like early versions of FreeBSD and possibly contemporary NetBSD.)
7368 For shared mappings, we should conversely verify that changes get
7369 propagated back to all the places they're supposed to be.
7371 Grep wants private fixed already mapped.
7372 The main things grep needs to know about mmap are:
7373 * does it exist and is it safe to write into the mmap'd area
7374 * how to use it (BSD variants) */
7376 #include <fcntl.h>
7377 #include <sys/mman.h>
7379 #if !STDC_HEADERS && !HAVE_STDLIB_H
7380 char *malloc ();
7381 #endif
7383 /* This mess was copied from the GNU getpagesize.h. */
7384 #if !HAVE_GETPAGESIZE
7385 /* Assume that all systems that can run configure have sys/param.h. */
7386 # if !HAVE_SYS_PARAM_H
7387 # define HAVE_SYS_PARAM_H 1
7388 # endif
7390 # ifdef _SC_PAGESIZE
7391 # define getpagesize() sysconf(_SC_PAGESIZE)
7392 # else /* no _SC_PAGESIZE */
7393 # if HAVE_SYS_PARAM_H
7394 # include <sys/param.h>
7395 # ifdef EXEC_PAGESIZE
7396 # define getpagesize() EXEC_PAGESIZE
7397 # else /* no EXEC_PAGESIZE */
7398 # ifdef NBPG
7399 # define getpagesize() NBPG * CLSIZE
7400 # ifndef CLSIZE
7401 # define CLSIZE 1
7402 # endif /* no CLSIZE */
7403 # else /* no NBPG */
7404 # ifdef NBPC
7405 # define getpagesize() NBPC
7406 # else /* no NBPC */
7407 # ifdef PAGESIZE
7408 # define getpagesize() PAGESIZE
7409 # endif /* PAGESIZE */
7410 # endif /* no NBPC */
7411 # endif /* no NBPG */
7412 # endif /* no EXEC_PAGESIZE */
7413 # else /* no HAVE_SYS_PARAM_H */
7414 # define getpagesize() 8192 /* punt totally */
7415 # endif /* no HAVE_SYS_PARAM_H */
7416 # endif /* no _SC_PAGESIZE */
7418 #endif /* no HAVE_GETPAGESIZE */
7421 main ()
7423 char *data, *data2, *data3;
7424 int i, pagesize;
7425 int fd;
7427 pagesize = getpagesize ();
7429 /* First, make a file with some known garbage in it. */
7430 data = (char *) malloc (pagesize);
7431 if (!data)
7432 exit (1);
7433 for (i = 0; i < pagesize; ++i)
7434 *(data + i) = rand ();
7435 umask (0);
7436 fd = creat ("conftest.mmap", 0600);
7437 if (fd < 0)
7438 exit (1);
7439 if (write (fd, data, pagesize) != pagesize)
7440 exit (1);
7441 close (fd);
7443 /* Next, try to mmap the file at a fixed address which already has
7444 something else allocated at it. If we can, also make sure that
7445 we see the same garbage. */
7446 fd = open ("conftest.mmap", O_RDWR);
7447 if (fd < 0)
7448 exit (1);
7449 data2 = (char *) malloc (2 * pagesize);
7450 if (!data2)
7451 exit (1);
7452 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7453 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7454 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7455 exit (1);
7456 for (i = 0; i < pagesize; ++i)
7457 if (*(data + i) != *(data2 + i))
7458 exit (1);
7460 /* Finally, make sure that changes to the mapped area do not
7461 percolate back to the file as seen by read(). (This is a bug on
7462 some variants of i386 svr4.0.) */
7463 for (i = 0; i < pagesize; ++i)
7464 *(data2 + i) = *(data2 + i) + 1;
7465 data3 = (char *) malloc (pagesize);
7466 if (!data3)
7467 exit (1);
7468 if (read (fd, data3, pagesize) != pagesize)
7469 exit (1);
7470 for (i = 0; i < pagesize; ++i)
7471 if (*(data + i) != *(data3 + i))
7472 exit (1);
7473 close (fd);
7474 exit (0);
7476 _ACEOF
7477 rm -f conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_func_mmap_fixed_mapped=yes
7489 else
7490 echo "$as_me: program exited with status $ac_status" >&5
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ( exit $ac_status )
7495 ac_cv_func_mmap_fixed_mapped=no
7497 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7500 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7501 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7502 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7504 cat >>confdefs.h <<\_ACEOF
7505 #define HAVE_MMAP 1
7506 _ACEOF
7509 rm -f conftest.mmap
7511 if test $use_mmap_for_buffers = yes; then
7512 REL_ALLOC=no
7515 LIBS="$libsrc_libs $LIBS"
7518 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7519 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7520 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523 ac_check_lib_save_LIBS=$LIBS
7524 LIBS="-ldnet $LIBS"
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 /* Override any gcc2 internal prototype to avoid an error. */
7534 #ifdef __cplusplus
7535 extern "C"
7536 #endif
7537 /* We use char because int might match the return type of a gcc2
7538 builtin and then its argument prototype would still apply. */
7539 char dnet_ntoa ();
7541 main ()
7543 dnet_ntoa ();
7545 return 0;
7547 _ACEOF
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_lib_dnet_dnet_ntoa=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_cv_lib_dnet_dnet_ntoa=no
7567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7568 LIBS=$ac_check_lib_save_LIBS
7570 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7571 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7572 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7573 cat >>confdefs.h <<_ACEOF
7574 #define HAVE_LIBDNET 1
7575 _ACEOF
7577 LIBS="-ldnet $LIBS"
7582 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7583 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7584 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 ac_check_lib_save_LIBS=$LIBS
7588 LIBS="-lXbsd $LIBS"
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line $LINENO "configure"
7591 /* confdefs.h. */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7599 main ()
7601 main ();
7603 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -s conftest$ac_exeext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 ac_cv_lib_Xbsd_main=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7623 ac_cv_lib_Xbsd_main=no
7625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7626 LIBS=$ac_check_lib_save_LIBS
7628 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7629 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7630 if test $ac_cv_lib_Xbsd_main = yes; then
7631 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7636 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7637 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7638 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 ac_check_lib_save_LIBS=$LIBS
7642 LIBS="-lpthreads $LIBS"
7643 cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7651 /* Override any gcc2 internal prototype to avoid an error. */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657 char cma_open ();
7659 main ()
7661 cma_open ();
7663 return 0;
7665 _ACEOF
7666 rm -f conftest.$ac_objext conftest$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_pthreads_cma_open=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_cv_lib_pthreads_cma_open=no
7685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7688 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7689 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7690 if test $ac_cv_lib_pthreads_cma_open = yes; then
7691 cat >>confdefs.h <<_ACEOF
7692 #define HAVE_LIBPTHREADS 1
7693 _ACEOF
7695 LIBS="-lpthreads $LIBS"
7700 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7701 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7702 if test -d /usr/X386/include; then
7703 HAVE_XFREE386=yes
7704 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7705 else
7706 HAVE_XFREE386=no
7708 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7709 echo "${ECHO_T}$HAVE_XFREE386" >&6
7712 case ${host_os} in
7713 aix*)
7714 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7715 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7716 if test "${gdb_cv_bigtoc+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7720 case $GCC in
7721 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7722 *) gdb_cv_bigtoc=-bbigtoc ;;
7723 esac
7725 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7726 cat >conftest.$ac_ext <<_ACEOF
7727 #line $LINENO "configure"
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7735 main ()
7737 int i;
7739 return 0;
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -s conftest$ac_exeext'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 (eval $ac_try) 2>&5
7751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; }; then
7755 else
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7759 gdb_cv_bigtoc=
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7765 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7767 esac
7769 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7770 # used for the tests that follow. We set them back to REAL_CFLAGS and
7771 # REAL_CPPFLAGS later on.
7773 REAL_CPPFLAGS="$CPPFLAGS"
7775 if test "${HAVE_X11}" = "yes"; then
7776 DEFS="$C_SWITCH_X_SITE $DEFS"
7777 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7778 LIBS="$LIBX $LIBS"
7779 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7780 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7782 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7783 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7784 # but it's more convenient here to set LD_RUN_PATH
7785 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7786 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7787 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7788 export LD_RUN_PATH
7791 if test "${opsys}" = "gnu-linux"; then
7792 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7793 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7795 #line $LINENO "configure"
7796 /* confdefs.h. */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7803 main ()
7805 XOpenDisplay ("foo");
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>&5
7813 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -s conftest$ac_exeext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 xlinux_first_failure=no
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 xlinux_first_failure=yes
7829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7830 if test "${xlinux_first_failure}" = "yes"; then
7831 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7832 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7833 OLD_CPPFLAGS="$CPPFLAGS"
7834 OLD_LIBS="$LIBS"
7835 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7836 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7837 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7838 LIBS="$LIBS -b i486-linuxaout"
7839 cat >conftest.$ac_ext <<_ACEOF
7840 #line $LINENO "configure"
7841 /* confdefs.h. */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7848 main ()
7850 XOpenDisplay ("foo");
7852 return 0;
7854 _ACEOF
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -s conftest$ac_exeext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 xlinux_second_failure=no
7868 else
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 xlinux_second_failure=yes
7874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7875 if test "${xlinux_second_failure}" = "yes"; then
7876 # If we get the same failure with -b, there is no use adding -b.
7877 # So take it out. This plays safe.
7878 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7879 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7880 CPPFLAGS="$OLD_CPPFLAGS"
7881 LIBS="$OLD_LIBS"
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7884 else
7885 echo "$as_me:$LINENO: result: yes" >&5
7886 echo "${ECHO_T}yes" >&6
7888 else
7889 echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6
7894 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7895 # header files included from there.
7896 echo "$as_me:$LINENO: checking for Xkb" >&5
7897 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7899 #line $LINENO "configure"
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #include <X11/Xlib.h>
7906 #include <X11/XKBlib.h>
7908 main ()
7910 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7912 return 0;
7914 _ACEOF
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7917 (eval $ac_link) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 emacs_xkb=yes
7928 else
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 emacs_xkb=no
7934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7935 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7936 echo "${ECHO_T}$emacs_xkb" >&6
7937 if test $emacs_xkb = yes; then
7939 cat >>confdefs.h <<\_ACEOF
7940 #define HAVE_XKBGETKEYBOARD 1
7941 _ACEOF
7949 for ac_func in XrmSetDatabase XScreenResourceString \
7950 XScreenNumberOfScreen XSetWMProtocols
7952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7953 echo "$as_me:$LINENO: checking for $ac_func" >&5
7954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7955 if eval "test \"\${$as_ac_var+set}\" = set"; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 cat >conftest.$ac_ext <<_ACEOF
7959 #line $LINENO "configure"
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 /* System header to define __stub macros and hopefully few prototypes,
7966 which can conflict with char $ac_func (); below.
7967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7968 <limits.h> exists even on freestanding compilers. */
7969 #ifdef __STDC__
7970 # include <limits.h>
7971 #else
7972 # include <assert.h>
7973 #endif
7974 /* Override any gcc2 internal prototype to avoid an error. */
7975 #ifdef __cplusplus
7976 extern "C"
7978 #endif
7979 /* We use char because int might match the return type of a gcc2
7980 builtin and then its argument prototype would still apply. */
7981 char $ac_func ();
7982 /* The GNU C library defines this for functions which it implements
7983 to always fail with ENOSYS. Some functions are actually named
7984 something starting with __ and the normal name is an alias. */
7985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7986 choke me
7987 #else
7988 char (*f) () = $ac_func;
7989 #endif
7990 #ifdef __cplusplus
7992 #endif
7995 main ()
7997 return f != $ac_func;
7999 return 0;
8001 _ACEOF
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004 (eval $ac_link) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest$ac_exeext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 eval "$as_ac_var=yes"
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 eval "$as_ac_var=no"
8021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8025 if test `eval echo '${'$as_ac_var'}'` = yes; then
8026 cat >>confdefs.h <<_ACEOF
8027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8028 _ACEOF
8031 done
8035 if test "${window_system}" = "x11"; then
8036 echo "$as_me:$LINENO: checking X11 version 6" >&5
8037 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8038 if test "${emacs_cv_x11_version_6+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <X11/Xlib.h>
8050 main ()
8052 #if XlibSpecificationRelease < 6
8053 fail;
8054 #endif
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_x11_version_6=yes
8073 else
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8077 emacs_cv_x11_version_6=no
8079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082 if test $emacs_cv_x11_version_6 = yes; then
8083 echo "$as_me:$LINENO: result: 6 or newer" >&5
8084 echo "${ECHO_T}6 or newer" >&6
8086 cat >>confdefs.h <<\_ACEOF
8087 #define HAVE_X11R6 1
8088 _ACEOF
8090 else
8091 echo "$as_me:$LINENO: result: before 6" >&5
8092 echo "${ECHO_T}before 6" >&6
8096 if test "${window_system}" = "x11"; then
8097 echo "$as_me:$LINENO: checking X11 version 5" >&5
8098 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8099 if test "${emacs_cv_x11_version_5+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102 cat >conftest.$ac_ext <<_ACEOF
8103 #line $LINENO "configure"
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 #include <X11/Xlib.h>
8111 main ()
8113 #if XlibSpecificationRelease < 5
8114 fail;
8115 #endif
8118 return 0;
8120 _ACEOF
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8123 (eval $ac_link) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 emacs_cv_x11_version_5=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 emacs_cv_x11_version_5=no
8140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8143 if test $emacs_cv_x11_version_5 = yes; then
8144 echo "$as_me:$LINENO: result: 5 or newer" >&5
8145 echo "${ECHO_T}5 or newer" >&6
8146 HAVE_X11R5=yes
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_X11R5 1
8150 _ACEOF
8152 else
8153 HAVE_X11R5=no
8154 echo "$as_me:$LINENO: result: before 5" >&5
8155 echo "${ECHO_T}before 5" >&6
8161 HAVE_GTK=no
8162 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8163 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8164 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8165 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8166 { (exit 1); exit 1; }; };
8168 GLIB_REQUIRED=2.0.1
8169 GTK_REQUIRED=2.0.1
8170 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8172 if test "X${with_pkg_config_prog}" != X; then
8173 PKG_CONFIG="${with_pkg_config_prog}"
8176 succeeded=no
8178 if test -z "$PKG_CONFIG"; then
8179 # Extract the first word of "pkg-config", so it can be a program name with args.
8180 set dummy pkg-config; ac_word=$2
8181 echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8183 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 case $PKG_CONFIG in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8202 done
8203 done
8205 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8207 esac
8209 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8211 if test -n "$PKG_CONFIG"; then
8212 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8213 echo "${ECHO_T}$PKG_CONFIG" >&6
8214 else
8215 echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6
8221 if test "$PKG_CONFIG" = "no" ; then
8222 echo "*** The pkg-config script could not be found. Make sure it is"
8223 echo "*** in your path, or give the full path to pkg-config with"
8224 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8225 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8226 else
8227 PKG_CONFIG_MIN_VERSION=0.9.0
8228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8229 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8230 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8232 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8233 echo "$as_me:$LINENO: result: yes" >&5
8234 echo "${ECHO_T}yes" >&6
8235 succeeded=yes
8237 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8238 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8239 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8240 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8241 echo "${ECHO_T}$GTK_CFLAGS" >&6
8243 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8244 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8245 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8246 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8247 echo "${ECHO_T}$GTK_LIBS" >&6
8248 else
8249 GTK_CFLAGS=""
8250 GTK_LIBS=""
8251 ## If we have a custom action on failure, don't print errors, but
8252 ## do set a variable so people can do so.
8253 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8254 echo $GTK_PKG_ERRORS
8259 else
8260 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8261 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8265 if test $succeeded = yes; then
8267 else
8268 { { 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
8269 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;}
8270 { (exit 1); exit 1; }; }
8275 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8276 HAVE_GTK=yes
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_GTK 1
8280 _ACEOF
8282 USE_X_TOOLKIT=none
8284 with_toolkit_scroll_bars=yes
8287 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8288 if test x"${HAVE_X11R5}" = xyes; then
8289 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8290 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8291 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 cat >conftest.$ac_ext <<_ACEOF
8295 #line $LINENO "configure"
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 #include <X11/Intrinsic.h>
8303 #include <X11/Xaw/Simple.h>
8305 main ()
8309 return 0;
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -s conftest$ac_exeext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 emacs_cv_x11_version_5_with_xaw=yes
8325 else
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 emacs_cv_x11_version_5_with_xaw=no
8331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8334 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8335 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8336 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8337 USE_X_TOOLKIT=LUCID
8338 else
8339 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8340 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8341 USE_X_TOOLKIT=none
8343 else
8344 USE_X_TOOLKIT=none
8348 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8350 if test "${USE_X_TOOLKIT}" != "none"; then
8351 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8352 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8353 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include <X11/Intrinsic.h>
8365 main ()
8367 #if XtSpecificationRelease < 6
8368 fail;
8369 #endif
8372 return 0;
8374 _ACEOF
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377 (eval $ac_link) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 emacs_cv_x11_toolkit_version_6=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 emacs_cv_x11_toolkit_version_6=no
8394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8397 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8398 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8399 echo "$as_me:$LINENO: result: 6 or newer" >&5
8400 echo "${ECHO_T}6 or newer" >&6
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_X11XTR6 1
8404 _ACEOF
8406 else
8407 echo "$as_me:$LINENO: result: before 6" >&5
8408 echo "${ECHO_T}before 6" >&6
8411 OLDLIBS="$LIBS"
8412 if test x$HAVE_X11XTR6 = xyes; then
8413 LIBS="-lXt -lSM -lICE $LIBS"
8414 else
8415 LIBS="-lXt $LIBS"
8418 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8419 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8420 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lXmu $LIBS"
8425 cat >conftest.$ac_ext <<_ACEOF
8426 #line $LINENO "configure"
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char XmuConvertStandardSelection ();
8441 main ()
8443 XmuConvertStandardSelection ();
8445 return 0;
8447 _ACEOF
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8461 else
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8471 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8472 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define HAVE_LIBXMU 1
8475 _ACEOF
8477 LIBS="-lXmu $LIBS"
8481 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8484 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8485 if test "${HAVE_X11}" = "yes"; then
8486 if test "${USE_X_TOOLKIT}" != "none"; then
8488 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8489 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8490 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 ac_check_lib_save_LIBS=$LIBS
8494 LIBS="-lXext $LIBS"
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 #ifdef __cplusplus
8505 extern "C"
8506 #endif
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8509 char XShapeQueryExtension ();
8511 main ()
8513 XShapeQueryExtension ();
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520 (eval $ac_link) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_lib_Xext_XShapeQueryExtension=yes
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 ac_cv_lib_Xext_XShapeQueryExtension=no
8537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8540 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8541 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8542 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_LIBXEXT 1
8545 _ACEOF
8547 LIBS="-lXext $LIBS"
8554 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8555 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8556 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8557 if test "${emacs_cv_lesstif+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 # We put this in CFLAGS temporarily to precede other -I options
8561 # that might be in CFLAGS temporarily.
8562 # We put this in CPPFLAGS where it precedes the other -I options.
8563 OLD_CPPFLAGS=$CPPFLAGS
8564 OLD_CFLAGS=$CFLAGS
8565 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8566 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8567 cat >conftest.$ac_ext <<_ACEOF
8568 #line $LINENO "configure"
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8576 main ()
8578 int x = 5;
8580 return 0;
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>&5
8586 ac_status=$?
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -s conftest.$ac_objext'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8595 emacs_cv_lesstif=yes
8596 else
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8600 emacs_cv_lesstif=no
8602 rm -f conftest.$ac_objext conftest.$ac_ext
8604 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8605 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8606 if test $emacs_cv_lesstif = yes; then
8607 # Make sure this -I option remains in CPPFLAGS after it is set
8608 # back to REAL_CPPFLAGS.
8609 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8610 # have those other -I options anyway. Ultimately, having this
8611 # directory ultimately in CPPFLAGS will be enough.
8612 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8613 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8614 else
8615 CFLAGS=$OLD_CFLAGS
8616 CPPFLAGS=$OLD_CPPFLAGS
8618 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8619 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8620 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line $LINENO "configure"
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 #include <Xm/Xm.h>
8632 main ()
8634 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8635 int x = 5;
8636 #else
8637 Motif version prior to 2.1.
8638 #endif
8640 return 0;
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645 (eval $ac_compile) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -s conftest.$ac_objext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 emacs_cv_motif_version_2_1=yes
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 emacs_cv_motif_version_2_1=no
8662 rm -f conftest.$ac_objext conftest.$ac_ext
8664 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8665 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8666 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8667 if test $emacs_cv_motif_version_2_1 = yes; then
8668 HAVE_LIBXP=no
8670 cat >>confdefs.h <<\_ACEOF
8671 #define HAVE_MOTIF_2_1 1
8672 _ACEOF
8674 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8675 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8676 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 ac_check_lib_save_LIBS=$LIBS
8680 LIBS="-lXp $LIBS"
8681 cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8695 char XpCreateContext ();
8697 main ()
8699 XpCreateContext ();
8701 return 0;
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 ac_cv_lib_Xp_XpCreateContext=yes
8717 else
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 ac_cv_lib_Xp_XpCreateContext=no
8723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8724 LIBS=$ac_check_lib_save_LIBS
8726 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8727 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8728 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8729 HAVE_LIBXP=yes
8732 if test ${HAVE_LIBXP} = yes; then
8734 cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_LIBXP 1
8736 _ACEOF
8742 ### Is -lXaw3d available?
8743 HAVE_XAW3D=no
8744 if test "${HAVE_X11}" = "yes"; then
8745 if test "${USE_X_TOOLKIT}" != "none"; then
8746 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8747 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8748 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751 cat >conftest.$ac_ext <<_ACEOF
8752 #line $LINENO "configure"
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 #include <X11/Xaw3d/Scrollbar.h>
8759 _ACEOF
8760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } >/dev/null; then
8768 if test -s conftest.err; then
8769 ac_cpp_err=$ac_c_preproc_warn_flag
8770 else
8771 ac_cpp_err=
8773 else
8774 ac_cpp_err=yes
8776 if test -z "$ac_cpp_err"; then
8777 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8778 else
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8784 rm -f conftest.err conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8787 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8788 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8789 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8790 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8791 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 ac_check_lib_save_LIBS=$LIBS
8795 LIBS="-lXaw3d $LIBS"
8796 cat >conftest.$ac_ext <<_ACEOF
8797 #line $LINENO "configure"
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8804 /* Override any gcc2 internal prototype to avoid an error. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 /* We use char because int might match the return type of a gcc2
8809 builtin and then its argument prototype would still apply. */
8810 char XawScrollbarSetThumb ();
8812 main ()
8814 XawScrollbarSetThumb ();
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext conftest$ac_exeext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8821 (eval $ac_link) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -s conftest$ac_exeext'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 (eval $ac_try) 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; }; then
8831 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8832 else
8833 echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8836 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8841 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8842 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8843 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8844 HAVE_XAW3D=yes
8850 if test "${HAVE_XAW3D}" = "yes"; then
8852 cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_XAW3D 1
8854 _ACEOF
8862 USE_TOOLKIT_SCROLL_BARS=no
8863 if test "${with_toolkit_scroll_bars}" != "no"; then
8864 if test "${USE_X_TOOLKIT}" != "none"; then
8865 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8866 cat >>confdefs.h <<\_ACEOF
8867 #define USE_TOOLKIT_SCROLL_BARS 1
8868 _ACEOF
8870 HAVE_XAW3D=no
8871 USE_TOOLKIT_SCROLL_BARS=yes
8872 elif test "${HAVE_XAW3D}" = "yes"; then
8873 cat >>confdefs.h <<\_ACEOF
8874 #define USE_TOOLKIT_SCROLL_BARS 1
8875 _ACEOF
8877 USE_TOOLKIT_SCROLL_BARS=yes
8879 elif test "${HAVE_GTK}" = "yes"; then
8880 cat >>confdefs.h <<\_ACEOF
8881 #define USE_TOOLKIT_SCROLL_BARS 1
8882 _ACEOF
8884 USE_TOOLKIT_SCROLL_BARS=yes
8889 if test "${with_xim}" != "no"; then
8891 cat >>confdefs.h <<\_ACEOF
8892 #define USE_XIM 1
8893 _ACEOF
8897 ### Use -lXpm if available, unless `--with-xpm=no'.
8898 HAVE_XPM=no
8899 if test "${HAVE_X11}" = "yes"; then
8900 if test "${with_xpm}" != "no"; then
8901 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8902 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8903 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8904 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8908 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8909 else
8910 # Is the header compilable?
8911 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8912 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8921 #include <X11/xpm.h>
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -s conftest.$ac_objext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 ac_header_compiler=yes
8936 else
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 ac_header_compiler=no
8942 rm -f conftest.$ac_objext conftest.$ac_ext
8943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8944 echo "${ECHO_T}$ac_header_compiler" >&6
8946 # Is the header present?
8947 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8948 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8949 cat >conftest.$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8951 /* confdefs.h. */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 #include <X11/xpm.h>
8957 _ACEOF
8958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } >/dev/null; then
8966 if test -s conftest.err; then
8967 ac_cpp_err=$ac_c_preproc_warn_flag
8968 else
8969 ac_cpp_err=
8971 else
8972 ac_cpp_err=yes
8974 if test -z "$ac_cpp_err"; then
8975 ac_header_preproc=yes
8976 else
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_header_preproc=no
8982 rm -f conftest.err conftest.$ac_ext
8983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8984 echo "${ECHO_T}$ac_header_preproc" >&6
8986 # So? What about this header?
8987 case $ac_header_compiler:$ac_header_preproc in
8988 yes:no )
8989 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8990 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8992 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8994 cat <<\_ASBOX
8995 ## ------------------------------------ ##
8996 ## Report this to bug-autoconf@gnu.org. ##
8997 ## ------------------------------------ ##
8998 _ASBOX
9000 sed "s/^/$as_me: WARNING: /" >&2
9002 no:yes )
9003 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9004 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9006 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9010 cat <<\_ASBOX
9011 ## ------------------------------------ ##
9012 ## Report this to bug-autoconf@gnu.org. ##
9013 ## ------------------------------------ ##
9014 _ASBOX
9016 sed "s/^/$as_me: WARNING: /" >&2
9018 esac
9019 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9020 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9021 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 ac_cv_header_X11_xpm_h=$ac_header_preproc
9026 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9027 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9030 if test $ac_cv_header_X11_xpm_h = yes; then
9031 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9032 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9033 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 ac_check_lib_save_LIBS=$LIBS
9037 LIBS="-lXpm -lX11 $LIBS"
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9046 /* Override any gcc2 internal prototype to avoid an error. */
9047 #ifdef __cplusplus
9048 extern "C"
9049 #endif
9050 /* We use char because int might match the return type of a gcc2
9051 builtin and then its argument prototype would still apply. */
9052 char XpmReadFileToPixmap ();
9054 main ()
9056 XpmReadFileToPixmap ();
9058 return 0;
9060 _ACEOF
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } &&
9067 { ac_try='test -s conftest$ac_exeext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9084 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9085 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9086 HAVE_XPM=yes
9092 if test "${HAVE_XPM}" = "yes"; then
9093 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9094 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include "X11/xpm.h"
9103 #ifndef XpmReturnAllocPixels
9104 no_return_alloc_pixels
9105 #endif
9107 _ACEOF
9108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9109 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9110 HAVE_XPM=no
9111 else
9112 HAVE_XPM=yes
9114 rm -f conftest*
9117 if test "${HAVE_XPM}" = "yes"; then
9118 echo "$as_me:$LINENO: result: yes" >&5
9119 echo "${ECHO_T}yes" >&6
9120 else
9121 echo "$as_me:$LINENO: result: no" >&5
9122 echo "${ECHO_T}no" >&6
9127 if test "${HAVE_XPM}" = "yes"; then
9129 cat >>confdefs.h <<\_ACEOF
9130 #define HAVE_XPM 1
9131 _ACEOF
9136 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9137 HAVE_JPEG=no
9138 if test "${HAVE_X11}" = "yes"; then
9139 if test "${with_jpeg}" != "no"; then
9140 if test "${ac_cv_header_jerror_h+set}" = set; then
9141 echo "$as_me:$LINENO: checking for jerror.h" >&5
9142 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9143 if test "${ac_cv_header_jerror_h+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9147 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9148 else
9149 # Is the header compilable?
9150 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9151 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9153 #line $LINENO "configure"
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 #include <jerror.h>
9161 _ACEOF
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -s conftest.$ac_objext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 (eval $ac_try) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 ac_header_compiler=yes
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 ac_header_compiler=no
9181 rm -f conftest.$ac_objext conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9183 echo "${ECHO_T}$ac_header_compiler" >&6
9185 # Is the header present?
9186 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9187 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9188 cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 #include <jerror.h>
9196 _ACEOF
9197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9199 ac_status=$?
9200 grep -v '^ *+' conftest.er1 >conftest.err
9201 rm -f conftest.er1
9202 cat conftest.err >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } >/dev/null; then
9205 if test -s conftest.err; then
9206 ac_cpp_err=$ac_c_preproc_warn_flag
9207 else
9208 ac_cpp_err=
9210 else
9211 ac_cpp_err=yes
9213 if test -z "$ac_cpp_err"; then
9214 ac_header_preproc=yes
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_header_preproc=no
9221 rm -f conftest.err conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9223 echo "${ECHO_T}$ac_header_preproc" >&6
9225 # So? What about this header?
9226 case $ac_header_compiler:$ac_header_preproc in
9227 yes:no )
9228 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9229 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9230 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9231 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9233 cat <<\_ASBOX
9234 ## ------------------------------------ ##
9235 ## Report this to bug-autoconf@gnu.org. ##
9236 ## ------------------------------------ ##
9237 _ASBOX
9239 sed "s/^/$as_me: WARNING: /" >&2
9241 no:yes )
9242 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9243 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9245 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9247 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9249 cat <<\_ASBOX
9250 ## ------------------------------------ ##
9251 ## Report this to bug-autoconf@gnu.org. ##
9252 ## ------------------------------------ ##
9253 _ASBOX
9255 sed "s/^/$as_me: WARNING: /" >&2
9257 esac
9258 echo "$as_me:$LINENO: checking for jerror.h" >&5
9259 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9260 if test "${ac_cv_header_jerror_h+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263 ac_cv_header_jerror_h=$ac_header_preproc
9265 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9266 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9269 if test $ac_cv_header_jerror_h = yes; then
9270 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9271 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9272 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 ac_check_lib_save_LIBS=$LIBS
9276 LIBS="-ljpeg $LIBS"
9277 cat >conftest.$ac_ext <<_ACEOF
9278 #line $LINENO "configure"
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 /* Override any gcc2 internal prototype to avoid an error. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 /* We use char because int might match the return type of a gcc2
9290 builtin and then its argument prototype would still apply. */
9291 char jpeg_destroy_compress ();
9293 main ()
9295 jpeg_destroy_compress ();
9297 return 0;
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -s conftest$ac_exeext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 (eval $ac_try) 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9322 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9323 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9324 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9325 HAVE_JPEG=yes
9334 if test "${HAVE_JPEG}" = "yes"; then
9335 cat >>confdefs.h <<\_ACEOF
9336 #define HAVE_JPEG 1
9337 _ACEOF
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 #include <jpeglib.h>
9347 version=JPEG_LIB_VERSION
9349 _ACEOF
9350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9351 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9352 cat >>confdefs.h <<\_ACEOF
9353 #define HAVE_JPEG 1
9354 _ACEOF
9356 else
9357 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9358 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9359 HAVE_JPEG=no
9361 rm -f conftest*
9366 ### Use -lpng if available, unless `--with-png=no'.
9367 HAVE_PNG=no
9368 if test "${HAVE_X11}" = "yes"; then
9369 if test "${with_png}" != "no"; then
9370 if test "${ac_cv_header_png_h+set}" = set; then
9371 echo "$as_me:$LINENO: checking for png.h" >&5
9372 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9373 if test "${ac_cv_header_png_h+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9377 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9378 else
9379 # Is the header compilable?
9380 echo "$as_me:$LINENO: checking png.h usability" >&5
9381 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line $LINENO "configure"
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 $ac_includes_default
9390 #include <png.h>
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -s conftest.$ac_objext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 ac_header_compiler=yes
9405 else
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9409 ac_header_compiler=no
9411 rm -f conftest.$ac_objext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9413 echo "${ECHO_T}$ac_header_compiler" >&6
9415 # Is the header present?
9416 echo "$as_me:$LINENO: checking png.h presence" >&5
9417 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9418 cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 #include <png.h>
9426 _ACEOF
9427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null; then
9435 if test -s conftest.err; then
9436 ac_cpp_err=$ac_c_preproc_warn_flag
9437 else
9438 ac_cpp_err=
9440 else
9441 ac_cpp_err=yes
9443 if test -z "$ac_cpp_err"; then
9444 ac_header_preproc=yes
9445 else
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 ac_header_preproc=no
9451 rm -f conftest.err conftest.$ac_ext
9452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9453 echo "${ECHO_T}$ac_header_preproc" >&6
9455 # So? What about this header?
9456 case $ac_header_compiler:$ac_header_preproc in
9457 yes:no )
9458 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9459 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9461 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9463 cat <<\_ASBOX
9464 ## ------------------------------------ ##
9465 ## Report this to bug-autoconf@gnu.org. ##
9466 ## ------------------------------------ ##
9467 _ASBOX
9469 sed "s/^/$as_me: WARNING: /" >&2
9471 no:yes )
9472 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9473 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9475 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9477 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9479 cat <<\_ASBOX
9480 ## ------------------------------------ ##
9481 ## Report this to bug-autoconf@gnu.org. ##
9482 ## ------------------------------------ ##
9483 _ASBOX
9485 sed "s/^/$as_me: WARNING: /" >&2
9487 esac
9488 echo "$as_me:$LINENO: checking for png.h" >&5
9489 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9490 if test "${ac_cv_header_png_h+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493 ac_cv_header_png_h=$ac_header_preproc
9495 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9496 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9499 if test $ac_cv_header_png_h = yes; then
9500 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9501 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9502 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 ac_check_lib_save_LIBS=$LIBS
9506 LIBS="-lpng -lz -lm $LIBS"
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line $LINENO "configure"
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9515 /* Override any gcc2 internal prototype to avoid an error. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9521 char png_get_channels ();
9523 main ()
9525 png_get_channels ();
9527 return 0;
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -s conftest$ac_exeext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_lib_png_png_get_channels=yes
9543 else
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9547 ac_cv_lib_png_png_get_channels=no
9549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9550 LIBS=$ac_check_lib_save_LIBS
9552 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9553 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9554 if test $ac_cv_lib_png_png_get_channels = yes; then
9555 HAVE_PNG=yes
9563 if test "${HAVE_PNG}" = "yes"; then
9565 cat >>confdefs.h <<\_ACEOF
9566 #define HAVE_PNG 1
9567 _ACEOF
9572 ### Use -ltiff if available, unless `--with-tiff=no'.
9573 HAVE_TIFF=no
9574 if test "${HAVE_X11}" = "yes"; then
9575 if test "${with_tiff}" != "no"; then
9576 if test "${ac_cv_header_tiffio_h+set}" = set; then
9577 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9578 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9579 if test "${ac_cv_header_tiffio_h+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9583 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9584 else
9585 # Is the header compilable?
9586 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9587 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9588 cat >conftest.$ac_ext <<_ACEOF
9589 #line $LINENO "configure"
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 $ac_includes_default
9596 #include <tiffio.h>
9597 _ACEOF
9598 rm -f conftest.$ac_objext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -s conftest.$ac_objext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_header_compiler=yes
9611 else
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_header_compiler=no
9617 rm -f conftest.$ac_objext conftest.$ac_ext
9618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9619 echo "${ECHO_T}$ac_header_compiler" >&6
9621 # Is the header present?
9622 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9623 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9624 cat >conftest.$ac_ext <<_ACEOF
9625 #line $LINENO "configure"
9626 /* confdefs.h. */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631 #include <tiffio.h>
9632 _ACEOF
9633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } >/dev/null; then
9641 if test -s conftest.err; then
9642 ac_cpp_err=$ac_c_preproc_warn_flag
9643 else
9644 ac_cpp_err=
9646 else
9647 ac_cpp_err=yes
9649 if test -z "$ac_cpp_err"; then
9650 ac_header_preproc=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_header_preproc=no
9657 rm -f conftest.err conftest.$ac_ext
9658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9659 echo "${ECHO_T}$ac_header_preproc" >&6
9661 # So? What about this header?
9662 case $ac_header_compiler:$ac_header_preproc in
9663 yes:no )
9664 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9665 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9666 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9667 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9669 cat <<\_ASBOX
9670 ## ------------------------------------ ##
9671 ## Report this to bug-autoconf@gnu.org. ##
9672 ## ------------------------------------ ##
9673 _ASBOX
9675 sed "s/^/$as_me: WARNING: /" >&2
9677 no:yes )
9678 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9679 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9681 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9683 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9685 cat <<\_ASBOX
9686 ## ------------------------------------ ##
9687 ## Report this to bug-autoconf@gnu.org. ##
9688 ## ------------------------------------ ##
9689 _ASBOX
9691 sed "s/^/$as_me: WARNING: /" >&2
9693 esac
9694 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9695 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9696 if test "${ac_cv_header_tiffio_h+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 ac_cv_header_tiffio_h=$ac_header_preproc
9701 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9702 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9705 if test $ac_cv_header_tiffio_h = yes; then
9706 tifflibs="-lz -lm"
9707 # At least one tiff package requires the jpeg library.
9708 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9709 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9710 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9711 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 ac_check_lib_save_LIBS=$LIBS
9715 LIBS="-ltiff $tifflibs $LIBS"
9716 cat >conftest.$ac_ext <<_ACEOF
9717 #line $LINENO "configure"
9718 /* confdefs.h. */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9724 /* Override any gcc2 internal prototype to avoid an error. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 /* We use char because int might match the return type of a gcc2
9729 builtin and then its argument prototype would still apply. */
9730 char TIFFGetVersion ();
9732 main ()
9734 TIFFGetVersion ();
9736 return 0;
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_cv_lib_tiff_TIFFGetVersion=yes
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_lib_tiff_TIFFGetVersion=no
9758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9759 LIBS=$ac_check_lib_save_LIBS
9761 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9762 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9763 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9764 HAVE_TIFF=yes
9772 if test "${HAVE_TIFF}" = "yes"; then
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_TIFF 1
9776 _ACEOF
9781 ### Use -lgif if available, unless `--with-gif=no'.
9782 HAVE_GIF=no
9783 if test "${HAVE_X11}" = "yes"; then
9784 if test "${with_gif}" != "no"; then
9785 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9786 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9787 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9788 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9792 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9793 else
9794 # Is the header compilable?
9795 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9796 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9797 cat >conftest.$ac_ext <<_ACEOF
9798 #line $LINENO "configure"
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 #include <gif_lib.h>
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -s conftest.$ac_objext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_header_compiler=yes
9820 else
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_header_compiler=no
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9828 echo "${ECHO_T}$ac_header_compiler" >&6
9830 # Is the header present?
9831 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9832 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9833 cat >conftest.$ac_ext <<_ACEOF
9834 #line $LINENO "configure"
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 #include <gif_lib.h>
9841 _ACEOF
9842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } >/dev/null; then
9850 if test -s conftest.err; then
9851 ac_cpp_err=$ac_c_preproc_warn_flag
9852 else
9853 ac_cpp_err=
9855 else
9856 ac_cpp_err=yes
9858 if test -z "$ac_cpp_err"; then
9859 ac_header_preproc=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_header_preproc=no
9866 rm -f conftest.err conftest.$ac_ext
9867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9868 echo "${ECHO_T}$ac_header_preproc" >&6
9870 # So? What about this header?
9871 case $ac_header_compiler:$ac_header_preproc in
9872 yes:no )
9873 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9874 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9876 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9878 cat <<\_ASBOX
9879 ## ------------------------------------ ##
9880 ## Report this to bug-autoconf@gnu.org. ##
9881 ## ------------------------------------ ##
9882 _ASBOX
9884 sed "s/^/$as_me: WARNING: /" >&2
9886 no:yes )
9887 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9888 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9890 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9892 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9894 cat <<\_ASBOX
9895 ## ------------------------------------ ##
9896 ## Report this to bug-autoconf@gnu.org. ##
9897 ## ------------------------------------ ##
9898 _ASBOX
9900 sed "s/^/$as_me: WARNING: /" >&2
9902 esac
9903 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9904 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9905 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 ac_cv_header_gif_lib_h=$ac_header_preproc
9910 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9911 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9914 if test $ac_cv_header_gif_lib_h = yes; then
9915 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9916 # Earlier versions can crash Emacs.
9917 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9918 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9919 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922 ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-lungif $LIBS"
9924 cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any gcc2 internal prototype to avoid an error. */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9938 char EGifPutExtensionLast ();
9940 main ()
9942 EGifPutExtensionLast ();
9944 return 0;
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9959 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9960 else
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ac_cv_lib_ungif_EGifPutExtensionLast=no
9966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9969 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9970 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9971 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9972 HAVE_GIF=yes
9980 if test "${HAVE_GIF}" = "yes"; then
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_GIF 1
9984 _ACEOF
9989 ### Use Mac OS X Carbon API to implement GUI.
9990 HAVE_CARBON=no
9991 if test "${with_carbon}" != "no"; then
9992 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9993 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9994 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9995 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9999 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10000 else
10001 # Is the header compilable?
10002 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10003 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10004 cat >conftest.$ac_ext <<_ACEOF
10005 #line $LINENO "configure"
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 $ac_includes_default
10012 #include <Carbon/Carbon.h>
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -s conftest.$ac_objext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_header_compiler=yes
10027 else
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_header_compiler=no
10033 rm -f conftest.$ac_objext conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10035 echo "${ECHO_T}$ac_header_compiler" >&6
10037 # Is the header present?
10038 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10039 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10041 #line $LINENO "configure"
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 #include <Carbon/Carbon.h>
10048 _ACEOF
10049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } >/dev/null; then
10057 if test -s conftest.err; then
10058 ac_cpp_err=$ac_c_preproc_warn_flag
10059 else
10060 ac_cpp_err=
10062 else
10063 ac_cpp_err=yes
10065 if test -z "$ac_cpp_err"; then
10066 ac_header_preproc=yes
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_header_preproc=no
10073 rm -f conftest.err conftest.$ac_ext
10074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10075 echo "${ECHO_T}$ac_header_preproc" >&6
10077 # So? What about this header?
10078 case $ac_header_compiler:$ac_header_preproc in
10079 yes:no )
10080 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10081 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10083 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10085 cat <<\_ASBOX
10086 ## ------------------------------------ ##
10087 ## Report this to bug-autoconf@gnu.org. ##
10088 ## ------------------------------------ ##
10089 _ASBOX
10091 sed "s/^/$as_me: WARNING: /" >&2
10093 no:yes )
10094 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10095 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10097 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10099 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10101 cat <<\_ASBOX
10102 ## ------------------------------------ ##
10103 ## Report this to bug-autoconf@gnu.org. ##
10104 ## ------------------------------------ ##
10105 _ASBOX
10107 sed "s/^/$as_me: WARNING: /" >&2
10109 esac
10110 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10111 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10112 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10117 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10118 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10121 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10122 HAVE_CARBON=yes
10128 if test "${HAVE_CARBON}" = "yes"; then
10130 cat >>confdefs.h <<\_ACEOF
10131 #define HAVE_CARBON 1
10132 _ACEOF
10134 window_system=mac
10135 ## Specify the install directory
10136 carbon_appdir=
10137 if test "${carbon_appdir_x}" != ""; then
10138 case ${carbon_appdir_x} in
10139 y | ye | yes) carbon_appdir=/Applications ;;
10140 * ) carbon_appdir=${carbon_appdir_x} ;;
10141 esac
10143 # We also have mouse menus.
10144 HAVE_MENUS=yes
10147 ### Use session management (-lSM -lICE) if available
10148 HAVE_X_SM=no
10149 if test "${HAVE_X11}" = "yes"; then
10150 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10151 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10152 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10153 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10157 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10158 else
10159 # Is the header compilable?
10160 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10161 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10162 cat >conftest.$ac_ext <<_ACEOF
10163 #line $LINENO "configure"
10164 /* confdefs.h. */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10169 $ac_includes_default
10170 #include <X11/SM/SMlib.h>
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_header_compiler=yes
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_header_compiler=no
10191 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10193 echo "${ECHO_T}$ac_header_compiler" >&6
10195 # Is the header present?
10196 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10197 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10198 cat >conftest.$ac_ext <<_ACEOF
10199 #line $LINENO "configure"
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 #include <X11/SM/SMlib.h>
10206 _ACEOF
10207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } >/dev/null; then
10215 if test -s conftest.err; then
10216 ac_cpp_err=$ac_c_preproc_warn_flag
10217 else
10218 ac_cpp_err=
10220 else
10221 ac_cpp_err=yes
10223 if test -z "$ac_cpp_err"; then
10224 ac_header_preproc=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_header_preproc=no
10231 rm -f conftest.err conftest.$ac_ext
10232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10233 echo "${ECHO_T}$ac_header_preproc" >&6
10235 # So? What about this header?
10236 case $ac_header_compiler:$ac_header_preproc in
10237 yes:no )
10238 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10239 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10241 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10243 cat <<\_ASBOX
10244 ## ------------------------------------ ##
10245 ## Report this to bug-autoconf@gnu.org. ##
10246 ## ------------------------------------ ##
10247 _ASBOX
10249 sed "s/^/$as_me: WARNING: /" >&2
10251 no:yes )
10252 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10253 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10255 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10257 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10259 cat <<\_ASBOX
10260 ## ------------------------------------ ##
10261 ## Report this to bug-autoconf@gnu.org. ##
10262 ## ------------------------------------ ##
10263 _ASBOX
10265 sed "s/^/$as_me: WARNING: /" >&2
10267 esac
10268 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10269 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10270 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10275 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10276 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10279 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10280 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10281 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10282 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285 ac_check_lib_save_LIBS=$LIBS
10286 LIBS="-lSM $LIBS"
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10295 /* Override any gcc2 internal prototype to avoid an error. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 /* We use char because int might match the return type of a gcc2
10300 builtin and then its argument prototype would still apply. */
10301 char SmcOpenConnection ();
10303 main ()
10305 SmcOpenConnection ();
10307 return 0;
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -s conftest$ac_exeext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_lib_SM_SmcOpenConnection=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 ac_cv_lib_SM_SmcOpenConnection=no
10329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10332 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10333 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10334 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10335 HAVE_X_SM=yes
10336 else
10337 -lICE
10344 if test "${HAVE_X_SM}" = "yes"; then
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_X_SM 1
10348 _ACEOF
10350 case "$LIBS" in
10351 *-lSM*) ;;
10352 *) LIBS="-lSM -lICE $LIBS" ;;
10353 esac
10357 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10358 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10359 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10360 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 cat >conftest.$ac_ext <<_ACEOF
10364 #line $LINENO "configure"
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 #include <netdb.h>
10372 main ()
10374 return h_errno;
10376 return 0;
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 emacs_cv_netdb_declares_h_errno=yes
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 emacs_cv_netdb_declares_h_errno=no
10398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10400 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10401 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10402 if test $emacs_cv_netdb_declares_h_errno = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_H_ERRNO 1
10406 _ACEOF
10410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10411 # for constant arguments. Useless!
10412 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10413 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10414 if test "${ac_cv_working_alloca_h+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417 cat >conftest.$ac_ext <<_ACEOF
10418 #line $LINENO "configure"
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 #include <alloca.h>
10426 main ()
10428 char *p = (char *) alloca (2 * sizeof (int));
10430 return 0;
10432 _ACEOF
10433 rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435 (eval $ac_link) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -s conftest$ac_exeext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_working_alloca_h=yes
10446 else
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_cv_working_alloca_h=no
10452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10454 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10456 if test $ac_cv_working_alloca_h = yes; then
10458 cat >>confdefs.h <<\_ACEOF
10459 #define HAVE_ALLOCA_H 1
10460 _ACEOF
10464 echo "$as_me:$LINENO: checking for alloca" >&5
10465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10466 if test "${ac_cv_func_alloca_works+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #ifdef __GNUC__
10477 # define alloca __builtin_alloca
10478 #else
10479 # ifdef _MSC_VER
10480 # include <malloc.h>
10481 # define alloca _alloca
10482 # else
10483 # if HAVE_ALLOCA_H
10484 # include <alloca.h>
10485 # else
10486 # ifdef _AIX
10487 #pragma alloca
10488 # else
10489 # ifndef alloca /* predefined by HP cc +Olibcalls */
10490 char *alloca ();
10491 # endif
10492 # endif
10493 # endif
10494 # endif
10495 #endif
10498 main ()
10500 char *p = (char *) alloca (1);
10502 return 0;
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_cv_func_alloca_works=yes
10518 else
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_cv_func_alloca_works=no
10524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10526 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10527 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10529 if test $ac_cv_func_alloca_works = yes; then
10531 cat >>confdefs.h <<\_ACEOF
10532 #define HAVE_ALLOCA 1
10533 _ACEOF
10535 else
10536 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10537 # that cause trouble. Some versions do not even contain alloca or
10538 # contain a buggy version. If you still want to use their alloca,
10539 # use ar to extract alloca.o from them instead of compiling alloca.c.
10541 ALLOCA=alloca.$ac_objext
10543 cat >>confdefs.h <<\_ACEOF
10544 #define C_ALLOCA 1
10545 _ACEOF
10548 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10549 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10550 if test "${ac_cv_os_cray+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553 cat >conftest.$ac_ext <<_ACEOF
10554 #line $LINENO "configure"
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 #if defined(CRAY) && ! defined(CRAY2)
10561 webecray
10562 #else
10563 wenotbecray
10564 #endif
10566 _ACEOF
10567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10568 $EGREP "webecray" >/dev/null 2>&1; then
10569 ac_cv_os_cray=yes
10570 else
10571 ac_cv_os_cray=no
10573 rm -f conftest*
10576 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10577 echo "${ECHO_T}$ac_cv_os_cray" >&6
10578 if test $ac_cv_os_cray = yes; then
10579 for ac_func in _getb67 GETB67 getb67; do
10580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10581 echo "$as_me:$LINENO: checking for $ac_func" >&5
10582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10583 if eval "test \"\${$as_ac_var+set}\" = set"; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 else
10586 cat >conftest.$ac_ext <<_ACEOF
10587 #line $LINENO "configure"
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 /* System header to define __stub macros and hopefully few prototypes,
10594 which can conflict with char $ac_func (); below.
10595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10596 <limits.h> exists even on freestanding compilers. */
10597 #ifdef __STDC__
10598 # include <limits.h>
10599 #else
10600 # include <assert.h>
10601 #endif
10602 /* Override any gcc2 internal prototype to avoid an error. */
10603 #ifdef __cplusplus
10604 extern "C"
10606 #endif
10607 /* We use char because int might match the return type of a gcc2
10608 builtin and then its argument prototype would still apply. */
10609 char $ac_func ();
10610 /* The GNU C library defines this for functions which it implements
10611 to always fail with ENOSYS. Some functions are actually named
10612 something starting with __ and the normal name is an alias. */
10613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10614 choke me
10615 #else
10616 char (*f) () = $ac_func;
10617 #endif
10618 #ifdef __cplusplus
10620 #endif
10623 main ()
10625 return f != $ac_func;
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632 (eval $ac_link) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -s conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 eval "$as_ac_var=yes"
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 eval "$as_ac_var=no"
10649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10653 if test `eval echo '${'$as_ac_var'}'` = yes; then
10655 cat >>confdefs.h <<_ACEOF
10656 #define CRAY_STACKSEG_END $ac_func
10657 _ACEOF
10659 break
10662 done
10665 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10666 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10667 if test "${ac_cv_c_stack_direction+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670 if test "$cross_compiling" = yes; then
10671 ac_cv_c_stack_direction=0
10672 else
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10681 find_stack_direction ()
10683 static char *addr = 0;
10684 auto char dummy;
10685 if (addr == 0)
10687 addr = &dummy;
10688 return find_stack_direction ();
10690 else
10691 return (&dummy > addr) ? 1 : -1;
10695 main ()
10697 exit (find_stack_direction () < 0);
10699 _ACEOF
10700 rm -f conftest$ac_exeext
10701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_c_stack_direction=1
10712 else
10713 echo "$as_me: program exited with status $ac_status" >&5
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 ( exit $ac_status )
10718 ac_cv_c_stack_direction=-1
10720 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10724 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10726 cat >>confdefs.h <<_ACEOF
10727 #define STACK_DIRECTION $ac_cv_c_stack_direction
10728 _ACEOF
10734 # fmod, logb, and frexp are found in -lm on most systems.
10735 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10737 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10738 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10739 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-lm $LIBS"
10744 cat >conftest.$ac_ext <<_ACEOF
10745 #line $LINENO "configure"
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10752 /* Override any gcc2 internal prototype to avoid an error. */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */
10758 char sqrt ();
10760 main ()
10762 sqrt ();
10764 return 0;
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -s conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_lib_m_sqrt=yes
10780 else
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_cv_lib_m_sqrt=no
10786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10789 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10790 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10791 if test $ac_cv_lib_m_sqrt = yes; then
10792 cat >>confdefs.h <<_ACEOF
10793 #define HAVE_LIBM 1
10794 _ACEOF
10796 LIBS="-lm $LIBS"
10801 # Check for mail-locking functions in a "mail" library. Probably this should
10802 # have the same check as for liblockfile below.
10804 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10805 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10806 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 ac_check_lib_save_LIBS=$LIBS
10810 LIBS="-lmail $LIBS"
10811 cat >conftest.$ac_ext <<_ACEOF
10812 #line $LINENO "configure"
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10819 /* Override any gcc2 internal prototype to avoid an error. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 /* We use char because int might match the return type of a gcc2
10824 builtin and then its argument prototype would still apply. */
10825 char maillock ();
10827 main ()
10829 maillock ();
10831 return 0;
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -s conftest$ac_exeext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_cv_lib_mail_maillock=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_cv_lib_mail_maillock=no
10853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10856 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10857 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10858 if test $ac_cv_lib_mail_maillock = yes; then
10859 cat >>confdefs.h <<_ACEOF
10860 #define HAVE_LIBMAIL 1
10861 _ACEOF
10863 LIBS="-lmail $LIBS"
10868 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10869 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10870 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-llockfile $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #line $LINENO "configure"
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10883 /* Override any gcc2 internal prototype to avoid an error. */
10884 #ifdef __cplusplus
10885 extern "C"
10886 #endif
10887 /* We use char because int might match the return type of a gcc2
10888 builtin and then its argument prototype would still apply. */
10889 char maillock ();
10891 main ()
10893 maillock ();
10895 return 0;
10897 _ACEOF
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900 (eval $ac_link) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -s conftest$ac_exeext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_cv_lib_lockfile_maillock=yes
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_cv_lib_lockfile_maillock=no
10917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10921 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10922 if test $ac_cv_lib_lockfile_maillock = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_LIBLOCKFILE 1
10925 _ACEOF
10927 LIBS="-llockfile $LIBS"
10931 # If we have the shared liblockfile, assume we must use it for mail
10932 # locking (e.g. Debian). If we couldn't link against liblockfile
10933 # (no liblockfile.a installed), ensure that we don't need to.
10934 if test "$ac_cv_lib_lockfile_maillock" = no; then
10935 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10936 set dummy liblockfile.so; ac_word=$2
10937 echo "$as_me:$LINENO: checking for $ac_word" >&5
10938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10939 if test "${ac_cv_prog_liblockfile+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 if test -n "$liblockfile"; then
10943 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10944 else
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10947 for as_dir in $as_dummy
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953 ac_cv_prog_liblockfile="yes"
10954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 break 2
10957 done
10958 done
10960 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10963 liblockfile=$ac_cv_prog_liblockfile
10964 if test -n "$liblockfile"; then
10965 echo "$as_me:$LINENO: result: $liblockfile" >&5
10966 echo "${ECHO_T}$liblockfile" >&6
10967 else
10968 echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6
10972 if test $ac_cv_prog_liblockfile = yes; then
10973 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10974 This probably means that movemail could lose mail.
10975 There may be a \`development' package to install containing liblockfile." >&5
10976 echo "$as_me: error: Shared liblockfile found but can't link against it.
10977 This probably means that movemail could lose mail.
10978 There may be a \`development' package to install containing liblockfile." >&2;}
10979 { (exit 1); exit 1; }; }
10980 else :
10984 for ac_func in touchlock
10986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10987 echo "$as_me:$LINENO: checking for $ac_func" >&5
10988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10989 if eval "test \"\${$as_ac_var+set}\" = set"; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 cat >conftest.$ac_ext <<_ACEOF
10993 #line $LINENO "configure"
10994 /* confdefs.h. */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 /* System header to define __stub macros and hopefully few prototypes,
11000 which can conflict with char $ac_func (); below.
11001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11002 <limits.h> exists even on freestanding compilers. */
11003 #ifdef __STDC__
11004 # include <limits.h>
11005 #else
11006 # include <assert.h>
11007 #endif
11008 /* Override any gcc2 internal prototype to avoid an error. */
11009 #ifdef __cplusplus
11010 extern "C"
11012 #endif
11013 /* We use char because int might match the return type of a gcc2
11014 builtin and then its argument prototype would still apply. */
11015 char $ac_func ();
11016 /* The GNU C library defines this for functions which it implements
11017 to always fail with ENOSYS. Some functions are actually named
11018 something starting with __ and the normal name is an alias. */
11019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11020 choke me
11021 #else
11022 char (*f) () = $ac_func;
11023 #endif
11024 #ifdef __cplusplus
11026 #endif
11029 main ()
11031 return f != $ac_func;
11033 return 0;
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 eval "$as_ac_var=yes"
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 eval "$as_ac_var=no"
11055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11059 if test `eval echo '${'$as_ac_var'}'` = yes; then
11060 cat >>confdefs.h <<_ACEOF
11061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11062 _ACEOF
11065 done
11068 for ac_header in maillock.h
11070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11072 echo "$as_me:$LINENO: checking for $ac_header" >&5
11073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11079 else
11080 # Is the header compilable?
11081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11083 cat >conftest.$ac_ext <<_ACEOF
11084 #line $LINENO "configure"
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 $ac_includes_default
11091 #include <$ac_header>
11092 _ACEOF
11093 rm -f conftest.$ac_objext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095 (eval $ac_compile) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -s conftest.$ac_objext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 ac_header_compiler=yes
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 ac_header_compiler=no
11112 rm -f conftest.$ac_objext conftest.$ac_ext
11113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114 echo "${ECHO_T}$ac_header_compiler" >&6
11116 # Is the header present?
11117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <$ac_header>
11127 _ACEOF
11128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev/null; then
11136 if test -s conftest.err; then
11137 ac_cpp_err=$ac_c_preproc_warn_flag
11138 else
11139 ac_cpp_err=
11141 else
11142 ac_cpp_err=yes
11144 if test -z "$ac_cpp_err"; then
11145 ac_header_preproc=yes
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_header_preproc=no
11152 rm -f conftest.err conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154 echo "${ECHO_T}$ac_header_preproc" >&6
11156 # So? What about this header?
11157 case $ac_header_compiler:$ac_header_preproc in
11158 yes:no )
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11164 cat <<\_ASBOX
11165 ## ------------------------------------ ##
11166 ## Report this to bug-autoconf@gnu.org. ##
11167 ## ------------------------------------ ##
11168 _ASBOX
11170 sed "s/^/$as_me: WARNING: /" >&2
11172 no:yes )
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11180 cat <<\_ASBOX
11181 ## ------------------------------------ ##
11182 ## Report this to bug-autoconf@gnu.org. ##
11183 ## ------------------------------------ ##
11184 _ASBOX
11186 sed "s/^/$as_me: WARNING: /" >&2
11188 esac
11189 echo "$as_me:$LINENO: checking for $ac_header" >&5
11190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194 eval "$as_ac_Header=$ac_header_preproc"
11196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11201 cat >>confdefs.h <<_ACEOF
11202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11203 _ACEOF
11207 done
11273 for ac_func in gethostname getdomainname dup2 \
11274 rename closedir mkdir rmdir sysinfo \
11275 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11276 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11277 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11278 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11279 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11280 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11281 memset memcmp memmove difftime
11283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11284 echo "$as_me:$LINENO: checking for $ac_func" >&5
11285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11286 if eval "test \"\${$as_ac_var+set}\" = set"; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 cat >conftest.$ac_ext <<_ACEOF
11290 #line $LINENO "configure"
11291 /* confdefs.h. */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 /* System header to define __stub macros and hopefully few prototypes,
11297 which can conflict with char $ac_func (); below.
11298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11299 <limits.h> exists even on freestanding compilers. */
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11305 /* Override any gcc2 internal prototype to avoid an error. */
11306 #ifdef __cplusplus
11307 extern "C"
11309 #endif
11310 /* We use char because int might match the return type of a gcc2
11311 builtin and then its argument prototype would still apply. */
11312 char $ac_func ();
11313 /* The GNU C library defines this for functions which it implements
11314 to always fail with ENOSYS. Some functions are actually named
11315 something starting with __ and the normal name is an alias. */
11316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11317 choke me
11318 #else
11319 char (*f) () = $ac_func;
11320 #endif
11321 #ifdef __cplusplus
11323 #endif
11326 main ()
11328 return f != $ac_func;
11330 return 0;
11332 _ACEOF
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335 (eval $ac_link) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 eval "$as_ac_var=yes"
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 eval "$as_ac_var=no"
11352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11356 if test `eval echo '${'$as_ac_var'}'` = yes; then
11357 cat >>confdefs.h <<_ACEOF
11358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11359 _ACEOF
11362 done
11366 for ac_header in sys/un.h
11368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11370 echo "$as_me:$LINENO: checking for $ac_header" >&5
11371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11377 else
11378 # Is the header compilable?
11379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11381 cat >conftest.$ac_ext <<_ACEOF
11382 #line $LINENO "configure"
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 #include <$ac_header>
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -s conftest.$ac_objext'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 ac_header_compiler=yes
11404 else
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_header_compiler=no
11410 rm -f conftest.$ac_objext conftest.$ac_ext
11411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412 echo "${ECHO_T}$ac_header_compiler" >&6
11414 # Is the header present?
11415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11418 #line $LINENO "configure"
11419 /* confdefs.h. */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <$ac_header>
11425 _ACEOF
11426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } >/dev/null; then
11434 if test -s conftest.err; then
11435 ac_cpp_err=$ac_c_preproc_warn_flag
11436 else
11437 ac_cpp_err=
11439 else
11440 ac_cpp_err=yes
11442 if test -z "$ac_cpp_err"; then
11443 ac_header_preproc=yes
11444 else
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11448 ac_header_preproc=no
11450 rm -f conftest.err conftest.$ac_ext
11451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11452 echo "${ECHO_T}$ac_header_preproc" >&6
11454 # So? What about this header?
11455 case $ac_header_compiler:$ac_header_preproc in
11456 yes:no )
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11462 cat <<\_ASBOX
11463 ## ------------------------------------ ##
11464 ## Report this to bug-autoconf@gnu.org. ##
11465 ## ------------------------------------ ##
11466 _ASBOX
11468 sed "s/^/$as_me: WARNING: /" >&2
11470 no:yes )
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 cat <<\_ASBOX
11479 ## ------------------------------------ ##
11480 ## Report this to bug-autoconf@gnu.org. ##
11481 ## ------------------------------------ ##
11482 _ASBOX
11484 sed "s/^/$as_me: WARNING: /" >&2
11486 esac
11487 echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 eval "$as_ac_Header=$ac_header_preproc"
11494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11499 cat >>confdefs.h <<_ACEOF
11500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11501 _ACEOF
11505 done
11510 for ac_header in sys/time.h unistd.h
11512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11514 echo "$as_me:$LINENO: checking for $ac_header" >&5
11515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11521 else
11522 # Is the header compilable?
11523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 #include <$ac_header>
11534 _ACEOF
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_header_compiler=yes
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_header_compiler=no
11554 rm -f conftest.$ac_objext conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11556 echo "${ECHO_T}$ac_header_compiler" >&6
11558 # Is the header present?
11559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 /* confdefs.h. */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 #include <$ac_header>
11569 _ACEOF
11570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } >/dev/null; then
11578 if test -s conftest.err; then
11579 ac_cpp_err=$ac_c_preproc_warn_flag
11580 else
11581 ac_cpp_err=
11583 else
11584 ac_cpp_err=yes
11586 if test -z "$ac_cpp_err"; then
11587 ac_header_preproc=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_header_preproc=no
11594 rm -f conftest.err conftest.$ac_ext
11595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 echo "${ECHO_T}$ac_header_preproc" >&6
11598 # So? What about this header?
11599 case $ac_header_compiler:$ac_header_preproc in
11600 yes:no )
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606 cat <<\_ASBOX
11607 ## ------------------------------------ ##
11608 ## Report this to bug-autoconf@gnu.org. ##
11609 ## ------------------------------------ ##
11610 _ASBOX
11612 sed "s/^/$as_me: WARNING: /" >&2
11614 no:yes )
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622 cat <<\_ASBOX
11623 ## ------------------------------------ ##
11624 ## Report this to bug-autoconf@gnu.org. ##
11625 ## ------------------------------------ ##
11626 _ASBOX
11628 sed "s/^/$as_me: WARNING: /" >&2
11630 esac
11631 echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 eval "$as_ac_Header=$ac_header_preproc"
11638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11643 cat >>confdefs.h <<_ACEOF
11644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11645 _ACEOF
11649 done
11652 for ac_func in alarm
11654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655 echo "$as_me:$LINENO: checking for $ac_func" >&5
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11657 if eval "test \"\${$as_ac_var+set}\" = set"; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 cat >conftest.$ac_ext <<_ACEOF
11661 #line $LINENO "configure"
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 /* System header to define __stub macros and hopefully few prototypes,
11668 which can conflict with char $ac_func (); below.
11669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11670 <limits.h> exists even on freestanding compilers. */
11671 #ifdef __STDC__
11672 # include <limits.h>
11673 #else
11674 # include <assert.h>
11675 #endif
11676 /* Override any gcc2 internal prototype to avoid an error. */
11677 #ifdef __cplusplus
11678 extern "C"
11680 #endif
11681 /* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */
11683 char $ac_func ();
11684 /* The GNU C library defines this for functions which it implements
11685 to always fail with ENOSYS. Some functions are actually named
11686 something starting with __ and the normal name is an alias. */
11687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11688 choke me
11689 #else
11690 char (*f) () = $ac_func;
11691 #endif
11692 #ifdef __cplusplus
11694 #endif
11697 main ()
11699 return f != $ac_func;
11701 return 0;
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 eval "$as_ac_var=yes"
11717 else
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 eval "$as_ac_var=no"
11723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11727 if test `eval echo '${'$as_ac_var'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11730 _ACEOF
11733 done
11735 echo "$as_me:$LINENO: checking for working mktime" >&5
11736 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11737 if test "${ac_cv_func_working_mktime+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740 if test "$cross_compiling" = yes; then
11741 ac_cv_func_working_mktime=no
11742 else
11743 cat >conftest.$ac_ext <<_ACEOF
11744 #line $LINENO "configure"
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Test program from Paul Eggert and Tony Leneis. */
11751 #if TIME_WITH_SYS_TIME
11752 # include <sys/time.h>
11753 # include <time.h>
11754 #else
11755 # if HAVE_SYS_TIME_H
11756 # include <sys/time.h>
11757 # else
11758 # include <time.h>
11759 # endif
11760 #endif
11762 #if HAVE_UNISTD_H
11763 # include <unistd.h>
11764 #endif
11766 #if !HAVE_ALARM
11767 # define alarm(X) /* empty */
11768 #endif
11770 /* Work around redefinition to rpl_putenv by other config tests. */
11771 #undef putenv
11773 static time_t time_t_max;
11775 /* Values we'll use to set the TZ environment variable. */
11776 static const char *const tz_strings[] = {
11777 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11778 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11780 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11782 /* Fail if mktime fails to convert a date in the spring-forward gap.
11783 Based on a problem report from Andreas Jaeger. */
11784 static void
11785 spring_forward_gap ()
11787 /* glibc (up to about 1998-10-07) failed this test. */
11788 struct tm tm;
11790 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11791 instead of "TZ=America/Vancouver" in order to detect the bug even
11792 on systems that don't support the Olson extension, or don't have the
11793 full zoneinfo tables installed. */
11794 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11796 tm.tm_year = 98;
11797 tm.tm_mon = 3;
11798 tm.tm_mday = 5;
11799 tm.tm_hour = 2;
11800 tm.tm_min = 0;
11801 tm.tm_sec = 0;
11802 tm.tm_isdst = -1;
11803 if (mktime (&tm) == (time_t)-1)
11804 exit (1);
11807 static void
11808 mktime_test (now)
11809 time_t now;
11811 struct tm *lt;
11812 if ((lt = localtime (&now)) && mktime (lt) != now)
11813 exit (1);
11814 now = time_t_max - now;
11815 if ((lt = localtime (&now)) && mktime (lt) != now)
11816 exit (1);
11819 static void
11820 irix_6_4_bug ()
11822 /* Based on code from Ariel Faigon. */
11823 struct tm tm;
11824 tm.tm_year = 96;
11825 tm.tm_mon = 3;
11826 tm.tm_mday = 0;
11827 tm.tm_hour = 0;
11828 tm.tm_min = 0;
11829 tm.tm_sec = 0;
11830 tm.tm_isdst = -1;
11831 mktime (&tm);
11832 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11833 exit (1);
11836 static void
11837 bigtime_test (j)
11838 int j;
11840 struct tm tm;
11841 time_t now;
11842 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11843 now = mktime (&tm);
11844 if (now != (time_t) -1)
11846 struct tm *lt = localtime (&now);
11847 if (! (lt
11848 && lt->tm_year == tm.tm_year
11849 && lt->tm_mon == tm.tm_mon
11850 && lt->tm_mday == tm.tm_mday
11851 && lt->tm_hour == tm.tm_hour
11852 && lt->tm_min == tm.tm_min
11853 && lt->tm_sec == tm.tm_sec
11854 && lt->tm_yday == tm.tm_yday
11855 && lt->tm_wday == tm.tm_wday
11856 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11857 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11858 exit (1);
11863 main ()
11865 time_t t, delta;
11866 int i, j;
11868 /* This test makes some buggy mktime implementations loop.
11869 Give up after 60 seconds; a mktime slower than that
11870 isn't worth using anyway. */
11871 alarm (60);
11873 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11874 continue;
11875 time_t_max--;
11876 delta = time_t_max / 997; /* a suitable prime number */
11877 for (i = 0; i < N_STRINGS; i++)
11879 if (tz_strings[i])
11880 putenv (tz_strings[i]);
11882 for (t = 0; t <= time_t_max - delta; t += delta)
11883 mktime_test (t);
11884 mktime_test ((time_t) 60 * 60);
11885 mktime_test ((time_t) 60 * 60 * 24);
11887 for (j = 1; 0 < j; j *= 2)
11888 bigtime_test (j);
11889 bigtime_test (j - 1);
11891 irix_6_4_bug ();
11892 spring_forward_gap ();
11893 exit (0);
11895 _ACEOF
11896 rm -f conftest$ac_exeext
11897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11898 (eval $ac_link) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 ac_cv_func_working_mktime=yes
11908 else
11909 echo "$as_me: program exited with status $ac_status" >&5
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ( exit $ac_status )
11914 ac_cv_func_working_mktime=no
11916 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11919 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11920 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11921 if test $ac_cv_func_working_mktime = no; then
11922 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11925 if test "$ac_cv_func_working_mktime" = no; then
11927 cat >>confdefs.h <<\_ACEOF
11928 #define BROKEN_MKTIME 1
11929 _ACEOF
11933 ac_have_func=no # yes means we've found a way to get the load average.
11935 # Make sure getloadavg.c is where it belongs, at configure-time.
11936 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11937 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11938 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11939 { (exit 1); exit 1; }; }
11941 ac_save_LIBS=$LIBS
11943 # Check for getloadavg, but be sure not to touch the cache variable.
11944 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11945 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11946 if test "${ac_cv_func_getloadavg+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 cat >conftest.$ac_ext <<_ACEOF
11950 #line $LINENO "configure"
11951 /* confdefs.h. */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 /* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char getloadavg (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11965 /* Override any gcc2 internal prototype to avoid an error. */
11966 #ifdef __cplusplus
11967 extern "C"
11969 #endif
11970 /* We use char because int might match the return type of a gcc2
11971 builtin and then its argument prototype would still apply. */
11972 char getloadavg ();
11973 /* The GNU C library defines this for functions which it implements
11974 to always fail with ENOSYS. Some functions are actually named
11975 something starting with __ and the normal name is an alias. */
11976 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11977 choke me
11978 #else
11979 char (*f) () = getloadavg;
11980 #endif
11981 #ifdef __cplusplus
11983 #endif
11986 main ()
11988 return f != getloadavg;
11990 return 0;
11992 _ACEOF
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995 (eval $ac_link) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -s conftest$ac_exeext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_func_getloadavg=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_cv_func_getloadavg=no
12012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12014 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12015 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12016 if test $ac_cv_func_getloadavg = yes; then
12017 exit 0
12018 else
12019 exit 1
12021 ) && ac_have_func=yes
12023 # On HPUX9, an unprivileged user can get load averages through this function.
12025 for ac_func in pstat_getdynamic
12027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12028 echo "$as_me:$LINENO: checking for $ac_func" >&5
12029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12030 if eval "test \"\${$as_ac_var+set}\" = set"; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 /* System header to define __stub macros and hopefully few prototypes,
12041 which can conflict with char $ac_func (); below.
12042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043 <limits.h> exists even on freestanding compilers. */
12044 #ifdef __STDC__
12045 # include <limits.h>
12046 #else
12047 # include <assert.h>
12048 #endif
12049 /* Override any gcc2 internal prototype to avoid an error. */
12050 #ifdef __cplusplus
12051 extern "C"
12053 #endif
12054 /* We use char because int might match the return type of a gcc2
12055 builtin and then its argument prototype would still apply. */
12056 char $ac_func ();
12057 /* The GNU C library defines this for functions which it implements
12058 to always fail with ENOSYS. Some functions are actually named
12059 something starting with __ and the normal name is an alias. */
12060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12061 choke me
12062 #else
12063 char (*f) () = $ac_func;
12064 #endif
12065 #ifdef __cplusplus
12067 #endif
12070 main ()
12072 return f != $ac_func;
12074 return 0;
12076 _ACEOF
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -s conftest$ac_exeext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 eval "$as_ac_var=yes"
12090 else
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 eval "$as_ac_var=no"
12096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12100 if test `eval echo '${'$as_ac_var'}'` = yes; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12103 _ACEOF
12106 done
12109 # Solaris has libkstat which does not require root.
12111 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12112 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12113 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 ac_check_lib_save_LIBS=$LIBS
12117 LIBS="-lkstat $LIBS"
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12126 /* Override any gcc2 internal prototype to avoid an error. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 /* We use char because int might match the return type of a gcc2
12131 builtin and then its argument prototype would still apply. */
12132 char kstat_open ();
12134 main ()
12136 kstat_open ();
12138 return 0;
12140 _ACEOF
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143 (eval $ac_link) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_cv_lib_kstat_kstat_open=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 ac_cv_lib_kstat_kstat_open=no
12160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12161 LIBS=$ac_check_lib_save_LIBS
12163 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12164 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12165 if test $ac_cv_lib_kstat_kstat_open = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_LIBKSTAT 1
12168 _ACEOF
12170 LIBS="-lkstat $LIBS"
12174 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12176 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12177 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12178 # to get the right answer into the cache.
12179 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12180 if test $ac_have_func = no; then
12181 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12182 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12183 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lelf $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12189 #line $LINENO "configure"
12190 /* confdefs.h. */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12196 /* Override any gcc2 internal prototype to avoid an error. */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12202 char elf_begin ();
12204 main ()
12206 elf_begin ();
12208 return 0;
12210 _ACEOF
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213 (eval $ac_link) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -s conftest$ac_exeext'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_cv_lib_elf_elf_begin=yes
12224 else
12225 echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228 ac_cv_lib_elf_elf_begin=no
12230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12233 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12234 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12235 if test $ac_cv_lib_elf_elf_begin = yes; then
12236 LIBS="-lelf $LIBS"
12240 if test $ac_have_func = no; then
12241 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12242 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12243 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-lkvm $LIBS"
12248 cat >conftest.$ac_ext <<_ACEOF
12249 #line $LINENO "configure"
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12256 /* Override any gcc2 internal prototype to avoid an error. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 /* We use char because int might match the return type of a gcc2
12261 builtin and then its argument prototype would still apply. */
12262 char kvm_open ();
12264 main ()
12266 kvm_open ();
12268 return 0;
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273 (eval $ac_link) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 ac_cv_lib_kvm_kvm_open=yes
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_lib_kvm_kvm_open=no
12290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12294 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12295 if test $ac_cv_lib_kvm_kvm_open = yes; then
12296 LIBS="-lkvm $LIBS"
12299 # Check for the 4.4BSD definition of getloadavg.
12300 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12301 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12302 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lutil $LIBS"
12307 cat >conftest.$ac_ext <<_ACEOF
12308 #line $LINENO "configure"
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any gcc2 internal prototype to avoid an error. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321 char getloadavg ();
12323 main ()
12325 getloadavg ();
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -s conftest$ac_exeext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_lib_util_getloadavg=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 ac_cv_lib_util_getloadavg=no
12349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12352 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12353 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12354 if test $ac_cv_lib_util_getloadavg = yes; then
12355 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12360 if test $ac_have_func = no; then
12361 # There is a commonly available library for RS/6000 AIX.
12362 # Since it is not a standard part of AIX, it might be installed locally.
12363 ac_getloadavg_LIBS=$LIBS
12364 LIBS="-L/usr/local/lib $LIBS"
12365 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12366 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12367 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370 ac_check_lib_save_LIBS=$LIBS
12371 LIBS="-lgetloadavg $LIBS"
12372 cat >conftest.$ac_ext <<_ACEOF
12373 #line $LINENO "configure"
12374 /* confdefs.h. */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12380 /* Override any gcc2 internal prototype to avoid an error. */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 /* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386 char getloadavg ();
12388 main ()
12390 getloadavg ();
12392 return 0;
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397 (eval $ac_link) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -s conftest$ac_exeext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_lib_getloadavg_getloadavg=yes
12408 else
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 ac_cv_lib_getloadavg_getloadavg=no
12414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12417 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12418 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12419 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12420 LIBS="-lgetloadavg $LIBS"
12421 else
12422 LIBS=$ac_getloadavg_LIBS
12427 # Make sure it is really in the library, if we think we found it,
12428 # otherwise set up the replacement function.
12430 for ac_func in getloadavg
12432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12433 echo "$as_me:$LINENO: checking for $ac_func" >&5
12434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12435 if eval "test \"\${$as_ac_var+set}\" = set"; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 else
12438 cat >conftest.$ac_ext <<_ACEOF
12439 #line $LINENO "configure"
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 /* System header to define __stub macros and hopefully few prototypes,
12446 which can conflict with char $ac_func (); below.
12447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12448 <limits.h> exists even on freestanding compilers. */
12449 #ifdef __STDC__
12450 # include <limits.h>
12451 #else
12452 # include <assert.h>
12453 #endif
12454 /* Override any gcc2 internal prototype to avoid an error. */
12455 #ifdef __cplusplus
12456 extern "C"
12458 #endif
12459 /* We use char because int might match the return type of a gcc2
12460 builtin and then its argument prototype would still apply. */
12461 char $ac_func ();
12462 /* The GNU C library defines this for functions which it implements
12463 to always fail with ENOSYS. Some functions are actually named
12464 something starting with __ and the normal name is an alias. */
12465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12466 choke me
12467 #else
12468 char (*f) () = $ac_func;
12469 #endif
12470 #ifdef __cplusplus
12472 #endif
12475 main ()
12477 return f != $ac_func;
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 eval "$as_ac_var=yes"
12495 else
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 eval "$as_ac_var=no"
12501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12505 if test `eval echo '${'$as_ac_var'}'` = yes; then
12506 cat >>confdefs.h <<_ACEOF
12507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12508 _ACEOF
12510 else
12511 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12513 cat >>confdefs.h <<\_ACEOF
12514 #define C_GETLOADAVG 1
12515 _ACEOF
12517 # Figure out what our getloadavg.c needs.
12518 ac_have_func=no
12519 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12520 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12521 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12522 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12526 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12527 else
12528 # Is the header compilable?
12529 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12530 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12531 cat >conftest.$ac_ext <<_ACEOF
12532 #line $LINENO "configure"
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12539 #include <sys/dg_sys_info.h>
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_header_compiler=yes
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 ac_header_compiler=no
12560 rm -f conftest.$ac_objext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6
12564 # Is the header present?
12565 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12566 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12567 cat >conftest.$ac_ext <<_ACEOF
12568 #line $LINENO "configure"
12569 /* confdefs.h. */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 #include <sys/dg_sys_info.h>
12575 _ACEOF
12576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } >/dev/null; then
12584 if test -s conftest.err; then
12585 ac_cpp_err=$ac_c_preproc_warn_flag
12586 else
12587 ac_cpp_err=
12589 else
12590 ac_cpp_err=yes
12592 if test -z "$ac_cpp_err"; then
12593 ac_header_preproc=yes
12594 else
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ac_header_preproc=no
12600 rm -f conftest.err conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 echo "${ECHO_T}$ac_header_preproc" >&6
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc in
12606 yes:no )
12607 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12608 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12610 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12612 cat <<\_ASBOX
12613 ## ------------------------------------ ##
12614 ## Report this to bug-autoconf@gnu.org. ##
12615 ## ------------------------------------ ##
12616 _ASBOX
12618 sed "s/^/$as_me: WARNING: /" >&2
12620 no:yes )
12621 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12622 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12624 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12626 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12628 cat <<\_ASBOX
12629 ## ------------------------------------ ##
12630 ## Report this to bug-autoconf@gnu.org. ##
12631 ## ------------------------------------ ##
12632 _ASBOX
12634 sed "s/^/$as_me: WARNING: /" >&2
12636 esac
12637 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12638 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12639 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12644 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12645 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12648 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12649 ac_have_func=yes
12651 cat >>confdefs.h <<\_ACEOF
12652 #define DGUX 1
12653 _ACEOF
12656 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12657 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12658 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-ldgc $LIBS"
12663 cat >conftest.$ac_ext <<_ACEOF
12664 #line $LINENO "configure"
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 /* Override any gcc2 internal prototype to avoid an error. */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12677 char dg_sys_info ();
12679 main ()
12681 dg_sys_info ();
12683 return 0;
12685 _ACEOF
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -s conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_lib_dgc_dg_sys_info=yes
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_cv_lib_dgc_dg_sys_info=no
12705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12709 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12710 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_LIBDGC 1
12713 _ACEOF
12715 LIBS="-ldgc $LIBS"
12723 if test "${ac_cv_header_locale_h+set}" = set; then
12724 echo "$as_me:$LINENO: checking for locale.h" >&5
12725 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12726 if test "${ac_cv_header_locale_h+set}" = set; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12730 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12731 else
12732 # Is the header compilable?
12733 echo "$as_me:$LINENO: checking locale.h usability" >&5
12734 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12735 cat >conftest.$ac_ext <<_ACEOF
12736 #line $LINENO "configure"
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 $ac_includes_default
12743 #include <locale.h>
12744 _ACEOF
12745 rm -f conftest.$ac_objext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_header_compiler=yes
12758 else
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_header_compiler=no
12764 rm -f conftest.$ac_objext conftest.$ac_ext
12765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12766 echo "${ECHO_T}$ac_header_compiler" >&6
12768 # Is the header present?
12769 echo "$as_me:$LINENO: checking locale.h presence" >&5
12770 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12771 cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 #include <locale.h>
12779 _ACEOF
12780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } >/dev/null; then
12788 if test -s conftest.err; then
12789 ac_cpp_err=$ac_c_preproc_warn_flag
12790 else
12791 ac_cpp_err=
12793 else
12794 ac_cpp_err=yes
12796 if test -z "$ac_cpp_err"; then
12797 ac_header_preproc=yes
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_header_preproc=no
12804 rm -f conftest.err conftest.$ac_ext
12805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12806 echo "${ECHO_T}$ac_header_preproc" >&6
12808 # So? What about this header?
12809 case $ac_header_compiler:$ac_header_preproc in
12810 yes:no )
12811 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12812 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12814 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12816 cat <<\_ASBOX
12817 ## ------------------------------------ ##
12818 ## Report this to bug-autoconf@gnu.org. ##
12819 ## ------------------------------------ ##
12820 _ASBOX
12822 sed "s/^/$as_me: WARNING: /" >&2
12824 no:yes )
12825 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12826 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12828 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12829 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12830 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12832 cat <<\_ASBOX
12833 ## ------------------------------------ ##
12834 ## Report this to bug-autoconf@gnu.org. ##
12835 ## ------------------------------------ ##
12836 _ASBOX
12838 sed "s/^/$as_me: WARNING: /" >&2
12840 esac
12841 echo "$as_me:$LINENO: checking for locale.h" >&5
12842 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12843 if test "${ac_cv_header_locale_h+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 ac_cv_header_locale_h=$ac_header_preproc
12848 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12849 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12855 for ac_func in setlocale
12857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12858 echo "$as_me:$LINENO: checking for $ac_func" >&5
12859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12860 if eval "test \"\${$as_ac_var+set}\" = set"; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863 cat >conftest.$ac_ext <<_ACEOF
12864 #line $LINENO "configure"
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 /* System header to define __stub macros and hopefully few prototypes,
12871 which can conflict with char $ac_func (); below.
12872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12873 <limits.h> exists even on freestanding compilers. */
12874 #ifdef __STDC__
12875 # include <limits.h>
12876 #else
12877 # include <assert.h>
12878 #endif
12879 /* Override any gcc2 internal prototype to avoid an error. */
12880 #ifdef __cplusplus
12881 extern "C"
12883 #endif
12884 /* We use char because int might match the return type of a gcc2
12885 builtin and then its argument prototype would still apply. */
12886 char $ac_func ();
12887 /* The GNU C library defines this for functions which it implements
12888 to always fail with ENOSYS. Some functions are actually named
12889 something starting with __ and the normal name is an alias. */
12890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12891 choke me
12892 #else
12893 char (*f) () = $ac_func;
12894 #endif
12895 #ifdef __cplusplus
12897 #endif
12900 main ()
12902 return f != $ac_func;
12904 return 0;
12906 _ACEOF
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909 (eval $ac_link) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 eval "$as_ac_var=yes"
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 eval "$as_ac_var=no"
12926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12930 if test `eval echo '${'$as_ac_var'}'` = yes; then
12931 cat >>confdefs.h <<_ACEOF
12932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12933 _ACEOF
12936 done
12939 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12940 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12941 # Irix 4.0.5F has the header but not the library.
12942 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12943 ac_have_func=yes
12945 cat >>confdefs.h <<\_ACEOF
12946 #define SVR4 1
12947 _ACEOF
12951 if test $ac_have_func = no; then
12952 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12953 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12954 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12955 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12959 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12960 else
12961 # Is the header compilable?
12962 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12963 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12965 #line $LINENO "configure"
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 #include <inq_stats/cpustats.h>
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_header_compiler=yes
12987 else
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 ac_header_compiler=no
12993 rm -f conftest.$ac_objext conftest.$ac_ext
12994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12995 echo "${ECHO_T}$ac_header_compiler" >&6
12997 # Is the header present?
12998 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12999 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13000 cat >conftest.$ac_ext <<_ACEOF
13001 #line $LINENO "configure"
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <inq_stats/cpustats.h>
13008 _ACEOF
13009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } >/dev/null; then
13017 if test -s conftest.err; then
13018 ac_cpp_err=$ac_c_preproc_warn_flag
13019 else
13020 ac_cpp_err=
13022 else
13023 ac_cpp_err=yes
13025 if test -z "$ac_cpp_err"; then
13026 ac_header_preproc=yes
13027 else
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 ac_header_preproc=no
13033 rm -f conftest.err conftest.$ac_ext
13034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13035 echo "${ECHO_T}$ac_header_preproc" >&6
13037 # So? What about this header?
13038 case $ac_header_compiler:$ac_header_preproc in
13039 yes:no )
13040 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13041 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13043 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13045 cat <<\_ASBOX
13046 ## ------------------------------------ ##
13047 ## Report this to bug-autoconf@gnu.org. ##
13048 ## ------------------------------------ ##
13049 _ASBOX
13051 sed "s/^/$as_me: WARNING: /" >&2
13053 no:yes )
13054 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13055 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13057 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13059 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13061 cat <<\_ASBOX
13062 ## ------------------------------------ ##
13063 ## Report this to bug-autoconf@gnu.org. ##
13064 ## ------------------------------------ ##
13065 _ASBOX
13067 sed "s/^/$as_me: WARNING: /" >&2
13069 esac
13070 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13071 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13072 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13077 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13081 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13082 ac_have_func=yes
13084 cat >>confdefs.h <<\_ACEOF
13085 #define UMAX 1
13086 _ACEOF
13089 cat >>confdefs.h <<\_ACEOF
13090 #define UMAX4_3 1
13091 _ACEOF
13098 if test $ac_have_func = no; then
13099 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13100 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13101 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13102 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13106 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13107 else
13108 # Is the header compilable?
13109 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13110 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line $LINENO "configure"
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13119 #include <sys/cpustats.h>
13120 _ACEOF
13121 rm -f conftest.$ac_objext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -s conftest.$ac_objext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_header_compiler=yes
13134 else
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ac_header_compiler=no
13140 rm -f conftest.$ac_objext conftest.$ac_ext
13141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13142 echo "${ECHO_T}$ac_header_compiler" >&6
13144 # Is the header present?
13145 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13146 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13147 cat >conftest.$ac_ext <<_ACEOF
13148 #line $LINENO "configure"
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 #include <sys/cpustats.h>
13155 _ACEOF
13156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } >/dev/null; then
13164 if test -s conftest.err; then
13165 ac_cpp_err=$ac_c_preproc_warn_flag
13166 else
13167 ac_cpp_err=
13169 else
13170 ac_cpp_err=yes
13172 if test -z "$ac_cpp_err"; then
13173 ac_header_preproc=yes
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_header_preproc=no
13180 rm -f conftest.err conftest.$ac_ext
13181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13182 echo "${ECHO_T}$ac_header_preproc" >&6
13184 # So? What about this header?
13185 case $ac_header_compiler:$ac_header_preproc in
13186 yes:no )
13187 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13188 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13190 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13192 cat <<\_ASBOX
13193 ## ------------------------------------ ##
13194 ## Report this to bug-autoconf@gnu.org. ##
13195 ## ------------------------------------ ##
13196 _ASBOX
13198 sed "s/^/$as_me: WARNING: /" >&2
13200 no:yes )
13201 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13202 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13204 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13206 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13208 cat <<\_ASBOX
13209 ## ------------------------------------ ##
13210 ## Report this to bug-autoconf@gnu.org. ##
13211 ## ------------------------------------ ##
13212 _ASBOX
13214 sed "s/^/$as_me: WARNING: /" >&2
13216 esac
13217 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13218 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13219 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13224 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13225 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13228 if test $ac_cv_header_sys_cpustats_h = yes; then
13229 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13230 #define UMAX 1
13231 _ACEOF
13238 if test $ac_have_func = no; then
13240 for ac_header in mach/mach.h
13242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13244 echo "$as_me:$LINENO: checking for $ac_header" >&5
13245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13251 else
13252 # Is the header compilable?
13253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13255 cat >conftest.$ac_ext <<_ACEOF
13256 #line $LINENO "configure"
13257 /* confdefs.h. */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 $ac_includes_default
13263 #include <$ac_header>
13264 _ACEOF
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267 (eval $ac_compile) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -s conftest.$ac_objext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 ac_header_compiler=yes
13278 else
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_header_compiler=no
13284 rm -f conftest.$ac_objext conftest.$ac_ext
13285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13286 echo "${ECHO_T}$ac_header_compiler" >&6
13288 # Is the header present?
13289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13291 cat >conftest.$ac_ext <<_ACEOF
13292 #line $LINENO "configure"
13293 /* confdefs.h. */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 #include <$ac_header>
13299 _ACEOF
13300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } >/dev/null; then
13308 if test -s conftest.err; then
13309 ac_cpp_err=$ac_c_preproc_warn_flag
13310 else
13311 ac_cpp_err=
13313 else
13314 ac_cpp_err=yes
13316 if test -z "$ac_cpp_err"; then
13317 ac_header_preproc=yes
13318 else
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_header_preproc=no
13324 rm -f conftest.err conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13326 echo "${ECHO_T}$ac_header_preproc" >&6
13328 # So? What about this header?
13329 case $ac_header_compiler:$ac_header_preproc in
13330 yes:no )
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13336 cat <<\_ASBOX
13337 ## ------------------------------------ ##
13338 ## Report this to bug-autoconf@gnu.org. ##
13339 ## ------------------------------------ ##
13340 _ASBOX
13342 sed "s/^/$as_me: WARNING: /" >&2
13344 no:yes )
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13352 cat <<\_ASBOX
13353 ## ------------------------------------ ##
13354 ## Report this to bug-autoconf@gnu.org. ##
13355 ## ------------------------------------ ##
13356 _ASBOX
13358 sed "s/^/$as_me: WARNING: /" >&2
13360 esac
13361 echo "$as_me:$LINENO: checking for $ac_header" >&5
13362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 eval "$as_ac_Header=$ac_header_preproc"
13368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13373 cat >>confdefs.h <<_ACEOF
13374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13375 _ACEOF
13379 done
13384 for ac_header in nlist.h
13386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13388 echo "$as_me:$LINENO: checking for $ac_header" >&5
13389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13395 else
13396 # Is the header compilable?
13397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 /* confdefs.h. */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 $ac_includes_default
13407 #include <$ac_header>
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411 (eval $ac_compile) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_header_compiler=yes
13422 else
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_header_compiler=no
13428 rm -f conftest.$ac_objext conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13430 echo "${ECHO_T}$ac_header_compiler" >&6
13432 # Is the header present?
13433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13435 cat >conftest.$ac_ext <<_ACEOF
13436 #line $LINENO "configure"
13437 /* confdefs.h. */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 #include <$ac_header>
13443 _ACEOF
13444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } >/dev/null; then
13452 if test -s conftest.err; then
13453 ac_cpp_err=$ac_c_preproc_warn_flag
13454 else
13455 ac_cpp_err=
13457 else
13458 ac_cpp_err=yes
13460 if test -z "$ac_cpp_err"; then
13461 ac_header_preproc=yes
13462 else
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13466 ac_header_preproc=no
13468 rm -f conftest.err conftest.$ac_ext
13469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13470 echo "${ECHO_T}$ac_header_preproc" >&6
13472 # So? What about this header?
13473 case $ac_header_compiler:$ac_header_preproc in
13474 yes:no )
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13480 cat <<\_ASBOX
13481 ## ------------------------------------ ##
13482 ## Report this to bug-autoconf@gnu.org. ##
13483 ## ------------------------------------ ##
13484 _ASBOX
13486 sed "s/^/$as_me: WARNING: /" >&2
13488 no:yes )
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13496 cat <<\_ASBOX
13497 ## ------------------------------------ ##
13498 ## Report this to bug-autoconf@gnu.org. ##
13499 ## ------------------------------------ ##
13500 _ASBOX
13502 sed "s/^/$as_me: WARNING: /" >&2
13504 esac
13505 echo "$as_me:$LINENO: checking for $ac_header" >&5
13506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510 eval "$as_ac_Header=$ac_header_preproc"
13512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13519 _ACEOF
13520 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13521 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13522 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525 cat >conftest.$ac_ext <<_ACEOF
13526 #line $LINENO "configure"
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 #include <nlist.h>
13535 main ()
13537 static struct nlist ac_aggr;
13538 if (ac_aggr.n_un.n_name)
13539 return 0;
13541 return 0;
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_member_struct_nlist_n_un_n_name=yes
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 /* confdefs.h. */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 #include <nlist.h>
13571 main ()
13573 static struct nlist ac_aggr;
13574 if (sizeof ac_aggr.n_un.n_name)
13575 return 0;
13577 return 0;
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582 (eval $ac_compile) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_member_struct_nlist_n_un_n_name=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_member_struct_nlist_n_un_n_name=no
13599 rm -f conftest.$ac_objext conftest.$ac_ext
13601 rm -f conftest.$ac_objext conftest.$ac_ext
13603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13604 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13605 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13607 cat >>confdefs.h <<_ACEOF
13608 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13609 _ACEOF
13612 cat >>confdefs.h <<\_ACEOF
13613 #define NLIST_NAME_UNION 1
13614 _ACEOF
13621 done
13624 done
13627 # Some definitions of getloadavg require that the program be installed setgid.
13628 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13629 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13630 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 else
13633 cat >conftest.$ac_ext <<_ACEOF
13634 #line $LINENO "configure"
13635 /* confdefs.h. */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13640 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13641 #ifdef LDAV_PRIVILEGED
13642 Yowza Am I SETGID yet
13643 #endif
13644 _ACEOF
13645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13646 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13647 ac_cv_func_getloadavg_setgid=yes
13648 else
13649 ac_cv_func_getloadavg_setgid=no
13651 rm -f conftest*
13654 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13655 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13656 if test $ac_cv_func_getloadavg_setgid = yes; then
13657 NEED_SETGID=true
13659 cat >>confdefs.h <<\_ACEOF
13660 #define GETLOADAVG_PRIVILEGED 1
13661 _ACEOF
13663 else
13664 NEED_SETGID=false
13667 if test $ac_cv_func_getloadavg_setgid = yes; then
13668 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13669 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13670 if test "${ac_cv_group_kmem+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13674 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13675 # If we got an error (system does not support symlinks), try without -L.
13676 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13677 ac_cv_group_kmem=`echo $ac_ls_output \
13678 | sed -ne 's/[ ][ ]*/ /g;
13679 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13680 / /s/.* //;p;'`
13683 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13684 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13685 KMEM_GROUP=$ac_cv_group_kmem
13687 if test "x$ac_save_LIBS" = x; then
13688 GETLOADAVG_LIBS=$LIBS
13689 else
13690 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13692 LIBS=$ac_save_LIBS
13696 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13697 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13698 if test "${ac_cv_sys_largefile_source+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701 while :; do
13702 ac_cv_sys_largefile_source=no
13703 cat >conftest.$ac_ext <<_ACEOF
13704 #line $LINENO "configure"
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 #include <stdio.h>
13712 main ()
13714 return !fseeko;
13716 return 0;
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -s conftest.$ac_objext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 break
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13737 rm -f conftest.$ac_objext conftest.$ac_ext
13738 cat >conftest.$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13740 /* confdefs.h. */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 #define _LARGEFILE_SOURCE 1
13746 #include <stdio.h>
13748 main ()
13750 return !fseeko;
13752 return 0;
13754 _ACEOF
13755 rm -f conftest.$ac_objext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13757 (eval $ac_compile) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_sys_largefile_source=1; break
13768 else
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13773 rm -f conftest.$ac_objext conftest.$ac_ext
13774 break
13775 done
13777 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13778 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13779 if test "$ac_cv_sys_largefile_source" != no; then
13781 cat >>confdefs.h <<_ACEOF
13782 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13783 _ACEOF
13786 rm -f conftest*
13788 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13789 # in glibc 2.1.3, but that breaks too many other things.
13790 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13791 echo "$as_me:$LINENO: checking for fseeko" >&5
13792 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13793 if test "${ac_cv_func_fseeko+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796 cat >conftest.$ac_ext <<_ACEOF
13797 #line $LINENO "configure"
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 #include <stdio.h>
13805 main ()
13807 return fseeko && fseeko (stdin, 0, 0);
13809 return 0;
13811 _ACEOF
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13814 (eval $ac_link) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -s conftest$ac_exeext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_func_fseeko=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_cv_func_fseeko=no
13831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13833 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13834 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13835 if test $ac_cv_func_fseeko = yes; then
13837 cat >>confdefs.h <<\_ACEOF
13838 #define HAVE_FSEEKO 1
13839 _ACEOF
13844 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13845 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13846 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849 # Use it with a single arg.
13850 cat >conftest.$ac_ext <<_ACEOF
13851 #line $LINENO "configure"
13852 /* confdefs.h. */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 $ac_includes_default
13859 main ()
13861 getpgrp (0);
13863 return 0;
13865 _ACEOF
13866 rm -f conftest.$ac_objext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13868 (eval $ac_compile) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 ac_cv_func_getpgrp_void=no
13879 else
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 ac_cv_func_getpgrp_void=yes
13885 rm -f conftest.$ac_objext conftest.$ac_ext
13888 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13889 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13890 if test $ac_cv_func_getpgrp_void = yes; then
13892 cat >>confdefs.h <<\_ACEOF
13893 #define GETPGRP_VOID 1
13894 _ACEOF
13899 # UNIX98 PTYs.
13901 for ac_func in grantpt
13903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13904 echo "$as_me:$LINENO: checking for $ac_func" >&5
13905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13906 if eval "test \"\${$as_ac_var+set}\" = set"; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909 cat >conftest.$ac_ext <<_ACEOF
13910 #line $LINENO "configure"
13911 /* confdefs.h. */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13916 /* System header to define __stub macros and hopefully few prototypes,
13917 which can conflict with char $ac_func (); below.
13918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13919 <limits.h> exists even on freestanding compilers. */
13920 #ifdef __STDC__
13921 # include <limits.h>
13922 #else
13923 # include <assert.h>
13924 #endif
13925 /* Override any gcc2 internal prototype to avoid an error. */
13926 #ifdef __cplusplus
13927 extern "C"
13929 #endif
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13932 char $ac_func ();
13933 /* The GNU C library defines this for functions which it implements
13934 to always fail with ENOSYS. Some functions are actually named
13935 something starting with __ and the normal name is an alias. */
13936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13937 choke me
13938 #else
13939 char (*f) () = $ac_func;
13940 #endif
13941 #ifdef __cplusplus
13943 #endif
13946 main ()
13948 return f != $ac_func;
13950 return 0;
13952 _ACEOF
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955 (eval $ac_link) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 eval "$as_ac_var=yes"
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 eval "$as_ac_var=no"
13972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13976 if test `eval echo '${'$as_ac_var'}'` = yes; then
13977 cat >>confdefs.h <<_ACEOF
13978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13979 _ACEOF
13982 done
13985 # PTY-related GNU extensions.
13987 for ac_func in getpt
13989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990 echo "$as_me:$LINENO: checking for $ac_func" >&5
13991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13992 if eval "test \"\${$as_ac_var+set}\" = set"; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995 cat >conftest.$ac_ext <<_ACEOF
13996 #line $LINENO "configure"
13997 /* confdefs.h. */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char $ac_func (); below.
14004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14005 <limits.h> exists even on freestanding compilers. */
14006 #ifdef __STDC__
14007 # include <limits.h>
14008 #else
14009 # include <assert.h>
14010 #endif
14011 /* Override any gcc2 internal prototype to avoid an error. */
14012 #ifdef __cplusplus
14013 extern "C"
14015 #endif
14016 /* We use char because int might match the return type of a gcc2
14017 builtin and then its argument prototype would still apply. */
14018 char $ac_func ();
14019 /* The GNU C library defines this for functions which it implements
14020 to always fail with ENOSYS. Some functions are actually named
14021 something starting with __ and the normal name is an alias. */
14022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14023 choke me
14024 #else
14025 char (*f) () = $ac_func;
14026 #endif
14027 #ifdef __cplusplus
14029 #endif
14032 main ()
14034 return f != $ac_func;
14036 return 0;
14038 _ACEOF
14039 rm -f conftest.$ac_objext conftest$ac_exeext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14041 (eval $ac_link) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -s conftest$ac_exeext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 eval "$as_ac_var=yes"
14052 else
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 eval "$as_ac_var=no"
14058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14062 if test `eval echo '${'$as_ac_var'}'` = yes; then
14063 cat >>confdefs.h <<_ACEOF
14064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14065 _ACEOF
14068 done
14071 # Check this now, so that we will NOT find the above functions in ncurses.
14072 # That is because we have not set up to link ncurses in lib-src.
14073 # It's better to believe a function is not available
14074 # than to expect to find it in ncurses.
14076 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14077 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14078 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081 ac_check_lib_save_LIBS=$LIBS
14082 LIBS="-lncurses $LIBS"
14083 cat >conftest.$ac_ext <<_ACEOF
14084 #line $LINENO "configure"
14085 /* confdefs.h. */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14091 /* Override any gcc2 internal prototype to avoid an error. */
14092 #ifdef __cplusplus
14093 extern "C"
14094 #endif
14095 /* We use char because int might match the return type of a gcc2
14096 builtin and then its argument prototype would still apply. */
14097 char tparm ();
14099 main ()
14101 tparm ();
14103 return 0;
14105 _ACEOF
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14108 (eval $ac_link) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -s conftest$ac_exeext'
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }; then
14118 ac_cv_lib_ncurses_tparm=yes
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_cv_lib_ncurses_tparm=no
14125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14126 LIBS=$ac_check_lib_save_LIBS
14128 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14129 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14130 if test $ac_cv_lib_ncurses_tparm = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_LIBNCURSES 1
14133 _ACEOF
14135 LIBS="-lncurses $LIBS"
14140 # Do we need the Hesiod library to provide the support routines?
14141 if test "$with_hesiod" = yes ; then
14142 # Don't set $LIBS here -- see comments above.
14143 resolv=no
14144 echo "$as_me:$LINENO: checking for res_send" >&5
14145 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14146 if test "${ac_cv_func_res_send+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 cat >conftest.$ac_ext <<_ACEOF
14150 #line $LINENO "configure"
14151 /* confdefs.h. */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 /* System header to define __stub macros and hopefully few prototypes,
14157 which can conflict with char res_send (); below.
14158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14159 <limits.h> exists even on freestanding compilers. */
14160 #ifdef __STDC__
14161 # include <limits.h>
14162 #else
14163 # include <assert.h>
14164 #endif
14165 /* Override any gcc2 internal prototype to avoid an error. */
14166 #ifdef __cplusplus
14167 extern "C"
14169 #endif
14170 /* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14172 char res_send ();
14173 /* The GNU C library defines this for functions which it implements
14174 to always fail with ENOSYS. Some functions are actually named
14175 something starting with __ and the normal name is an alias. */
14176 #if defined (__stub_res_send) || defined (__stub___res_send)
14177 choke me
14178 #else
14179 char (*f) () = res_send;
14180 #endif
14181 #ifdef __cplusplus
14183 #endif
14186 main ()
14188 return f != res_send;
14190 return 0;
14192 _ACEOF
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14195 (eval $ac_link) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -s conftest$ac_exeext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_func_res_send=yes
14206 else
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 ac_cv_func_res_send=no
14212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14214 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14215 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14216 if test $ac_cv_func_res_send = yes; then
14218 else
14219 echo "$as_me:$LINENO: checking for __res_send" >&5
14220 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14221 if test "${ac_cv_func___res_send+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224 cat >conftest.$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14226 /* confdefs.h. */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 /* System header to define __stub macros and hopefully few prototypes,
14232 which can conflict with char __res_send (); below.
14233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14234 <limits.h> exists even on freestanding compilers. */
14235 #ifdef __STDC__
14236 # include <limits.h>
14237 #else
14238 # include <assert.h>
14239 #endif
14240 /* Override any gcc2 internal prototype to avoid an error. */
14241 #ifdef __cplusplus
14242 extern "C"
14244 #endif
14245 /* We use char because int might match the return type of a gcc2
14246 builtin and then its argument prototype would still apply. */
14247 char __res_send ();
14248 /* The GNU C library defines this for functions which it implements
14249 to always fail with ENOSYS. Some functions are actually named
14250 something starting with __ and the normal name is an alias. */
14251 #if defined (__stub___res_send) || defined (__stub_____res_send)
14252 choke me
14253 #else
14254 char (*f) () = __res_send;
14255 #endif
14256 #ifdef __cplusplus
14258 #endif
14261 main ()
14263 return f != __res_send;
14265 return 0;
14267 _ACEOF
14268 rm -f conftest.$ac_objext conftest$ac_exeext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14270 (eval $ac_link) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -s conftest$ac_exeext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_func___res_send=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_func___res_send=no
14287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14290 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14291 if test $ac_cv_func___res_send = yes; then
14293 else
14294 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14295 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14296 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299 ac_check_lib_save_LIBS=$LIBS
14300 LIBS="-lresolv $LIBS"
14301 cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14309 /* Override any gcc2 internal prototype to avoid an error. */
14310 #ifdef __cplusplus
14311 extern "C"
14312 #endif
14313 /* We use char because int might match the return type of a gcc2
14314 builtin and then its argument prototype would still apply. */
14315 char res_send ();
14317 main ()
14319 res_send ();
14321 return 0;
14323 _ACEOF
14324 rm -f conftest.$ac_objext conftest$ac_exeext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14326 (eval $ac_link) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_lib_resolv_res_send=yes
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_lib_resolv_res_send=no
14343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS
14346 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14347 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14348 if test $ac_cv_lib_resolv_res_send = yes; then
14349 resolv=yes
14350 else
14351 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14352 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14353 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 else
14356 ac_check_lib_save_LIBS=$LIBS
14357 LIBS="-lresolv $LIBS"
14358 cat >conftest.$ac_ext <<_ACEOF
14359 #line $LINENO "configure"
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14366 /* Override any gcc2 internal prototype to avoid an error. */
14367 #ifdef __cplusplus
14368 extern "C"
14369 #endif
14370 /* We use char because int might match the return type of a gcc2
14371 builtin and then its argument prototype would still apply. */
14372 char __res_send ();
14374 main ()
14376 __res_send ();
14378 return 0;
14380 _ACEOF
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -s conftest$ac_exeext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_cv_lib_resolv___res_send=yes
14394 else
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 ac_cv_lib_resolv___res_send=no
14400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14401 LIBS=$ac_check_lib_save_LIBS
14403 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14404 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14405 if test $ac_cv_lib_resolv___res_send = yes; then
14406 resolv=yes
14415 if test "$resolv" = yes ; then
14416 RESOLVLIB=-lresolv
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_LIBRESOLV 1
14420 _ACEOF
14422 else
14423 RESOLVLIB=
14425 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14426 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14427 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430 cat >conftest.$ac_ext <<_ACEOF
14431 #line $LINENO "configure"
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 /* System header to define __stub macros and hopefully few prototypes,
14438 which can conflict with char hes_getmailhost (); below.
14439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14440 <limits.h> exists even on freestanding compilers. */
14441 #ifdef __STDC__
14442 # include <limits.h>
14443 #else
14444 # include <assert.h>
14445 #endif
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 #ifdef __cplusplus
14448 extern "C"
14450 #endif
14451 /* We use char because int might match the return type of a gcc2
14452 builtin and then its argument prototype would still apply. */
14453 char hes_getmailhost ();
14454 /* The GNU C library defines this for functions which it implements
14455 to always fail with ENOSYS. Some functions are actually named
14456 something starting with __ and the normal name is an alias. */
14457 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14458 choke me
14459 #else
14460 char (*f) () = hes_getmailhost;
14461 #endif
14462 #ifdef __cplusplus
14464 #endif
14467 main ()
14469 return f != hes_getmailhost;
14471 return 0;
14473 _ACEOF
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -s conftest$ac_exeext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_cv_func_hes_getmailhost=yes
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_cv_func_hes_getmailhost=no
14493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14495 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14496 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14497 if test $ac_cv_func_hes_getmailhost = yes; then
14499 else
14500 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14501 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14502 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505 ac_check_lib_save_LIBS=$LIBS
14506 LIBS="-lhesiod $RESOLVLIB $LIBS"
14507 cat >conftest.$ac_ext <<_ACEOF
14508 #line $LINENO "configure"
14509 /* confdefs.h. */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14515 /* Override any gcc2 internal prototype to avoid an error. */
14516 #ifdef __cplusplus
14517 extern "C"
14518 #endif
14519 /* We use char because int might match the return type of a gcc2
14520 builtin and then its argument prototype would still apply. */
14521 char hes_getmailhost ();
14523 main ()
14525 hes_getmailhost ();
14527 return 0;
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -s conftest$ac_exeext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_lib_hesiod_hes_getmailhost=yes
14543 else
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_cv_lib_hesiod_hes_getmailhost=no
14549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14550 LIBS=$ac_check_lib_save_LIBS
14552 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14553 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14554 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_LIBHESIOD 1
14558 _ACEOF
14560 else
14568 # These tell us which Kerberos-related libraries to use.
14569 if test "${with_kerberos+set}" = set; then
14571 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14572 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14573 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576 ac_check_lib_save_LIBS=$LIBS
14577 LIBS="-lcom_err $LIBS"
14578 cat >conftest.$ac_ext <<_ACEOF
14579 #line $LINENO "configure"
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14586 /* Override any gcc2 internal prototype to avoid an error. */
14587 #ifdef __cplusplus
14588 extern "C"
14589 #endif
14590 /* We use char because int might match the return type of a gcc2
14591 builtin and then its argument prototype would still apply. */
14592 char com_err ();
14594 main ()
14596 com_err ();
14598 return 0;
14600 _ACEOF
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14603 (eval $ac_link) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -s conftest$ac_exeext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14613 ac_cv_lib_com_err_com_err=yes
14614 else
14615 echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14618 ac_cv_lib_com_err_com_err=no
14620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_check_lib_save_LIBS
14623 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14624 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14625 if test $ac_cv_lib_com_err_com_err = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define HAVE_LIBCOM_ERR 1
14628 _ACEOF
14630 LIBS="-lcom_err $LIBS"
14635 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14636 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14637 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 ac_check_lib_save_LIBS=$LIBS
14641 LIBS="-lk5crypto $LIBS"
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 /* confdefs.h. */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14650 /* Override any gcc2 internal prototype to avoid an error. */
14651 #ifdef __cplusplus
14652 extern "C"
14653 #endif
14654 /* We use char because int might match the return type of a gcc2
14655 builtin and then its argument prototype would still apply. */
14656 char mit_des_cbc_encrypt ();
14658 main ()
14660 mit_des_cbc_encrypt ();
14662 return 0;
14664 _ACEOF
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -s conftest$ac_exeext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14685 LIBS=$ac_check_lib_save_LIBS
14687 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14688 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14689 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14690 cat >>confdefs.h <<_ACEOF
14691 #define HAVE_LIBK5CRYPTO 1
14692 _ACEOF
14694 LIBS="-lk5crypto $LIBS"
14699 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14700 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14701 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704 ac_check_lib_save_LIBS=$LIBS
14705 LIBS="-lcrypto $LIBS"
14706 cat >conftest.$ac_ext <<_ACEOF
14707 #line $LINENO "configure"
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14714 /* Override any gcc2 internal prototype to avoid an error. */
14715 #ifdef __cplusplus
14716 extern "C"
14717 #endif
14718 /* We use char because int might match the return type of a gcc2
14719 builtin and then its argument prototype would still apply. */
14720 char mit_des_cbc_encrypt ();
14722 main ()
14724 mit_des_cbc_encrypt ();
14726 return 0;
14728 _ACEOF
14729 rm -f conftest.$ac_objext conftest$ac_exeext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14731 (eval $ac_link) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14751 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14752 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14753 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define HAVE_LIBCRYPTO 1
14756 _ACEOF
14758 LIBS="-lcrypto $LIBS"
14763 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14764 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14765 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
14768 ac_check_lib_save_LIBS=$LIBS
14769 LIBS="-lkrb5 $LIBS"
14770 cat >conftest.$ac_ext <<_ACEOF
14771 #line $LINENO "configure"
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14778 /* Override any gcc2 internal prototype to avoid an error. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 /* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14784 char krb5_init_context ();
14786 main ()
14788 krb5_init_context ();
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -s conftest$ac_exeext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_cv_lib_krb5_krb5_init_context=yes
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_cv_lib_krb5_krb5_init_context=no
14812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14813 LIBS=$ac_check_lib_save_LIBS
14815 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14816 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14817 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_LIBKRB5 1
14820 _ACEOF
14822 LIBS="-lkrb5 $LIBS"
14826 if test "${with_kerberos5+set}" != set; then
14828 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14829 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14830 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833 ac_check_lib_save_LIBS=$LIBS
14834 LIBS="-ldes425 $LIBS"
14835 cat >conftest.$ac_ext <<_ACEOF
14836 #line $LINENO "configure"
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14843 /* Override any gcc2 internal prototype to avoid an error. */
14844 #ifdef __cplusplus
14845 extern "C"
14846 #endif
14847 /* We use char because int might match the return type of a gcc2
14848 builtin and then its argument prototype would still apply. */
14849 char des_cbc_encrypt ();
14851 main ()
14853 des_cbc_encrypt ();
14855 return 0;
14857 _ACEOF
14858 rm -f conftest.$ac_objext conftest$ac_exeext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14860 (eval $ac_link) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -s conftest$ac_exeext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_cv_lib_des425_des_cbc_encrypt=yes
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_cv_lib_des425_des_cbc_encrypt=no
14877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14881 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14882 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define HAVE_LIBDES425 1
14885 _ACEOF
14887 LIBS="-ldes425 $LIBS"
14889 else
14891 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14892 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14893 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 ac_check_lib_save_LIBS=$LIBS
14897 LIBS="-ldes $LIBS"
14898 cat >conftest.$ac_ext <<_ACEOF
14899 #line $LINENO "configure"
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14906 /* Override any gcc2 internal prototype to avoid an error. */
14907 #ifdef __cplusplus
14908 extern "C"
14909 #endif
14910 /* We use char because int might match the return type of a gcc2
14911 builtin and then its argument prototype would still apply. */
14912 char des_cbc_encrypt ();
14914 main ()
14916 des_cbc_encrypt ();
14918 return 0;
14920 _ACEOF
14921 rm -f conftest.$ac_objext conftest$ac_exeext
14922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14923 (eval $ac_link) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -s conftest$ac_exeext'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_cv_lib_des_des_cbc_encrypt=yes
14934 else
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14938 ac_cv_lib_des_des_cbc_encrypt=no
14940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14941 LIBS=$ac_check_lib_save_LIBS
14943 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14944 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14945 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14946 cat >>confdefs.h <<_ACEOF
14947 #define HAVE_LIBDES 1
14948 _ACEOF
14950 LIBS="-ldes $LIBS"
14957 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14958 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14959 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 ac_check_lib_save_LIBS=$LIBS
14963 LIBS="-lkrb4 $LIBS"
14964 cat >conftest.$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14972 /* Override any gcc2 internal prototype to avoid an error. */
14973 #ifdef __cplusplus
14974 extern "C"
14975 #endif
14976 /* We use char because int might match the return type of a gcc2
14977 builtin and then its argument prototype would still apply. */
14978 char krb_get_cred ();
14980 main ()
14982 krb_get_cred ();
14984 return 0;
14986 _ACEOF
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989 (eval $ac_link) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -s conftest$ac_exeext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 ac_cv_lib_krb4_krb_get_cred=yes
15000 else
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 ac_cv_lib_krb4_krb_get_cred=no
15006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15009 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15010 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15011 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define HAVE_LIBKRB4 1
15014 _ACEOF
15016 LIBS="-lkrb4 $LIBS"
15018 else
15020 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15021 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15022 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025 ac_check_lib_save_LIBS=$LIBS
15026 LIBS="-lkrb $LIBS"
15027 cat >conftest.$ac_ext <<_ACEOF
15028 #line $LINENO "configure"
15029 /* confdefs.h. */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15035 /* Override any gcc2 internal prototype to avoid an error. */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 /* We use char because int might match the return type of a gcc2
15040 builtin and then its argument prototype would still apply. */
15041 char krb_get_cred ();
15043 main ()
15045 krb_get_cred ();
15047 return 0;
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15052 (eval $ac_link) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -s conftest$ac_exeext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_cv_lib_krb_krb_get_cred=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_cv_lib_krb_krb_get_cred=no
15069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15070 LIBS=$ac_check_lib_save_LIBS
15072 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15073 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15074 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_LIBKRB 1
15077 _ACEOF
15079 LIBS="-lkrb $LIBS"
15087 if test "${with_kerberos5+set}" = set; then
15089 for ac_header in krb5.h
15091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15093 echo "$as_me:$LINENO: checking for $ac_header" >&5
15094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15100 else
15101 # Is the header compilable?
15102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15104 cat >conftest.$ac_ext <<_ACEOF
15105 #line $LINENO "configure"
15106 /* confdefs.h. */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111 $ac_includes_default
15112 #include <$ac_header>
15113 _ACEOF
15114 rm -f conftest.$ac_objext
15115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
15120 { ac_try='test -s conftest.$ac_objext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15126 ac_header_compiler=yes
15127 else
15128 echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15131 ac_header_compiler=no
15133 rm -f conftest.$ac_objext conftest.$ac_ext
15134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15135 echo "${ECHO_T}$ac_header_compiler" >&6
15137 # Is the header present?
15138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15140 cat >conftest.$ac_ext <<_ACEOF
15141 #line $LINENO "configure"
15142 /* confdefs.h. */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 #include <$ac_header>
15148 _ACEOF
15149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } >/dev/null; then
15157 if test -s conftest.err; then
15158 ac_cpp_err=$ac_c_preproc_warn_flag
15159 else
15160 ac_cpp_err=
15162 else
15163 ac_cpp_err=yes
15165 if test -z "$ac_cpp_err"; then
15166 ac_header_preproc=yes
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_header_preproc=no
15173 rm -f conftest.err conftest.$ac_ext
15174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15175 echo "${ECHO_T}$ac_header_preproc" >&6
15177 # So? What about this header?
15178 case $ac_header_compiler:$ac_header_preproc in
15179 yes:no )
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15185 cat <<\_ASBOX
15186 ## ------------------------------------ ##
15187 ## Report this to bug-autoconf@gnu.org. ##
15188 ## ------------------------------------ ##
15189 _ASBOX
15191 sed "s/^/$as_me: WARNING: /" >&2
15193 no:yes )
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15201 cat <<\_ASBOX
15202 ## ------------------------------------ ##
15203 ## Report this to bug-autoconf@gnu.org. ##
15204 ## ------------------------------------ ##
15205 _ASBOX
15207 sed "s/^/$as_me: WARNING: /" >&2
15209 esac
15210 echo "$as_me:$LINENO: checking for $ac_header" >&5
15211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 eval "$as_ac_Header=$ac_header_preproc"
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15222 cat >>confdefs.h <<_ACEOF
15223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15224 _ACEOF
15228 done
15230 else
15232 for ac_header in des.h
15234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15236 echo "$as_me:$LINENO: checking for $ac_header" >&5
15237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15243 else
15244 # Is the header compilable?
15245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15247 cat >conftest.$ac_ext <<_ACEOF
15248 #line $LINENO "configure"
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15255 #include <$ac_header>
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259 (eval $ac_compile) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -s conftest.$ac_objext'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_header_compiler=yes
15270 else
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15276 rm -f conftest.$ac_objext conftest.$ac_ext
15277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15278 echo "${ECHO_T}$ac_header_compiler" >&6
15280 # Is the header present?
15281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15283 cat >conftest.$ac_ext <<_ACEOF
15284 #line $LINENO "configure"
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <$ac_header>
15291 _ACEOF
15292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } >/dev/null; then
15300 if test -s conftest.err; then
15301 ac_cpp_err=$ac_c_preproc_warn_flag
15302 else
15303 ac_cpp_err=
15305 else
15306 ac_cpp_err=yes
15308 if test -z "$ac_cpp_err"; then
15309 ac_header_preproc=yes
15310 else
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ac_header_preproc=no
15316 rm -f conftest.err conftest.$ac_ext
15317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15318 echo "${ECHO_T}$ac_header_preproc" >&6
15320 # So? What about this header?
15321 case $ac_header_compiler:$ac_header_preproc in
15322 yes:no )
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15328 cat <<\_ASBOX
15329 ## ------------------------------------ ##
15330 ## Report this to bug-autoconf@gnu.org. ##
15331 ## ------------------------------------ ##
15332 _ASBOX
15334 sed "s/^/$as_me: WARNING: /" >&2
15336 no:yes )
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15344 cat <<\_ASBOX
15345 ## ------------------------------------ ##
15346 ## Report this to bug-autoconf@gnu.org. ##
15347 ## ------------------------------------ ##
15348 _ASBOX
15350 sed "s/^/$as_me: WARNING: /" >&2
15352 esac
15353 echo "$as_me:$LINENO: checking for $ac_header" >&5
15354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 else
15358 eval "$as_ac_Header=$ac_header_preproc"
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15365 cat >>confdefs.h <<_ACEOF
15366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15367 _ACEOF
15369 else
15371 for ac_header in kerberosIV/des.h
15373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15375 echo "$as_me:$LINENO: checking for $ac_header" >&5
15376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15382 else
15383 # Is the header compilable?
15384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15386 cat >conftest.$ac_ext <<_ACEOF
15387 #line $LINENO "configure"
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 $ac_includes_default
15394 #include <$ac_header>
15395 _ACEOF
15396 rm -f conftest.$ac_objext
15397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15398 (eval $ac_compile) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_header_compiler=yes
15409 else
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_header_compiler=no
15415 rm -f conftest.$ac_objext conftest.$ac_ext
15416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 echo "${ECHO_T}$ac_header_compiler" >&6
15419 # Is the header present?
15420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
15430 _ACEOF
15431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } >/dev/null; then
15439 if test -s conftest.err; then
15440 ac_cpp_err=$ac_c_preproc_warn_flag
15441 else
15442 ac_cpp_err=
15444 else
15445 ac_cpp_err=yes
15447 if test -z "$ac_cpp_err"; then
15448 ac_header_preproc=yes
15449 else
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_preproc=no
15455 rm -f conftest.err conftest.$ac_ext
15456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457 echo "${ECHO_T}$ac_header_preproc" >&6
15459 # So? What about this header?
15460 case $ac_header_compiler:$ac_header_preproc in
15461 yes:no )
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15467 cat <<\_ASBOX
15468 ## ------------------------------------ ##
15469 ## Report this to bug-autoconf@gnu.org. ##
15470 ## ------------------------------------ ##
15471 _ASBOX
15473 sed "s/^/$as_me: WARNING: /" >&2
15475 no:yes )
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15483 cat <<\_ASBOX
15484 ## ------------------------------------ ##
15485 ## Report this to bug-autoconf@gnu.org. ##
15486 ## ------------------------------------ ##
15487 _ASBOX
15489 sed "s/^/$as_me: WARNING: /" >&2
15491 esac
15492 echo "$as_me:$LINENO: checking for $ac_header" >&5
15493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497 eval "$as_ac_Header=$ac_header_preproc"
15499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15506 _ACEOF
15508 else
15510 for ac_header in kerberos/des.h
15512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15514 echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15521 else
15522 # Is the header compilable?
15523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15525 cat >conftest.$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15527 /* confdefs.h. */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15532 $ac_includes_default
15533 #include <$ac_header>
15534 _ACEOF
15535 rm -f conftest.$ac_objext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15537 (eval $ac_compile) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 ac_header_compiler=yes
15548 else
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552 ac_header_compiler=no
15554 rm -f conftest.$ac_objext conftest.$ac_ext
15555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15556 echo "${ECHO_T}$ac_header_compiler" >&6
15558 # Is the header present?
15559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15561 cat >conftest.$ac_ext <<_ACEOF
15562 #line $LINENO "configure"
15563 /* confdefs.h. */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <$ac_header>
15569 _ACEOF
15570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15572 ac_status=$?
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } >/dev/null; then
15578 if test -s conftest.err; then
15579 ac_cpp_err=$ac_c_preproc_warn_flag
15580 else
15581 ac_cpp_err=
15583 else
15584 ac_cpp_err=yes
15586 if test -z "$ac_cpp_err"; then
15587 ac_header_preproc=yes
15588 else
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 ac_header_preproc=no
15594 rm -f conftest.err conftest.$ac_ext
15595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15596 echo "${ECHO_T}$ac_header_preproc" >&6
15598 # So? What about this header?
15599 case $ac_header_compiler:$ac_header_preproc in
15600 yes:no )
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15606 cat <<\_ASBOX
15607 ## ------------------------------------ ##
15608 ## Report this to bug-autoconf@gnu.org. ##
15609 ## ------------------------------------ ##
15610 _ASBOX
15612 sed "s/^/$as_me: WARNING: /" >&2
15614 no:yes )
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15622 cat <<\_ASBOX
15623 ## ------------------------------------ ##
15624 ## Report this to bug-autoconf@gnu.org. ##
15625 ## ------------------------------------ ##
15626 _ASBOX
15628 sed "s/^/$as_me: WARNING: /" >&2
15630 esac
15631 echo "$as_me:$LINENO: checking for $ac_header" >&5
15632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636 eval "$as_ac_Header=$ac_header_preproc"
15638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15643 cat >>confdefs.h <<_ACEOF
15644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15645 _ACEOF
15649 done
15653 done
15657 done
15660 for ac_header in krb.h
15662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15664 echo "$as_me:$LINENO: checking for $ac_header" >&5
15665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15671 else
15672 # Is the header compilable?
15673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15675 cat >conftest.$ac_ext <<_ACEOF
15676 #line $LINENO "configure"
15677 /* confdefs.h. */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 $ac_includes_default
15683 #include <$ac_header>
15684 _ACEOF
15685 rm -f conftest.$ac_objext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_header_compiler=yes
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_header_compiler=no
15704 rm -f conftest.$ac_objext conftest.$ac_ext
15705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15706 echo "${ECHO_T}$ac_header_compiler" >&6
15708 # Is the header present?
15709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15711 cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15713 /* confdefs.h. */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 #include <$ac_header>
15719 _ACEOF
15720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } >/dev/null; then
15728 if test -s conftest.err; then
15729 ac_cpp_err=$ac_c_preproc_warn_flag
15730 else
15731 ac_cpp_err=
15733 else
15734 ac_cpp_err=yes
15736 if test -z "$ac_cpp_err"; then
15737 ac_header_preproc=yes
15738 else
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_header_preproc=no
15744 rm -f conftest.err conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15746 echo "${ECHO_T}$ac_header_preproc" >&6
15748 # So? What about this header?
15749 case $ac_header_compiler:$ac_header_preproc in
15750 yes:no )
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15756 cat <<\_ASBOX
15757 ## ------------------------------------ ##
15758 ## Report this to bug-autoconf@gnu.org. ##
15759 ## ------------------------------------ ##
15760 _ASBOX
15762 sed "s/^/$as_me: WARNING: /" >&2
15764 no:yes )
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15772 cat <<\_ASBOX
15773 ## ------------------------------------ ##
15774 ## Report this to bug-autoconf@gnu.org. ##
15775 ## ------------------------------------ ##
15776 _ASBOX
15778 sed "s/^/$as_me: WARNING: /" >&2
15780 esac
15781 echo "$as_me:$LINENO: checking for $ac_header" >&5
15782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 eval "$as_ac_Header=$ac_header_preproc"
15788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15793 cat >>confdefs.h <<_ACEOF
15794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15795 _ACEOF
15797 else
15799 for ac_header in kerberosIV/krb.h
15801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15803 echo "$as_me:$LINENO: checking for $ac_header" >&5
15804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15810 else
15811 # Is the header compilable?
15812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15814 cat >conftest.$ac_ext <<_ACEOF
15815 #line $LINENO "configure"
15816 /* confdefs.h. */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 $ac_includes_default
15822 #include <$ac_header>
15823 _ACEOF
15824 rm -f conftest.$ac_objext
15825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15826 (eval $ac_compile) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -s conftest.$ac_objext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_header_compiler=yes
15837 else
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_compiler=no
15843 rm -f conftest.$ac_objext conftest.$ac_ext
15844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15845 echo "${ECHO_T}$ac_header_compiler" >&6
15847 # Is the header present?
15848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15850 cat >conftest.$ac_ext <<_ACEOF
15851 #line $LINENO "configure"
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <$ac_header>
15858 _ACEOF
15859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15861 ac_status=$?
15862 grep -v '^ *+' conftest.er1 >conftest.err
15863 rm -f conftest.er1
15864 cat conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } >/dev/null; then
15867 if test -s conftest.err; then
15868 ac_cpp_err=$ac_c_preproc_warn_flag
15869 else
15870 ac_cpp_err=
15872 else
15873 ac_cpp_err=yes
15875 if test -z "$ac_cpp_err"; then
15876 ac_header_preproc=yes
15877 else
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15881 ac_header_preproc=no
15883 rm -f conftest.err conftest.$ac_ext
15884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6
15887 # So? What about this header?
15888 case $ac_header_compiler:$ac_header_preproc in
15889 yes:no )
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15895 cat <<\_ASBOX
15896 ## ------------------------------------ ##
15897 ## Report this to bug-autoconf@gnu.org. ##
15898 ## ------------------------------------ ##
15899 _ASBOX
15901 sed "s/^/$as_me: WARNING: /" >&2
15903 no:yes )
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15911 cat <<\_ASBOX
15912 ## ------------------------------------ ##
15913 ## Report this to bug-autoconf@gnu.org. ##
15914 ## ------------------------------------ ##
15915 _ASBOX
15917 sed "s/^/$as_me: WARNING: /" >&2
15919 esac
15920 echo "$as_me:$LINENO: checking for $ac_header" >&5
15921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925 eval "$as_ac_Header=$ac_header_preproc"
15927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15932 cat >>confdefs.h <<_ACEOF
15933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15934 _ACEOF
15936 else
15938 for ac_header in kerberos/krb.h
15940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15942 echo "$as_me:$LINENO: checking for $ac_header" >&5
15943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15949 else
15950 # Is the header compilable?
15951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15953 cat >conftest.$ac_ext <<_ACEOF
15954 #line $LINENO "configure"
15955 /* confdefs.h. */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 $ac_includes_default
15961 #include <$ac_header>
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965 (eval $ac_compile) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } &&
15969 { ac_try='test -s conftest.$ac_objext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_header_compiler=yes
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 ac_header_compiler=no
15982 rm -f conftest.$ac_objext conftest.$ac_ext
15983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15984 echo "${ECHO_T}$ac_header_compiler" >&6
15986 # Is the header present?
15987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15989 cat >conftest.$ac_ext <<_ACEOF
15990 #line $LINENO "configure"
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 #include <$ac_header>
15997 _ACEOF
15998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
16008 else
16009 ac_cpp_err=
16011 else
16012 ac_cpp_err=yes
16014 if test -z "$ac_cpp_err"; then
16015 ac_header_preproc=yes
16016 else
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_header_preproc=no
16022 rm -f conftest.err conftest.$ac_ext
16023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16024 echo "${ECHO_T}$ac_header_preproc" >&6
16026 # So? What about this header?
16027 case $ac_header_compiler:$ac_header_preproc in
16028 yes:no )
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16034 cat <<\_ASBOX
16035 ## ------------------------------------ ##
16036 ## Report this to bug-autoconf@gnu.org. ##
16037 ## ------------------------------------ ##
16038 _ASBOX
16040 sed "s/^/$as_me: WARNING: /" >&2
16042 no:yes )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16050 cat <<\_ASBOX
16051 ## ------------------------------------ ##
16052 ## Report this to bug-autoconf@gnu.org. ##
16053 ## ------------------------------------ ##
16054 _ASBOX
16056 sed "s/^/$as_me: WARNING: /" >&2
16058 esac
16059 echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064 eval "$as_ac_Header=$ac_header_preproc"
16066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16073 _ACEOF
16077 done
16081 done
16085 done
16089 for ac_header in com_err.h
16091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16093 echo "$as_me:$LINENO: checking for $ac_header" >&5
16094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16100 else
16101 # Is the header compilable?
16102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16104 cat >conftest.$ac_ext <<_ACEOF
16105 #line $LINENO "configure"
16106 /* confdefs.h. */
16107 _ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16111 $ac_includes_default
16112 #include <$ac_header>
16113 _ACEOF
16114 rm -f conftest.$ac_objext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116 (eval $ac_compile) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_header_compiler=yes
16127 else
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_header_compiler=no
16133 rm -f conftest.$ac_objext conftest.$ac_ext
16134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16135 echo "${ECHO_T}$ac_header_compiler" >&6
16137 # Is the header present?
16138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16140 cat >conftest.$ac_ext <<_ACEOF
16141 #line $LINENO "configure"
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 #include <$ac_header>
16148 _ACEOF
16149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } >/dev/null; then
16157 if test -s conftest.err; then
16158 ac_cpp_err=$ac_c_preproc_warn_flag
16159 else
16160 ac_cpp_err=
16162 else
16163 ac_cpp_err=yes
16165 if test -z "$ac_cpp_err"; then
16166 ac_header_preproc=yes
16167 else
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_header_preproc=no
16173 rm -f conftest.err conftest.$ac_ext
16174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16175 echo "${ECHO_T}$ac_header_preproc" >&6
16177 # So? What about this header?
16178 case $ac_header_compiler:$ac_header_preproc in
16179 yes:no )
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16185 cat <<\_ASBOX
16186 ## ------------------------------------ ##
16187 ## Report this to bug-autoconf@gnu.org. ##
16188 ## ------------------------------------ ##
16189 _ASBOX
16191 sed "s/^/$as_me: WARNING: /" >&2
16193 no:yes )
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16201 cat <<\_ASBOX
16202 ## ------------------------------------ ##
16203 ## Report this to bug-autoconf@gnu.org. ##
16204 ## ------------------------------------ ##
16205 _ASBOX
16207 sed "s/^/$as_me: WARNING: /" >&2
16209 esac
16210 echo "$as_me:$LINENO: checking for $ac_header" >&5
16211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215 eval "$as_ac_Header=$ac_header_preproc"
16217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16224 _ACEOF
16228 done
16232 # Solaris requires -lintl if you want strerror (which calls dgettext)
16233 # to return localized messages.
16235 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16236 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16237 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 ac_check_lib_save_LIBS=$LIBS
16241 LIBS="-lintl $LIBS"
16242 cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16250 /* Override any gcc2 internal prototype to avoid an error. */
16251 #ifdef __cplusplus
16252 extern "C"
16253 #endif
16254 /* We use char because int might match the return type of a gcc2
16255 builtin and then its argument prototype would still apply. */
16256 char dgettext ();
16258 main ()
16260 dgettext ();
16262 return 0;
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_lib_intl_dgettext=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_cv_lib_intl_dgettext=no
16284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16285 LIBS=$ac_check_lib_save_LIBS
16287 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16288 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16289 if test $ac_cv_lib_intl_dgettext = yes; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_LIBINTL 1
16292 _ACEOF
16294 LIBS="-lintl $LIBS"
16299 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16300 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16301 if test "${emacs_cv_localtime_cache+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 else
16304 if test x$ac_cv_func_tzset = xyes; then
16305 if test "$cross_compiling" = yes; then
16306 # If we have tzset, assume the worst when cross-compiling.
16307 emacs_cv_localtime_cache=yes
16308 else
16309 cat >conftest.$ac_ext <<_ACEOF
16310 #line $LINENO "configure"
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 #include <time.h>
16317 extern char **environ;
16318 unset_TZ ()
16320 char **from, **to;
16321 for (to = from = environ; (*to = *from); from++)
16322 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16323 to++;
16325 char TZ_GMT0[] = "TZ=GMT0";
16326 char TZ_PST8[] = "TZ=PST8";
16327 main()
16329 time_t now = time ((time_t *) 0);
16330 int hour_GMT0, hour_unset;
16331 if (putenv (TZ_GMT0) != 0)
16332 exit (1);
16333 hour_GMT0 = localtime (&now)->tm_hour;
16334 unset_TZ ();
16335 hour_unset = localtime (&now)->tm_hour;
16336 if (putenv (TZ_PST8) != 0)
16337 exit (1);
16338 if (localtime (&now)->tm_hour == hour_GMT0)
16339 exit (1);
16340 unset_TZ ();
16341 if (localtime (&now)->tm_hour != hour_unset)
16342 exit (1);
16343 exit (0);
16345 _ACEOF
16346 rm -f conftest$ac_exeext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348 (eval $ac_link) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 emacs_cv_localtime_cache=no
16358 else
16359 echo "$as_me: program exited with status $ac_status" >&5
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ( exit $ac_status )
16364 emacs_cv_localtime_cache=yes
16366 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16368 else
16369 # If we lack tzset, report that localtime does not cache TZ,
16370 # since we can't invalidate the cache if we don't have tzset.
16371 emacs_cv_localtime_cache=no
16374 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16375 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16376 if test $emacs_cv_localtime_cache = yes; then
16378 cat >>confdefs.h <<\_ACEOF
16379 #define LOCALTIME_CACHE 1
16380 _ACEOF
16384 if test "x$HAVE_TIMEVAL" = xyes; then
16386 for ac_func in gettimeofday
16388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16389 echo "$as_me:$LINENO: checking for $ac_func" >&5
16390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16391 if eval "test \"\${$as_ac_var+set}\" = set"; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394 cat >conftest.$ac_ext <<_ACEOF
16395 #line $LINENO "configure"
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 /* System header to define __stub macros and hopefully few prototypes,
16402 which can conflict with char $ac_func (); below.
16403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404 <limits.h> exists even on freestanding compilers. */
16405 #ifdef __STDC__
16406 # include <limits.h>
16407 #else
16408 # include <assert.h>
16409 #endif
16410 /* Override any gcc2 internal prototype to avoid an error. */
16411 #ifdef __cplusplus
16412 extern "C"
16414 #endif
16415 /* We use char because int might match the return type of a gcc2
16416 builtin and then its argument prototype would still apply. */
16417 char $ac_func ();
16418 /* The GNU C library defines this for functions which it implements
16419 to always fail with ENOSYS. Some functions are actually named
16420 something starting with __ and the normal name is an alias. */
16421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16422 choke me
16423 #else
16424 char (*f) () = $ac_func;
16425 #endif
16426 #ifdef __cplusplus
16428 #endif
16431 main ()
16433 return f != $ac_func;
16435 return 0;
16437 _ACEOF
16438 rm -f conftest.$ac_objext conftest$ac_exeext
16439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16440 (eval $ac_link) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 eval "$as_ac_var=yes"
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 eval "$as_ac_var=no"
16457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16461 if test `eval echo '${'$as_ac_var'}'` = yes; then
16462 cat >>confdefs.h <<_ACEOF
16463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16464 _ACEOF
16467 done
16469 if test $ac_cv_func_gettimeofday = yes; then
16470 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16471 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16472 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475 cat >conftest.$ac_ext <<_ACEOF
16476 #line $LINENO "configure"
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16483 #ifdef TIME_WITH_SYS_TIME
16484 #include <sys/time.h>
16485 #include <time.h>
16486 #else
16487 #ifdef HAVE_SYS_TIME_H
16488 #include <sys/time.h>
16489 #else
16490 #include <time.h>
16491 #endif
16492 #endif
16494 main ()
16496 struct timeval time;
16497 gettimeofday (&time, 0);
16499 return 0;
16501 _ACEOF
16502 rm -f conftest.$ac_objext
16503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16504 (eval $ac_compile) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -s conftest.$ac_objext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 emacs_cv_gettimeofday_two_arguments=yes
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 emacs_cv_gettimeofday_two_arguments=no
16521 rm -f conftest.$ac_objext conftest.$ac_ext
16523 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16524 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16525 if test $emacs_cv_gettimeofday_two_arguments = no; then
16527 cat >>confdefs.h <<\_ACEOF
16528 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16529 _ACEOF
16535 if test "$ac_cv_func_gettimeofday" = yes; then
16536 echo "$as_me:$LINENO: checking for struct timezone" >&5
16537 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16538 if test "${emacs_cv_struct_timezone+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541 cat >conftest.$ac_ext <<_ACEOF
16542 #line $LINENO "configure"
16543 /* confdefs.h. */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 #include <sys/time.h>
16550 main ()
16552 struct timezone tz;
16554 return 0;
16556 _ACEOF
16557 rm -f conftest.$ac_objext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16559 (eval $ac_compile) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 if test "$cross_compiling" = yes; then
16570 emacs_cv_struct_timezone=yes
16571 else
16572 cat >conftest.$ac_ext <<_ACEOF
16573 #line $LINENO "configure"
16574 /* confdefs.h. */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16580 #ifdef TIME_WITH_SYS_TIME
16581 #include <sys/time.h>
16582 #include <time.h>
16583 #else
16584 #ifdef HAVE_SYS_TIME_H
16585 #include <sys/time.h>
16586 #else
16587 #include <time.h>
16588 #endif
16589 #endif
16590 main () {
16591 struct timeval time;
16592 struct timezone dummy;
16593 exit (gettimeofday (&time, &dummy));
16595 _ACEOF
16596 rm -f conftest$ac_exeext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16598 (eval $ac_link) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 emacs_cv_struct_timezone=yes
16608 else
16609 echo "$as_me: program exited with status $ac_status" >&5
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16613 ( exit $ac_status )
16614 emacs_cv_struct_timezone=no
16616 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16618 else
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 emacs_cv_struct_timezone=no
16624 rm -f conftest.$ac_objext conftest.$ac_ext
16626 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16627 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16630 ok_so_far=yes
16631 echo "$as_me:$LINENO: checking for socket" >&5
16632 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16633 if test "${ac_cv_func_socket+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #line $LINENO "configure"
16638 /* confdefs.h. */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 /* System header to define __stub macros and hopefully few prototypes,
16644 which can conflict with char socket (); below.
16645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646 <limits.h> exists even on freestanding compilers. */
16647 #ifdef __STDC__
16648 # include <limits.h>
16649 #else
16650 # include <assert.h>
16651 #endif
16652 /* Override any gcc2 internal prototype to avoid an error. */
16653 #ifdef __cplusplus
16654 extern "C"
16656 #endif
16657 /* We use char because int might match the return type of a gcc2
16658 builtin and then its argument prototype would still apply. */
16659 char socket ();
16660 /* The GNU C library defines this for functions which it implements
16661 to always fail with ENOSYS. Some functions are actually named
16662 something starting with __ and the normal name is an alias. */
16663 #if defined (__stub_socket) || defined (__stub___socket)
16664 choke me
16665 #else
16666 char (*f) () = socket;
16667 #endif
16668 #ifdef __cplusplus
16670 #endif
16673 main ()
16675 return f != socket;
16677 return 0;
16679 _ACEOF
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16682 (eval $ac_link) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
16686 { ac_try='test -s conftest$ac_exeext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_func_socket=yes
16693 else
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ac_cv_func_socket=no
16699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16701 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16702 echo "${ECHO_T}$ac_cv_func_socket" >&6
16703 if test $ac_cv_func_socket = yes; then
16705 else
16706 ok_so_far=no
16709 if test $ok_so_far = yes; then
16710 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16711 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16712 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16713 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16717 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16718 else
16719 # Is the header compilable?
16720 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16721 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16722 cat >conftest.$ac_ext <<_ACEOF
16723 #line $LINENO "configure"
16724 /* confdefs.h. */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 $ac_includes_default
16730 #include <netinet/in.h>
16731 _ACEOF
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -s conftest.$ac_objext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 ac_header_compiler=yes
16745 else
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 ac_header_compiler=no
16751 rm -f conftest.$ac_objext conftest.$ac_ext
16752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16753 echo "${ECHO_T}$ac_header_compiler" >&6
16755 # Is the header present?
16756 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16757 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16759 #line $LINENO "configure"
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <netinet/in.h>
16766 _ACEOF
16767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16769 ac_status=$?
16770 grep -v '^ *+' conftest.er1 >conftest.err
16771 rm -f conftest.er1
16772 cat conftest.err >&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } >/dev/null; then
16775 if test -s conftest.err; then
16776 ac_cpp_err=$ac_c_preproc_warn_flag
16777 else
16778 ac_cpp_err=
16780 else
16781 ac_cpp_err=yes
16783 if test -z "$ac_cpp_err"; then
16784 ac_header_preproc=yes
16785 else
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_preproc=no
16791 rm -f conftest.err conftest.$ac_ext
16792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16793 echo "${ECHO_T}$ac_header_preproc" >&6
16795 # So? What about this header?
16796 case $ac_header_compiler:$ac_header_preproc in
16797 yes:no )
16798 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16799 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16803 cat <<\_ASBOX
16804 ## ------------------------------------ ##
16805 ## Report this to bug-autoconf@gnu.org. ##
16806 ## ------------------------------------ ##
16807 _ASBOX
16809 sed "s/^/$as_me: WARNING: /" >&2
16811 no:yes )
16812 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16813 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16815 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16817 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16819 cat <<\_ASBOX
16820 ## ------------------------------------ ##
16821 ## Report this to bug-autoconf@gnu.org. ##
16822 ## ------------------------------------ ##
16823 _ASBOX
16825 sed "s/^/$as_me: WARNING: /" >&2
16827 esac
16828 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16829 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16830 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833 ac_cv_header_netinet_in_h=$ac_header_preproc
16835 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16836 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16839 if test $ac_cv_header_netinet_in_h = yes; then
16841 else
16842 ok_so_far=no
16847 if test $ok_so_far = yes; then
16848 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16849 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16850 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16851 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16855 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16856 else
16857 # Is the header compilable?
16858 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16859 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 $ac_includes_default
16868 #include <arpa/inet.h>
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_header_compiler=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_header_compiler=no
16889 rm -f conftest.$ac_objext conftest.$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16891 echo "${ECHO_T}$ac_header_compiler" >&6
16893 # Is the header present?
16894 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16895 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16896 cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16898 /* confdefs.h. */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include <arpa/inet.h>
16904 _ACEOF
16905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } >/dev/null; then
16913 if test -s conftest.err; then
16914 ac_cpp_err=$ac_c_preproc_warn_flag
16915 else
16916 ac_cpp_err=
16918 else
16919 ac_cpp_err=yes
16921 if test -z "$ac_cpp_err"; then
16922 ac_header_preproc=yes
16923 else
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_header_preproc=no
16929 rm -f conftest.err conftest.$ac_ext
16930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16931 echo "${ECHO_T}$ac_header_preproc" >&6
16933 # So? What about this header?
16934 case $ac_header_compiler:$ac_header_preproc in
16935 yes:no )
16936 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16937 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16939 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16941 cat <<\_ASBOX
16942 ## ------------------------------------ ##
16943 ## Report this to bug-autoconf@gnu.org. ##
16944 ## ------------------------------------ ##
16945 _ASBOX
16947 sed "s/^/$as_me: WARNING: /" >&2
16949 no:yes )
16950 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16951 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16953 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16955 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16957 cat <<\_ASBOX
16958 ## ------------------------------------ ##
16959 ## Report this to bug-autoconf@gnu.org. ##
16960 ## ------------------------------------ ##
16961 _ASBOX
16963 sed "s/^/$as_me: WARNING: /" >&2
16965 esac
16966 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16967 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16968 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971 ac_cv_header_arpa_inet_h=$ac_header_preproc
16973 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16974 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16977 if test $ac_cv_header_arpa_inet_h = yes; then
16979 else
16980 ok_so_far=no
16985 if test $ok_so_far = yes; then
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_INET_SOCKETS 1
16989 _ACEOF
16993 if test -f /usr/lpp/X11/bin/smt.exp; then
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_AIX_SMT_EXP 1
16997 _ACEOF
17001 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17002 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17003 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17004 echo "$as_me:$LINENO: result: yes" >&5
17005 echo "${ECHO_T}yes" >&6
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_DEV_PTMX 1
17009 _ACEOF
17011 else
17012 echo "$as_me:$LINENO: result: no" >&5
17013 echo "${ECHO_T}no" >&6
17016 echo "$as_me:$LINENO: checking for pid_t" >&5
17017 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17018 if test "${ac_cv_type_pid_t+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 else
17021 cat >conftest.$ac_ext <<_ACEOF
17022 #line $LINENO "configure"
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 $ac_includes_default
17030 main ()
17032 if ((pid_t *) 0)
17033 return 0;
17034 if (sizeof (pid_t))
17035 return 0;
17037 return 0;
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042 (eval $ac_compile) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -s conftest.$ac_objext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_type_pid_t=yes
17053 else
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 ac_cv_type_pid_t=no
17059 rm -f conftest.$ac_objext conftest.$ac_ext
17061 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17062 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17063 if test $ac_cv_type_pid_t = yes; then
17065 else
17067 cat >>confdefs.h <<_ACEOF
17068 #define pid_t int
17069 _ACEOF
17075 for ac_header in unistd.h vfork.h
17077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17079 echo "$as_me:$LINENO: checking for $ac_header" >&5
17080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17086 else
17087 # Is the header compilable?
17088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17092 /* confdefs.h. */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 $ac_includes_default
17098 #include <$ac_header>
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17102 (eval $ac_compile) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -s conftest.$ac_objext'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_header_compiler=yes
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 ac_header_compiler=no
17119 rm -f conftest.$ac_objext conftest.$ac_ext
17120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17121 echo "${ECHO_T}$ac_header_compiler" >&6
17123 # Is the header present?
17124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17126 cat >conftest.$ac_ext <<_ACEOF
17127 #line $LINENO "configure"
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 #include <$ac_header>
17134 _ACEOF
17135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17137 ac_status=$?
17138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } >/dev/null; then
17143 if test -s conftest.err; then
17144 ac_cpp_err=$ac_c_preproc_warn_flag
17145 else
17146 ac_cpp_err=
17148 else
17149 ac_cpp_err=yes
17151 if test -z "$ac_cpp_err"; then
17152 ac_header_preproc=yes
17153 else
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 ac_header_preproc=no
17159 rm -f conftest.err conftest.$ac_ext
17160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17161 echo "${ECHO_T}$ac_header_preproc" >&6
17163 # So? What about this header?
17164 case $ac_header_compiler:$ac_header_preproc in
17165 yes:no )
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17171 cat <<\_ASBOX
17172 ## ------------------------------------ ##
17173 ## Report this to bug-autoconf@gnu.org. ##
17174 ## ------------------------------------ ##
17175 _ASBOX
17177 sed "s/^/$as_me: WARNING: /" >&2
17179 no:yes )
17180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17187 cat <<\_ASBOX
17188 ## ------------------------------------ ##
17189 ## Report this to bug-autoconf@gnu.org. ##
17190 ## ------------------------------------ ##
17191 _ASBOX
17193 sed "s/^/$as_me: WARNING: /" >&2
17195 esac
17196 echo "$as_me:$LINENO: checking for $ac_header" >&5
17197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 eval "$as_ac_Header=$ac_header_preproc"
17203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17208 cat >>confdefs.h <<_ACEOF
17209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17210 _ACEOF
17214 done
17218 for ac_func in fork vfork
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17223 if eval "test \"\${$as_ac_var+set}\" = set"; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 cat >conftest.$ac_ext <<_ACEOF
17227 #line $LINENO "configure"
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 /* System header to define __stub macros and hopefully few prototypes,
17234 which can conflict with char $ac_func (); below.
17235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17236 <limits.h> exists even on freestanding compilers. */
17237 #ifdef __STDC__
17238 # include <limits.h>
17239 #else
17240 # include <assert.h>
17241 #endif
17242 /* Override any gcc2 internal prototype to avoid an error. */
17243 #ifdef __cplusplus
17244 extern "C"
17246 #endif
17247 /* We use char because int might match the return type of a gcc2
17248 builtin and then its argument prototype would still apply. */
17249 char $ac_func ();
17250 /* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17254 choke me
17255 #else
17256 char (*f) () = $ac_func;
17257 #endif
17258 #ifdef __cplusplus
17260 #endif
17263 main ()
17265 return f != $ac_func;
17267 return 0;
17269 _ACEOF
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17272 (eval $ac_link) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 eval "$as_ac_var=yes"
17283 else
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 eval "$as_ac_var=no"
17289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17293 if test `eval echo '${'$as_ac_var'}'` = yes; then
17294 cat >>confdefs.h <<_ACEOF
17295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17296 _ACEOF
17299 done
17301 if test "x$ac_cv_func_fork" = xyes; then
17302 echo "$as_me:$LINENO: checking for working fork" >&5
17303 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17304 if test "${ac_cv_func_fork_works+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307 if test "$cross_compiling" = yes; then
17308 ac_cv_func_fork_works=cross
17309 else
17310 cat >conftest.$ac_ext <<_ACEOF
17311 /* By Ruediger Kuhlmann. */
17312 #include <sys/types.h>
17313 #if HAVE_UNISTD_H
17314 # include <unistd.h>
17315 #endif
17316 /* Some systems only have a dummy stub for fork() */
17317 int main ()
17319 if (fork() < 0)
17320 exit (1);
17321 exit (0);
17323 _ACEOF
17324 rm -f conftest$ac_exeext
17325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17326 (eval $ac_link) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_func_fork_works=yes
17336 else
17337 echo "$as_me: program exited with status $ac_status" >&5
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ( exit $ac_status )
17342 ac_cv_func_fork_works=no
17344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17347 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17348 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17350 else
17351 ac_cv_func_fork_works=$ac_cv_func_fork
17353 if test "x$ac_cv_func_fork_works" = xcross; then
17354 case $host in
17355 *-*-amigaos* | *-*-msdosdjgpp*)
17356 # Override, as these systems have only a dummy fork() stub
17357 ac_cv_func_fork_works=no
17360 ac_cv_func_fork_works=yes
17362 esac
17363 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17364 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17366 ac_cv_func_vfork_works=$ac_cv_func_vfork
17367 if test "x$ac_cv_func_vfork" = xyes; then
17368 echo "$as_me:$LINENO: checking for working vfork" >&5
17369 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17370 if test "${ac_cv_func_vfork_works+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373 if test "$cross_compiling" = yes; then
17374 ac_cv_func_vfork_works=cross
17375 else
17376 cat >conftest.$ac_ext <<_ACEOF
17377 #line $LINENO "configure"
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Thanks to Paul Eggert for this test. */
17384 #include <stdio.h>
17385 #include <stdlib.h>
17386 #include <sys/types.h>
17387 #include <sys/stat.h>
17388 #include <sys/wait.h>
17389 #if HAVE_UNISTD_H
17390 # include <unistd.h>
17391 #endif
17392 #if HAVE_VFORK_H
17393 # include <vfork.h>
17394 #endif
17395 /* On some sparc systems, changes by the child to local and incoming
17396 argument registers are propagated back to the parent. The compiler
17397 is told about this with #include <vfork.h>, but some compilers
17398 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17399 static variable whose address is put into a register that is
17400 clobbered by the vfork. */
17401 static void
17402 #ifdef __cplusplus
17403 sparc_address_test (int arg)
17404 # else
17405 sparc_address_test (arg) int arg;
17406 #endif
17408 static pid_t child;
17409 if (!child) {
17410 child = vfork ();
17411 if (child < 0) {
17412 perror ("vfork");
17413 _exit(2);
17415 if (!child) {
17416 arg = getpid();
17417 write(-1, "", 0);
17418 _exit (arg);
17424 main ()
17426 pid_t parent = getpid ();
17427 pid_t child;
17429 sparc_address_test (0);
17431 child = vfork ();
17433 if (child == 0) {
17434 /* Here is another test for sparc vfork register problems. This
17435 test uses lots of local variables, at least as many local
17436 variables as main has allocated so far including compiler
17437 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17438 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17439 reuse the register of parent for one of the local variables,
17440 since it will think that parent can't possibly be used any more
17441 in this routine. Assigning to the local variable will thus
17442 munge parent in the parent process. */
17443 pid_t
17444 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17445 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17446 /* Convince the compiler that p..p7 are live; otherwise, it might
17447 use the same hardware register for all 8 local variables. */
17448 if (p != p1 || p != p2 || p != p3 || p != p4
17449 || p != p5 || p != p6 || p != p7)
17450 _exit(1);
17452 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17453 from child file descriptors. If the child closes a descriptor
17454 before it execs or exits, this munges the parent's descriptor
17455 as well. Test for this by closing stdout in the child. */
17456 _exit(close(fileno(stdout)) != 0);
17457 } else {
17458 int status;
17459 struct stat st;
17461 while (wait(&status) != child)
17463 exit(
17464 /* Was there some problem with vforking? */
17465 child < 0
17467 /* Did the child fail? (This shouldn't happen.) */
17468 || status
17470 /* Did the vfork/compiler bug occur? */
17471 || parent != getpid()
17473 /* Did the file descriptor bug occur? */
17474 || fstat(fileno(stdout), &st) != 0
17478 _ACEOF
17479 rm -f conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_func_vfork_works=yes
17491 else
17492 echo "$as_me: program exited with status $ac_status" >&5
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ( exit $ac_status )
17497 ac_cv_func_vfork_works=no
17499 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17502 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17503 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17506 if test "x$ac_cv_func_fork_works" = xcross; then
17507 ac_cv_func_vfork_works=ac_cv_func_vfork
17508 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17509 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17512 if test "x$ac_cv_func_vfork_works" = xyes; then
17514 cat >>confdefs.h <<\_ACEOF
17515 #define HAVE_WORKING_VFORK 1
17516 _ACEOF
17518 else
17520 cat >>confdefs.h <<\_ACEOF
17521 #define vfork fork
17522 _ACEOF
17525 if test "x$ac_cv_func_fork_works" = xyes; then
17527 cat >>confdefs.h <<\_ACEOF
17528 #define HAVE_WORKING_FORK 1
17529 _ACEOF
17534 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17535 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17536 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 cat >conftest.$ac_ext <<_ACEOF
17540 #line $LINENO "configure"
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <langinfo.h>
17548 main ()
17550 char* cs = nl_langinfo(CODESET);
17552 return 0;
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 emacs_cv_langinfo_codeset=yes
17568 else
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 emacs_cv_langinfo_codeset=no
17574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17577 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17578 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17579 if test $emacs_cv_langinfo_codeset = yes; then
17581 cat >>confdefs.h <<\_ACEOF
17582 #define HAVE_LANGINFO_CODESET 1
17583 _ACEOF
17587 echo "$as_me:$LINENO: checking for size_t" >&5
17588 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17589 if test "${ac_cv_type_size_t+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 else
17592 cat >conftest.$ac_ext <<_ACEOF
17593 #line $LINENO "configure"
17594 /* confdefs.h. */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 $ac_includes_default
17601 main ()
17603 if ((size_t *) 0)
17604 return 0;
17605 if (sizeof (size_t))
17606 return 0;
17608 return 0;
17610 _ACEOF
17611 rm -f conftest.$ac_objext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17613 (eval $ac_compile) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try='test -s conftest.$ac_objext'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 ac_cv_type_size_t=yes
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 ac_cv_type_size_t=no
17630 rm -f conftest.$ac_objext conftest.$ac_ext
17632 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17633 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17634 if test $ac_cv_type_size_t = yes; then
17636 cat >>confdefs.h <<_ACEOF
17637 #define HAVE_SIZE_T 1
17638 _ACEOF
17644 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17645 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17646 if test "${emacs_cv_c_restrict+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649 cat >conftest.$ac_ext <<_ACEOF
17650 #line $LINENO "configure"
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 void fred (int *restrict x);
17658 main ()
17662 return 0;
17664 _ACEOF
17665 rm -f conftest.$ac_objext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17667 (eval $ac_compile) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -s conftest.$ac_objext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 emacs_cv_c_restrict=yes
17678 else
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
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 void fred (int *__restrict x);
17691 main ()
17695 return 0;
17697 _ACEOF
17698 rm -f conftest.$ac_objext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700 (eval $ac_compile) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
17704 { ac_try='test -s conftest.$ac_objext'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 emacs_cv_c_restrict=__restrict
17711 else
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 emacs_cv_c_restrict=no
17717 rm -f conftest.$ac_objext conftest.$ac_ext
17719 rm -f conftest.$ac_objext conftest.$ac_ext
17721 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17722 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17723 case "$emacs_cv_c_restrict" in
17724 yes) emacs_restrict=restrict;;
17725 no) emacs_restrict="";;
17726 *) emacs_restrict="$emacs_cv_c_restrict";;
17727 esac
17728 if test "$emacs_restrict" != __restrict; then
17730 cat >>confdefs.h <<_ACEOF
17731 #define __restrict $emacs_restrict
17732 _ACEOF
17736 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17737 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17738 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741 cat >conftest.$ac_ext <<_ACEOF
17742 #line $LINENO "configure"
17743 /* confdefs.h. */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 void fred (int x[__restrict]);
17750 main ()
17754 return 0;
17756 _ACEOF
17757 rm -f conftest.$ac_objext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17759 (eval $ac_compile) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -s conftest.$ac_objext'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769 emacs_cv_c_restrict_arr=yes
17770 else
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17774 emacs_cv_c_restrict_arr=no
17776 rm -f conftest.$ac_objext conftest.$ac_ext
17778 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17779 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17780 if test "$emacs_cv_c_restrict_arr" = yes; then
17782 cat >>confdefs.h <<\_ACEOF
17783 #define __restrict_arr __restrict
17784 _ACEOF
17789 for ac_header in nlist.h
17791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17793 echo "$as_me:$LINENO: checking for $ac_header" >&5
17794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17800 else
17801 # Is the header compilable?
17802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17804 cat >conftest.$ac_ext <<_ACEOF
17805 #line $LINENO "configure"
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17812 #include <$ac_header>
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_header_compiler=yes
17827 else
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 ac_header_compiler=no
17833 rm -f conftest.$ac_objext conftest.$ac_ext
17834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17835 echo "${ECHO_T}$ac_header_compiler" >&6
17837 # Is the header present?
17838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17840 cat >conftest.$ac_ext <<_ACEOF
17841 #line $LINENO "configure"
17842 /* confdefs.h. */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 #include <$ac_header>
17848 _ACEOF
17849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17851 ac_status=$?
17852 grep -v '^ *+' conftest.er1 >conftest.err
17853 rm -f conftest.er1
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } >/dev/null; then
17857 if test -s conftest.err; then
17858 ac_cpp_err=$ac_c_preproc_warn_flag
17859 else
17860 ac_cpp_err=
17862 else
17863 ac_cpp_err=yes
17865 if test -z "$ac_cpp_err"; then
17866 ac_header_preproc=yes
17867 else
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_header_preproc=no
17873 rm -f conftest.err conftest.$ac_ext
17874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17875 echo "${ECHO_T}$ac_header_preproc" >&6
17877 # So? What about this header?
17878 case $ac_header_compiler:$ac_header_preproc in
17879 yes:no )
17880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17885 cat <<\_ASBOX
17886 ## ------------------------------------ ##
17887 ## Report this to bug-autoconf@gnu.org. ##
17888 ## ------------------------------------ ##
17889 _ASBOX
17891 sed "s/^/$as_me: WARNING: /" >&2
17893 no:yes )
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17901 cat <<\_ASBOX
17902 ## ------------------------------------ ##
17903 ## Report this to bug-autoconf@gnu.org. ##
17904 ## ------------------------------------ ##
17905 _ASBOX
17907 sed "s/^/$as_me: WARNING: /" >&2
17909 esac
17910 echo "$as_me:$LINENO: checking for $ac_header" >&5
17911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 else
17915 eval "$as_ac_Header=$ac_header_preproc"
17917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924 _ACEOF
17926 cat >>confdefs.h <<\_ACEOF
17927 #define NLIST_STRUCT 1
17928 _ACEOF
17932 done
17937 # Set up the CFLAGS for real compilation, so we can substitute it.
17938 CFLAGS="$REAL_CFLAGS"
17939 CPPFLAGS="$REAL_CPPFLAGS"
17941 #### Find out which version of Emacs this is.
17942 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17943 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17944 if test x"${version}" = x; then
17945 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17946 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17947 { (exit 1); exit 1; }; }
17950 ### Specify what sort of things we'll be editing into Makefile and config.h.
17951 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17987 cat >>confdefs.h <<_ACEOF
17988 #define EMACS_CONFIGURATION "${canonical}"
17989 _ACEOF
17992 cat >>confdefs.h <<_ACEOF
17993 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17994 _ACEOF
17997 cat >>confdefs.h <<_ACEOF
17998 #define config_machfile "${machfile}"
17999 _ACEOF
18002 cat >>confdefs.h <<_ACEOF
18003 #define config_opsysfile "${opsysfile}"
18004 _ACEOF
18007 cat >>confdefs.h <<_ACEOF
18008 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18009 _ACEOF
18012 cat >>confdefs.h <<_ACEOF
18013 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18014 _ACEOF
18017 cat >>confdefs.h <<_ACEOF
18018 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18019 _ACEOF
18022 cat >>confdefs.h <<_ACEOF
18023 #define UNEXEC_SRC ${UNEXEC_SRC}
18024 _ACEOF
18027 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_X_WINDOWS 1
18031 _ACEOF
18034 if test "${USE_X_TOOLKIT}" != "none" ; then
18036 cat >>confdefs.h <<\_ACEOF
18037 #define USE_X_TOOLKIT 1
18038 _ACEOF
18041 if test "${HAVE_X11}" = "yes" ; then
18043 cat >>confdefs.h <<\_ACEOF
18044 #define HAVE_X11 1
18045 _ACEOF
18048 if test "${HAVE_XFREE386}" = "yes" ; then
18050 cat >>confdefs.h <<\_ACEOF
18051 #define HAVE_XFREE386 1
18052 _ACEOF
18055 if test "${HAVE_MENUS}" = "yes" ; then
18057 cat >>confdefs.h <<\_ACEOF
18058 #define HAVE_MENUS 1
18059 _ACEOF
18062 if test "${GNU_MALLOC}" = "yes" ; then
18064 cat >>confdefs.h <<\_ACEOF
18065 #define GNU_MALLOC 1
18066 _ACEOF
18069 if test "${REL_ALLOC}" = "yes" ; then
18071 cat >>confdefs.h <<\_ACEOF
18072 #define REL_ALLOC 1
18073 _ACEOF
18081 #### Report on what we decided to do.
18082 #### Report GTK as a toolkit, even if it doesn't use Xt.
18083 #### It makes printing result more understandable as using GTK sets
18084 #### toolkit_scroll_bars to yes by default.
18085 if test "${HAVE_GTK}" = "yes"; then
18086 USE_X_TOOLKIT=GTK
18089 echo "
18090 Configured for \`${canonical}'.
18092 Where should the build process find the source code? ${srcdir}
18093 What operating system and machine description files should Emacs use?
18094 \`${opsysfile}' and \`${machfile}'
18095 What compiler should emacs be built with? ${CC} ${CFLAGS}
18096 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18097 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18098 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18099 What window system should Emacs use? ${window_system}
18100 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18102 if test -n "${x_includes}"; then
18103 echo " Where do we find X Windows header files? ${x_includes}"
18104 else
18105 echo " Where do we find X Windows header files? Standard dirs"
18107 if test -n "${x_libraries}"; then
18108 echo " Where do we find X Windows libraries? ${x_libraries}"
18109 else
18110 echo " Where do we find X Windows libraries? Standard dirs"
18113 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18114 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18115 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18116 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18117 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18118 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18119 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18120 echo
18122 # Remove any trailing slashes in these variables.
18123 test "${prefix}" != NONE &&
18124 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18125 test "${exec_prefix}" != NONE &&
18126 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18128 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18129 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18130 ## from Makefile.c can correctly provide the arg `-traditional' to the
18131 ## C preprocessor.
18133 cat >conftest.$ac_ext <<_ACEOF
18134 #line $LINENO "configure"
18135 /* confdefs.h. */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 yes..yes
18141 _ACEOF
18142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18143 $EGREP "yes..yes" >/dev/null 2>&1; then
18144 CPP_NEED_TRADITIONAL=no
18145 else
18146 CPP_NEED_TRADITIONAL=yes
18148 rm -f conftest*
18151 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"
18152 ac_config_commands="$ac_config_commands default"
18153 cat >confcache <<\_ACEOF
18154 # This file is a shell script that caches the results of configure
18155 # tests run on this system so they can be shared between configure
18156 # scripts and configure runs, see configure's option --config-cache.
18157 # It is not useful on other systems. If it contains results you don't
18158 # want to keep, you may remove or edit it.
18160 # config.status only pays attention to the cache file if you give it
18161 # the --recheck option to rerun configure.
18163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18165 # following values.
18167 _ACEOF
18169 # The following way of writing the cache mishandles newlines in values,
18170 # but we know of no workaround that is simple, portable, and efficient.
18171 # So, don't put newlines in cache variables' values.
18172 # Ultrix sh set writes to stderr and can't be redirected directly,
18173 # and sets the high bit in the cache file unless we assign to the vars.
18175 (set) 2>&1 |
18176 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18177 *ac_space=\ *)
18178 # `set' does not quote correctly, so add quotes (double-quote
18179 # substitution turns \\\\ into \\, and sed turns \\ into \).
18180 sed -n \
18181 "s/'/'\\\\''/g;
18182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18185 # `set' quotes correctly as required by POSIX, so do not add quotes.
18186 sed -n \
18187 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18189 esac;
18191 sed '
18192 t clear
18193 : clear
18194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18195 t end
18196 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18197 : end' >>confcache
18198 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18199 if test -w $cache_file; then
18200 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18201 cat confcache >$cache_file
18202 else
18203 echo "not updating unwritable cache $cache_file"
18206 rm -f confcache
18208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18209 # Let make expand exec_prefix.
18210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18212 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18213 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18214 # trailing colons and then remove the whole line if VPATH becomes empty
18215 # (actually we leave an empty line to preserve line numbers).
18216 if test "x$srcdir" = x.; then
18217 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18218 s/:*\$(srcdir):*/:/;
18219 s/:*\${srcdir}:*/:/;
18220 s/:*@srcdir@:*/:/;
18221 s/^\([^=]*=[ ]*\):*/\1/;
18222 s/:*$//;
18223 s/^[^=]*=[ ]*$//;
18227 DEFS=-DHAVE_CONFIG_H
18229 ac_libobjs=
18230 ac_ltlibobjs=
18231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18232 # 1. Remove the extension, and $U if already installed.
18233 ac_i=`echo "$ac_i" |
18234 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18235 # 2. Add them.
18236 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18237 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18238 done
18239 LIBOBJS=$ac_libobjs
18241 LTLIBOBJS=$ac_ltlibobjs
18245 : ${CONFIG_STATUS=./config.status}
18246 ac_clean_files_save=$ac_clean_files
18247 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18248 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18249 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18250 cat >$CONFIG_STATUS <<_ACEOF
18251 #! $SHELL
18252 # Generated by $as_me.
18253 # Run this file to recreate the current configuration.
18254 # Compiler output produced by configure, useful for debugging
18255 # configure, is in config.log if it exists.
18257 debug=false
18258 ac_cs_recheck=false
18259 ac_cs_silent=false
18260 SHELL=\${CONFIG_SHELL-$SHELL}
18261 _ACEOF
18263 cat >>$CONFIG_STATUS <<\_ACEOF
18264 ## --------------------- ##
18265 ## M4sh Initialization. ##
18266 ## --------------------- ##
18268 # Be Bourne compatible
18269 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18270 emulate sh
18271 NULLCMD=:
18272 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18273 # is contrary to our usage. Disable this feature.
18274 alias -g '${1+"$@"}'='"$@"'
18275 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18276 set -o posix
18279 # Support unset when possible.
18280 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18281 as_unset=unset
18282 else
18283 as_unset=false
18287 # Work around bugs in pre-3.0 UWIN ksh.
18288 $as_unset ENV MAIL MAILPATH
18289 PS1='$ '
18290 PS2='> '
18291 PS4='+ '
18293 # NLS nuisances.
18294 for as_var in \
18295 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18296 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18297 LC_TELEPHONE LC_TIME
18299 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18300 eval $as_var=C; export $as_var
18301 else
18302 $as_unset $as_var
18304 done
18306 # Required to use basename.
18307 if expr a : '\(a\)' >/dev/null 2>&1; then
18308 as_expr=expr
18309 else
18310 as_expr=false
18313 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18314 as_basename=basename
18315 else
18316 as_basename=false
18320 # Name of the executable.
18321 as_me=`$as_basename "$0" ||
18322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18323 X"$0" : 'X\(//\)$' \| \
18324 X"$0" : 'X\(/\)$' \| \
18325 . : '\(.\)' 2>/dev/null ||
18326 echo X/"$0" |
18327 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18328 /^X\/\(\/\/\)$/{ s//\1/; q; }
18329 /^X\/\(\/\).*/{ s//\1/; q; }
18330 s/.*/./; q'`
18333 # PATH needs CR, and LINENO needs CR and PATH.
18334 # Avoid depending upon Character Ranges.
18335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18338 as_cr_digits='0123456789'
18339 as_cr_alnum=$as_cr_Letters$as_cr_digits
18341 # The user is always right.
18342 if test "${PATH_SEPARATOR+set}" != set; then
18343 echo "#! /bin/sh" >conf$$.sh
18344 echo "exit 0" >>conf$$.sh
18345 chmod +x conf$$.sh
18346 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18347 PATH_SEPARATOR=';'
18348 else
18349 PATH_SEPARATOR=:
18351 rm -f conf$$.sh
18355 as_lineno_1=$LINENO
18356 as_lineno_2=$LINENO
18357 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18358 test "x$as_lineno_1" != "x$as_lineno_2" &&
18359 test "x$as_lineno_3" = "x$as_lineno_2" || {
18360 # Find who we are. Look in the path if we contain no path at all
18361 # relative or not.
18362 case $0 in
18363 *[\\/]* ) as_myself=$0 ;;
18364 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18365 for as_dir in $PATH
18367 IFS=$as_save_IFS
18368 test -z "$as_dir" && as_dir=.
18369 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18370 done
18373 esac
18374 # We did not find ourselves, most probably we were run as `sh COMMAND'
18375 # in which case we are not to be found in the path.
18376 if test "x$as_myself" = x; then
18377 as_myself=$0
18379 if test ! -f "$as_myself"; then
18380 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18381 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18382 { (exit 1); exit 1; }; }
18384 case $CONFIG_SHELL in
18386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18387 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18389 IFS=$as_save_IFS
18390 test -z "$as_dir" && as_dir=.
18391 for as_base in sh bash ksh sh5; do
18392 case $as_dir in
18394 if ("$as_dir/$as_base" -c '
18395 as_lineno_1=$LINENO
18396 as_lineno_2=$LINENO
18397 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18398 test "x$as_lineno_1" != "x$as_lineno_2" &&
18399 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18400 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18401 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18402 CONFIG_SHELL=$as_dir/$as_base
18403 export CONFIG_SHELL
18404 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18405 fi;;
18406 esac
18407 done
18408 done
18410 esac
18412 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18413 # uniformly replaced by the line number. The first 'sed' inserts a
18414 # line-number line before each line; the second 'sed' does the real
18415 # work. The second script uses 'N' to pair each line-number line
18416 # with the numbered line, and appends trailing '-' during
18417 # substitution so that $LINENO is not a special case at line end.
18418 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18419 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18420 sed '=' <$as_myself |
18421 sed '
18423 s,$,-,
18424 : loop
18425 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18426 t loop
18427 s,-$,,
18428 s,^['$as_cr_digits']*\n,,
18429 ' >$as_me.lineno &&
18430 chmod +x $as_me.lineno ||
18431 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18432 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18433 { (exit 1); exit 1; }; }
18435 # Don't try to exec as it changes $[0], causing all sort of problems
18436 # (the dirname of $[0] is not the place where we might find the
18437 # original and so on. Autoconf is especially sensible to this).
18438 . ./$as_me.lineno
18439 # Exit status is that of the last command.
18440 exit
18444 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18445 *c*,-n*) ECHO_N= ECHO_C='
18446 ' ECHO_T=' ' ;;
18447 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18448 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18449 esac
18451 if expr a : '\(a\)' >/dev/null 2>&1; then
18452 as_expr=expr
18453 else
18454 as_expr=false
18457 rm -f conf$$ conf$$.exe conf$$.file
18458 echo >conf$$.file
18459 if ln -s conf$$.file conf$$ 2>/dev/null; then
18460 # We could just check for DJGPP; but this test a) works b) is more generic
18461 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18462 if test -f conf$$.exe; then
18463 # Don't use ln at all; we don't have any links
18464 as_ln_s='cp -p'
18465 else
18466 as_ln_s='ln -s'
18468 elif ln conf$$.file conf$$ 2>/dev/null; then
18469 as_ln_s=ln
18470 else
18471 as_ln_s='cp -p'
18473 rm -f conf$$ conf$$.exe conf$$.file
18475 if mkdir -p . 2>/dev/null; then
18476 as_mkdir_p=:
18477 else
18478 as_mkdir_p=false
18481 as_executable_p="test -f"
18483 # Sed expression to map a string onto a valid CPP name.
18484 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18486 # Sed expression to map a string onto a valid variable name.
18487 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18490 # IFS
18491 # We need space, tab and new line, in precisely that order.
18492 as_nl='
18494 IFS=" $as_nl"
18496 # CDPATH.
18497 $as_unset CDPATH
18499 exec 6>&1
18501 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18502 # report actual input values of CONFIG_FILES etc. instead of their
18503 # values after options handling. Logging --version etc. is OK.
18504 exec 5>>config.log
18506 echo
18507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18508 ## Running $as_me. ##
18509 _ASBOX
18510 } >&5
18511 cat >&5 <<_CSEOF
18513 This file was extended by $as_me, which was
18514 generated by GNU Autoconf 2.57. Invocation command line was
18516 CONFIG_FILES = $CONFIG_FILES
18517 CONFIG_HEADERS = $CONFIG_HEADERS
18518 CONFIG_LINKS = $CONFIG_LINKS
18519 CONFIG_COMMANDS = $CONFIG_COMMANDS
18520 $ $0 $@
18522 _CSEOF
18523 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18524 echo >&5
18525 _ACEOF
18527 # Files that config.status was made for.
18528 if test -n "$ac_config_files"; then
18529 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18532 if test -n "$ac_config_headers"; then
18533 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18536 if test -n "$ac_config_links"; then
18537 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18540 if test -n "$ac_config_commands"; then
18541 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18544 cat >>$CONFIG_STATUS <<\_ACEOF
18546 ac_cs_usage="\
18547 \`$as_me' instantiates files from templates according to the
18548 current configuration.
18550 Usage: $0 [OPTIONS] [FILE]...
18552 -h, --help print this help, then exit
18553 -V, --version print version number, then exit
18554 -q, --quiet do not print progress messages
18555 -d, --debug don't remove temporary files
18556 --recheck update $as_me by reconfiguring in the same conditions
18557 --file=FILE[:TEMPLATE]
18558 instantiate the configuration file FILE
18559 --header=FILE[:TEMPLATE]
18560 instantiate the configuration header FILE
18562 Configuration files:
18563 $config_files
18565 Configuration headers:
18566 $config_headers
18568 Configuration commands:
18569 $config_commands
18571 Report bugs to <bug-autoconf@gnu.org>."
18572 _ACEOF
18574 cat >>$CONFIG_STATUS <<_ACEOF
18575 ac_cs_version="\\
18576 config.status
18577 configured by $0, generated by GNU Autoconf 2.57,
18578 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18580 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18581 Free Software Foundation, Inc.
18582 This config.status script is free software; the Free Software Foundation
18583 gives unlimited permission to copy, distribute and modify it."
18584 srcdir=$srcdir
18585 INSTALL="$INSTALL"
18586 _ACEOF
18588 cat >>$CONFIG_STATUS <<\_ACEOF
18589 # If no file are specified by the user, then we need to provide default
18590 # value. By we need to know if files were specified by the user.
18591 ac_need_defaults=:
18592 while test $# != 0
18594 case $1 in
18595 --*=*)
18596 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18597 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18598 ac_shift=:
18601 ac_option=$1
18602 ac_optarg=$2
18603 ac_shift=shift
18605 *) # This is not an option, so the user has probably given explicit
18606 # arguments.
18607 ac_option=$1
18608 ac_need_defaults=false;;
18609 esac
18611 case $ac_option in
18612 # Handling of the options.
18613 _ACEOF
18614 cat >>$CONFIG_STATUS <<\_ACEOF
18615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18616 ac_cs_recheck=: ;;
18617 --version | --vers* | -V )
18618 echo "$ac_cs_version"; exit 0 ;;
18619 --he | --h)
18620 # Conflict between --help and --header
18621 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18622 Try \`$0 --help' for more information." >&5
18623 echo "$as_me: error: ambiguous option: $1
18624 Try \`$0 --help' for more information." >&2;}
18625 { (exit 1); exit 1; }; };;
18626 --help | --hel | -h )
18627 echo "$ac_cs_usage"; exit 0 ;;
18628 --debug | --d* | -d )
18629 debug=: ;;
18630 --file | --fil | --fi | --f )
18631 $ac_shift
18632 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18633 ac_need_defaults=false;;
18634 --header | --heade | --head | --hea )
18635 $ac_shift
18636 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18637 ac_need_defaults=false;;
18638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18639 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18640 ac_cs_silent=: ;;
18642 # This is an error.
18643 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18644 Try \`$0 --help' for more information." >&5
18645 echo "$as_me: error: unrecognized option: $1
18646 Try \`$0 --help' for more information." >&2;}
18647 { (exit 1); exit 1; }; } ;;
18649 *) ac_config_targets="$ac_config_targets $1" ;;
18651 esac
18652 shift
18653 done
18655 ac_configure_extra_args=
18657 if $ac_cs_silent; then
18658 exec 6>/dev/null
18659 ac_configure_extra_args="$ac_configure_extra_args --silent"
18662 _ACEOF
18663 cat >>$CONFIG_STATUS <<_ACEOF
18664 if \$ac_cs_recheck; then
18665 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18666 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18669 _ACEOF
18671 cat >>$CONFIG_STATUS <<_ACEOF
18673 # INIT-COMMANDS section.
18676 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18678 _ACEOF
18682 cat >>$CONFIG_STATUS <<\_ACEOF
18683 for ac_config_target in $ac_config_targets
18685 case "$ac_config_target" in
18686 # Handling of arguments.
18687 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18688 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18689 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18690 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18691 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18692 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18693 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18694 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18695 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18696 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18697 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18698 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18699 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18700 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18701 { (exit 1); exit 1; }; };;
18702 esac
18703 done
18705 # If the user did not use the arguments to specify the items to instantiate,
18706 # then the envvar interface is used. Set only those that are not.
18707 # We use the long form for the default assignment because of an extremely
18708 # bizarre bug on SunOS 4.1.3.
18709 if $ac_need_defaults; then
18710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18715 # Have a temporary directory for convenience. Make it in the build tree
18716 # simply because there is no reason to put it here, and in addition,
18717 # creating and moving files from /tmp can sometimes cause problems.
18718 # Create a temporary directory, and hook for its removal unless debugging.
18719 $debug ||
18721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18722 trap '{ (exit 1); exit 1; }' 1 2 13 15
18725 # Create a (secure) tmp directory for tmp files.
18728 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18729 test -n "$tmp" && test -d "$tmp"
18730 } ||
18732 tmp=./confstat$$-$RANDOM
18733 (umask 077 && mkdir $tmp)
18734 } ||
18736 echo "$me: cannot create a temporary directory in ." >&2
18737 { (exit 1); exit 1; }
18740 _ACEOF
18742 cat >>$CONFIG_STATUS <<_ACEOF
18745 # CONFIG_FILES section.
18748 # No need to generate the scripts if there are no CONFIG_FILES.
18749 # This happens for instance when ./config.status config.h
18750 if test -n "\$CONFIG_FILES"; then
18751 # Protect against being on the right side of a sed subst in config.status.
18752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18754 s,@SHELL@,$SHELL,;t t
18755 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18756 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18757 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18758 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18759 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18760 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18761 s,@exec_prefix@,$exec_prefix,;t t
18762 s,@prefix@,$prefix,;t t
18763 s,@program_transform_name@,$program_transform_name,;t t
18764 s,@bindir@,$bindir,;t t
18765 s,@sbindir@,$sbindir,;t t
18766 s,@libexecdir@,$libexecdir,;t t
18767 s,@datadir@,$datadir,;t t
18768 s,@sysconfdir@,$sysconfdir,;t t
18769 s,@sharedstatedir@,$sharedstatedir,;t t
18770 s,@localstatedir@,$localstatedir,;t t
18771 s,@libdir@,$libdir,;t t
18772 s,@includedir@,$includedir,;t t
18773 s,@oldincludedir@,$oldincludedir,;t t
18774 s,@infodir@,$infodir,;t t
18775 s,@mandir@,$mandir,;t t
18776 s,@build_alias@,$build_alias,;t t
18777 s,@host_alias@,$host_alias,;t t
18778 s,@target_alias@,$target_alias,;t t
18779 s,@DEFS@,$DEFS,;t t
18780 s,@ECHO_C@,$ECHO_C,;t t
18781 s,@ECHO_N@,$ECHO_N,;t t
18782 s,@ECHO_T@,$ECHO_T,;t t
18783 s,@LIBS@,$LIBS,;t t
18784 s,@build@,$build,;t t
18785 s,@build_cpu@,$build_cpu,;t t
18786 s,@build_vendor@,$build_vendor,;t t
18787 s,@build_os@,$build_os,;t t
18788 s,@host@,$host,;t t
18789 s,@host_cpu@,$host_cpu,;t t
18790 s,@host_vendor@,$host_vendor,;t t
18791 s,@host_os@,$host_os,;t t
18792 s,@CC@,$CC,;t t
18793 s,@CFLAGS@,$CFLAGS,;t t
18794 s,@LDFLAGS@,$LDFLAGS,;t t
18795 s,@CPPFLAGS@,$CPPFLAGS,;t t
18796 s,@ac_ct_CC@,$ac_ct_CC,;t t
18797 s,@EXEEXT@,$EXEEXT,;t t
18798 s,@OBJEXT@,$OBJEXT,;t t
18799 s,@LN_S@,$LN_S,;t t
18800 s,@CPP@,$CPP,;t t
18801 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18802 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18803 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18804 s,@RANLIB@,$RANLIB,;t t
18805 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18806 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18807 s,@EGREP@,$EGREP,;t t
18808 s,@LIBSOUND@,$LIBSOUND,;t t
18809 s,@SET_MAKE@,$SET_MAKE,;t t
18810 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18811 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18812 s,@GTK_LIBS@,$GTK_LIBS,;t t
18813 s,@ALLOCA@,$ALLOCA,;t t
18814 s,@liblockfile@,$liblockfile,;t t
18815 s,@LIBOBJS@,$LIBOBJS,;t t
18816 s,@NEED_SETGID@,$NEED_SETGID,;t t
18817 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18818 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18819 s,@version@,$version,;t t
18820 s,@configuration@,$configuration,;t t
18821 s,@canonical@,$canonical,;t t
18822 s,@srcdir@,$srcdir,;t t
18823 s,@lispdir@,$lispdir,;t t
18824 s,@locallisppath@,$locallisppath,;t t
18825 s,@lisppath@,$lisppath,;t t
18826 s,@x_default_search_path@,$x_default_search_path,;t t
18827 s,@etcdir@,$etcdir,;t t
18828 s,@archlibdir@,$archlibdir,;t t
18829 s,@docdir@,$docdir,;t t
18830 s,@bitmapdir@,$bitmapdir,;t t
18831 s,@gamedir@,$gamedir,;t t
18832 s,@gameuser@,$gameuser,;t t
18833 s,@c_switch_system@,$c_switch_system,;t t
18834 s,@c_switch_machine@,$c_switch_machine,;t t
18835 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18836 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18837 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18838 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18839 s,@machfile@,$machfile,;t t
18840 s,@opsysfile@,$opsysfile,;t t
18841 s,@carbon_appdir@,$carbon_appdir,;t t
18842 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18843 CEOF
18845 _ACEOF
18847 cat >>$CONFIG_STATUS <<\_ACEOF
18848 # Split the substitutions into bite-sized pieces for seds with
18849 # small command number limits, like on Digital OSF/1 and HP-UX.
18850 ac_max_sed_lines=48
18851 ac_sed_frag=1 # Number of current file.
18852 ac_beg=1 # First line for current file.
18853 ac_end=$ac_max_sed_lines # Line after last line for current file.
18854 ac_more_lines=:
18855 ac_sed_cmds=
18856 while $ac_more_lines; do
18857 if test $ac_beg -gt 1; then
18858 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18859 else
18860 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18862 if test ! -s $tmp/subs.frag; then
18863 ac_more_lines=false
18864 else
18865 # The purpose of the label and of the branching condition is to
18866 # speed up the sed processing (if there are no `@' at all, there
18867 # is no need to browse any of the substitutions).
18868 # These are the two extra sed commands mentioned above.
18869 (echo ':t
18870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18871 if test -z "$ac_sed_cmds"; then
18872 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18873 else
18874 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18876 ac_sed_frag=`expr $ac_sed_frag + 1`
18877 ac_beg=$ac_end
18878 ac_end=`expr $ac_end + $ac_max_sed_lines`
18880 done
18881 if test -z "$ac_sed_cmds"; then
18882 ac_sed_cmds=cat
18884 fi # test -n "$CONFIG_FILES"
18886 _ACEOF
18887 cat >>$CONFIG_STATUS <<\_ACEOF
18888 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18890 case $ac_file in
18891 - | *:- | *:-:* ) # input from stdin
18892 cat >$tmp/stdin
18893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18897 * ) ac_file_in=$ac_file.in ;;
18898 esac
18900 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18901 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18903 X"$ac_file" : 'X\(//\)[^/]' \| \
18904 X"$ac_file" : 'X\(//\)$' \| \
18905 X"$ac_file" : 'X\(/\)' \| \
18906 . : '\(.\)' 2>/dev/null ||
18907 echo X"$ac_file" |
18908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18910 /^X\(\/\/\)$/{ s//\1/; q; }
18911 /^X\(\/\).*/{ s//\1/; q; }
18912 s/.*/./; q'`
18913 { if $as_mkdir_p; then
18914 mkdir -p "$ac_dir"
18915 else
18916 as_dir="$ac_dir"
18917 as_dirs=
18918 while test ! -d "$as_dir"; do
18919 as_dirs="$as_dir $as_dirs"
18920 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18922 X"$as_dir" : 'X\(//\)[^/]' \| \
18923 X"$as_dir" : 'X\(//\)$' \| \
18924 X"$as_dir" : 'X\(/\)' \| \
18925 . : '\(.\)' 2>/dev/null ||
18926 echo X"$as_dir" |
18927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18929 /^X\(\/\/\)$/{ s//\1/; q; }
18930 /^X\(\/\).*/{ s//\1/; q; }
18931 s/.*/./; q'`
18932 done
18933 test ! -n "$as_dirs" || mkdir $as_dirs
18934 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18935 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18936 { (exit 1); exit 1; }; }; }
18938 ac_builddir=.
18940 if test "$ac_dir" != .; then
18941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18942 # A "../" for each directory in $ac_dir_suffix.
18943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18944 else
18945 ac_dir_suffix= ac_top_builddir=
18948 case $srcdir in
18949 .) # No --srcdir option. We are building in place.
18950 ac_srcdir=.
18951 if test -z "$ac_top_builddir"; then
18952 ac_top_srcdir=.
18953 else
18954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18955 fi ;;
18956 [\\/]* | ?:[\\/]* ) # Absolute path.
18957 ac_srcdir=$srcdir$ac_dir_suffix;
18958 ac_top_srcdir=$srcdir ;;
18959 *) # Relative path.
18960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18962 esac
18963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18964 # absolute.
18965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18971 case $INSTALL in
18972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18973 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18974 esac
18976 if test x"$ac_file" != x-; then
18977 { echo "$as_me:$LINENO: creating $ac_file" >&5
18978 echo "$as_me: creating $ac_file" >&6;}
18979 rm -f "$ac_file"
18981 # Let's still pretend it is `configure' which instantiates (i.e., don't
18982 # use $as_me), people would be surprised to read:
18983 # /* config.h. Generated by config.status. */
18984 if test x"$ac_file" = x-; then
18985 configure_input=
18986 else
18987 configure_input="$ac_file. "
18989 configure_input=$configure_input"Generated from `echo $ac_file_in |
18990 sed 's,.*/,,'` by configure."
18992 # First look for the input files in the build tree, otherwise in the
18993 # src tree.
18994 ac_file_inputs=`IFS=:
18995 for f in $ac_file_in; do
18996 case $f in
18997 -) echo $tmp/stdin ;;
18998 [\\/$]*)
18999 # Absolute (can't be DOS-style, as IFS=:)
19000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19001 echo "$as_me: error: cannot find input file: $f" >&2;}
19002 { (exit 1); exit 1; }; }
19003 echo $f;;
19004 *) # Relative
19005 if test -f "$f"; then
19006 # Build tree
19007 echo $f
19008 elif test -f "$srcdir/$f"; then
19009 # Source tree
19010 echo $srcdir/$f
19011 else
19012 # /dev/null tree
19013 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19014 echo "$as_me: error: cannot find input file: $f" >&2;}
19015 { (exit 1); exit 1; }; }
19016 fi;;
19017 esac
19018 done` || { (exit 1); exit 1; }
19019 _ACEOF
19020 cat >>$CONFIG_STATUS <<_ACEOF
19021 sed "$ac_vpsub
19022 $extrasub
19023 _ACEOF
19024 cat >>$CONFIG_STATUS <<\_ACEOF
19026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19027 s,@configure_input@,$configure_input,;t t
19028 s,@srcdir@,$ac_srcdir,;t t
19029 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19030 s,@top_srcdir@,$ac_top_srcdir,;t t
19031 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19032 s,@builddir@,$ac_builddir,;t t
19033 s,@abs_builddir@,$ac_abs_builddir,;t t
19034 s,@top_builddir@,$ac_top_builddir,;t t
19035 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19036 s,@INSTALL@,$ac_INSTALL,;t t
19037 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19038 rm -f $tmp/stdin
19039 if test x"$ac_file" != x-; then
19040 mv $tmp/out $ac_file
19041 else
19042 cat $tmp/out
19043 rm -f $tmp/out
19046 done
19047 _ACEOF
19048 cat >>$CONFIG_STATUS <<\_ACEOF
19051 # CONFIG_HEADER section.
19054 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19055 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19057 # ac_d sets the value in "#define NAME VALUE" lines.
19058 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19059 ac_dB='[ ].*$,\1#\2'
19060 ac_dC=' '
19061 ac_dD=',;t'
19062 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19063 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19064 ac_uB='$,\1#\2define\3'
19065 ac_uC=' '
19066 ac_uD=',;t'
19068 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19069 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19070 case $ac_file in
19071 - | *:- | *:-:* ) # input from stdin
19072 cat >$tmp/stdin
19073 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19074 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19075 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19077 * ) ac_file_in=$ac_file.in ;;
19078 esac
19080 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19081 echo "$as_me: creating $ac_file" >&6;}
19083 # First look for the input files in the build tree, otherwise in the
19084 # src tree.
19085 ac_file_inputs=`IFS=:
19086 for f in $ac_file_in; do
19087 case $f in
19088 -) echo $tmp/stdin ;;
19089 [\\/$]*)
19090 # Absolute (can't be DOS-style, as IFS=:)
19091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19092 echo "$as_me: error: cannot find input file: $f" >&2;}
19093 { (exit 1); exit 1; }; }
19094 echo $f;;
19095 *) # Relative
19096 if test -f "$f"; then
19097 # Build tree
19098 echo $f
19099 elif test -f "$srcdir/$f"; then
19100 # Source tree
19101 echo $srcdir/$f
19102 else
19103 # /dev/null tree
19104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19105 echo "$as_me: error: cannot find input file: $f" >&2;}
19106 { (exit 1); exit 1; }; }
19107 fi;;
19108 esac
19109 done` || { (exit 1); exit 1; }
19110 # Remove the trailing spaces.
19111 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19113 _ACEOF
19115 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19116 # `conftest.undefs', that substitutes the proper values into
19117 # config.h.in to produce config.h. The first handles `#define'
19118 # templates, and the second `#undef' templates.
19119 # And first: Protect against being on the right side of a sed subst in
19120 # config.status. Protect against being in an unquoted here document
19121 # in config.status.
19122 rm -f conftest.defines conftest.undefs
19123 # Using a here document instead of a string reduces the quoting nightmare.
19124 # Putting comments in sed scripts is not portable.
19126 # `end' is used to avoid that the second main sed command (meant for
19127 # 0-ary CPP macros) applies to n-ary macro definitions.
19128 # See the Autoconf documentation for `clear'.
19129 cat >confdef2sed.sed <<\_ACEOF
19130 s/[\\&,]/\\&/g
19131 s,[\\$`],\\&,g
19132 t clear
19133 : clear
19134 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19135 t end
19136 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19137 : end
19138 _ACEOF
19139 # If some macros were called several times there might be several times
19140 # the same #defines, which is useless. Nevertheless, we may not want to
19141 # sort them, since we want the *last* AC-DEFINE to be honored.
19142 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19143 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19144 rm -f confdef2sed.sed
19146 # This sed command replaces #undef with comments. This is necessary, for
19147 # example, in the case of _POSIX_SOURCE, which is predefined and required
19148 # on some systems where configure will not decide to define it.
19149 cat >>conftest.undefs <<\_ACEOF
19150 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19151 _ACEOF
19153 # Break up conftest.defines because some shells have a limit on the size
19154 # of here documents, and old seds have small limits too (100 cmds).
19155 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19156 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19157 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19158 echo ' :' >>$CONFIG_STATUS
19159 rm -f conftest.tail
19160 while grep . conftest.defines >/dev/null
19162 # Write a limited-size here document to $tmp/defines.sed.
19163 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19164 # Speed up: don't consider the non `#define' lines.
19165 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19166 # Work around the forget-to-reset-the-flag bug.
19167 echo 't clr' >>$CONFIG_STATUS
19168 echo ': clr' >>$CONFIG_STATUS
19169 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19170 echo 'CEOF
19171 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19172 rm -f $tmp/in
19173 mv $tmp/out $tmp/in
19174 ' >>$CONFIG_STATUS
19175 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19176 rm -f conftest.defines
19177 mv conftest.tail conftest.defines
19178 done
19179 rm -f conftest.defines
19180 echo ' fi # grep' >>$CONFIG_STATUS
19181 echo >>$CONFIG_STATUS
19183 # Break up conftest.undefs because some shells have a limit on the size
19184 # of here documents, and old seds have small limits too (100 cmds).
19185 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19186 rm -f conftest.tail
19187 while grep . conftest.undefs >/dev/null
19189 # Write a limited-size here document to $tmp/undefs.sed.
19190 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19191 # Speed up: don't consider the non `#undef'
19192 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19193 # Work around the forget-to-reset-the-flag bug.
19194 echo 't clr' >>$CONFIG_STATUS
19195 echo ': clr' >>$CONFIG_STATUS
19196 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19197 echo 'CEOF
19198 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19199 rm -f $tmp/in
19200 mv $tmp/out $tmp/in
19201 ' >>$CONFIG_STATUS
19202 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19203 rm -f conftest.undefs
19204 mv conftest.tail conftest.undefs
19205 done
19206 rm -f conftest.undefs
19208 cat >>$CONFIG_STATUS <<\_ACEOF
19209 # Let's still pretend it is `configure' which instantiates (i.e., don't
19210 # use $as_me), people would be surprised to read:
19211 # /* config.h. Generated by config.status. */
19212 if test x"$ac_file" = x-; then
19213 echo "/* Generated by configure. */" >$tmp/config.h
19214 else
19215 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19217 cat $tmp/in >>$tmp/config.h
19218 rm -f $tmp/in
19219 if test x"$ac_file" != x-; then
19220 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19221 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19222 echo "$as_me: $ac_file is unchanged" >&6;}
19223 else
19224 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19226 X"$ac_file" : 'X\(//\)[^/]' \| \
19227 X"$ac_file" : 'X\(//\)$' \| \
19228 X"$ac_file" : 'X\(/\)' \| \
19229 . : '\(.\)' 2>/dev/null ||
19230 echo X"$ac_file" |
19231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19233 /^X\(\/\/\)$/{ s//\1/; q; }
19234 /^X\(\/\).*/{ s//\1/; q; }
19235 s/.*/./; q'`
19236 { if $as_mkdir_p; then
19237 mkdir -p "$ac_dir"
19238 else
19239 as_dir="$ac_dir"
19240 as_dirs=
19241 while test ! -d "$as_dir"; do
19242 as_dirs="$as_dir $as_dirs"
19243 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19245 X"$as_dir" : 'X\(//\)[^/]' \| \
19246 X"$as_dir" : 'X\(//\)$' \| \
19247 X"$as_dir" : 'X\(/\)' \| \
19248 . : '\(.\)' 2>/dev/null ||
19249 echo X"$as_dir" |
19250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19252 /^X\(\/\/\)$/{ s//\1/; q; }
19253 /^X\(\/\).*/{ s//\1/; q; }
19254 s/.*/./; q'`
19255 done
19256 test ! -n "$as_dirs" || mkdir $as_dirs
19257 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19258 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19259 { (exit 1); exit 1; }; }; }
19261 rm -f $ac_file
19262 mv $tmp/config.h $ac_file
19264 else
19265 cat $tmp/config.h
19266 rm -f $tmp/config.h
19268 done
19269 _ACEOF
19270 cat >>$CONFIG_STATUS <<\_ACEOF
19273 # CONFIG_COMMANDS section.
19275 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19276 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19277 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19278 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19279 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19280 X"$ac_dest" : 'X\(//\)[^/]' \| \
19281 X"$ac_dest" : 'X\(//\)$' \| \
19282 X"$ac_dest" : 'X\(/\)' \| \
19283 . : '\(.\)' 2>/dev/null ||
19284 echo X"$ac_dest" |
19285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19287 /^X\(\/\/\)$/{ s//\1/; q; }
19288 /^X\(\/\).*/{ s//\1/; q; }
19289 s/.*/./; q'`
19290 ac_builddir=.
19292 if test "$ac_dir" != .; then
19293 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19294 # A "../" for each directory in $ac_dir_suffix.
19295 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19296 else
19297 ac_dir_suffix= ac_top_builddir=
19300 case $srcdir in
19301 .) # No --srcdir option. We are building in place.
19302 ac_srcdir=.
19303 if test -z "$ac_top_builddir"; then
19304 ac_top_srcdir=.
19305 else
19306 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19307 fi ;;
19308 [\\/]* | ?:[\\/]* ) # Absolute path.
19309 ac_srcdir=$srcdir$ac_dir_suffix;
19310 ac_top_srcdir=$srcdir ;;
19311 *) # Relative path.
19312 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19313 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19314 esac
19315 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19316 # absolute.
19317 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19318 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19319 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19320 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19323 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19324 echo "$as_me: executing $ac_dest commands" >&6;}
19325 case $ac_dest in
19326 default )
19328 ### Make the necessary directories, if they don't exist.
19329 for dir in etc lisp ; do
19330 test -d ${dir} || mkdir ${dir}
19331 done
19333 # Build src/Makefile from ${srcdir}/src/Makefile.c
19334 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19335 # This must be done after src/config.h is built, since we rely on that file.
19337 # Now get this: Some word that is part of the ${srcdir} directory name
19338 # or the ${configuration} value might, just might, happen to be an
19339 # identifier like `sun4' or `i386' or something, and be predefined by
19340 # the C preprocessor to some helpful value like 1, or maybe the empty
19341 # string. Needless to say consequent macro substitutions are less
19342 # than conducive to the makefile finding the correct directory.
19343 undefs="`echo $top_srcdir $configuration $canonical |
19344 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19345 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19348 echo creating src/epaths.h
19349 ${MAKE-make} epaths-force
19351 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19352 # `..' to `. .' unless invoked with -traditional
19354 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19355 CPPFLAGS="$CPPFLAGS -traditional"
19358 echo creating lib-src/Makefile
19359 ( cd lib-src
19360 rm -f junk.c junk1.c junk2.c
19361 sed -e '/start of cpp stuff/q' \
19362 < Makefile.c > junk1.c
19363 sed -e '1,/start of cpp stuff/d'\
19364 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19365 < Makefile.c > junk.c
19366 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19367 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19368 cat junk1.c junk2.c > Makefile.new
19369 rm -f junk.c junk1.c junk2.c
19370 chmod 444 Makefile.new
19371 mv -f Makefile.new Makefile
19374 echo creating src/Makefile
19375 ( cd src
19376 rm -f junk.c junk1.c junk2.c
19377 sed -e '/start of cpp stuff/q' \
19378 < Makefile.c > junk1.c
19379 sed -e '1,/start of cpp stuff/d'\
19380 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19381 < Makefile.c > junk.c
19382 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19383 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19384 cat junk1.c junk2.c > Makefile.new
19385 rm -f junk.c junk1.c junk2.c
19386 chmod 444 Makefile.new
19387 mv -f Makefile.new Makefile
19390 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19391 echo creating src/.gdbinit
19392 echo source $srcdir/src/.gdbinit > src/.gdbinit
19395 # This is how we know whether to re-run configure in certain cases.
19396 touch src/config.stamp
19399 esac
19400 done
19401 _ACEOF
19403 cat >>$CONFIG_STATUS <<\_ACEOF
19405 { (exit 0); exit 0; }
19406 _ACEOF
19407 chmod +x $CONFIG_STATUS
19408 ac_clean_files=$ac_clean_files_save
19411 # configure is writing to config.log, and then calls config.status.
19412 # config.status does its own redirection, appending to config.log.
19413 # Unfortunately, on DOS this fails, as config.log is still kept open
19414 # by configure, so config.status won't be able to write to it; its
19415 # output is simply discarded. So we exec the FD to /dev/null,
19416 # effectively closing config.log, so it can be properly (re)opened and
19417 # appended to by config.status. When coming back to configure, we
19418 # need to make the FD available again.
19419 if test "$no_create" != yes; then
19420 ac_cs_success=:
19421 ac_config_status_args=
19422 test "$silent" = yes &&
19423 ac_config_status_args="$ac_config_status_args --quiet"
19424 exec 5>/dev/null
19425 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19426 exec 5>>config.log
19427 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19428 # would make configure fail if this is the last instruction.
19429 $ac_cs_success || { (exit 1); exit 1; }