Make (modify-frame-parameters nil '((top . 0))) work for all types
[emacs.git] / configure
blob686bbfe7ae70bf67c31ea7207e765f75d31fdd15
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --disable-largefile omit support for large files
862 Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --without-gcc don't use GCC to compile Emacs if GCC is found
866 --without-pop don't support POP mail retrieval with movemail
867 --with-kerberos support Kerberos-authenticated POP
868 --with-kerberos5 support Kerberos version 5 authenticated POP
869 --with-hesiod support Hesiod to get the POP server host
870 --without-sound don't compile with sound support
871 --with-x-toolkit=KIT use an X toolkit
872 (KIT = yes/lucid/athena/motif/gtk/no)
873 --with-xpm use -lXpm for displaying XPM images
874 --with-jpeg use -ljpeg for displaying JPEG images
875 --with-tiff use -ltiff for displaying TIFF images
876 --with-gif use -lungif for displaying GIF images
877 --with-png use -lpng for displaying PNG images
878 --with-gtk use GTK (same as --with-x-toolkit=gtk)
879 --with-pkg-config-prog Path to pkg-config to use for finding GTK
880 --without-toolkit-scroll-bars
881 don't use Motif or Xaw3d scroll bars
882 --without-xim don't use X11 XIM
883 --without-carbon don't use Carbon GUI on Mac OS X
884 --with-x use the X Window System
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 _ACEOF
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
903 ac_popdir=`pwd`
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
906 ac_builddir=.
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912 else
913 ac_dir_suffix= ac_top_builddir=
916 case $srcdir in
917 .) # No --srcdir option. We are building in place.
918 ac_srcdir=.
919 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=.
921 else
922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 fi ;;
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
927 *) # Relative path.
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 esac
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
932 # absolute.
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 cd "$ac_popdir"
954 done
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959 cat <<\_ACEOF
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966 exit 0
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
976 $ $0 $@
978 _ACEOF
980 cat <<_ASUNAME
981 ## --------- ##
982 ## Platform. ##
983 ## --------- ##
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002 _ASUNAME
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1007 IFS=$as_save_IFS
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1010 done
1012 } >&5
1014 cat >&5 <<_ACEOF
1017 ## ----------- ##
1018 ## Core tests. ##
1019 ## ----------- ##
1021 _ACEOF
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1036 for ac_arg
1038 case $ac_arg in
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1042 continue ;;
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045 esac
1046 case $ac_pass in
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1052 else
1053 case $ac_arg in
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 esac
1062 -* ) ac_must_keep_next=true ;;
1063 esac
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1067 ac_sep=" "
1069 esac
1070 done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081 # Save into config.log some information that might help in debugging.
1083 echo
1085 cat <<\_ASBOX
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1089 _ASBOX
1090 echo
1091 # The following way of writing the cache mishandles newlines in values,
1093 (set) 2>&1 |
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 *ac_space=\ *)
1096 sed -n \
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1101 sed -n \
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104 esac;
1106 echo
1108 cat <<\_ASBOX
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1112 _ASBOX
1113 echo
1114 for ac_var in $ac_subst_vars
1116 eval ac_val=$`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1118 done | sort
1119 echo
1121 if test -n "$ac_subst_files"; then
1122 cat <<\_ASBOX
1123 ## ------------- ##
1124 ## Output files. ##
1125 ## ------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_files
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1136 if test -s confdefs.h; then
1137 cat <<\_ASBOX
1138 ## ----------- ##
1139 ## confdefs.h. ##
1140 ## ----------- ##
1141 _ASBOX
1142 echo
1143 sed "/^$/d" confdefs.h | sort
1144 echo
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1149 } >&5
1150 rm -f core *.core &&
1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 exit $exit_status
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196 else
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's/^/| /' "$ac_site_file" >&5
1205 . "$ac_site_file"
1207 done
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215 case $cache_file in
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1218 esac
1220 else
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223 >$cache_file
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1236 set,)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,set)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,);;
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1254 fi;;
1255 esac
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1258 case $ac_new_val in
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1262 esac
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 esac
1268 done
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1309 # Double any \ or $. echo might interpret backslashes.
1310 # By default was `s,x,x', remove it if useless.
1311 cat <<\_ACEOF >conftest.sed
1312 s/[\\$]/&&/g;s/;s,x,x,$//
1313 _ACEOF
1314 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1315 rm conftest.sed
1318 lispdir='${datadir}/emacs/${version}/lisp'
1319 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1320 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1321 lisppath='${locallisppath}:${lispdir}'
1322 etcdir='${datadir}/emacs/${version}/etc'
1323 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1324 docdir='${datadir}/emacs/${version}/etc'
1325 gamedir='${localstatedir}/games/emacs'
1327 gameuser=games
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1332 withval="$with_gcc"
1336 # Check whether --with-pop or --without-pop was given.
1337 if test "${with_pop+set}" = set; then
1338 withval="$with_pop"
1339 if test "$withval" = yes; then
1340 cat >>confdefs.h <<\_ACEOF
1341 #define MAIL_USE_POP 1
1342 _ACEOF
1344 else :
1346 else
1347 cat >>confdefs.h <<\_ACEOF
1348 #define MAIL_USE_POP 1
1349 _ACEOF
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval="$with_kerberos"
1357 cat >>confdefs.h <<\_ACEOF
1358 #define KERBEROS 1
1359 _ACEOF
1364 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1365 if test "${with_kerberos5+set}" = set; then
1366 withval="$with_kerberos5"
1367 if test "${with_kerberos5+set}" = set; then
1368 if test "${with_kerberos+set}" != set; then
1369 with_kerberos=yes
1370 cat >>confdefs.h <<\_ACEOF
1371 #define KERBEROS 1
1372 _ACEOF
1377 cat >>confdefs.h <<\_ACEOF
1378 #define KERBEROS5 1
1379 _ACEOF
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval="$with_hesiod"
1387 cat >>confdefs.h <<\_ACEOF
1388 #define HESIOD 1
1389 _ACEOF
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval="$with_sound"
1401 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1402 if test "${with_x_toolkit+set}" = set; then
1403 withval="$with_x_toolkit"
1404 case "${withval}" in
1405 y | ye | yes ) val=athena ;;
1406 n | no ) val=no ;;
1407 l | lu | luc | luci | lucid ) val=lucid ;;
1408 a | at | ath | athe | athen | athena ) val=athena ;;
1409 m | mo | mot | moti | motif ) val=motif ;;
1410 g | gt | gtk ) val=gtk ;;
1412 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1413 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1414 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1415 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1416 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1417 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1418 { (exit 1); exit 1; }; }
1420 esac
1421 with_x_toolkit=$val
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1427 withval="$with_xpm"
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval="$with_jpeg"
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval="$with_tiff"
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1445 withval="$with_gif"
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1451 withval="$with_png"
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1457 withval="$with_gtk"
1461 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1462 if test "${with_pkg_config_prog+set}" = set; then
1463 withval="$with_pkg_config_prog"
1467 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1468 if test "${with_toolkit_scroll_bars+set}" = set; then
1469 withval="$with_toolkit_scroll_bars"
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1475 withval="$with_xim"
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval="$with_carbon"
1484 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1485 if test "${enable_carbon_app+set}" = set; then
1486 enableval="$enable_carbon_app"
1487 carbon_appdir_x=${enableval}
1490 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1491 if test "${enable_maintainer_mode+set}" = set; then
1492 enableval="$enable_maintainer_mode"
1493 USE_MAINTAINER_MODE=$enableval
1494 else
1495 USE_MAINTAINER_MODE=no
1497 if test $USE_MAINTAINER_MODE = yes; then
1498 MAINT=
1499 else
1500 MAINT=#
1504 #### Make srcdir absolute, if it isn't already. It's important to
1505 #### avoid running the path through pwd unnecessarily, since pwd can
1506 #### give you automounter prefixes, which can go away. We do all this
1507 #### so Emacs can find its files when run uninstalled.
1508 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1509 unset CDPATH
1510 case "${srcdir}" in
1511 /* ) ;;
1513 ## We may be able to use the $PWD environment variable to make this
1514 ## absolute. But sometimes PWD is inaccurate.
1515 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1516 ## but that tested only for a well-formed and valid PWD,
1517 ## it did not object when PWD was well-formed and valid but just wrong.
1518 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1519 then
1520 srcdir="$PWD"
1521 else
1522 srcdir="`(cd ${srcdir}; pwd)`"
1525 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1526 esac
1528 #### Check if the source directory already has a configured system in it.
1529 if test `pwd` != `(cd ${srcdir} && pwd)` \
1530 && test -f "${srcdir}/src/config.h" ; then
1531 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1532 as a build directory right now; it has been configured in its own
1533 right. To configure in another directory as well, you MUST
1534 use GNU make. If you do not have GNU make, then you must
1535 now do \`make distclean' in ${srcdir},
1536 and then run $0 again." >&5
1537 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1538 as a build directory right now; it has been configured in its own
1539 right. To configure in another directory as well, you MUST
1540 use GNU make. If you do not have GNU make, then you must
1541 now do \`make distclean' in ${srcdir},
1542 and then run $0 again." >&2;}
1544 extrasub='/^VPATH[ ]*=/c\
1545 vpath %.c $(srcdir)\
1546 vpath %.h $(srcdir)\
1547 vpath %.y $(srcdir)\
1548 vpath %.l $(srcdir)\
1549 vpath %.s $(srcdir)\
1550 vpath %.in $(srcdir)\
1551 vpath %.texi $(srcdir)'
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1557 ### Canonicalize the configuration name.
1559 ac_aux_dir=
1560 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1561 if test -f $ac_dir/install-sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 break
1565 elif test -f $ac_dir/install.sh; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 break
1569 elif test -f $ac_dir/shtool; then
1570 ac_aux_dir=$ac_dir
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 break
1574 done
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584 # Make sure we can run config.sub.
1585 $ac_config_sub sun4 >/dev/null 2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: checking build system type" >&5
1591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592 if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 ac_cv_build_alias=$build_alias
1596 test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias=`$ac_config_guess`
1598 test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609 echo "${ECHO_T}$ac_cv_build" >&6
1610 build=$ac_cv_build
1611 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616 echo "$as_me:$LINENO: checking host system type" >&5
1617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618 if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 ac_cv_host_alias=$host_alias
1622 test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias=$ac_cv_build_alias
1624 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631 echo "${ECHO_T}$ac_cv_host" >&6
1632 host=$ac_cv_host
1633 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638 canonical=$host
1639 configuration=${host_alias-$host}
1643 ### If you add support for a new configuration, add code to this
1644 ### switch statement to recognize your configuration name and select
1645 ### the appropriate operating system and machine description files.
1647 ### You would hope that you could choose an m/*.h file pretty much
1648 ### based on the machine portion of the configuration name, and an s-
1649 ### file based on the operating system portion. However, it turns out
1650 ### that each m/*.h file is pretty manufacturer-specific - for
1651 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1652 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1653 ### machines. So we basically have to have a special case for each
1654 ### configuration name.
1656 ### As far as handling version numbers on operating systems is
1657 ### concerned, make sure things will fail in a fixable way. If
1658 ### /etc/MACHINES doesn't say anything about version numbers, be
1659 ### prepared to handle anything reasonably. If version numbers
1660 ### matter, be sure /etc/MACHINES says something about it.
1662 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1663 ### "System V Release 4"; he writes, "The old convention encouraged
1664 ### confusion between `system' and `release' levels'."
1666 machine='' opsys='' unported=no
1667 case "${canonical}" in
1669 ## FreeBSD ports
1670 *-*-freebsd* )
1671 opsys=freebsd
1672 case "${canonical}" in
1673 alpha*-*-freebsd*) machine=alpha ;;
1674 i[3456]86-*-freebsd*) machine=intel386 ;;
1675 esac
1678 ## NetBSD ports
1679 *-*-netbsd* )
1680 opsys=netbsd
1681 if test -f /usr/lib/crti.o; then
1683 cat >>confdefs.h <<\_ACEOF
1684 #define HAVE_CRTIN
1685 _ACEOF
1689 case "${canonical}" in
1690 alpha*-*-netbsd*) machine=alpha ;;
1691 i[3456]86-*-netbsd*) machine=intel386 ;;
1692 m68k-*-netbsd*)
1693 # This is somewhat bogus.
1694 machine=hp9000s300 ;;
1695 powerpc-apple-netbsd*) machine=macppc ;;
1696 mips-*-netbsd*) machine=pmax ;;
1697 mipsel-*-netbsd*) machine=pmax ;;
1698 mipseb-*-netbsd*) machine=pmax ;;
1699 ns32k-*-netbsd*) machine=ns32000 ;;
1700 powerpc-*-netbsd*) machine=macppc ;;
1701 sparc*-*-netbsd*) machine=sparc ;;
1702 vax-*-netbsd*) machine=vax ;;
1703 arm-*-netbsd*) machine=arm ;;
1704 esac
1707 ## OpenBSD ports
1708 *-*-openbsd* )
1709 opsys=openbsd
1710 case "${canonical}" in
1711 alpha*-*-openbsd*) machine=alpha ;;
1712 i386-*-openbsd*) machine=intel386 ;;
1713 m68k-*-openbsd*) machine=hp9000s300 ;;
1714 mipsel-*-openbsd*) machine=pmax ;;
1715 ns32k-*-openbsd*) machine=ns32000 ;;
1716 sparc-*-openbsd*) machine=sparc ;;
1717 vax-*-openbsd*) machine=vax ;;
1718 esac
1721 ## Acorn RISCiX:
1722 arm-acorn-riscix1.1* )
1723 machine=acorn opsys=riscix1-1
1725 arm-acorn-riscix1.2* | arm-acorn-riscix )
1726 ## This name is riscix12 instead of riscix1.2
1727 ## to avoid a file name conflict on MSDOS.
1728 machine=acorn opsys=riscix12
1731 ## BSDI ports
1732 *-*-bsdi* )
1733 opsys=bsdi
1734 case "${canonical}" in
1735 i[345]86-*-bsdi*) machine=intel386 ;;
1736 sparc-*-bsdi*) machine=sparc ;;
1737 powerpc-*-bsdi*) machine=macppc ;;
1738 esac
1739 case "${canonical}" in
1740 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1741 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1742 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1743 *-*-bsdi3* ) opsys=bsdos3 ;;
1744 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1745 esac
1748 ## Alliant machines
1749 ## Strictly speaking, we need the version of the alliant operating
1750 ## system to choose the right machine file, but currently the
1751 ## configuration name doesn't tell us enough to choose the right
1752 ## one; we need to give alliants their own operating system name to
1753 ## do this right. When someone cares, they can help us.
1754 fx80-alliant-* )
1755 machine=alliant4 opsys=bsd4-2
1757 i860-alliant-* )
1758 machine=alliant-2800 opsys=bsd4-3
1761 ## Alpha (DEC) machines.
1762 alpha*-dec-osf* )
1763 machine=alpha opsys=osf1
1764 # This is needed to find X11R6.1 libraries for certain tests.
1765 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1766 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1767 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1768 # due to non-traditional preprocessing with the current compiler
1769 # defaults. OSF 4 can also have that compiler version, and there
1770 # seems always to have been a usable /usr/bin/cpp.
1771 NON_GNU_CPP=/usr/bin/cpp
1772 case "${canonical}" in
1773 alpha*-dec-osf[5-9]*)
1774 opsys=osf5-0 ;;
1775 esac
1778 alpha*-*-linux-gnu* )
1779 machine=alpha opsys=gnu-linux
1782 arm*-*-linux-gnu* )
1783 machine=arm opsys=gnu-linux
1786 ppc-*-linux | \
1787 powerpc-*-linux* )
1788 machine=macppc opsys=gnu-linux
1791 ## Altos 3068
1792 m68*-altos-sysv* )
1793 machine=altos opsys=usg5-2
1796 ## Amdahl UTS
1797 580-amdahl-sysv* )
1798 machine=amdahl opsys=usg5-2-2
1801 ## Apollo, Domain/OS
1802 m68*-apollo-* )
1803 machine=apollo opsys=bsd4-3
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1807 we32k-att-sysv* )
1808 machine=att3b opsys=usg5-2-2
1811 ## AT&T 3b1 - The Mighty Unix PC!
1812 m68*-att-sysv* )
1813 machine=7300 opsys=usg5-2-2
1816 ## Bull dpx20
1817 rs6000-bull-bosx* )
1818 machine=ibmrs6000 opsys=aix3-2
1821 ## Bull dpx2
1822 m68*-bull-sysv3* )
1823 machine=dpx2 opsys=usg5-3
1826 ## Bull sps7
1827 m68*-bull-sysv2* )
1828 machine=sps7 opsys=usg5-2
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
1833 ## Celerity
1834 ## I don't know what configuration name to use for this; config.sub
1835 ## doesn't seem to know anything about it. Hey, Celerity users, get
1836 ## in touch with us!
1837 celerity-celerity-bsd* )
1838 machine=celerity opsys=bsd4-2
1841 ## Clipper
1842 ## What operating systems does this chip run that Emacs has been
1843 ## tested on?
1844 clipper-* )
1845 machine=clipper
1846 ## We'll use the catch-all code at the bottom to guess the
1847 ## operating system.
1850 ## Compaq Nonstop
1851 mips-compaq-nonstopux* )
1852 machine=nonstopux opsys=nonstopux
1855 ## Convex
1856 *-convex-bsd* | *-convex-convexos* )
1857 machine=convex opsys=bsd4-3
1858 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1859 NON_GNU_CPP="cc -E -P"
1862 ## Cubix QBx/386
1863 i[3456]86-cubix-sysv* )
1864 machine=intel386 opsys=usg5-3
1867 ## Cydra 5
1868 cydra*-cydrome-sysv* )
1869 machine=cydra5 opsys=usg5-3
1872 ## Data General AViiON Machines
1873 ## DG changed naming conventions with the release of 5.4.4.10, they
1874 ## dropped the initial 5.4 but left the intervening R. Because of the
1875 ## R this shouldn't conflict with older versions of the OS (which I
1876 ## think were named like dgux4.*). In addition, DG new AViiONs series
1877 ## uses either Motorola M88k or Intel Pentium CPUs.
1878 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1879 machine=aviion opsys=dgux4
1881 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1882 ## This name is dgux5-4-3 instead of dgux5-4r3
1883 ## to avoid a file name conflict on MSDOS.
1884 machine=aviion opsys=dgux5-4-3
1886 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1887 machine=aviion opsys=dgux5-4r2
1889 m88k-dg-dgux* )
1890 machine=aviion opsys=dgux
1893 ## Data General AViiON Intel (x86) Machines
1894 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1895 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1896 i[345]86-dg-dguxR4* )
1897 machine=aviion-intel opsys=dgux4
1900 ## DECstations
1901 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1902 machine=pmax opsys=bsd4-2
1904 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1905 machine=pmax opsys=bsd4-3
1907 mips-dec-ultrix* )
1908 machine=pmax opsys=ultrix4-3
1910 mips-dec-osf* )
1911 machine=pmax opsys=osf1
1913 mips-dec-mach_bsd4.3* )
1914 machine=pmax opsys=mach-bsd4-3
1917 ## Motorola Delta machines
1918 m68k-motorola-sysv* | m68000-motorola-sysv* )
1919 machine=delta opsys=usg5-3
1920 if test -z "`type gnucc | grep 'not found'`"
1921 then
1922 if test -s /etc/167config
1923 then CC="gnucc -m68040"
1924 else CC="gnucc -m68881"
1926 else
1927 if test -z "`type gcc | grep 'not found'`"
1928 then CC=gcc
1929 else CC=cc
1933 m88k-motorola-sysv4* )
1934 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1935 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1936 # I hope there are not other 4.0 versions for this machine
1937 # which really need usg5-4 instead.
1938 machine=delta88k opsys=usg5-4-2
1940 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1941 machine=delta88k opsys=usg5-3
1944 ## Dual machines
1945 m68*-dual-sysv* )
1946 machine=dual opsys=usg5-2
1948 m68*-dual-uniplus* )
1949 machine=dual opsys=unipl5-2
1952 ## Elxsi 6400
1953 elxsi-elxsi-sysv* )
1954 machine=elxsi opsys=usg5-2
1957 ## Encore machines
1958 ns16k-encore-bsd* )
1959 machine=ns16000 opsys=umax
1962 ## The GEC 63 - apparently, this port isn't really finished yet.
1963 # I'm sure we finished off the last of the machines, though. -- fx
1965 ## Gould Power Node and NP1
1966 pn-gould-bsd4.2* )
1967 machine=gould opsys=bsd4-2
1969 pn-gould-bsd4.3* )
1970 machine=gould opsys=bsd4-3
1972 np1-gould-bsd* )
1973 machine=gould-np1 opsys=bsd4-3
1976 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1977 ## as far as Emacs is concerned).
1978 m88k-harris-cxux* )
1979 # Build needs to be different on 7.0 and later releases
1980 case "`uname -r`" in
1981 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1982 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1983 esac
1984 NON_GNU_CPP="/lib/cpp"
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1987 m68k-harris-cxux* )
1988 machine=nh3000 opsys=cxux
1990 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1991 powerpc-harris-powerunix )
1992 machine=nh6000 opsys=powerunix
1993 NON_GNU_CPP="cc -Xo -E -P"
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1-hitachi-hiuxmpp* )
1997 machine=sr2k opsys=hiuxmpp
1999 hppa1.1-hitachi-hiuxwe2* )
2000 machine=sr2k opsys=hiuxwe2
2002 ## Honeywell XPS100
2003 xps*-honeywell-sysv* )
2004 machine=xps100 opsys=usg5-2
2007 ## HP 9000 series 200 or 300
2008 m68*-hp-bsd* )
2009 machine=hp9000s300 opsys=bsd4-3
2011 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2012 m68*-hp-hpux* )
2013 case "`uname -r`" in
2014 ## Someone's system reports A.B8.05 for this.
2015 ## I wonder what other possibilities there are.
2016 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2017 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2018 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2019 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2020 *) machine=hp9000s300 opsys=hpux ;;
2021 esac
2024 ## HP 9000 series 700 and 800, running HP/UX
2025 hppa*-hp-hpux7* )
2026 machine=hp800 opsys=hpux
2028 hppa*-hp-hpux8* )
2029 machine=hp800 opsys=hpux8
2031 hppa*-hp-hpux9shr* )
2032 machine=hp800 opsys=hpux9shr
2034 hppa*-hp-hpux9* )
2035 machine=hp800 opsys=hpux9
2037 hppa*-hp-hpux10.2* )
2038 machine=hp800 opsys=hpux10-20
2040 hppa*-hp-hpux10* )
2041 machine=hp800 opsys=hpux10
2043 hppa*-hp-hpux1[1-9]* )
2044 machine=hp800 opsys=hpux11
2047 hppa*-*-linux-gnu* )
2048 machine=hp800 opsys=gnu-linux
2051 ## HP 9000 series 700 and 800, running HP/UX
2052 hppa*-hp-hpux* )
2053 ## Cross-compilation? Nah!
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2058 *.08.* ) machine=hp800 opsys=hpux8 ;;
2059 *.09.* ) machine=hp800 opsys=hpux9 ;;
2060 *) machine=hp800 opsys=hpux10 ;;
2061 esac
2063 hppa*-*-nextstep* )
2064 machine=hp800 opsys=nextstep
2067 ## Orion machines
2068 orion-orion-bsd* )
2069 machine=orion opsys=bsd4-2
2071 clipper-orion-bsd* )
2072 machine=orion105 opsys=bsd4-2
2075 ## IBM machines
2076 i[3456]86-ibm-aix1.1* )
2077 machine=ibmps2-aix opsys=usg5-2-2
2079 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2080 machine=ibmps2-aix opsys=usg5-3
2082 i370-ibm-aix*)
2083 machine=ibm370aix opsys=usg5-3
2085 s390-*-linux-gnu* )
2086 machine=ibms390 opsys=gnu-linux
2088 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2089 machine=ibmrs6000 opsys=aix3-1
2091 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2092 machine=ibmrs6000 opsys=aix3-2-5
2094 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2095 machine=ibmrs6000 opsys=aix4-1
2097 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2098 machine=ibmrs6000 opsys=aix4-2
2100 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2101 machine=ibmrs6000 opsys=aix4-2
2103 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2104 machine=ibmrs6000 opsys=aix4
2106 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2107 machine=ibmrs6000 opsys=aix4-1
2109 rs6000-ibm-aix* | powerpc-ibm-aix* )
2110 machine=ibmrs6000 opsys=aix3-2
2112 romp-ibm-bsd4.3* )
2113 machine=ibmrt opsys=bsd4-3
2115 romp-ibm-bsd4.2* )
2116 machine=ibmrt opsys=bsd4-2
2118 romp-ibm-aos4.3* )
2119 machine=ibmrt opsys=bsd4-3
2121 romp-ibm-aos4.2* )
2122 machine=ibmrt opsys=bsd4-2
2124 romp-ibm-aos* )
2125 machine=ibmrt opsys=bsd4-3
2127 romp-ibm-bsd* )
2128 machine=ibmrt opsys=bsd4-3
2130 romp-ibm-aix* )
2131 machine=ibmrt-aix opsys=usg5-2-2
2134 ## Integrated Solutions `Optimum V'
2135 m68*-isi-bsd4.2* )
2136 machine=isi-ov opsys=bsd4-2
2138 m68*-isi-bsd4.3* )
2139 machine=isi-ov opsys=bsd4-3
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i[3456]86-intsys-sysv* )
2144 machine=is386 opsys=usg5-2-2
2147 ## Prime EXL
2148 i[3456]86-prime-sysv* )
2149 machine=i386 opsys=usg5-3
2152 ## Sequent Symmetry running Dynix
2153 i[3456]86-sequent-bsd* )
2154 machine=symmetry opsys=bsd4-3
2157 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2158 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2159 machine=sequent-ptx opsys=ptx4
2160 NON_GNU_CPP=/lib/cpp
2163 ## Sequent Symmetry running DYNIX/ptx
2164 ## Use the old cpp rather than the newer ANSI one.
2165 i[3456]86-sequent-ptx* )
2166 machine=sequent-ptx opsys=ptx
2167 NON_GNU_CPP="/lib/cpp"
2170 ## ncr machine running svr4.3.
2171 i[3456]86-ncr-sysv4.3 )
2172 machine=ncr386 opsys=usg5-4-3
2175 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2176 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2177 i[3456]86-ncr-sysv* )
2178 machine=ncr386 opsys=usg5-4-2
2181 ## Intel Paragon OSF/1
2182 i860-intel-osf1* )
2183 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2186 ## Intel 860
2187 i860-*-sysv4* )
2188 machine=i860 opsys=usg5-4
2189 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2190 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2193 ## Macintosh PowerPC
2194 powerpc*-*-linux-gnu* )
2195 machine=macppc opsys=gnu-linux
2198 ## Masscomp machines
2199 m68*-masscomp-rtu* )
2200 machine=masscomp opsys=rtu
2203 ## Megatest machines
2204 m68*-megatest-bsd* )
2205 machine=mega68 opsys=bsd4-2
2208 ## Workstations sold by MIPS
2209 ## This is not necessarily all workstations using the MIPS processor -
2210 ## Irises are produced by SGI, and DECstations by DEC.
2212 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2213 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2214 ## it gives for choosing between the alternatives seems to be "Use
2215 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2216 ## the BSD world." I'll assume that these are instructions for
2217 ## handling two odd situations, and that every other situation
2218 ## should use mips.h and usg5-2-2, they being listed first.
2219 mips-mips-usg* )
2220 machine=mips4
2221 ## Fall through to the general code at the bottom to decide on the OS.
2223 mips-mips-riscos4* )
2224 machine=mips4 opsys=bsd4-3
2225 NON_GNU_CC="cc -systype bsd43"
2226 NON_GNU_CPP="cc -systype bsd43 -E"
2228 mips-mips-riscos5* )
2229 machine=mips4 opsys=riscos5
2230 NON_GNU_CC="cc -systype bsd43"
2231 NON_GNU_CPP="cc -systype bsd43 -E"
2233 mips-mips-bsd* )
2234 machine=mips opsys=bsd4-3
2236 mips-mips-* )
2237 machine=mips opsys=usg5-2-2
2240 ## NeXT
2241 m68*-next-* | m68k-*-nextstep* )
2242 machine=m68k opsys=nextstep
2245 ## The complete machine from National Semiconductor
2246 ns32k-ns-genix* )
2247 machine=ns32000 opsys=usg5-2
2250 ## NCR machines
2251 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2252 machine=tower32 opsys=usg5-2-2
2254 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2255 machine=tower32v3 opsys=usg5-3
2258 ## NEC EWS4800
2259 mips-nec-sysv4*)
2260 machine=ews4800 opsys=ux4800
2263 ## Nixdorf Targon 31
2264 m68*-nixdorf-sysv* )
2265 machine=targon31 opsys=usg5-2-2
2268 ## Nu (TI or LMI)
2269 m68*-nu-sysv* )
2270 machine=nu opsys=usg5-2
2273 ## Plexus
2274 m68*-plexus-sysv* )
2275 machine=plexus opsys=usg5-2
2278 ## Pyramid machines
2279 ## I don't really have any idea what sort of processor the Pyramid has,
2280 ## so I'm assuming it is its own architecture.
2281 pyramid-pyramid-bsd* )
2282 machine=pyramid opsys=bsd4-2
2285 ## Sequent Balance
2286 ns32k-sequent-bsd4.2* )
2287 machine=sequent opsys=bsd4-2
2289 ns32k-sequent-bsd4.3* )
2290 machine=sequent opsys=bsd4-3
2293 ## Siemens Nixdorf
2294 mips-siemens-sysv* | mips-sni-sysv*)
2295 machine=mips-siemens opsys=usg5-4
2296 NON_GNU_CC=/usr/ccs/bin/cc
2297 NON_GNU_CPP=/usr/ccs/lib/cpp
2300 ## Silicon Graphics machines
2301 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2302 m68*-sgi-iris3.5* )
2303 machine=irist opsys=iris3-5
2305 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2306 machine=irist opsys=iris3-6
2308 ## Iris 4D
2309 mips-sgi-irix3* )
2310 machine=iris4d opsys=irix3-3
2312 mips-sgi-irix4* )
2313 machine=iris4d opsys=irix4-0
2315 mips-sgi-irix6.5 )
2316 machine=iris4d opsys=irix6-5
2317 # Without defining _LANGUAGE_C, things get masked out in the headers
2318 # so that, for instance, grepping for `free' in stdlib.h fails and
2319 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2320 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2321 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2323 mips-sgi-irix6* )
2324 machine=iris4d opsys=irix6-0
2325 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2326 # but presumably it does no harm.
2327 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2328 # -32 probably isn't necessary in later v.6s -- anyone know which?
2329 NON_GCC_TEST_OPTIONS=-32
2331 mips-sgi-irix5.[01]* )
2332 machine=iris4d opsys=irix5-0
2334 mips-sgi-irix5* | mips-sgi-irix* )
2335 machine=iris4d opsys=irix5-2
2338 ## SONY machines
2339 m68*-sony-bsd4.2* )
2340 machine=news opsys=bsd4-2
2342 m68*-sony-bsd4.3* )
2343 machine=news opsys=bsd4-3
2345 m68*-sony-newsos3* | m68*-sony-news3*)
2346 machine=news opsys=bsd4-3
2348 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2349 machine=news-risc opsys=bsd4-3
2351 mips-sony-newsos6* )
2352 machine=news-r6 opsys=newsos6
2354 mips-sony-news* )
2355 machine=news-risc opsys=newsos5
2358 ## Stride
2359 m68*-stride-sysv* )
2360 machine=stride opsys=usg5-2
2363 ## Suns
2364 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2365 machine=sparc opsys=gnu-linux
2368 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2369 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2370 | rs6000-*-solaris2*)
2371 case "${canonical}" in
2372 m68*-sunos1* ) machine=sun1 ;;
2373 m68*-sunos2* ) machine=sun2 ;;
2374 m68* ) machine=sun3 ;;
2375 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2376 i[3456]86-*-* ) machine=intel386 ;;
2377 powerpcle* ) machine=powerpcle ;;
2378 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2379 sparc* ) machine=sparc ;;
2380 * ) unported=yes ;;
2381 esac
2382 case "${canonical}" in
2383 ## The Sun386 didn't get past 4.0.
2384 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2385 *-sunos4.0* ) opsys=sunos4-0 ;;
2386 *-sunos4.1.[3-9]*noshare )
2387 ## This name is sunos413 instead of sunos4-1-3
2388 ## to avoid a file name conflict on MSDOS.
2389 opsys=sunos413
2390 NON_GNU_CPP=/usr/lib/cpp
2391 NON_GCC_TEST_OPTIONS=-Bstatic
2392 GCC_TEST_OPTIONS=-static
2394 *-sunos4.1.[3-9]* | *-sunos4shr*)
2395 opsys=sunos4shr
2396 NON_GNU_CPP=/usr/lib/cpp
2398 *-sunos4* | *-sunos )
2399 opsys=sunos4-1
2400 NON_GCC_TEST_OPTIONS=-Bstatic
2401 GCC_TEST_OPTIONS=-static
2403 *-sunos5.3* | *-solaris2.3* )
2404 opsys=sol2-3
2405 NON_GNU_CPP=/usr/ccs/lib/cpp
2407 *-sunos5.4* | *-solaris2.4* )
2408 opsys=sol2-4
2409 NON_GNU_CPP=/usr/ccs/lib/cpp
2410 RANLIB="ar -ts"
2412 *-sunos5.5* | *-solaris2.5* )
2413 opsys=sol2-5
2414 NON_GNU_CPP=/usr/ccs/lib/cpp
2415 RANLIB="ar -ts"
2417 *-sunos5.6* | *-solaris2.6* )
2418 opsys=sol2-6
2419 NON_GNU_CPP=/usr/ccs/lib/cpp
2420 RANLIB="ar -ts"
2422 *-sunos5* | *-solaris* )
2423 opsys=sol2-6
2424 NON_GNU_CPP=/usr/ccs/lib/cpp
2426 * ) opsys=bsd4-2 ;;
2427 esac
2428 ## Watch out for a compiler that we know will not work.
2429 case "${canonical}" in
2430 *-solaris* | *-sunos5* )
2431 if [ "x$CC" = x/usr/ucb/cc ]; then
2432 ## /usr/ucb/cc doesn't work;
2433 ## we should find some other compiler that does work.
2434 unset CC
2437 *) ;;
2438 esac
2440 sparc-*-nextstep* )
2441 machine=sparc opsys=nextstep
2444 ## Tadpole 68k
2445 m68*-tadpole-sysv* )
2446 machine=tad68k opsys=usg5-3
2449 ## Tahoe machines
2450 tahoe-tahoe-bsd4.2* )
2451 machine=tahoe opsys=bsd4-2
2453 tahoe-tahoe-bsd4.3* )
2454 machine=tahoe opsys=bsd4-3
2457 ## Tandem Integrity S2
2458 mips-tandem-sysv* )
2459 machine=tandem-s2 opsys=usg5-3
2462 ## Tektronix XD88
2463 m88k-tektronix-sysv3* )
2464 machine=tekxd88 opsys=usg5-3
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd* )
2469 machine=ns16000 opsys=bsd4-2
2471 ## Tektronix 4300
2472 ## src/m/tek4300.h hints that this is a m68k machine.
2473 m68*-tektronix-bsd* )
2474 machine=tek4300 opsys=bsd4-3
2477 ## Titan P2 or P3
2478 ## We seem to have lost the machine-description file titan.h!
2479 titan-titan-sysv* )
2480 machine=titan opsys=usg5-3
2483 ## Ustation E30 (SS5E)
2484 m68*-unisys-uniplus* )
2485 machine=ustation opsystem=unipl5-2
2488 ## Vaxen.
2489 vax-dec-* )
2490 machine=vax
2491 case "${canonical}" in
2492 *-bsd4.1* ) opsys=bsd4-1 ;;
2493 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2494 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2495 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2496 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2497 *-vms* ) opsys=vms ;;
2498 * ) unported=yes
2499 esac
2502 ## Whitechapel MG1
2503 ns16k-whitechapel-* )
2504 machine=mg1
2505 ## We don't know what sort of OS runs on these; we'll let the
2506 ## operating system guessing code below try.
2509 ## Wicat
2510 m68*-wicat-sysv* )
2511 machine=wicat opsys=usg5-2
2514 ## IA-64
2515 ia64*-*-linux* )
2516 machine=ia64 opsys=gnu-linux
2519 ## Intel 386 machines where we don't care about the manufacturer
2520 i[3456]86-*-* )
2521 machine=intel386
2522 case "${canonical}" in
2523 *-cygwin ) opsys=cygwin ;;
2524 *-lynxos* ) opsys=lynxos ;;
2525 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2526 *-isc2.2* ) opsys=isc2-2 ;;
2527 *-isc4.0* ) opsys=isc4-0 ;;
2528 *-isc4.* ) opsys=isc4-1
2529 GCC_TEST_OPTIONS=-posix
2530 NON_GCC_TEST_OPTIONS=-Xp
2532 *-isc* ) opsys=isc3-0 ;;
2533 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2534 *-esix* ) opsys=esix ;;
2535 *-xenix* ) opsys=xenix ;;
2536 *-linux-gnu* ) opsys=gnu-linux ;;
2537 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2538 *-sco3.2v5* ) opsys=sco5
2539 NON_GNU_CPP=/lib/cpp
2540 # Prevent -belf from being passed to $CPP.
2541 # /lib/cpp does not accept it.
2542 OVERRIDE_CPPFLAGS=" "
2544 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2545 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2546 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2547 *-386bsd* ) opsys=386bsd ;;
2548 *-nextstep* ) opsys=nextstep ;;
2549 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2550 esac
2553 ## m68k Linux-based GNU system
2554 m68k-*-linux-gnu* )
2555 machine=m68k opsys=gnu-linux
2558 ## Mips Linux-based GNU system
2559 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2560 machine=mips opsys=gnu-linux
2563 ## UXP/DS
2564 sparc-fujitsu-sysv4* )
2565 machine=sparc opsys=uxpds
2566 NON_GNU_CPP=/usr/ccs/lib/cpp
2567 RANLIB="ar -ts"
2570 ## UXP/V
2571 f301-fujitsu-uxpv4.1)
2572 machine=f301 opsys=uxpv
2575 ## Darwin / Mac OS X
2576 powerpc-apple-darwin* )
2577 machine=powermac opsys=darwin
2578 # Define CPP as follows to make autoconf work correctly.
2579 CPP="gcc -E -no-cpp-precomp"
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-*-linux-gnu* )
2584 machine=amdx86-64 opsys=gnu-linux
2588 unported=yes
2590 esac
2592 ### If the code above didn't choose an operating system, just choose
2593 ### an operating system based on the configuration name. You really
2594 ### only want to use this when you have no idea what the right
2595 ### operating system is; if you know what operating systems a machine
2596 ### runs, it's cleaner to make it explicit in the case statement
2597 ### above.
2598 if test x"${opsys}" = x; then
2599 case "${canonical}" in
2600 *-gnu* ) opsys=gnu ;;
2601 *-bsd4.[01] ) opsys=bsd4-1 ;;
2602 *-bsd4.2 ) opsys=bsd4-2 ;;
2603 *-bsd4.3 ) opsys=bsd4-3 ;;
2604 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2605 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2606 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2607 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2608 *-sysv4.2uw* ) opsys=unixware ;;
2609 *-sysv5uw* ) opsys=unixware ;;
2610 *-sysv5OpenUNIX* ) opsys=unixware ;;
2611 *-sysv4.1* | *-sysvr4.1* )
2612 NON_GNU_CPP=/usr/lib/cpp
2613 opsys=usg5-4 ;;
2614 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2615 if [ x$NON_GNU_CPP = x ]; then
2616 if [ -f /usr/ccs/lib/cpp ]; then
2617 NON_GNU_CPP=/usr/ccs/lib/cpp
2618 else
2619 NON_GNU_CPP=/lib/cpp
2622 opsys=usg5-4-2 ;;
2623 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2625 unported=yes
2627 esac
2632 if test $unported = yes; then
2633 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&5
2635 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2636 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2637 { (exit 1); exit 1; }; }
2640 machfile="m/${machine}.h"
2641 opsysfile="s/${opsys}.h"
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified=yes
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS="$CFLAGS"
2650 case ${with_gcc} in
2651 "yes" ) CC="gcc" GCC=yes ;;
2652 "no" ) : ${CC=cc} ;;
2654 esac
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2682 done
2683 done
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6
2691 else
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2697 if test -z "$ac_cv_prog_CC"; then
2698 ac_ct_CC=$CC
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2720 done
2721 done
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2734 CC=$ac_ct_CC
2735 else
2736 CC="$ac_cv_prog_CC"
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}cc; ac_word=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CC="${ac_tool_prefix}cc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2762 done
2763 done
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6
2771 else
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2777 if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc; ac_word=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2808 echo "${ECHO_T}$ac_ct_CC" >&6
2809 else
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2814 CC=$ac_ct_CC
2815 else
2816 CC="$ac_cv_prog_CC"
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 ac_prog_rejected=no
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2841 continue
2843 ac_cv_prog_CC="cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy $ac_cv_prog_CC
2853 shift
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2858 shift
2859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in cl
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 test -n "$CC" && break
2914 done
2916 if test -z "$CC"; then
2917 ac_ct_CC=$CC
2918 for ac_prog in cl
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2950 else
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2955 test -n "$ac_ct_CC" && break
2956 done
2958 CC=$ac_ct_CC
2964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C compiler version" >&5
2973 ac_compiler=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev/null >&5) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev/null >&5) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev/null >&5) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2999 main ()
3003 return 0;
3005 _ACEOF
3006 ac_clean_files_save=$ac_clean_files
3007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3010 # of exeext.
3011 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3012 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # Find the output, starting from the most likely. This scheme is
3020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3021 # resort.
3023 # Be careful to initialize this variable, since it used to be cached.
3024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3025 ac_cv_exeext=
3026 # b.out is created by i960 compilers.
3027 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3033 conftest.$ac_ext )
3034 # This is the source file.
3036 [ab].out )
3037 # We found the default executable, but exeext='' is most
3038 # certainly right.
3039 break;;
3040 *.* )
3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim.
3045 export ac_cv_exeext
3046 break;;
3048 break;;
3049 esac
3050 done
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&2;}
3059 { (exit 77); exit 77; }; }
3062 ac_exeext=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
3066 # Check the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try='./$ac_file'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 (eval $ac_try) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 cross_compiling=no
3080 else
3081 if test "$cross_compiling" = maybe; then
3082 cross_compiling=yes
3083 else
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3098 ac_clean_files=$ac_clean_files_save
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6
3106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3116 # `rm'.
3117 for ac_file in conftest.exe conftest conftest.*; do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 export ac_cv_exeext
3123 break;;
3124 * ) break;;
3125 esac
3126 done
3127 else
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3135 rm -f conftest$ac_cv_exeext
3136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3137 echo "${ECHO_T}$ac_cv_exeext" >&6
3139 rm -f conftest.$ac_ext
3140 EXEEXT=$ac_cv_exeext
3141 ac_exeext=$EXEEXT
3142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3144 if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3156 main ()
3160 return 0;
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6
3191 OBJEXT=$ac_cv_objext
3192 ac_objext=$OBJEXT
3193 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 cat >conftest.$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3207 main ()
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3214 return 0;
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_compiler_gnu=yes
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_compiler_gnu=no
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3242 GCC=`test $ac_compiler_gnu = yes && echo yes`
3243 ac_test_CFLAGS=${CFLAGS+set}
3244 ac_save_CFLAGS=$CFLAGS
3245 CFLAGS="-g"
3246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 cat >conftest.$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3260 main ()
3264 return 0;
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_prog_cc_g=yes
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3284 ac_cv_prog_cc_g=no
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3294 CFLAGS="-g -O2"
3295 else
3296 CFLAGS="-g"
3298 else
3299 if test "$GCC" = yes; then
3300 CFLAGS="-O2"
3301 else
3302 CFLAGS=
3305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 ac_cv_prog_cc_stdc=no
3311 ac_save_CC=$CC
3312 cat >conftest.$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <stdarg.h>
3320 #include <stdio.h>
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3327 char **p;
3328 int i;
3330 return p[i];
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3334 char *s;
3335 va_list v;
3336 va_start (v,p);
3337 s = g (p, va_arg (v,int));
3338 va_end (v);
3339 return s;
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3345 int argc;
3346 char **argv;
3348 main ()
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3352 return 0;
3354 _ACEOF
3355 # Don't try gcc -ansi; that turns off useful extensions and
3356 # breaks some systems' header files.
3357 # AIX -qlanglvl=ansi
3358 # Ultrix and OSF/1 -std1
3359 # HP-UX 10.20 and later -Ae
3360 # HP-UX older versions -Aa -D_HPUX_SOURCE
3361 # SVR4 -Xc -D__EXTENSIONS__
3362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 CC="$ac_save_CC $ac_arg"
3365 rm -f conftest.$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cc_stdc=$ac_arg
3378 break
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3384 rm -f conftest.$ac_objext
3385 done
3386 rm -f conftest.$ac_ext conftest.$ac_objext
3387 CC=$ac_save_CC
3391 case "x$ac_cv_prog_cc_stdc" in
3392 x|xno)
3393 echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6 ;;
3396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3398 CC="$CC $ac_cv_prog_cc_stdc" ;;
3399 esac
3401 # Some people use a C++ compiler to compile C. Since we use `exit',
3402 # in C++ we need to declare it. In case someone uses the same compiler
3403 # for both compiling C and C++ we need to have the C++ compiler decide
3404 # the declaration of exit, since it's the most demanding environment.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #ifndef __cplusplus
3407 choke me
3408 #endif
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration in \
3423 '' \
3424 'extern "C" void std::exit (int) throw (); using std::exit;' \
3425 'extern "C" void std::exit (int); using std::exit;' \
3426 'extern "C" void exit (int) throw ();' \
3427 'extern "C" void exit (int);' \
3428 'void exit (int);'
3430 cat >conftest.$ac_ext <<_ACEOF
3431 #line $LINENO "configure"
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 $ac_declaration
3438 #include <stdlib.h>
3440 main ()
3442 exit (42);
3444 return 0;
3446 _ACEOF
3447 rm -f conftest.$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 continue
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3469 /* confdefs.h. */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 $ac_declaration
3476 main ()
3478 exit (42);
3480 return 0;
3482 _ACEOF
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 break
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3501 rm -f conftest.$ac_objext conftest.$ac_ext
3502 done
3503 rm -f conftest*
3504 if test -n "$ac_declaration"; then
3505 echo '#ifdef __cplusplus' >>confdefs.h
3506 echo $ac_declaration >>confdefs.h
3507 echo '#endif' >>confdefs.h
3510 else
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3515 rm -f conftest.$ac_objext conftest.$ac_ext
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 # On Suns, sometimes $CPP names a directory.
3524 if test -n "$CPP" && test -d "$CPP"; then
3525 CPP=
3528 #### Some systems specify a CPP to use unless we are using GCC.
3529 #### Now that we know whether we are using GCC, we can decide whether
3530 #### to use that one.
3531 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3532 then
3533 CPP="$NON_GNU_CPP"
3536 #### Some systems specify a CC to use unless we are using GCC.
3537 #### Now that we know whether we are using GCC, we can decide whether
3538 #### to use that one.
3539 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3540 test x$cc_specified != xyes
3541 then
3542 CC="$NON_GNU_CC"
3545 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3546 then
3547 CC="$CC $GCC_TEST_OPTIONS"
3550 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3551 then
3552 CC="$CC $NON_GCC_TEST_OPTIONS"
3555 #### Some other nice autoconf tests.
3557 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3558 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3559 LN_S=$as_ln_s
3560 if test "$LN_S" = "ln -s"; then
3561 echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6
3563 else
3564 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3565 echo "${ECHO_T}no, using $LN_S" >&6
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3574 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3575 # On Suns, sometimes $CPP names a directory.
3576 if test -n "$CPP" && test -d "$CPP"; then
3577 CPP=
3579 if test -z "$CPP"; then
3580 if test "${ac_cv_prog_CPP+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 # Double quotes because CPP needs to be expanded
3584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3586 ac_preproc_ok=false
3587 for ac_c_preproc_warn_flag in '' yes
3589 # Use a header file that comes with gcc, so configuring glibc
3590 # with a fresh cross-compiler works.
3591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592 # <limits.h> exists even on freestanding compilers.
3593 # On the NeXT, cc -E runs the code through the compiler's parser,
3594 # not just through cpp. "Syntax error" is here to catch this case.
3595 cat >conftest.$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #ifdef __STDC__
3603 # include <limits.h>
3604 #else
3605 # include <assert.h>
3606 #endif
3607 Syntax error
3608 _ACEOF
3609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev/null; then
3617 if test -s conftest.err; then
3618 ac_cpp_err=$ac_c_preproc_warn_flag
3619 else
3620 ac_cpp_err=
3622 else
3623 ac_cpp_err=yes
3625 if test -z "$ac_cpp_err"; then
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 # Broken: fails on valid input.
3632 continue
3634 rm -f conftest.err conftest.$ac_ext
3636 # OK, works on sane cases. Now check whether non-existent headers
3637 # can be detected and how.
3638 cat >conftest.$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include <ac_nonexistent.h>
3646 _ACEOF
3647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null; then
3655 if test -s conftest.err; then
3656 ac_cpp_err=$ac_c_preproc_warn_flag
3657 else
3658 ac_cpp_err=
3660 else
3661 ac_cpp_err=yes
3663 if test -z "$ac_cpp_err"; then
3664 # Broken: success on invalid input.
3665 continue
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 # Passes both tests.
3671 ac_preproc_ok=:
3672 break
3674 rm -f conftest.err conftest.$ac_ext
3676 done
3677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 rm -f conftest.err conftest.$ac_ext
3679 if $ac_preproc_ok; then
3680 break
3683 done
3684 ac_cv_prog_CPP=$CPP
3687 CPP=$ac_cv_prog_CPP
3688 else
3689 ac_cv_prog_CPP=$CPP
3691 echo "$as_me:$LINENO: result: $CPP" >&5
3692 echo "${ECHO_T}$CPP" >&6
3693 ac_preproc_ok=false
3694 for ac_c_preproc_warn_flag in '' yes
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 #ifdef __STDC__
3710 # include <limits.h>
3711 #else
3712 # include <assert.h>
3713 #endif
3714 Syntax error
3715 _ACEOF
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null; then
3724 if test -s conftest.err; then
3725 ac_cpp_err=$ac_c_preproc_warn_flag
3726 else
3727 ac_cpp_err=
3729 else
3730 ac_cpp_err=yes
3732 if test -z "$ac_cpp_err"; then
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 # Broken: fails on valid input.
3739 continue
3741 rm -f conftest.err conftest.$ac_ext
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3753 _ACEOF
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev/null; then
3762 if test -s conftest.err; then
3763 ac_cpp_err=$ac_c_preproc_warn_flag
3764 else
3765 ac_cpp_err=
3767 else
3768 ac_cpp_err=yes
3770 if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3772 continue
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 # Passes both tests.
3778 ac_preproc_ok=:
3779 break
3781 rm -f conftest.err conftest.$ac_ext
3783 done
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.err conftest.$ac_ext
3786 if $ac_preproc_ok; then
3788 else
3789 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3790 See \`config.log' for more details." >&5
3791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3792 See \`config.log' for more details." >&2;}
3793 { (exit 1); exit 1; }; }
3796 ac_ext=c
3797 ac_cpp='$CPP $CPPFLAGS'
3798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802 # Find a good install program. We prefer a C program (faster),
3803 # so one script is as good as another. But avoid the broken or
3804 # incompatible versions:
3805 # SysV /etc/install, /usr/sbin/install
3806 # SunOS /usr/etc/install
3807 # IRIX /sbin/install
3808 # AIX /bin/install
3809 # AmigaOS /C/install, which installs bootblocks on floppy discs
3810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3813 # ./install, which can be erroneously created by make from ./install.sh.
3814 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3815 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3816 if test -z "$INSTALL"; then
3817 if test "${ac_cv_path_install+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 # Account for people who put trailing slashes in PATH elements.
3826 case $as_dir/ in
3827 ./ | .// | /cC/* | \
3828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3829 /usr/ucb/* ) ;;
3831 # OSF1 and SCO ODT 3.0 have their own names for install.
3832 # Don't use installbsd from OSF since it installs stuff as root
3833 # by default.
3834 for ac_prog in ginstall scoinst install; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3837 if test $ac_prog = install &&
3838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839 # AIX install. It has an incompatible calling convention.
3841 elif test $ac_prog = install &&
3842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3843 # program-specific install script used by HP pwplus--don't use.
3845 else
3846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3847 break 3
3850 done
3851 done
3853 esac
3854 done
3858 if test "${ac_cv_path_install+set}" = set; then
3859 INSTALL=$ac_cv_path_install
3860 else
3861 # As a last resort, use the slow shell script. We don't cache a
3862 # path for INSTALL within a source directory, because that will
3863 # break other packages using the cache if that directory is
3864 # removed, or if the path is relative.
3865 INSTALL=$ac_install_sh
3868 echo "$as_me:$LINENO: result: $INSTALL" >&5
3869 echo "${ECHO_T}$INSTALL" >&6
3871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872 # It thinks the first close brace ends the variable substitution.
3873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879 if test "x$RANLIB" = x; then
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$RANLIB"; then
3889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3907 RANLIB=$ac_cv_prog_RANLIB
3908 if test -n "$RANLIB"; then
3909 echo "$as_me:$LINENO: result: $RANLIB" >&5
3910 echo "${ECHO_T}$RANLIB" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3917 if test -z "$ac_cv_prog_RANLIB"; then
3918 ac_ct_RANLIB=$RANLIB
3919 # Extract the first word of "ranlib", so it can be a program name with args.
3920 set dummy ranlib; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if test -n "$ac_ct_RANLIB"; then
3927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_RANLIB="ranlib"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3943 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3947 if test -n "$ac_ct_RANLIB"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3949 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 RANLIB=$ac_ct_RANLIB
3956 else
3957 RANLIB="$ac_cv_prog_RANLIB"
3961 # Extract the first word of "install-info", so it can be a program name with args.
3962 set dummy install-info; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 case $INSTALL_INFO in
3969 [\\/]* | ?:[\\/]*)
3970 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3988 esac
3990 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3992 if test -n "$INSTALL_INFO"; then
3993 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3994 echo "${ECHO_T}$INSTALL_INFO" >&6
3995 else
3996 echo "$as_me:$LINENO: result: no" >&5
3997 echo "${ECHO_T}no" >&6
4000 # Extract the first word of "install-info", so it can be a program name with args.
4001 set dummy install-info; ac_word=$2
4002 echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 case $INSTALL_INFO in
4008 [\\/]* | ?:[\\/]*)
4009 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in /usr/sbin
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4027 esac
4029 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4031 if test -n "$INSTALL_INFO"; then
4032 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4033 echo "${ECHO_T}$INSTALL_INFO" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4039 # Extract the first word of "install-info", so it can be a program name with args.
4040 set dummy install-info; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 case $INSTALL_INFO in
4047 [\\/]* | ?:[\\/]*)
4048 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in /sbin
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 break 2
4062 done
4063 done
4065 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4067 esac
4069 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4071 if test -n "$INSTALL_INFO"; then
4072 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4073 echo "${ECHO_T}$INSTALL_INFO" >&6
4074 else
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4081 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4082 then
4083 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4086 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4087 then
4088 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4093 echo "$as_me:$LINENO: checking for egrep" >&5
4094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4095 if test "${ac_cv_prog_egrep+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4099 then ac_cv_prog_egrep='grep -E'
4100 else ac_cv_prog_egrep='egrep'
4103 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4104 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4105 EGREP=$ac_cv_prog_egrep
4109 echo "$as_me:$LINENO: checking for AIX" >&5
4110 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4111 cat >conftest.$ac_ext <<_ACEOF
4112 #line $LINENO "configure"
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #ifdef _AIX
4120 #endif
4122 _ACEOF
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "yes" >/dev/null 2>&1; then
4125 echo "$as_me:$LINENO: result: yes" >&5
4126 echo "${ECHO_T}yes" >&6
4127 cat >>confdefs.h <<\_ACEOF
4128 #define _ALL_SOURCE 1
4129 _ACEOF
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4135 rm -f conftest*
4139 #### Extract some information from the operating system and machine files.
4141 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4142 - which libraries the lib-src programs will want, and
4143 - whether the GNU malloc routines are usable..." >&5
4144 echo "$as_me: checking the machine- and system-dependent files to find out
4145 - which libraries the lib-src programs will want, and
4146 - whether the GNU malloc routines are usable..." >&6;}
4148 ### First figure out CFLAGS (which we use for running the compiler here)
4149 ### and REAL_CFLAGS (which we use for real compilation).
4150 ### The two are the same except on a few systems, where they are made
4151 ### different to work around various lossages. For example,
4152 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4153 ### as implying static linking.
4155 ### If the CFLAGS env var is specified, we use that value
4156 ### instead of the default.
4158 ### It's not important that this name contain the PID; you can't run
4159 ### two configures in the same directory and have anything work
4160 ### anyway.
4161 tempcname="conftest.c"
4163 echo '
4164 #include "'${srcdir}'/src/'${opsysfile}'"
4165 #include "'${srcdir}'/src/'${machfile}'"
4166 #ifndef LIBS_MACHINE
4167 #define LIBS_MACHINE
4168 #endif
4169 #ifndef LIBS_SYSTEM
4170 #define LIBS_SYSTEM
4171 #endif
4172 #ifndef C_SWITCH_SYSTEM
4173 #define C_SWITCH_SYSTEM
4174 #endif
4175 #ifndef C_SWITCH_MACHINE
4176 #define C_SWITCH_MACHINE
4177 #endif
4178 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4179 configure___ c_switch_system=C_SWITCH_SYSTEM
4180 configure___ c_switch_machine=C_SWITCH_MACHINE
4182 #ifndef LIB_X11_LIB
4183 #define LIB_X11_LIB -lX11
4184 #endif
4186 #ifndef LIBX11_MACHINE
4187 #define LIBX11_MACHINE
4188 #endif
4190 #ifndef LIBX11_SYSTEM
4191 #define LIBX11_SYSTEM
4192 #endif
4193 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4195 #ifdef UNEXEC
4196 configure___ unexec=UNEXEC
4197 #else
4198 configure___ unexec=unexec.o
4199 #endif
4201 #ifdef SYSTEM_MALLOC
4202 configure___ system_malloc=yes
4203 #else
4204 configure___ system_malloc=no
4205 #endif
4207 #ifdef USE_MMAP_FOR_BUFFERS
4208 configure___ use_mmap_for_buffers=yes
4209 #else
4210 configure___ use_mmap_for_buffers=no
4211 #endif
4213 #ifndef C_DEBUG_SWITCH
4214 #define C_DEBUG_SWITCH -g
4215 #endif
4217 #ifndef C_OPTIMIZE_SWITCH
4218 #ifdef __GNUC__
4219 #define C_OPTIMIZE_SWITCH -O2
4220 #else
4221 #define C_OPTIMIZE_SWITCH -O
4222 #endif
4223 #endif
4225 #ifndef LD_SWITCH_MACHINE
4226 #define LD_SWITCH_MACHINE
4227 #endif
4229 #ifndef LD_SWITCH_SYSTEM
4230 #define LD_SWITCH_SYSTEM
4231 #endif
4233 #ifndef LD_SWITCH_X_SITE_AUX
4234 #define LD_SWITCH_X_SITE_AUX
4235 #endif
4237 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4238 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4240 #ifdef THIS_IS_CONFIGURE
4242 /* Get the CFLAGS for tests in configure. */
4243 #ifdef __GNUC__
4244 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4245 #else
4246 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4247 #endif
4249 #else /* not THIS_IS_CONFIGURE */
4251 /* Get the CFLAGS for real compilation. */
4252 #ifdef __GNUC__
4253 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4254 #else
4255 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4256 #endif
4258 #endif /* not THIS_IS_CONFIGURE */
4259 ' > ${tempcname}
4261 # The value of CPP is a quoted variable reference, so we need to do this
4262 # to get its actual value...
4263 CPP=`eval "echo $CPP"`
4264 eval `${CPP} -Isrc ${tempcname} \
4265 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4266 if test "x$SPECIFIED_CFLAGS" = x; then
4267 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4268 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4269 else
4270 REAL_CFLAGS="$CFLAGS"
4272 rm ${tempcname}
4274 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4276 ### Make sure subsequent tests use flags consistent with the build flags.
4278 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4279 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4280 else
4281 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4287 cat >>confdefs.h <<\_ACEOF
4288 #define _GNU_SOURCE 1
4289 _ACEOF
4293 # Check whether --enable-largefile or --disable-largefile was given.
4294 if test "${enable_largefile+set}" = set; then
4295 enableval="$enable_largefile"
4298 if test "$enable_largefile" != no; then
4300 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4301 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4302 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 ac_cv_sys_largefile_CC=no
4306 if test "$GCC" != yes; then
4307 ac_save_CC=$CC
4308 while :; do
4309 # IRIX 6.2 and later do not support large files by default,
4310 # so use the C compiler's -n32 option if that helps.
4311 cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 /* Check that off_t can represent 2**63 - 1 correctly.
4320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4321 since some C++ compilers masquerading as C compilers
4322 incorrectly reject 9223372036854775807. */
4323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4325 && LARGE_OFF_T % 2147483647 == 1)
4326 ? 1 : -1];
4328 main ()
4332 return 0;
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 break
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4353 rm -f conftest.$ac_objext
4354 CC="$CC -n32"
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_cv_sys_largefile_CC=' -n32'; break
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4373 rm -f conftest.$ac_objext
4374 break
4375 done
4376 CC=$ac_save_CC
4377 rm -f conftest.$ac_ext
4380 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4381 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4382 if test "$ac_cv_sys_largefile_CC" != no; then
4383 CC=$CC$ac_cv_sys_largefile_CC
4386 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4387 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4388 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 while :; do
4392 ac_cv_sys_file_offset_bits=no
4393 cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <sys/types.h>
4401 /* Check that off_t can represent 2**63 - 1 correctly.
4402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4403 since some C++ compilers masquerading as C compilers
4404 incorrectly reject 9223372036854775807. */
4405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4407 && LARGE_OFF_T % 2147483647 == 1)
4408 ? 1 : -1];
4410 main ()
4414 return 0;
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 break
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4435 rm -f conftest.$ac_objext conftest.$ac_ext
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #define _FILE_OFFSET_BITS 64
4444 #include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447 since some C++ compilers masquerading as C compilers
4448 incorrectly reject 9223372036854775807. */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451 && LARGE_OFF_T % 2147483647 == 1)
4452 ? 1 : -1];
4454 main ()
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_sys_file_offset_bits=64; break
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4479 rm -f conftest.$ac_objext conftest.$ac_ext
4480 break
4481 done
4483 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4484 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4485 if test "$ac_cv_sys_file_offset_bits" != no; then
4487 cat >>confdefs.h <<_ACEOF
4488 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4489 _ACEOF
4492 rm -f conftest*
4493 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4494 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4495 if test "${ac_cv_sys_large_files+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 while :; do
4499 ac_cv_sys_large_files=no
4500 cat >conftest.$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4515 ? 1 : -1];
4517 main ()
4521 return 0;
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 break
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #define _LARGE_FILES 1
4551 #include <sys/types.h>
4552 /* Check that off_t can represent 2**63 - 1 correctly.
4553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4554 since some C++ compilers masquerading as C compilers
4555 incorrectly reject 9223372036854775807. */
4556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4558 && LARGE_OFF_T % 2147483647 == 1)
4559 ? 1 : -1];
4561 main ()
4565 return 0;
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_sys_large_files=1; break
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4586 rm -f conftest.$ac_objext conftest.$ac_ext
4587 break
4588 done
4590 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4591 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4592 if test "$ac_cv_sys_large_files" != no; then
4594 cat >>confdefs.h <<_ACEOF
4595 #define _LARGE_FILES $ac_cv_sys_large_files
4596 _ACEOF
4599 rm -f conftest*
4603 if test "${with_sound}" != "no"; then
4604 # Sound support for GNU/Linux and the free BSDs.
4605 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4606 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4607 if test "${ac_cv_header_stdc+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #include <stdlib.h>
4618 #include <stdarg.h>
4619 #include <string.h>
4620 #include <float.h>
4623 main ()
4627 return 0;
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_header_stdc=yes
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ac_cv_header_stdc=no
4649 rm -f conftest.$ac_objext conftest.$ac_ext
4651 if test $ac_cv_header_stdc = yes; then
4652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 #include <string.h>
4662 _ACEOF
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "memchr" >/dev/null 2>&1; then
4666 else
4667 ac_cv_header_stdc=no
4669 rm -f conftest*
4673 if test $ac_cv_header_stdc = yes; then
4674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4675 cat >conftest.$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <stdlib.h>
4684 _ACEOF
4685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4686 $EGREP "free" >/dev/null 2>&1; then
4688 else
4689 ac_cv_header_stdc=no
4691 rm -f conftest*
4695 if test $ac_cv_header_stdc = yes; then
4696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4697 if test "$cross_compiling" = yes; then
4699 else
4700 cat >conftest.$ac_ext <<_ACEOF
4701 #line $LINENO "configure"
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 #include <ctype.h>
4708 #if ((' ' & 0x0FF) == 0x020)
4709 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4710 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4711 #else
4712 # define ISLOWER(c) \
4713 (('a' <= (c) && (c) <= 'i') \
4714 || ('j' <= (c) && (c) <= 'r') \
4715 || ('s' <= (c) && (c) <= 'z'))
4716 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4717 #endif
4719 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721 main ()
4723 int i;
4724 for (i = 0; i < 256; i++)
4725 if (XOR (islower (i), ISLOWER (i))
4726 || toupper (i) != TOUPPER (i))
4727 exit(2);
4728 exit (0);
4730 _ACEOF
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4743 else
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ( exit $ac_status )
4749 ac_cv_header_stdc=no
4751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4756 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4757 if test $ac_cv_header_stdc = yes; then
4759 cat >>confdefs.h <<\_ACEOF
4760 #define STDC_HEADERS 1
4761 _ACEOF
4765 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4775 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4776 inttypes.h stdint.h unistd.h
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 echo "$as_me:$LINENO: checking for $ac_header" >&5
4780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 cat >conftest.$ac_ext <<_ACEOF
4785 #line $LINENO "configure"
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4793 #include <$ac_header>
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 eval "$as_ac_Header=yes"
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 eval "$as_ac_Header=no"
4814 rm -f conftest.$ac_objext conftest.$ac_ext
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4821 _ACEOF
4825 done
4831 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842 else
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.$ac_ext <<_ACEOF
4847 #line $LINENO "configure"
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 #include <$ac_header>
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_header_compiler=yes
4869 else
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4873 ac_header_compiler=no
4875 rm -f conftest.$ac_objext conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 echo "${ECHO_T}$ac_header_compiler" >&6
4879 # Is the header present?
4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4882 cat >conftest.$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 /* confdefs.h. */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 #include <$ac_header>
4890 _ACEOF
4891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev/null; then
4899 if test -s conftest.err; then
4900 ac_cpp_err=$ac_c_preproc_warn_flag
4901 else
4902 ac_cpp_err=
4904 else
4905 ac_cpp_err=yes
4907 if test -z "$ac_cpp_err"; then
4908 ac_header_preproc=yes
4909 else
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 ac_header_preproc=no
4915 rm -f conftest.err conftest.$ac_ext
4916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 echo "${ECHO_T}$ac_header_preproc" >&6
4919 # So? What about this header?
4920 case $ac_header_compiler:$ac_header_preproc in
4921 yes:no )
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4927 cat <<\_ASBOX
4928 ## ------------------------------------ ##
4929 ## Report this to bug-autoconf@gnu.org. ##
4930 ## ------------------------------------ ##
4931 _ASBOX
4933 sed "s/^/$as_me: WARNING: /" >&2
4935 no:yes )
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4943 cat <<\_ASBOX
4944 ## ------------------------------------ ##
4945 ## Report this to bug-autoconf@gnu.org. ##
4946 ## ------------------------------------ ##
4947 _ASBOX
4949 sed "s/^/$as_me: WARNING: /" >&2
4951 esac
4952 echo "$as_me:$LINENO: checking for $ac_header" >&5
4953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 eval "$as_ac_Header=$ac_header_preproc"
4959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4964 cat >>confdefs.h <<_ACEOF
4965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4966 _ACEOF
4970 done
4972 # Emulation library used on NetBSD.
4973 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4974 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4975 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 ac_check_lib_save_LIBS=$LIBS
4979 LIBS="-lossaudio $LIBS"
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4982 /* confdefs.h. */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4988 /* Override any gcc2 internal prototype to avoid an error. */
4989 #ifdef __cplusplus
4990 extern "C"
4991 #endif
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
4994 char _oss_ioctl ();
4996 main ()
4998 _oss_ioctl ();
5000 return 0;
5002 _ACEOF
5003 rm -f conftest.$ac_objext conftest$ac_exeext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005 (eval $ac_link) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -s conftest$ac_exeext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_lib_ossaudio__oss_ioctl=yes
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5020 ac_cv_lib_ossaudio__oss_ioctl=no
5022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5026 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5027 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5028 LIBSOUND=-lossaudio
5029 else
5030 LIBSOUND=
5059 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5060 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5061 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5062 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066 echo "$as_me:$LINENO: checking for $ac_header" >&5
5067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5073 else
5074 # Is the header compilable?
5075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 $ac_includes_default
5085 #include <$ac_header>
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_header_compiler=yes
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 ac_header_compiler=no
5106 rm -f conftest.$ac_objext conftest.$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108 echo "${ECHO_T}$ac_header_compiler" >&6
5110 # Is the header present?
5111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113 cat >conftest.$ac_ext <<_ACEOF
5114 #line $LINENO "configure"
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <$ac_header>
5121 _ACEOF
5122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null; then
5130 if test -s conftest.err; then
5131 ac_cpp_err=$ac_c_preproc_warn_flag
5132 else
5133 ac_cpp_err=
5135 else
5136 ac_cpp_err=yes
5138 if test -z "$ac_cpp_err"; then
5139 ac_header_preproc=yes
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 ac_header_preproc=no
5146 rm -f conftest.err conftest.$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5148 echo "${ECHO_T}$ac_header_preproc" >&6
5150 # So? What about this header?
5151 case $ac_header_compiler:$ac_header_preproc in
5152 yes:no )
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5158 cat <<\_ASBOX
5159 ## ------------------------------------ ##
5160 ## Report this to bug-autoconf@gnu.org. ##
5161 ## ------------------------------------ ##
5162 _ASBOX
5164 sed "s/^/$as_me: WARNING: /" >&2
5166 no:yes )
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5174 cat <<\_ASBOX
5175 ## ------------------------------------ ##
5176 ## Report this to bug-autoconf@gnu.org. ##
5177 ## ------------------------------------ ##
5178 _ASBOX
5180 sed "s/^/$as_me: WARNING: /" >&2
5182 esac
5183 echo "$as_me:$LINENO: checking for $ac_header" >&5
5184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 eval "$as_ac_Header=$ac_header_preproc"
5190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5195 cat >>confdefs.h <<_ACEOF
5196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5197 _ACEOF
5201 done
5204 for ac_header in term.h
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 #line $LINENO "configure"
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <$ac_header>
5220 _ACEOF
5221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } >/dev/null; then
5229 if test -s conftest.err; then
5230 ac_cpp_err=$ac_c_preproc_warn_flag
5231 else
5232 ac_cpp_err=
5234 else
5235 ac_cpp_err=yes
5237 if test -z "$ac_cpp_err"; then
5238 eval "$as_ac_Header=yes"
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 eval "$as_ac_Header=no"
5245 rm -f conftest.err conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5250 cat >>confdefs.h <<_ACEOF
5251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5252 _ACEOF
5256 done
5258 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5260 if test "${ac_cv_header_stdc+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 /* confdefs.h. */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 #include <stdlib.h>
5271 #include <stdarg.h>
5272 #include <string.h>
5273 #include <float.h>
5276 main ()
5280 return 0;
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_header_stdc=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 ac_cv_header_stdc=no
5302 rm -f conftest.$ac_objext conftest.$ac_ext
5304 if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306 cat >conftest.$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <string.h>
5315 _ACEOF
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "memchr" >/dev/null 2>&1; then
5319 else
5320 ac_cv_header_stdc=no
5322 rm -f conftest*
5326 if test $ac_cv_header_stdc = yes; then
5327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
5337 _ACEOF
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "free" >/dev/null 2>&1; then
5341 else
5342 ac_cv_header_stdc=no
5344 rm -f conftest*
5348 if test $ac_cv_header_stdc = yes; then
5349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5350 if test "$cross_compiling" = yes; then
5352 else
5353 cat >conftest.$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <ctype.h>
5361 #if ((' ' & 0x0FF) == 0x020)
5362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5364 #else
5365 # define ISLOWER(c) \
5366 (('a' <= (c) && (c) <= 'i') \
5367 || ('j' <= (c) && (c) <= 'r') \
5368 || ('s' <= (c) && (c) <= 'z'))
5369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5370 #endif
5372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5374 main ()
5376 int i;
5377 for (i = 0; i < 256; i++)
5378 if (XOR (islower (i), ISLOWER (i))
5379 || toupper (i) != TOUPPER (i))
5380 exit(2);
5381 exit (0);
5383 _ACEOF
5384 rm -f conftest$ac_exeext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5386 (eval $ac_link) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5396 else
5397 echo "$as_me: program exited with status $ac_status" >&5
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ( exit $ac_status )
5402 ac_cv_header_stdc=no
5404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5408 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5409 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5410 if test $ac_cv_header_stdc = yes; then
5412 cat >>confdefs.h <<\_ACEOF
5413 #define STDC_HEADERS 1
5414 _ACEOF
5418 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5419 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5420 if test "${ac_cv_header_time+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 cat >conftest.$ac_ext <<_ACEOF
5424 #line $LINENO "configure"
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 #include <sys/types.h>
5431 #include <sys/time.h>
5432 #include <time.h>
5435 main ()
5437 if ((struct tm *) 0)
5438 return 0;
5440 return 0;
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_header_time=yes
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ac_cv_header_time=no
5462 rm -f conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5465 echo "${ECHO_T}$ac_cv_header_time" >&6
5466 if test $ac_cv_header_time = yes; then
5468 cat >>confdefs.h <<\_ACEOF
5469 #define TIME_WITH_SYS_TIME 1
5470 _ACEOF
5474 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5475 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5476 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 $ac_includes_default
5488 main ()
5490 #ifndef sys_siglist
5491 char *p = (char *) sys_siglist;
5492 #endif
5495 return 0;
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -s conftest.$ac_objext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_have_decl_sys_siglist=yes
5511 else
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_cv_have_decl_sys_siglist=no
5517 rm -f conftest.$ac_objext conftest.$ac_ext
5519 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5520 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5521 if test $ac_cv_have_decl_sys_siglist = yes; then
5523 cat >>confdefs.h <<_ACEOF
5524 #define HAVE_DECL_SYS_SIGLIST 1
5525 _ACEOF
5528 else
5529 cat >>confdefs.h <<_ACEOF
5530 #define HAVE_DECL_SYS_SIGLIST 0
5531 _ACEOF
5537 if test $ac_cv_have_decl_sys_siglist != yes; then
5538 # For Tru64, at least:
5539 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5540 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5541 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 cat >conftest.$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 $ac_includes_default
5553 main ()
5555 #ifndef __sys_siglist
5556 char *p = (char *) __sys_siglist;
5557 #endif
5560 return 0;
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_cv_have_decl___sys_siglist=yes
5576 else
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 ac_cv_have_decl___sys_siglist=no
5582 rm -f conftest.$ac_objext conftest.$ac_ext
5584 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5585 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5586 if test $ac_cv_have_decl___sys_siglist = yes; then
5588 cat >>confdefs.h <<_ACEOF
5589 #define HAVE_DECL___SYS_SIGLIST 1
5590 _ACEOF
5593 else
5594 cat >>confdefs.h <<_ACEOF
5595 #define HAVE_DECL___SYS_SIGLIST 0
5596 _ACEOF
5602 if test $ac_cv_have_decl___sys_siglist = yes; then
5604 cat >>confdefs.h <<\_ACEOF
5605 #define sys_siglist __sys_siglist
5606 _ACEOF
5610 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5611 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5612 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 #include <sys/wait.h>
5624 #ifndef WEXITSTATUS
5625 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5626 #endif
5627 #ifndef WIFEXITED
5628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5629 #endif
5632 main ()
5634 int s;
5635 wait (&s);
5636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 ac_cv_header_sys_wait_h=yes
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_cv_header_sys_wait_h=no
5660 rm -f conftest.$ac_objext conftest.$ac_ext
5662 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5663 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5664 if test $ac_cv_header_sys_wait_h = yes; then
5666 cat >>confdefs.h <<\_ACEOF
5667 #define HAVE_SYS_WAIT_H 1
5668 _ACEOF
5673 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5674 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5675 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678 cat >conftest.$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 #ifdef TIME_WITH_SYS_TIME
5686 #include <sys/time.h>
5687 #include <time.h>
5688 #else
5689 #ifdef HAVE_SYS_TIME_H
5690 #include <sys/time.h>
5691 #else
5692 #include <time.h>
5693 #endif
5694 #endif
5695 #ifdef HAVE_UTIME_H
5696 #include <utime.h>
5697 #endif
5699 main ()
5701 static struct utimbuf x; x.actime = x.modtime;
5703 return 0;
5705 _ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try='test -s conftest.$ac_objext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 emacs_cv_struct_utimbuf=yes
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 emacs_cv_struct_utimbuf=no
5725 rm -f conftest.$ac_objext conftest.$ac_ext
5727 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5728 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5729 if test $emacs_cv_struct_utimbuf = yes; then
5731 cat >>confdefs.h <<\_ACEOF
5732 #define HAVE_STRUCT_UTIMBUF 1
5733 _ACEOF
5737 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5738 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5739 if test "${ac_cv_type_signal+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 cat >conftest.$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <sys/types.h>
5750 #include <signal.h>
5751 #ifdef signal
5752 # undef signal
5753 #endif
5754 #ifdef __cplusplus
5755 extern "C" void (*signal (int, void (*)(int)))(int);
5756 #else
5757 void (*signal ()) ();
5758 #endif
5761 main ()
5763 int i;
5765 return 0;
5767 _ACEOF
5768 rm -f conftest.$ac_objext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_type_signal=void
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ac_cv_type_signal=int
5787 rm -f conftest.$ac_objext conftest.$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5790 echo "${ECHO_T}$ac_cv_type_signal" >&6
5792 cat >>confdefs.h <<_ACEOF
5793 #define RETSIGTYPE $ac_cv_type_signal
5794 _ACEOF
5798 echo "$as_me:$LINENO: checking for speed_t" >&5
5799 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5800 if test "${emacs_cv_speed_t+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <termios.h>
5812 main ()
5814 speed_t x = 1;
5816 return 0;
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 emacs_cv_speed_t=yes
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 emacs_cv_speed_t=no
5838 rm -f conftest.$ac_objext conftest.$ac_ext
5840 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5841 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5842 if test $emacs_cv_speed_t = yes; then
5844 cat >>confdefs.h <<\_ACEOF
5845 #define HAVE_SPEED_T 1
5846 _ACEOF
5850 echo "$as_me:$LINENO: checking for struct timeval" >&5
5851 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5852 if test "${emacs_cv_struct_timeval+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 cat >conftest.$ac_ext <<_ACEOF
5856 #line $LINENO "configure"
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #ifdef TIME_WITH_SYS_TIME
5863 #include <sys/time.h>
5864 #include <time.h>
5865 #else
5866 #ifdef HAVE_SYS_TIME_H
5867 #include <sys/time.h>
5868 #else
5869 #include <time.h>
5870 #endif
5871 #endif
5873 main ()
5875 static struct timeval x; x.tv_sec = x.tv_usec;
5877 return 0;
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 emacs_cv_struct_timeval=yes
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 emacs_cv_struct_timeval=no
5899 rm -f conftest.$ac_objext conftest.$ac_ext
5901 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5902 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5903 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5904 if test $emacs_cv_struct_timeval = yes; then
5906 cat >>confdefs.h <<\_ACEOF
5907 #define HAVE_TIMEVAL 1
5908 _ACEOF
5912 echo "$as_me:$LINENO: checking for struct exception" >&5
5913 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5914 if test "${emacs_cv_struct_exception+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917 cat >conftest.$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <math.h>
5926 main ()
5928 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 emacs_cv_struct_exception=yes
5946 else
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 emacs_cv_struct_exception=no
5952 rm -f conftest.$ac_objext conftest.$ac_ext
5954 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5955 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5956 HAVE_EXCEPTION=$emacs_cv_struct_exception
5957 if test $emacs_cv_struct_exception != yes; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define NO_MATHERR 1
5961 _ACEOF
5965 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5966 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5967 if test "${ac_cv_struct_tm+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <sys/types.h>
5978 #include <time.h>
5981 main ()
5983 struct tm *tp; tp->tm_sec;
5985 return 0;
5987 _ACEOF
5988 rm -f conftest.$ac_objext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 (eval $ac_compile) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_struct_tm=time.h
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_cv_struct_tm=sys/time.h
6007 rm -f conftest.$ac_objext conftest.$ac_ext
6009 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6010 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6011 if test $ac_cv_struct_tm = sys/time.h; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define TM_IN_SYS_TIME 1
6015 _ACEOF
6019 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6020 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6021 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <sys/types.h>
6032 #include <$ac_cv_struct_tm>
6036 main ()
6038 static struct tm ac_aggr;
6039 if (ac_aggr.tm_zone)
6040 return 0;
6042 return 0;
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_member_struct_tm_tm_zone=yes
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <sys/types.h>
6070 #include <$ac_cv_struct_tm>
6074 main ()
6076 static struct tm ac_aggr;
6077 if (sizeof ac_aggr.tm_zone)
6078 return 0;
6080 return 0;
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest.$ac_objext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_member_struct_tm_tm_zone=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_member_struct_tm_tm_zone=no
6102 rm -f conftest.$ac_objext conftest.$ac_ext
6104 rm -f conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6107 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6108 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_STRUCT_TM_TM_ZONE 1
6112 _ACEOF
6117 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6119 cat >>confdefs.h <<\_ACEOF
6120 #define HAVE_TM_ZONE 1
6121 _ACEOF
6123 else
6124 echo "$as_me:$LINENO: checking for tzname" >&5
6125 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6126 if test "${ac_cv_var_tzname+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <time.h>
6137 #ifndef tzname /* For SGI. */
6138 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6139 #endif
6142 main ()
6144 atoi(*tzname);
6146 return 0;
6148 _ACEOF
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -s conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_var_tzname=yes
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_cv_var_tzname=no
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6171 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6172 if test $ac_cv_var_tzname = yes; then
6174 cat >>confdefs.h <<\_ACEOF
6175 #define HAVE_TZNAME 1
6176 _ACEOF
6181 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6182 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6183 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 cat >conftest.$ac_ext <<_ACEOF
6187 #line $LINENO "configure"
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <time.h>
6196 main ()
6198 static struct tm ac_aggr;
6199 if (ac_aggr.tm_gmtoff)
6200 return 0;
6202 return 0;
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_member_struct_tm_tm_gmtoff=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 cat >conftest.$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <time.h>
6232 main ()
6234 static struct tm ac_aggr;
6235 if (sizeof ac_aggr.tm_gmtoff)
6236 return 0;
6238 return 0;
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 ac_cv_member_struct_tm_tm_gmtoff=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_cv_member_struct_tm_tm_gmtoff=no
6260 rm -f conftest.$ac_objext conftest.$ac_ext
6262 rm -f conftest.$ac_objext conftest.$ac_ext
6264 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6265 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6266 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_TM_GMTOFF 1
6270 _ACEOF
6274 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6275 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6276 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 #include <net/if.h>
6289 main ()
6291 static struct ifreq ac_aggr;
6292 if (ac_aggr.ifr_flags)
6293 return 0;
6295 return 0;
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -s conftest.$ac_objext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 ac_cv_member_struct_ifreq_ifr_flags=yes
6311 else
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <net/if.h>
6325 main ()
6327 static struct ifreq ac_aggr;
6328 if (sizeof ac_aggr.ifr_flags)
6329 return 0;
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -s conftest.$ac_objext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_cv_member_struct_ifreq_ifr_flags=yes
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 ac_cv_member_struct_ifreq_ifr_flags=no
6353 rm -f conftest.$ac_objext conftest.$ac_ext
6355 rm -f conftest.$ac_objext conftest.$ac_ext
6357 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6358 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6359 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6361 cat >>confdefs.h <<_ACEOF
6362 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6363 _ACEOF
6367 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6368 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6369 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 cat >conftest.$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <net/if.h>
6382 main ()
6384 static struct ifreq ac_aggr;
6385 if (ac_aggr.ifr_hwaddr)
6386 return 0;
6388 return 0;
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -s conftest.$ac_objext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6410 /* confdefs.h. */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 #include <net/if.h>
6418 main ()
6420 static struct ifreq ac_aggr;
6421 if (sizeof ac_aggr.ifr_hwaddr)
6422 return 0;
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_cv_member_struct_ifreq_ifr_hwaddr=no
6446 rm -f conftest.$ac_objext conftest.$ac_ext
6448 rm -f conftest.$ac_objext conftest.$ac_ext
6450 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6451 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6452 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6454 cat >>confdefs.h <<_ACEOF
6455 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6456 _ACEOF
6460 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6461 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6462 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 #line $LINENO "configure"
6467 /* confdefs.h. */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 #include <net/if.h>
6475 main ()
6477 static struct ifreq ac_aggr;
6478 if (ac_aggr.ifr_netmask)
6479 return 0;
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_member_struct_ifreq_ifr_netmask=yes
6497 else
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 cat >conftest.$ac_ext <<_ACEOF
6502 #line $LINENO "configure"
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #include <net/if.h>
6511 main ()
6513 static struct ifreq ac_aggr;
6514 if (sizeof ac_aggr.ifr_netmask)
6515 return 0;
6517 return 0;
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -s conftest.$ac_objext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_member_struct_ifreq_ifr_netmask=yes
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_cv_member_struct_ifreq_ifr_netmask=no
6539 rm -f conftest.$ac_objext conftest.$ac_ext
6541 rm -f conftest.$ac_objext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6544 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6545 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6549 _ACEOF
6553 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6554 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6555 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 cat >conftest.$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #include <net/if.h>
6568 main ()
6570 static struct ifreq ac_aggr;
6571 if (ac_aggr.ifr_broadaddr)
6572 return 0;
6574 return 0;
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <net/if.h>
6604 main ()
6606 static struct ifreq ac_aggr;
6607 if (sizeof ac_aggr.ifr_broadaddr)
6608 return 0;
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6626 else
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6630 ac_cv_member_struct_ifreq_ifr_broadaddr=no
6632 rm -f conftest.$ac_objext conftest.$ac_ext
6634 rm -f conftest.$ac_objext conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6637 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6638 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6640 cat >>confdefs.h <<_ACEOF
6641 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6642 _ACEOF
6646 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6647 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
6648 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 cat >conftest.$ac_ext <<_ACEOF
6652 #line $LINENO "configure"
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <net/if.h>
6661 main ()
6663 static struct ifreq ac_aggr;
6664 if (ac_aggr.ifr_addr)
6665 return 0;
6667 return 0;
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 ac_cv_member_struct_ifreq_ifr_addr=yes
6683 else
6684 echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6687 cat >conftest.$ac_ext <<_ACEOF
6688 #line $LINENO "configure"
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <net/if.h>
6697 main ()
6699 static struct ifreq ac_aggr;
6700 if (sizeof ac_aggr.ifr_addr)
6701 return 0;
6703 return 0;
6705 _ACEOF
6706 rm -f conftest.$ac_objext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -s conftest.$ac_objext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_member_struct_ifreq_ifr_addr=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 ac_cv_member_struct_ifreq_ifr_addr=no
6725 rm -f conftest.$ac_objext conftest.$ac_ext
6727 rm -f conftest.$ac_objext conftest.$ac_ext
6729 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
6730 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
6731 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6735 _ACEOF
6742 echo "$as_me:$LINENO: checking for function prototypes" >&5
6743 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6744 if test "$ac_cv_prog_cc_stdc" != no; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746 echo "${ECHO_T}yes" >&6
6748 cat >>confdefs.h <<\_ACEOF
6749 #define PROTOTYPES 1
6750 _ACEOF
6753 cat >>confdefs.h <<\_ACEOF
6754 #define __PROTOTYPES 1
6755 _ACEOF
6757 else
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6762 echo "$as_me:$LINENO: checking for working volatile" >&5
6763 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6764 if test "${ac_cv_c_volatile+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 #line $LINENO "configure"
6769 /* confdefs.h. */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6776 main ()
6779 volatile int x;
6780 int * volatile y;
6782 return 0;
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787 (eval $ac_compile) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -s conftest.$ac_objext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_c_volatile=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_c_volatile=no
6804 rm -f conftest.$ac_objext conftest.$ac_ext
6806 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6807 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6808 if test $ac_cv_c_volatile = no; then
6810 cat >>confdefs.h <<\_ACEOF
6811 #define volatile
6812 _ACEOF
6816 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6817 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6818 if test "${ac_cv_c_const+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6830 main ()
6832 /* FIXME: Include the comments suggested by Paul. */
6833 #ifndef __cplusplus
6834 /* Ultrix mips cc rejects this. */
6835 typedef int charset[2];
6836 const charset x;
6837 /* SunOS 4.1.1 cc rejects this. */
6838 char const *const *ccp;
6839 char **p;
6840 /* NEC SVR4.0.2 mips cc rejects this. */
6841 struct point {int x, y;};
6842 static struct point const zero = {0,0};
6843 /* AIX XL C 1.02.0.0 rejects this.
6844 It does not let you subtract one const X* pointer from another in
6845 an arm of an if-expression whose if-part is not a constant
6846 expression */
6847 const char *g = "string";
6848 ccp = &g + (g ? g-g : 0);
6849 /* HPUX 7.0 cc rejects these. */
6850 ++ccp;
6851 p = (char**) ccp;
6852 ccp = (char const *const *) p;
6853 { /* SCO 3.2v4 cc rejects this. */
6854 char *t;
6855 char const *s = 0 ? (char *) 0 : (char const *) 0;
6857 *t++ = 0;
6859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6860 int x[] = {25, 17};
6861 const int *foo = &x[0];
6862 ++foo;
6864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6865 typedef const int *iptr;
6866 iptr p = 0;
6867 ++p;
6869 { /* AIX XL C 1.02.0.0 rejects this saying
6870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6871 struct s { int j; const int *ap[3]; };
6872 struct s *b; b->j = 5;
6874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6875 const int foo = 10;
6877 #endif
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_c_const=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_c_const=no
6902 rm -f conftest.$ac_objext conftest.$ac_ext
6904 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6905 echo "${ECHO_T}$ac_cv_c_const" >&6
6906 if test $ac_cv_c_const = no; then
6908 cat >>confdefs.h <<\_ACEOF
6909 #define const
6910 _ACEOF
6914 echo "$as_me:$LINENO: checking for void * support" >&5
6915 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6916 if test "${emacs_cv_void_star+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line $LINENO "configure"
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6928 main ()
6930 void * foo;
6932 return 0;
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 emacs_cv_void_star=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 emacs_cv_void_star=no
6954 rm -f conftest.$ac_objext conftest.$ac_ext
6956 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6957 echo "${ECHO_T}$emacs_cv_void_star" >&6
6958 if test $emacs_cv_void_star = yes; then
6959 cat >>confdefs.h <<\_ACEOF
6960 #define POINTER_TYPE void
6961 _ACEOF
6963 else
6964 cat >>confdefs.h <<\_ACEOF
6965 #define POINTER_TYPE char
6966 _ACEOF
6972 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6974 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6975 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.make <<\_ACEOF
6979 all:
6980 @echo 'ac_maketemp="$(MAKE)"'
6981 _ACEOF
6982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6983 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6984 if test -n "$ac_maketemp"; then
6985 eval ac_cv_prog_make_${ac_make}_set=yes
6986 else
6987 eval ac_cv_prog_make_${ac_make}_set=no
6989 rm -f conftest.make
6991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6994 SET_MAKE=
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 SET_MAKE="MAKE=${MAKE-make}"
7002 echo "$as_me:$LINENO: checking for long file names" >&5
7003 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7004 if test "${ac_cv_sys_long_file_names+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 ac_cv_sys_long_file_names=yes
7008 # Test for long file names in all the places we know might matter:
7009 # . the current directory, where building will happen
7010 # $prefix/lib where we will be installing things
7011 # $exec_prefix/lib likewise
7012 # eval it to expand exec_prefix.
7013 # $TMPDIR if set, where it might want to write temporary files
7014 # if $TMPDIR is not set:
7015 # /tmp where it might want to write temporary files
7016 # /var/tmp likewise
7017 # /usr/tmp likewise
7018 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7019 ac_tmpdirs=$TMPDIR
7020 else
7021 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7023 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7024 test -d $ac_dir || continue
7025 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7026 ac_xdir=$ac_dir/cf$$
7027 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7028 ac_tf1=$ac_xdir/conftest9012345
7029 ac_tf2=$ac_xdir/conftest9012346
7030 (echo 1 >$ac_tf1) 2>/dev/null
7031 (echo 2 >$ac_tf2) 2>/dev/null
7032 ac_val=`cat $ac_tf1 2>/dev/null`
7033 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7034 ac_cv_sys_long_file_names=no
7035 rm -rf $ac_xdir 2>/dev/null
7036 break
7038 rm -rf $ac_xdir 2>/dev/null
7039 done
7041 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7042 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7043 if test $ac_cv_sys_long_file_names = yes; then
7045 cat >>confdefs.h <<\_ACEOF
7046 #define HAVE_LONG_FILE_NAMES 1
7047 _ACEOF
7052 #### Choose a window system.
7054 echo "$as_me:$LINENO: checking for X" >&5
7055 echo $ECHO_N "checking for X... $ECHO_C" >&6
7058 # Check whether --with-x or --without-x was given.
7059 if test "${with_x+set}" = set; then
7060 withval="$with_x"
7063 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7064 if test "x$with_x" = xno; then
7065 # The user explicitly disabled X.
7066 have_x=disabled
7067 else
7068 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7069 # Both variables are already set.
7070 have_x=yes
7071 else
7072 if test "${ac_cv_have_x+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 # One or both of the vars are not set, and there is no cached value.
7076 ac_x_includes=no ac_x_libraries=no
7077 rm -fr conftest.dir
7078 if mkdir conftest.dir; then
7079 cd conftest.dir
7080 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7081 cat >Imakefile <<'_ACEOF'
7082 acfindx:
7083 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7084 _ACEOF
7085 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7086 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7087 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7088 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7089 for ac_extension in a so sl; do
7090 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7091 test -f $ac_im_libdir/libX11.$ac_extension; then
7092 ac_im_usrlibdir=$ac_im_libdir; break
7094 done
7095 # Screen out bogus values from the imake configuration. They are
7096 # bogus both because they are the default anyway, and because
7097 # using them would break gcc on systems where it needs fixed includes.
7098 case $ac_im_incroot in
7099 /usr/include) ;;
7100 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7101 esac
7102 case $ac_im_usrlibdir in
7103 /usr/lib | /lib) ;;
7104 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7105 esac
7107 cd ..
7108 rm -fr conftest.dir
7111 # Standard set of common directories for X headers.
7112 # Check X11 before X11Rn because it is often a symlink to the current release.
7113 ac_x_header_dirs='
7114 /usr/X11/include
7115 /usr/X11R6/include
7116 /usr/X11R5/include
7117 /usr/X11R4/include
7119 /usr/include/X11
7120 /usr/include/X11R6
7121 /usr/include/X11R5
7122 /usr/include/X11R4
7124 /usr/local/X11/include
7125 /usr/local/X11R6/include
7126 /usr/local/X11R5/include
7127 /usr/local/X11R4/include
7129 /usr/local/include/X11
7130 /usr/local/include/X11R6
7131 /usr/local/include/X11R5
7132 /usr/local/include/X11R4
7134 /usr/X386/include
7135 /usr/x386/include
7136 /usr/XFree86/include/X11
7138 /usr/include
7139 /usr/local/include
7140 /usr/unsupported/include
7141 /usr/athena/include
7142 /usr/local/x11r5/include
7143 /usr/lpp/Xamples/include
7145 /usr/openwin/include
7146 /usr/openwin/share/include'
7148 if test "$ac_x_includes" = no; then
7149 # Guess where to find include files, by looking for Intrinsic.h.
7150 # First, try using that file with no special directory specified.
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <X11/Intrinsic.h>
7159 _ACEOF
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7162 ac_status=$?
7163 grep -v '^ *+' conftest.er1 >conftest.err
7164 rm -f conftest.er1
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev/null; then
7168 if test -s conftest.err; then
7169 ac_cpp_err=$ac_c_preproc_warn_flag
7170 else
7171 ac_cpp_err=
7173 else
7174 ac_cpp_err=yes
7176 if test -z "$ac_cpp_err"; then
7177 # We can compile using X headers with no special include directory.
7178 ac_x_includes=
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 for ac_dir in $ac_x_header_dirs; do
7184 if test -r "$ac_dir/X11/Intrinsic.h"; then
7185 ac_x_includes=$ac_dir
7186 break
7188 done
7190 rm -f conftest.err conftest.$ac_ext
7191 fi # $ac_x_includes = no
7193 if test "$ac_x_libraries" = no; then
7194 # Check for the libraries.
7195 # See if we find them without any special options.
7196 # Don't add to $LIBS permanently.
7197 ac_save_LIBS=$LIBS
7198 LIBS="-lXt $LIBS"
7199 cat >conftest.$ac_ext <<_ACEOF
7200 #line $LINENO "configure"
7201 /* confdefs.h. */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #include <X11/Intrinsic.h>
7208 main ()
7210 XtMalloc (0)
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext conftest$ac_exeext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7217 (eval $ac_link) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -s conftest$ac_exeext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7227 LIBS=$ac_save_LIBS
7228 # We can link X programs with no special library path.
7229 ac_x_libraries=
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 LIBS=$ac_save_LIBS
7235 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7237 # Don't even attempt the hair of trying to link an X program!
7238 for ac_extension in a so sl; do
7239 if test -r $ac_dir/libXt.$ac_extension; then
7240 ac_x_libraries=$ac_dir
7241 break 2
7243 done
7244 done
7246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7247 fi # $ac_x_libraries = no
7249 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7250 # Didn't find X anywhere. Cache the known absence of X.
7251 ac_cv_have_x="have_x=no"
7252 else
7253 # Record where we found X for the cache.
7254 ac_cv_have_x="have_x=yes \
7255 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7260 eval "$ac_cv_have_x"
7261 fi # $with_x != no
7263 if test "$have_x" != yes; then
7264 echo "$as_me:$LINENO: result: $have_x" >&5
7265 echo "${ECHO_T}$have_x" >&6
7266 no_x=yes
7267 else
7268 # If each of the values was on the command line, it overrides each guess.
7269 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7270 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7271 # Update the cache value to reflect the command line values.
7272 ac_cv_have_x="have_x=yes \
7273 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7274 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7275 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7278 if test "$no_x" = yes; then
7279 window_system=none
7280 else
7281 window_system=x11
7284 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7285 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7286 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7287 x_default_search_path=""
7288 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7289 x_search_path="\
7290 ${x_library}/X11/%L/%T/%N%C%S:\
7291 ${x_library}/X11/%l/%T/%N%C%S:\
7292 ${x_library}/X11/%T/%N%C%S:\
7293 ${x_library}/X11/%L/%T/%N%S:\
7294 ${x_library}/X11/%l/%T/%N%S:\
7295 ${x_library}/X11/%T/%N%S"
7296 if test x"${x_default_search_path}" = x; then
7297 x_default_search_path=${x_search_path}
7298 else
7299 x_default_search_path="${x_search_path}:${x_default_search_path}"
7301 done
7303 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7304 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7307 if test x"${x_includes}" = x; then
7308 bitmapdir=/usr/include/X11/bitmaps
7309 else
7310 # accumulate include directories that have X11 bitmap subdirectories
7311 bmd_acc="dummyval"
7312 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7313 if test -d "${bmd}/X11/bitmaps"; then
7314 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7316 if test -d "${bmd}/bitmaps"; then
7317 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7319 done
7320 if test ${bmd_acc} != "dummyval"; then
7321 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7325 case "${window_system}" in
7326 x11 )
7327 HAVE_X_WINDOWS=yes
7328 HAVE_X11=yes
7329 case "${with_x_toolkit}" in
7330 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7331 motif ) USE_X_TOOLKIT=MOTIF ;;
7332 gtk ) with_gtk=yes
7333 USE_X_TOOLKIT=none ;;
7334 no ) USE_X_TOOLKIT=none ;;
7335 * ) USE_X_TOOLKIT=maybe ;;
7336 esac
7338 none )
7339 HAVE_X_WINDOWS=no
7340 HAVE_X11=no
7341 USE_X_TOOLKIT=none
7343 esac
7345 ### If we're using X11, we should use the X menu package.
7346 HAVE_MENUS=no
7347 case ${HAVE_X11} in
7348 yes ) HAVE_MENUS=yes ;;
7349 esac
7351 if test "${opsys}" = "hpux9"; then
7352 case "${x_libraries}" in
7353 *X11R4* )
7354 opsysfile="s/hpux9-x11r4.h"
7356 esac
7359 if test "${opsys}" = "hpux9shr"; then
7360 case "${x_libraries}" in
7361 *X11R4* )
7362 opsysfile="s/hpux9shxr4.h"
7364 esac
7367 ### Compute the unexec source name from the object name.
7368 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
7370 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7371 # Assume not, until told otherwise.
7372 GNU_MALLOC=yes
7373 doug_lea_malloc=yes
7374 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7375 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7376 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 /* System header to define __stub macros and hopefully few prototypes,
7387 which can conflict with char malloc_get_state (); below.
7388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7389 <limits.h> exists even on freestanding compilers. */
7390 #ifdef __STDC__
7391 # include <limits.h>
7392 #else
7393 # include <assert.h>
7394 #endif
7395 /* Override any gcc2 internal prototype to avoid an error. */
7396 #ifdef __cplusplus
7397 extern "C"
7399 #endif
7400 /* We use char because int might match the return type of a gcc2
7401 builtin and then its argument prototype would still apply. */
7402 char malloc_get_state ();
7403 /* The GNU C library defines this for functions which it implements
7404 to always fail with ENOSYS. Some functions are actually named
7405 something starting with __ and the normal name is an alias. */
7406 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7407 choke me
7408 #else
7409 char (*f) () = malloc_get_state;
7410 #endif
7411 #ifdef __cplusplus
7413 #endif
7416 main ()
7418 return f != malloc_get_state;
7420 return 0;
7422 _ACEOF
7423 rm -f conftest.$ac_objext conftest$ac_exeext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -s conftest$ac_exeext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 ac_cv_func_malloc_get_state=yes
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_cv_func_malloc_get_state=no
7442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7444 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7445 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7446 if test $ac_cv_func_malloc_get_state = yes; then
7448 else
7449 doug_lea_malloc=no
7452 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7453 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7454 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 cat >conftest.$ac_ext <<_ACEOF
7458 #line $LINENO "configure"
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char malloc_set_state (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7468 #ifdef __STDC__
7469 # include <limits.h>
7470 #else
7471 # include <assert.h>
7472 #endif
7473 /* Override any gcc2 internal prototype to avoid an error. */
7474 #ifdef __cplusplus
7475 extern "C"
7477 #endif
7478 /* We use char because int might match the return type of a gcc2
7479 builtin and then its argument prototype would still apply. */
7480 char malloc_set_state ();
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7485 choke me
7486 #else
7487 char (*f) () = malloc_set_state;
7488 #endif
7489 #ifdef __cplusplus
7491 #endif
7494 main ()
7496 return f != malloc_set_state;
7498 return 0;
7500 _ACEOF
7501 rm -f conftest.$ac_objext conftest$ac_exeext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_cv_func_malloc_set_state=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_cv_func_malloc_set_state=no
7520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7522 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7523 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7524 if test $ac_cv_func_malloc_set_state = yes; then
7526 else
7527 doug_lea_malloc=no
7530 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7531 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7532 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 cat >conftest.$ac_ext <<_ACEOF
7536 #line $LINENO "configure"
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 extern void (* __after_morecore_hook)();
7544 main ()
7546 __after_morecore_hook = 0
7548 return 0;
7550 _ACEOF
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -s conftest$ac_exeext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 (eval $ac_try) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
7563 emacs_cv_var___after_morecore_hook=yes
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7568 emacs_cv_var___after_morecore_hook=no
7570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7573 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7574 if test $emacs_cv_var___after_morecore_hook = no; then
7575 doug_lea_malloc=no
7577 if test "${system_malloc}" = "yes"; then
7578 GNU_MALLOC=no
7579 GNU_MALLOC_reason="
7580 (The GNU allocators don't work with this system configuration.)"
7582 if test "$doug_lea_malloc" = "yes" ; then
7583 if test "$GNU_MALLOC" = yes ; then
7584 GNU_MALLOC_reason="
7585 (Using Doug Lea's new malloc from the GNU C Library.)"
7588 cat >>confdefs.h <<\_ACEOF
7589 #define DOUG_LEA_MALLOC 1
7590 _ACEOF
7594 if test x"${REL_ALLOC}" = x; then
7595 REL_ALLOC=${GNU_MALLOC}
7601 for ac_header in stdlib.h unistd.h
7603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7612 else
7613 # Is the header compilable?
7614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line $LINENO "configure"
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 $ac_includes_default
7624 #include <$ac_header>
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_header_compiler=yes
7639 else
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_header_compiler=no
7645 rm -f conftest.$ac_objext conftest.$ac_ext
7646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7647 echo "${ECHO_T}$ac_header_compiler" >&6
7649 # Is the header present?
7650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7653 #line $LINENO "configure"
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 #include <$ac_header>
7660 _ACEOF
7661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } >/dev/null; then
7669 if test -s conftest.err; then
7670 ac_cpp_err=$ac_c_preproc_warn_flag
7671 else
7672 ac_cpp_err=
7674 else
7675 ac_cpp_err=yes
7677 if test -z "$ac_cpp_err"; then
7678 ac_header_preproc=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_header_preproc=no
7685 rm -f conftest.err conftest.$ac_ext
7686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7687 echo "${ECHO_T}$ac_header_preproc" >&6
7689 # So? What about this header?
7690 case $ac_header_compiler:$ac_header_preproc in
7691 yes:no )
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7697 cat <<\_ASBOX
7698 ## ------------------------------------ ##
7699 ## Report this to bug-autoconf@gnu.org. ##
7700 ## ------------------------------------ ##
7701 _ASBOX
7703 sed "s/^/$as_me: WARNING: /" >&2
7705 no:yes )
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 cat <<\_ASBOX
7714 ## ------------------------------------ ##
7715 ## Report this to bug-autoconf@gnu.org. ##
7716 ## ------------------------------------ ##
7717 _ASBOX
7719 sed "s/^/$as_me: WARNING: /" >&2
7721 esac
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 eval "$as_ac_Header=$ac_header_preproc"
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7740 done
7743 for ac_func in getpagesize
7745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7746 echo "$as_me:$LINENO: checking for $ac_func" >&5
7747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_var+set}\" = set"; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 /* System header to define __stub macros and hopefully few prototypes,
7759 which can conflict with char $ac_func (); below.
7760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7761 <limits.h> exists even on freestanding compilers. */
7762 #ifdef __STDC__
7763 # include <limits.h>
7764 #else
7765 # include <assert.h>
7766 #endif
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 #ifdef __cplusplus
7769 extern "C"
7771 #endif
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7774 char $ac_func ();
7775 /* The GNU C library defines this for functions which it implements
7776 to always fail with ENOSYS. Some functions are actually named
7777 something starting with __ and the normal name is an alias. */
7778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7779 choke me
7780 #else
7781 char (*f) () = $ac_func;
7782 #endif
7783 #ifdef __cplusplus
7785 #endif
7788 main ()
7790 return f != $ac_func;
7792 return 0;
7794 _ACEOF
7795 rm -f conftest.$ac_objext conftest$ac_exeext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797 (eval $ac_link) 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try='test -s conftest$ac_exeext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 (eval $ac_try) 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 eval "$as_ac_var=yes"
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 eval "$as_ac_var=no"
7814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7818 if test `eval echo '${'$as_ac_var'}'` = yes; then
7819 cat >>confdefs.h <<_ACEOF
7820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7821 _ACEOF
7824 done
7826 echo "$as_me:$LINENO: checking for working mmap" >&5
7827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 if test "$cross_compiling" = yes; then
7832 ac_cv_func_mmap_fixed_mapped=no
7833 else
7834 cat >conftest.$ac_ext <<_ACEOF
7835 #line $LINENO "configure"
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 /* malloc might have been renamed as rpl_malloc. */
7843 #undef malloc
7845 /* Thanks to Mike Haertel and Jim Avera for this test.
7846 Here is a matrix of mmap possibilities:
7847 mmap private not fixed
7848 mmap private fixed at somewhere currently unmapped
7849 mmap private fixed at somewhere already mapped
7850 mmap shared not fixed
7851 mmap shared fixed at somewhere currently unmapped
7852 mmap shared fixed at somewhere already mapped
7853 For private mappings, we should verify that changes cannot be read()
7854 back from the file, nor mmap's back from the file at a different
7855 address. (There have been systems where private was not correctly
7856 implemented like the infamous i386 svr4.0, and systems where the
7857 VM page cache was not coherent with the file system buffer cache
7858 like early versions of FreeBSD and possibly contemporary NetBSD.)
7859 For shared mappings, we should conversely verify that changes get
7860 propagated back to all the places they're supposed to be.
7862 Grep wants private fixed already mapped.
7863 The main things grep needs to know about mmap are:
7864 * does it exist and is it safe to write into the mmap'd area
7865 * how to use it (BSD variants) */
7867 #include <fcntl.h>
7868 #include <sys/mman.h>
7870 #if !STDC_HEADERS && !HAVE_STDLIB_H
7871 char *malloc ();
7872 #endif
7874 /* This mess was copied from the GNU getpagesize.h. */
7875 #if !HAVE_GETPAGESIZE
7876 /* Assume that all systems that can run configure have sys/param.h. */
7877 # if !HAVE_SYS_PARAM_H
7878 # define HAVE_SYS_PARAM_H 1
7879 # endif
7881 # ifdef _SC_PAGESIZE
7882 # define getpagesize() sysconf(_SC_PAGESIZE)
7883 # else /* no _SC_PAGESIZE */
7884 # if HAVE_SYS_PARAM_H
7885 # include <sys/param.h>
7886 # ifdef EXEC_PAGESIZE
7887 # define getpagesize() EXEC_PAGESIZE
7888 # else /* no EXEC_PAGESIZE */
7889 # ifdef NBPG
7890 # define getpagesize() NBPG * CLSIZE
7891 # ifndef CLSIZE
7892 # define CLSIZE 1
7893 # endif /* no CLSIZE */
7894 # else /* no NBPG */
7895 # ifdef NBPC
7896 # define getpagesize() NBPC
7897 # else /* no NBPC */
7898 # ifdef PAGESIZE
7899 # define getpagesize() PAGESIZE
7900 # endif /* PAGESIZE */
7901 # endif /* no NBPC */
7902 # endif /* no NBPG */
7903 # endif /* no EXEC_PAGESIZE */
7904 # else /* no HAVE_SYS_PARAM_H */
7905 # define getpagesize() 8192 /* punt totally */
7906 # endif /* no HAVE_SYS_PARAM_H */
7907 # endif /* no _SC_PAGESIZE */
7909 #endif /* no HAVE_GETPAGESIZE */
7912 main ()
7914 char *data, *data2, *data3;
7915 int i, pagesize;
7916 int fd;
7918 pagesize = getpagesize ();
7920 /* First, make a file with some known garbage in it. */
7921 data = (char *) malloc (pagesize);
7922 if (!data)
7923 exit (1);
7924 for (i = 0; i < pagesize; ++i)
7925 *(data + i) = rand ();
7926 umask (0);
7927 fd = creat ("conftest.mmap", 0600);
7928 if (fd < 0)
7929 exit (1);
7930 if (write (fd, data, pagesize) != pagesize)
7931 exit (1);
7932 close (fd);
7934 /* Next, try to mmap the file at a fixed address which already has
7935 something else allocated at it. If we can, also make sure that
7936 we see the same garbage. */
7937 fd = open ("conftest.mmap", O_RDWR);
7938 if (fd < 0)
7939 exit (1);
7940 data2 = (char *) malloc (2 * pagesize);
7941 if (!data2)
7942 exit (1);
7943 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7946 exit (1);
7947 for (i = 0; i < pagesize; ++i)
7948 if (*(data + i) != *(data2 + i))
7949 exit (1);
7951 /* Finally, make sure that changes to the mapped area do not
7952 percolate back to the file as seen by read(). (This is a bug on
7953 some variants of i386 svr4.0.) */
7954 for (i = 0; i < pagesize; ++i)
7955 *(data2 + i) = *(data2 + i) + 1;
7956 data3 = (char *) malloc (pagesize);
7957 if (!data3)
7958 exit (1);
7959 if (read (fd, data3, pagesize) != pagesize)
7960 exit (1);
7961 for (i = 0; i < pagesize; ++i)
7962 if (*(data + i) != *(data3 + i))
7963 exit (1);
7964 close (fd);
7965 exit (0);
7967 _ACEOF
7968 rm -f conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_cv_func_mmap_fixed_mapped=yes
7980 else
7981 echo "$as_me: program exited with status $ac_status" >&5
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 ( exit $ac_status )
7986 ac_cv_func_mmap_fixed_mapped=no
7988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7995 cat >>confdefs.h <<\_ACEOF
7996 #define HAVE_MMAP 1
7997 _ACEOF
8000 rm -f conftest.mmap
8002 if test $use_mmap_for_buffers = yes; then
8003 REL_ALLOC=no
8006 LIBS="$libsrc_libs $LIBS"
8009 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8010 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8011 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 ac_check_lib_save_LIBS=$LIBS
8015 LIBS="-ldnet $LIBS"
8016 cat >conftest.$ac_ext <<_ACEOF
8017 #line $LINENO "configure"
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 #ifdef __cplusplus
8026 extern "C"
8027 #endif
8028 /* We use char because int might match the return type of a gcc2
8029 builtin and then its argument prototype would still apply. */
8030 char dnet_ntoa ();
8032 main ()
8034 dnet_ntoa ();
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_lib_dnet_dnet_ntoa=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_cv_lib_dnet_dnet_ntoa=no
8058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8059 LIBS=$ac_check_lib_save_LIBS
8061 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8062 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8063 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8064 cat >>confdefs.h <<_ACEOF
8065 #define HAVE_LIBDNET 1
8066 _ACEOF
8068 LIBS="-ldnet $LIBS"
8073 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8074 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8075 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 ac_check_lib_save_LIBS=$LIBS
8079 LIBS="-lXbsd $LIBS"
8080 cat >conftest.$ac_ext <<_ACEOF
8081 #line $LINENO "configure"
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8090 main ()
8092 main ();
8094 return 0;
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -s conftest$ac_exeext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 (eval $ac_try) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 ac_cv_lib_Xbsd_main=yes
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 ac_cv_lib_Xbsd_main=no
8116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8117 LIBS=$ac_check_lib_save_LIBS
8119 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8120 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8121 if test $ac_cv_lib_Xbsd_main = yes; then
8122 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8127 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8128 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8129 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 ac_check_lib_save_LIBS=$LIBS
8133 LIBS="-lpthreads $LIBS"
8134 cat >conftest.$ac_ext <<_ACEOF
8135 #line $LINENO "configure"
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8142 /* Override any gcc2 internal prototype to avoid an error. */
8143 #ifdef __cplusplus
8144 extern "C"
8145 #endif
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148 char cma_open ();
8150 main ()
8152 cma_open ();
8154 return 0;
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159 (eval $ac_link) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
8163 { ac_try='test -s conftest$ac_exeext'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 ac_cv_lib_pthreads_cma_open=yes
8170 else
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_cv_lib_pthreads_cma_open=no
8176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8177 LIBS=$ac_check_lib_save_LIBS
8179 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8180 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8181 if test $ac_cv_lib_pthreads_cma_open = yes; then
8182 cat >>confdefs.h <<_ACEOF
8183 #define HAVE_LIBPTHREADS 1
8184 _ACEOF
8186 LIBS="-lpthreads $LIBS"
8191 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8192 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8193 if test -d /usr/X386/include; then
8194 HAVE_XFREE386=yes
8195 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8196 else
8197 HAVE_XFREE386=no
8199 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8200 echo "${ECHO_T}$HAVE_XFREE386" >&6
8203 case ${host_os} in
8204 aix*)
8205 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8206 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8207 if test "${gdb_cv_bigtoc+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8211 case $GCC in
8212 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8213 *) gdb_cv_bigtoc=-bbigtoc ;;
8214 esac
8216 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8217 cat >conftest.$ac_ext <<_ACEOF
8218 #line $LINENO "configure"
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8226 main ()
8228 int i;
8230 return 0;
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -s conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 gdb_cv_bigtoc=
8252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8255 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8256 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8258 esac
8260 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8261 # used for the tests that follow. We set them back to REAL_CFLAGS and
8262 # REAL_CPPFLAGS later on.
8264 REAL_CPPFLAGS="$CPPFLAGS"
8266 if test "${HAVE_X11}" = "yes"; then
8267 DEFS="$C_SWITCH_X_SITE $DEFS"
8268 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8269 LIBS="$LIBX $LIBS"
8270 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8271 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8273 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8274 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8275 # but it's more convenient here to set LD_RUN_PATH
8276 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8277 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8278 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8279 export LD_RUN_PATH
8282 if test "${opsys}" = "gnu-linux"; then
8283 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8284 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8286 #line $LINENO "configure"
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8294 main ()
8296 XOpenDisplay ("foo");
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -s conftest$ac_exeext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 xlinux_first_failure=no
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 xlinux_first_failure=yes
8320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8321 if test "${xlinux_first_failure}" = "yes"; then
8322 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8323 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8324 OLD_CPPFLAGS="$CPPFLAGS"
8325 OLD_LIBS="$LIBS"
8326 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8327 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8328 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8329 LIBS="$LIBS -b i486-linuxaout"
8330 cat >conftest.$ac_ext <<_ACEOF
8331 #line $LINENO "configure"
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8339 main ()
8341 XOpenDisplay ("foo");
8343 return 0;
8345 _ACEOF
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348 (eval $ac_link) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 xlinux_second_failure=no
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 xlinux_second_failure=yes
8365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366 if test "${xlinux_second_failure}" = "yes"; then
8367 # If we get the same failure with -b, there is no use adding -b.
8368 # So take it out. This plays safe.
8369 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8370 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8371 CPPFLAGS="$OLD_CPPFLAGS"
8372 LIBS="$OLD_LIBS"
8373 echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6
8375 else
8376 echo "$as_me:$LINENO: result: yes" >&5
8377 echo "${ECHO_T}yes" >&6
8379 else
8380 echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6
8385 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8386 # header files included from there.
8387 echo "$as_me:$LINENO: checking for Xkb" >&5
8388 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8390 #line $LINENO "configure"
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 #include <X11/Xlib.h>
8397 #include <X11/XKBlib.h>
8399 main ()
8401 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8403 return 0;
8405 _ACEOF
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -s conftest$ac_exeext'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 (eval $ac_try) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 emacs_xkb=yes
8419 else
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 emacs_xkb=no
8425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8427 echo "${ECHO_T}$emacs_xkb" >&6
8428 if test $emacs_xkb = yes; then
8430 cat >>confdefs.h <<\_ACEOF
8431 #define HAVE_XKBGETKEYBOARD 1
8432 _ACEOF
8440 for ac_func in XrmSetDatabase XScreenResourceString \
8441 XScreenNumberOfScreen XSetWMProtocols
8443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8444 echo "$as_me:$LINENO: checking for $ac_func" >&5
8445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8446 if eval "test \"\${$as_ac_var+set}\" = set"; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 /* System header to define __stub macros and hopefully few prototypes,
8457 which can conflict with char $ac_func (); below.
8458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459 <limits.h> exists even on freestanding compilers. */
8460 #ifdef __STDC__
8461 # include <limits.h>
8462 #else
8463 # include <assert.h>
8464 #endif
8465 /* Override any gcc2 internal prototype to avoid an error. */
8466 #ifdef __cplusplus
8467 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char $ac_func ();
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8477 choke me
8478 #else
8479 char (*f) () = $ac_func;
8480 #endif
8481 #ifdef __cplusplus
8483 #endif
8486 main ()
8488 return f != $ac_func;
8490 return 0;
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 eval "$as_ac_var=yes"
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 eval "$as_ac_var=no"
8512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8516 if test `eval echo '${'$as_ac_var'}'` = yes; then
8517 cat >>confdefs.h <<_ACEOF
8518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8519 _ACEOF
8522 done
8526 if test "${window_system}" = "x11"; then
8527 echo "$as_me:$LINENO: checking X11 version 6" >&5
8528 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8529 if test "${emacs_cv_x11_version_6+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 #include <X11/Xlib.h>
8541 main ()
8543 #if XlibSpecificationRelease < 6
8544 fail;
8545 #endif
8548 return 0;
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 emacs_cv_x11_version_6=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 emacs_cv_x11_version_6=no
8570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8573 if test $emacs_cv_x11_version_6 = yes; then
8574 echo "$as_me:$LINENO: result: 6 or newer" >&5
8575 echo "${ECHO_T}6 or newer" >&6
8577 cat >>confdefs.h <<\_ACEOF
8578 #define HAVE_X11R6 1
8579 _ACEOF
8581 else
8582 echo "$as_me:$LINENO: result: before 6" >&5
8583 echo "${ECHO_T}before 6" >&6
8587 if test "${window_system}" = "x11"; then
8588 echo "$as_me:$LINENO: checking X11 version 5" >&5
8589 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8590 if test "${emacs_cv_x11_version_5+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593 cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 #include <X11/Xlib.h>
8602 main ()
8604 #if XlibSpecificationRelease < 5
8605 fail;
8606 #endif
8609 return 0;
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 emacs_cv_x11_version_5=yes
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 emacs_cv_x11_version_5=no
8631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8634 if test $emacs_cv_x11_version_5 = yes; then
8635 echo "$as_me:$LINENO: result: 5 or newer" >&5
8636 echo "${ECHO_T}5 or newer" >&6
8637 HAVE_X11R5=yes
8639 cat >>confdefs.h <<\_ACEOF
8640 #define HAVE_X11R5 1
8641 _ACEOF
8643 else
8644 HAVE_X11R5=no
8645 echo "$as_me:$LINENO: result: before 5" >&5
8646 echo "${ECHO_T}before 5" >&6
8652 HAVE_GTK=no
8653 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8654 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8655 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8656 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8657 { (exit 1); exit 1; }; };
8659 GLIB_REQUIRED=2.0.1
8660 GTK_REQUIRED=2.0.1
8661 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8663 if test "X${with_pkg_config_prog}" != X; then
8664 PKG_CONFIG="${with_pkg_config_prog}"
8667 succeeded=no
8669 if test -z "$PKG_CONFIG"; then
8670 # Extract the first word of "pkg-config", so it can be a program name with args.
8671 set dummy pkg-config; ac_word=$2
8672 echo "$as_me:$LINENO: checking for $ac_word" >&5
8673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8674 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677 case $PKG_CONFIG in
8678 [\\/]* | ?:[\\/]*)
8679 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8685 IFS=$as_save_IFS
8686 test -z "$as_dir" && as_dir=.
8687 for ac_exec_ext in '' $ac_executable_extensions; do
8688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 break 2
8693 done
8694 done
8696 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8698 esac
8700 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8702 if test -n "$PKG_CONFIG"; then
8703 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8704 echo "${ECHO_T}$PKG_CONFIG" >&6
8705 else
8706 echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6
8712 if test "$PKG_CONFIG" = "no" ; then
8713 echo "*** The pkg-config script could not be found. Make sure it is"
8714 echo "*** in your path, or give the full path to pkg-config with"
8715 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8716 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8717 else
8718 PKG_CONFIG_MIN_VERSION=0.9.0
8719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8720 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8721 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8723 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6
8726 succeeded=yes
8728 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8729 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8730 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8731 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8732 echo "${ECHO_T}$GTK_CFLAGS" >&6
8734 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8735 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8736 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8737 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8738 echo "${ECHO_T}$GTK_LIBS" >&6
8739 else
8740 GTK_CFLAGS=""
8741 GTK_LIBS=""
8742 ## If we have a custom action on failure, don't print errors, but
8743 ## do set a variable so people can do so.
8744 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8745 echo $GTK_PKG_ERRORS
8750 else
8751 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8752 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8756 if test $succeeded = yes; then
8758 else
8759 { { 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
8760 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;}
8761 { (exit 1); exit 1; }; }
8766 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8767 HAVE_GTK=yes
8769 cat >>confdefs.h <<\_ACEOF
8770 #define HAVE_GTK 1
8771 _ACEOF
8773 USE_X_TOOLKIT=none
8775 with_toolkit_scroll_bars=yes
8778 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8779 if test x"${HAVE_X11R5}" = xyes; then
8780 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8781 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8782 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 cat >conftest.$ac_ext <<_ACEOF
8786 #line $LINENO "configure"
8787 /* confdefs.h. */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 #include <X11/Intrinsic.h>
8794 #include <X11/Xaw/Simple.h>
8796 main ()
8800 return 0;
8802 _ACEOF
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805 (eval $ac_link) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 emacs_cv_x11_version_5_with_xaw=yes
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 emacs_cv_x11_version_5_with_xaw=no
8822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8825 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8826 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8827 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8828 USE_X_TOOLKIT=LUCID
8829 else
8830 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8831 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8832 USE_X_TOOLKIT=none
8834 else
8835 USE_X_TOOLKIT=none
8839 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8841 if test "${USE_X_TOOLKIT}" != "none"; then
8842 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8843 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8844 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847 cat >conftest.$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <X11/Intrinsic.h>
8856 main ()
8858 #if XtSpecificationRelease < 6
8859 fail;
8860 #endif
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } &&
8872 { ac_try='test -s conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 emacs_cv_x11_toolkit_version_6=yes
8879 else
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 emacs_cv_x11_toolkit_version_6=no
8885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8888 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8889 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8890 echo "$as_me:$LINENO: result: 6 or newer" >&5
8891 echo "${ECHO_T}6 or newer" >&6
8893 cat >>confdefs.h <<\_ACEOF
8894 #define HAVE_X11XTR6 1
8895 _ACEOF
8897 else
8898 echo "$as_me:$LINENO: result: before 6" >&5
8899 echo "${ECHO_T}before 6" >&6
8902 OLDLIBS="$LIBS"
8903 if test x$HAVE_X11XTR6 = xyes; then
8904 LIBS="-lXt -lSM -lICE $LIBS"
8905 else
8906 LIBS="-lXt $LIBS"
8909 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8910 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8911 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914 ac_check_lib_save_LIBS=$LIBS
8915 LIBS="-lXmu $LIBS"
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8924 /* Override any gcc2 internal prototype to avoid an error. */
8925 #ifdef __cplusplus
8926 extern "C"
8927 #endif
8928 /* We use char because int might match the return type of a gcc2
8929 builtin and then its argument prototype would still apply. */
8930 char XmuConvertStandardSelection ();
8932 main ()
8934 XmuConvertStandardSelection ();
8936 return 0;
8938 _ACEOF
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -s conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8962 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8963 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_LIBXMU 1
8966 _ACEOF
8968 LIBS="-lXmu $LIBS"
8972 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8975 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8976 if test "${HAVE_X11}" = "yes"; then
8977 if test "${USE_X_TOOLKIT}" != "none"; then
8979 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8980 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8981 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 ac_check_lib_save_LIBS=$LIBS
8985 LIBS="-lXext $LIBS"
8986 cat >conftest.$ac_ext <<_ACEOF
8987 #line $LINENO "configure"
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8994 /* Override any gcc2 internal prototype to avoid an error. */
8995 #ifdef __cplusplus
8996 extern "C"
8997 #endif
8998 /* We use char because int might match the return type of a gcc2
8999 builtin and then its argument prototype would still apply. */
9000 char XShapeQueryExtension ();
9002 main ()
9004 XShapeQueryExtension ();
9006 return 0;
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9011 (eval $ac_link) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try='test -s conftest$ac_exeext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_cv_lib_Xext_XShapeQueryExtension=yes
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 ac_cv_lib_Xext_XShapeQueryExtension=no
9028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9029 LIBS=$ac_check_lib_save_LIBS
9031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9032 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9033 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_LIBXEXT 1
9036 _ACEOF
9038 LIBS="-lXext $LIBS"
9045 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9046 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9047 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9048 if test "${emacs_cv_lesstif+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 # We put this in CFLAGS temporarily to precede other -I options
9052 # that might be in CFLAGS temporarily.
9053 # We put this in CPPFLAGS where it precedes the other -I options.
9054 OLD_CPPFLAGS=$CPPFLAGS
9055 OLD_CFLAGS=$CFLAGS
9056 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9057 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9058 cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 /* confdefs.h. */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9067 main ()
9069 int x = 5;
9071 return 0;
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 emacs_cv_lesstif=yes
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 emacs_cv_lesstif=no
9093 rm -f conftest.$ac_objext conftest.$ac_ext
9095 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9096 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9097 if test $emacs_cv_lesstif = yes; then
9098 # Make sure this -I option remains in CPPFLAGS after it is set
9099 # back to REAL_CPPFLAGS.
9100 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9101 # have those other -I options anyway. Ultimately, having this
9102 # directory ultimately in CPPFLAGS will be enough.
9103 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9104 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9105 else
9106 CFLAGS=$OLD_CFLAGS
9107 CPPFLAGS=$OLD_CPPFLAGS
9109 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9110 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9111 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114 cat >conftest.$ac_ext <<_ACEOF
9115 #line $LINENO "configure"
9116 /* confdefs.h. */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121 #include <Xm/Xm.h>
9123 main ()
9125 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9126 int x = 5;
9127 #else
9128 Motif version prior to 2.1.
9129 #endif
9131 return 0;
9133 _ACEOF
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 emacs_cv_motif_version_2_1=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 emacs_cv_motif_version_2_1=no
9153 rm -f conftest.$ac_objext conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9156 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9157 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
9158 if test $emacs_cv_motif_version_2_1 = yes; then
9159 HAVE_LIBXP=no
9161 cat >>confdefs.h <<\_ACEOF
9162 #define HAVE_MOTIF_2_1 1
9163 _ACEOF
9165 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9166 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9167 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170 ac_check_lib_save_LIBS=$LIBS
9171 LIBS="-lXp $LIBS"
9172 cat >conftest.$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9180 /* Override any gcc2 internal prototype to avoid an error. */
9181 #ifdef __cplusplus
9182 extern "C"
9183 #endif
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9186 char XpCreateContext ();
9188 main ()
9190 XpCreateContext ();
9192 return 0;
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -s conftest$ac_exeext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_cv_lib_Xp_XpCreateContext=yes
9208 else
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_cv_lib_Xp_XpCreateContext=no
9214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9215 LIBS=$ac_check_lib_save_LIBS
9217 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9218 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
9219 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9220 HAVE_LIBXP=yes
9223 if test ${HAVE_LIBXP} = yes; then
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_LIBXP 1
9227 _ACEOF
9233 ### Is -lXaw3d available?
9234 HAVE_XAW3D=no
9235 if test "${HAVE_X11}" = "yes"; then
9236 if test "${USE_X_TOOLKIT}" != "none"; then
9237 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
9238 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
9239 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242 cat >conftest.$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 #include <X11/Xaw3d/Scrollbar.h>
9250 _ACEOF
9251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } >/dev/null; then
9259 if test -s conftest.err; then
9260 ac_cpp_err=$ac_c_preproc_warn_flag
9261 else
9262 ac_cpp_err=
9264 else
9265 ac_cpp_err=yes
9267 if test -z "$ac_cpp_err"; then
9268 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
9269 else
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
9275 rm -f conftest.err conftest.$ac_ext
9277 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
9278 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
9279 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
9280 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
9281 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
9282 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285 ac_check_lib_save_LIBS=$LIBS
9286 LIBS="-lXaw3d $LIBS"
9287 cat >conftest.$ac_ext <<_ACEOF
9288 #line $LINENO "configure"
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9295 /* Override any gcc2 internal prototype to avoid an error. */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 /* We use char because int might match the return type of a gcc2
9300 builtin and then its argument prototype would still apply. */
9301 char XawScrollbarSetThumb ();
9303 main ()
9305 XawScrollbarSetThumb ();
9307 return 0;
9309 _ACEOF
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
9329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9330 LIBS=$ac_check_lib_save_LIBS
9332 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
9333 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
9334 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
9335 HAVE_XAW3D=yes
9341 if test "${HAVE_XAW3D}" = "yes"; then
9343 cat >>confdefs.h <<\_ACEOF
9344 #define HAVE_XAW3D 1
9345 _ACEOF
9353 USE_TOOLKIT_SCROLL_BARS=no
9354 if test "${with_toolkit_scroll_bars}" != "no"; then
9355 if test "${USE_X_TOOLKIT}" != "none"; then
9356 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9357 cat >>confdefs.h <<\_ACEOF
9358 #define USE_TOOLKIT_SCROLL_BARS 1
9359 _ACEOF
9361 HAVE_XAW3D=no
9362 USE_TOOLKIT_SCROLL_BARS=yes
9363 elif test "${HAVE_XAW3D}" = "yes"; then
9364 cat >>confdefs.h <<\_ACEOF
9365 #define USE_TOOLKIT_SCROLL_BARS 1
9366 _ACEOF
9368 USE_TOOLKIT_SCROLL_BARS=yes
9370 elif test "${HAVE_GTK}" = "yes"; then
9371 cat >>confdefs.h <<\_ACEOF
9372 #define USE_TOOLKIT_SCROLL_BARS 1
9373 _ACEOF
9375 USE_TOOLKIT_SCROLL_BARS=yes
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9381 /* confdefs.h. */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9388 #include <X11/Xresource.h>
9390 main ()
9392 XIMProc callback;
9394 return 0;
9396 _ACEOF
9397 rm -f conftest.$ac_objext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399 (eval $ac_compile) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest.$ac_objext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409 HAVE_XIM=yes
9411 cat >>confdefs.h <<\_ACEOF
9412 #define HAVE_XIM 1
9413 _ACEOF
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 HAVE_XIM=no
9421 rm -f conftest.$ac_objext conftest.$ac_ext
9424 if test "${with_xim}" != "no"; then
9426 cat >>confdefs.h <<\_ACEOF
9427 #define USE_XIM 1
9428 _ACEOF
9433 if test "${HAVE_XIM}" != "no"; then
9434 late_CFLAGS=$CFLAGS
9435 if test "$GCC" = yes; then
9436 CFLAGS="$CFLAGS --pedantic-errors"
9438 cat >conftest.$ac_ext <<_ACEOF
9439 #line $LINENO "configure"
9440 /* confdefs.h. */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9446 #include <X11/Xlib.h>
9447 #include <X11/Xresource.h>
9449 main ()
9451 Display *display;
9452 XrmDatabase db;
9453 char *res_name;
9454 char *res_class;
9455 XIMProc callback;
9456 XPointer *client_data;
9457 #ifndef __GNUC__
9458 /* If we're not using GCC, it's probably not XFree86, and this is
9459 probably right, but we can't use something like --pedantic-errors. */
9460 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9461 char*, XIMProc, XPointer*);
9462 #endif
9463 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9464 client_data);
9466 return 0;
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471 (eval $ac_compile) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -s conftest.$ac_objext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 emacs_cv_arg6_star=yes
9482 else
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9487 rm -f conftest.$ac_objext conftest.$ac_ext
9489 if test "$emacs_cv_arg6_star" = yes; then
9490 cat >>confdefs.h <<\_ACEOF
9491 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9492 _ACEOF
9494 else
9495 cat >>confdefs.h <<\_ACEOF
9496 #define XRegisterIMInstantiateCallback_arg6 XPointer
9497 _ACEOF
9500 CFLAGS=$late_CFLAGS
9503 ### Use -lXpm if available, unless `--with-xpm=no'.
9504 HAVE_XPM=no
9505 if test "${HAVE_X11}" = "yes"; then
9506 if test "${with_xpm}" != "no"; then
9507 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9508 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9509 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9510 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9514 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9515 else
9516 # Is the header compilable?
9517 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9518 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9520 #line $LINENO "configure"
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 #include <X11/xpm.h>
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531 (eval $ac_compile) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_header_compiler=yes
9542 else
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_header_compiler=no
9548 rm -f conftest.$ac_objext conftest.$ac_ext
9549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9550 echo "${ECHO_T}$ac_header_compiler" >&6
9552 # Is the header present?
9553 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9554 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 #include <X11/xpm.h>
9563 _ACEOF
9564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } >/dev/null; then
9572 if test -s conftest.err; then
9573 ac_cpp_err=$ac_c_preproc_warn_flag
9574 else
9575 ac_cpp_err=
9577 else
9578 ac_cpp_err=yes
9580 if test -z "$ac_cpp_err"; then
9581 ac_header_preproc=yes
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_header_preproc=no
9588 rm -f conftest.err conftest.$ac_ext
9589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9590 echo "${ECHO_T}$ac_header_preproc" >&6
9592 # So? What about this header?
9593 case $ac_header_compiler:$ac_header_preproc in
9594 yes:no )
9595 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9596 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9598 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9600 cat <<\_ASBOX
9601 ## ------------------------------------ ##
9602 ## Report this to bug-autoconf@gnu.org. ##
9603 ## ------------------------------------ ##
9604 _ASBOX
9606 sed "s/^/$as_me: WARNING: /" >&2
9608 no:yes )
9609 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9610 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9612 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9614 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9616 cat <<\_ASBOX
9617 ## ------------------------------------ ##
9618 ## Report this to bug-autoconf@gnu.org. ##
9619 ## ------------------------------------ ##
9620 _ASBOX
9622 sed "s/^/$as_me: WARNING: /" >&2
9624 esac
9625 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9626 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9627 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630 ac_cv_header_X11_xpm_h=$ac_header_preproc
9632 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9633 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9636 if test $ac_cv_header_X11_xpm_h = yes; then
9637 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9638 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9639 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 ac_check_lib_save_LIBS=$LIBS
9643 LIBS="-lXpm -lX11 $LIBS"
9644 cat >conftest.$ac_ext <<_ACEOF
9645 #line $LINENO "configure"
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9652 /* Override any gcc2 internal prototype to avoid an error. */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 /* We use char because int might match the return type of a gcc2
9657 builtin and then its argument prototype would still apply. */
9658 char XpmReadFileToPixmap ();
9660 main ()
9662 XpmReadFileToPixmap ();
9664 return 0;
9666 _ACEOF
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669 (eval $ac_link) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -s conftest$ac_exeext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9680 else
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9689 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9690 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9691 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9692 HAVE_XPM=yes
9698 if test "${HAVE_XPM}" = "yes"; then
9699 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9700 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9702 #line $LINENO "configure"
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 #include "X11/xpm.h"
9709 #ifndef XpmReturnAllocPixels
9710 no_return_alloc_pixels
9711 #endif
9713 _ACEOF
9714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9715 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9716 HAVE_XPM=no
9717 else
9718 HAVE_XPM=yes
9720 rm -f conftest*
9723 if test "${HAVE_XPM}" = "yes"; then
9724 echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6
9726 else
9727 echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6
9733 if test "${HAVE_XPM}" = "yes"; then
9735 cat >>confdefs.h <<\_ACEOF
9736 #define HAVE_XPM 1
9737 _ACEOF
9742 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9743 HAVE_JPEG=no
9744 if test "${HAVE_X11}" = "yes"; then
9745 if test "${with_jpeg}" != "no"; then
9746 if test "${ac_cv_header_jerror_h+set}" = set; then
9747 echo "$as_me:$LINENO: checking for jerror.h" >&5
9748 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9749 if test "${ac_cv_header_jerror_h+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9753 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9754 else
9755 # Is the header compilable?
9756 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9757 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9758 cat >conftest.$ac_ext <<_ACEOF
9759 #line $LINENO "configure"
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9766 #include <jerror.h>
9767 _ACEOF
9768 rm -f conftest.$ac_objext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9770 (eval $ac_compile) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -s conftest.$ac_objext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_header_compiler=yes
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_header_compiler=no
9787 rm -f conftest.$ac_objext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 echo "${ECHO_T}$ac_header_compiler" >&6
9791 # Is the header present?
9792 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9793 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 #include <jerror.h>
9802 _ACEOF
9803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } >/dev/null; then
9811 if test -s conftest.err; then
9812 ac_cpp_err=$ac_c_preproc_warn_flag
9813 else
9814 ac_cpp_err=
9816 else
9817 ac_cpp_err=yes
9819 if test -z "$ac_cpp_err"; then
9820 ac_header_preproc=yes
9821 else
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_header_preproc=no
9827 rm -f conftest.err conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829 echo "${ECHO_T}$ac_header_preproc" >&6
9831 # So? What about this header?
9832 case $ac_header_compiler:$ac_header_preproc in
9833 yes:no )
9834 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9835 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9837 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9839 cat <<\_ASBOX
9840 ## ------------------------------------ ##
9841 ## Report this to bug-autoconf@gnu.org. ##
9842 ## ------------------------------------ ##
9843 _ASBOX
9845 sed "s/^/$as_me: WARNING: /" >&2
9847 no:yes )
9848 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9849 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9851 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9855 cat <<\_ASBOX
9856 ## ------------------------------------ ##
9857 ## Report this to bug-autoconf@gnu.org. ##
9858 ## ------------------------------------ ##
9859 _ASBOX
9861 sed "s/^/$as_me: WARNING: /" >&2
9863 esac
9864 echo "$as_me:$LINENO: checking for jerror.h" >&5
9865 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9866 if test "${ac_cv_header_jerror_h+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 ac_cv_header_jerror_h=$ac_header_preproc
9871 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9872 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9875 if test $ac_cv_header_jerror_h = yes; then
9876 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9877 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9878 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881 ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-ljpeg $LIBS"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 #line $LINENO "configure"
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any gcc2 internal prototype to avoid an error. */
9892 #ifdef __cplusplus
9893 extern "C"
9894 #endif
9895 /* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9897 char jpeg_destroy_compress ();
9899 main ()
9901 jpeg_destroy_compress ();
9903 return 0;
9905 _ACEOF
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9908 (eval $ac_link) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 (eval $ac_try) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9919 else
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9929 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9930 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9931 HAVE_JPEG=yes
9940 if test "${HAVE_JPEG}" = "yes"; then
9941 cat >>confdefs.h <<\_ACEOF
9942 #define HAVE_JPEG 1
9943 _ACEOF
9945 cat >conftest.$ac_ext <<_ACEOF
9946 #line $LINENO "configure"
9947 /* confdefs.h. */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 #include <jpeglib.h>
9953 version=JPEG_LIB_VERSION
9955 _ACEOF
9956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9957 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9958 cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_JPEG 1
9960 _ACEOF
9962 else
9963 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9964 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9965 HAVE_JPEG=no
9967 rm -f conftest*
9972 ### Use -lpng if available, unless `--with-png=no'.
9973 HAVE_PNG=no
9974 if test "${HAVE_X11}" = "yes"; then
9975 if test "${with_png}" != "no"; then
9976 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9977 # in /usr/include/libpng.
9980 for ac_header in png.h libpng/png.h
9982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9984 echo "$as_me:$LINENO: checking for $ac_header" >&5
9985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9991 else
9992 # Is the header compilable?
9993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9995 cat >conftest.$ac_ext <<_ACEOF
9996 #line $LINENO "configure"
9997 /* confdefs.h. */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10002 $ac_includes_default
10003 #include <$ac_header>
10004 _ACEOF
10005 rm -f conftest.$ac_objext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10007 (eval $ac_compile) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_header_compiler=yes
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_header_compiler=no
10024 rm -f conftest.$ac_objext conftest.$ac_ext
10025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10026 echo "${ECHO_T}$ac_header_compiler" >&6
10028 # Is the header present?
10029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 #include <$ac_header>
10039 _ACEOF
10040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } >/dev/null; then
10048 if test -s conftest.err; then
10049 ac_cpp_err=$ac_c_preproc_warn_flag
10050 else
10051 ac_cpp_err=
10053 else
10054 ac_cpp_err=yes
10056 if test -z "$ac_cpp_err"; then
10057 ac_header_preproc=yes
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ac_header_preproc=no
10064 rm -f conftest.err conftest.$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10066 echo "${ECHO_T}$ac_header_preproc" >&6
10068 # So? What about this header?
10069 case $ac_header_compiler:$ac_header_preproc in
10070 yes:no )
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10076 cat <<\_ASBOX
10077 ## ------------------------------------ ##
10078 ## Report this to bug-autoconf@gnu.org. ##
10079 ## ------------------------------------ ##
10080 _ASBOX
10082 sed "s/^/$as_me: WARNING: /" >&2
10084 no:yes )
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10092 cat <<\_ASBOX
10093 ## ------------------------------------ ##
10094 ## Report this to bug-autoconf@gnu.org. ##
10095 ## ------------------------------------ ##
10096 _ASBOX
10098 sed "s/^/$as_me: WARNING: /" >&2
10100 esac
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 eval "$as_ac_Header=$ac_header_preproc"
10108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10113 cat >>confdefs.h <<_ACEOF
10114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10115 _ACEOF
10119 done
10121 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10122 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10123 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
10124 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127 ac_check_lib_save_LIBS=$LIBS
10128 LIBS="-lpng -lz -lm $LIBS"
10129 cat >conftest.$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10137 /* Override any gcc2 internal prototype to avoid an error. */
10138 #ifdef __cplusplus
10139 extern "C"
10140 #endif
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10143 char png_get_channels ();
10145 main ()
10147 png_get_channels ();
10149 return 0;
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10154 (eval $ac_link) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_lib_png_png_get_channels=yes
10165 else
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_cv_lib_png_png_get_channels=no
10171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10172 LIBS=$ac_check_lib_save_LIBS
10174 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10175 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
10176 if test $ac_cv_lib_png_png_get_channels = yes; then
10177 HAVE_PNG=yes
10183 if test "${HAVE_PNG}" = "yes"; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_PNG 1
10187 _ACEOF
10192 ### Use -ltiff if available, unless `--with-tiff=no'.
10193 HAVE_TIFF=no
10194 if test "${HAVE_X11}" = "yes"; then
10195 if test "${with_tiff}" != "no"; then
10196 if test "${ac_cv_header_tiffio_h+set}" = set; then
10197 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10198 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10199 if test "${ac_cv_header_tiffio_h+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10203 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10204 else
10205 # Is the header compilable?
10206 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
10207 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
10208 cat >conftest.$ac_ext <<_ACEOF
10209 #line $LINENO "configure"
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10216 #include <tiffio.h>
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_header_compiler=yes
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_header_compiler=no
10237 rm -f conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10239 echo "${ECHO_T}$ac_header_compiler" >&6
10241 # Is the header present?
10242 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
10243 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10245 #line $LINENO "configure"
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 #include <tiffio.h>
10252 _ACEOF
10253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } >/dev/null; then
10261 if test -s conftest.err; then
10262 ac_cpp_err=$ac_c_preproc_warn_flag
10263 else
10264 ac_cpp_err=
10266 else
10267 ac_cpp_err=yes
10269 if test -z "$ac_cpp_err"; then
10270 ac_header_preproc=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_header_preproc=no
10277 rm -f conftest.err conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10279 echo "${ECHO_T}$ac_header_preproc" >&6
10281 # So? What about this header?
10282 case $ac_header_compiler:$ac_header_preproc in
10283 yes:no )
10284 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10285 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10287 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10289 cat <<\_ASBOX
10290 ## ------------------------------------ ##
10291 ## Report this to bug-autoconf@gnu.org. ##
10292 ## ------------------------------------ ##
10293 _ASBOX
10295 sed "s/^/$as_me: WARNING: /" >&2
10297 no:yes )
10298 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
10299 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
10301 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10303 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10305 cat <<\_ASBOX
10306 ## ------------------------------------ ##
10307 ## Report this to bug-autoconf@gnu.org. ##
10308 ## ------------------------------------ ##
10309 _ASBOX
10311 sed "s/^/$as_me: WARNING: /" >&2
10313 esac
10314 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10315 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10316 if test "${ac_cv_header_tiffio_h+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319 ac_cv_header_tiffio_h=$ac_header_preproc
10321 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10322 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10325 if test $ac_cv_header_tiffio_h = yes; then
10326 tifflibs="-lz -lm"
10327 # At least one tiff package requires the jpeg library.
10328 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10329 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10330 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
10331 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 ac_check_lib_save_LIBS=$LIBS
10335 LIBS="-ltiff $tifflibs $LIBS"
10336 cat >conftest.$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10344 /* Override any gcc2 internal prototype to avoid an error. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 /* We use char because int might match the return type of a gcc2
10349 builtin and then its argument prototype would still apply. */
10350 char TIFFGetVersion ();
10352 main ()
10354 TIFFGetVersion ();
10356 return 0;
10358 _ACEOF
10359 rm -f conftest.$ac_objext conftest$ac_exeext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361 (eval $ac_link) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_lib_tiff_TIFFGetVersion=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_lib_tiff_TIFFGetVersion=no
10378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10379 LIBS=$ac_check_lib_save_LIBS
10381 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10382 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
10383 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10384 HAVE_TIFF=yes
10392 if test "${HAVE_TIFF}" = "yes"; then
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_TIFF 1
10396 _ACEOF
10401 ### Use -lgif if available, unless `--with-gif=no'.
10402 HAVE_GIF=no
10403 if test "${HAVE_X11}" = "yes"; then
10404 if test "${with_gif}" != "no"; then
10405 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10406 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10407 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10408 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10412 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10413 else
10414 # Is the header compilable?
10415 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
10416 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
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 $ac_includes_default
10425 #include <gif_lib.h>
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -s conftest.$ac_objext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_header_compiler=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_header_compiler=no
10446 rm -f conftest.$ac_objext conftest.$ac_ext
10447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10448 echo "${ECHO_T}$ac_header_compiler" >&6
10450 # Is the header present?
10451 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10452 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10453 cat >conftest.$ac_ext <<_ACEOF
10454 #line $LINENO "configure"
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <gif_lib.h>
10461 _ACEOF
10462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } >/dev/null; then
10470 if test -s conftest.err; then
10471 ac_cpp_err=$ac_c_preproc_warn_flag
10472 else
10473 ac_cpp_err=
10475 else
10476 ac_cpp_err=yes
10478 if test -z "$ac_cpp_err"; then
10479 ac_header_preproc=yes
10480 else
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 ac_header_preproc=no
10486 rm -f conftest.err conftest.$ac_ext
10487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 echo "${ECHO_T}$ac_header_preproc" >&6
10490 # So? What about this header?
10491 case $ac_header_compiler:$ac_header_preproc in
10492 yes:no )
10493 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10494 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10496 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10498 cat <<\_ASBOX
10499 ## ------------------------------------ ##
10500 ## Report this to bug-autoconf@gnu.org. ##
10501 ## ------------------------------------ ##
10502 _ASBOX
10504 sed "s/^/$as_me: WARNING: /" >&2
10506 no:yes )
10507 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10508 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10510 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10512 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10514 cat <<\_ASBOX
10515 ## ------------------------------------ ##
10516 ## Report this to bug-autoconf@gnu.org. ##
10517 ## ------------------------------------ ##
10518 _ASBOX
10520 sed "s/^/$as_me: WARNING: /" >&2
10522 esac
10523 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10524 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10525 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 ac_cv_header_gif_lib_h=$ac_header_preproc
10530 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10531 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10534 if test $ac_cv_header_gif_lib_h = yes; then
10535 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10536 # Earlier versions can crash Emacs.
10537 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10538 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10539 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 ac_check_lib_save_LIBS=$LIBS
10543 LIBS="-lungif $LIBS"
10544 cat >conftest.$ac_ext <<_ACEOF
10545 #line $LINENO "configure"
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10552 /* Override any gcc2 internal prototype to avoid an error. */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 /* We use char because int might match the return type of a gcc2
10557 builtin and then its argument prototype would still apply. */
10558 char EGifPutExtensionLast ();
10560 main ()
10562 EGifPutExtensionLast ();
10564 return 0;
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10569 (eval $ac_link) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -s conftest$ac_exeext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_cv_lib_ungif_EGifPutExtensionLast=no
10586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10587 LIBS=$ac_check_lib_save_LIBS
10589 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10590 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10591 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10592 HAVE_GIF=yes
10600 if test "${HAVE_GIF}" = "yes"; then
10602 cat >>confdefs.h <<\_ACEOF
10603 #define HAVE_GIF 1
10604 _ACEOF
10609 ### Use Mac OS X Carbon API to implement GUI.
10610 HAVE_CARBON=no
10611 if test "${with_carbon}" != "no"; then
10612 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10613 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10614 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10615 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10619 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10620 else
10621 # Is the header compilable?
10622 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10623 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10624 cat >conftest.$ac_ext <<_ACEOF
10625 #line $LINENO "configure"
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <Carbon/Carbon.h>
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -s conftest.$ac_objext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_header_compiler=yes
10647 else
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_header_compiler=no
10653 rm -f conftest.$ac_objext conftest.$ac_ext
10654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10655 echo "${ECHO_T}$ac_header_compiler" >&6
10657 # Is the header present?
10658 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10659 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10660 cat >conftest.$ac_ext <<_ACEOF
10661 #line $LINENO "configure"
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <Carbon/Carbon.h>
10668 _ACEOF
10669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10671 ac_status=$?
10672 grep -v '^ *+' conftest.er1 >conftest.err
10673 rm -f conftest.er1
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } >/dev/null; then
10677 if test -s conftest.err; then
10678 ac_cpp_err=$ac_c_preproc_warn_flag
10679 else
10680 ac_cpp_err=
10682 else
10683 ac_cpp_err=yes
10685 if test -z "$ac_cpp_err"; then
10686 ac_header_preproc=yes
10687 else
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ac_header_preproc=no
10693 rm -f conftest.err conftest.$ac_ext
10694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10695 echo "${ECHO_T}$ac_header_preproc" >&6
10697 # So? What about this header?
10698 case $ac_header_compiler:$ac_header_preproc in
10699 yes:no )
10700 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10701 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10703 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10705 cat <<\_ASBOX
10706 ## ------------------------------------ ##
10707 ## Report this to bug-autoconf@gnu.org. ##
10708 ## ------------------------------------ ##
10709 _ASBOX
10711 sed "s/^/$as_me: WARNING: /" >&2
10713 no:yes )
10714 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10715 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10717 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10719 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10721 cat <<\_ASBOX
10722 ## ------------------------------------ ##
10723 ## Report this to bug-autoconf@gnu.org. ##
10724 ## ------------------------------------ ##
10725 _ASBOX
10727 sed "s/^/$as_me: WARNING: /" >&2
10729 esac
10730 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10731 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10732 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10737 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10738 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10741 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10742 HAVE_CARBON=yes
10748 if test "${HAVE_CARBON}" = "yes"; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_CARBON 1
10752 _ACEOF
10754 window_system=mac
10755 ## Specify the install directory
10756 carbon_appdir=
10757 if test "${carbon_appdir_x}" != ""; then
10758 case ${carbon_appdir_x} in
10759 y | ye | yes) carbon_appdir=/Applications ;;
10760 * ) carbon_appdir=${carbon_appdir_x} ;;
10761 esac
10763 # We also have mouse menus.
10764 HAVE_MENUS=yes
10767 ### Use session management (-lSM -lICE) if available
10768 HAVE_X_SM=no
10769 if test "${HAVE_X11}" = "yes"; then
10770 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10771 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10772 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10773 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10777 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10778 else
10779 # Is the header compilable?
10780 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10781 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10782 cat >conftest.$ac_ext <<_ACEOF
10783 #line $LINENO "configure"
10784 /* confdefs.h. */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 #include <X11/SM/SMlib.h>
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794 (eval $ac_compile) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -s conftest.$ac_objext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_header_compiler=yes
10805 else
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_header_compiler=no
10811 rm -f conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10817 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10819 #line $LINENO "configure"
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <X11/SM/SMlib.h>
10826 _ACEOF
10827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10829 ac_status=$?
10830 grep -v '^ *+' conftest.er1 >conftest.err
10831 rm -f conftest.er1
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } >/dev/null; then
10835 if test -s conftest.err; then
10836 ac_cpp_err=$ac_c_preproc_warn_flag
10837 else
10838 ac_cpp_err=
10840 else
10841 ac_cpp_err=yes
10843 if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_header_preproc=no
10851 rm -f conftest.err conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853 echo "${ECHO_T}$ac_header_preproc" >&6
10855 # So? What about this header?
10856 case $ac_header_compiler:$ac_header_preproc in
10857 yes:no )
10858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10859 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10861 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10863 cat <<\_ASBOX
10864 ## ------------------------------------ ##
10865 ## Report this to bug-autoconf@gnu.org. ##
10866 ## ------------------------------------ ##
10867 _ASBOX
10869 sed "s/^/$as_me: WARNING: /" >&2
10871 no:yes )
10872 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10873 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10875 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10877 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10879 cat <<\_ASBOX
10880 ## ------------------------------------ ##
10881 ## Report this to bug-autoconf@gnu.org. ##
10882 ## ------------------------------------ ##
10883 _ASBOX
10885 sed "s/^/$as_me: WARNING: /" >&2
10887 esac
10888 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10889 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10890 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10895 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10896 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10899 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10900 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10901 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10902 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-lSM $LIBS"
10907 cat >conftest.$ac_ext <<_ACEOF
10908 #line $LINENO "configure"
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 /* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921 char SmcOpenConnection ();
10923 main ()
10925 SmcOpenConnection ();
10927 return 0;
10929 _ACEOF
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try='test -s conftest$ac_exeext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_cv_lib_SM_SmcOpenConnection=yes
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ac_cv_lib_SM_SmcOpenConnection=no
10949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10950 LIBS=$ac_check_lib_save_LIBS
10952 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10953 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10954 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10955 HAVE_X_SM=yes
10956 else
10957 -lICE
10964 if test "${HAVE_X_SM}" = "yes"; then
10966 cat >>confdefs.h <<\_ACEOF
10967 #define HAVE_X_SM 1
10968 _ACEOF
10970 case "$LIBS" in
10971 *-lSM*) ;;
10972 *) LIBS="-lSM -lICE $LIBS" ;;
10973 esac
10977 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10978 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10979 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10980 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983 cat >conftest.$ac_ext <<_ACEOF
10984 #line $LINENO "configure"
10985 /* confdefs.h. */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #include <netdb.h>
10992 main ()
10994 return h_errno;
10996 return 0;
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 emacs_cv_netdb_declares_h_errno=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 emacs_cv_netdb_declares_h_errno=no
11018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11021 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11022 if test $emacs_cv_netdb_declares_h_errno = yes; then
11024 cat >>confdefs.h <<\_ACEOF
11025 #define HAVE_H_ERRNO 1
11026 _ACEOF
11030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11031 # for constant arguments. Useless!
11032 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11033 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11034 if test "${ac_cv_working_alloca_h+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 cat >conftest.$ac_ext <<_ACEOF
11038 #line $LINENO "configure"
11039 /* confdefs.h. */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 #include <alloca.h>
11046 main ()
11048 char *p = (char *) alloca (2 * sizeof (int));
11050 return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -s conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_working_alloca_h=yes
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_cv_working_alloca_h=no
11072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11074 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11075 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11076 if test $ac_cv_working_alloca_h = yes; then
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_ALLOCA_H 1
11080 _ACEOF
11084 echo "$as_me:$LINENO: checking for alloca" >&5
11085 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11086 if test "${ac_cv_func_alloca_works+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089 cat >conftest.$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #ifdef __GNUC__
11097 # define alloca __builtin_alloca
11098 #else
11099 # ifdef _MSC_VER
11100 # include <malloc.h>
11101 # define alloca _alloca
11102 # else
11103 # if HAVE_ALLOCA_H
11104 # include <alloca.h>
11105 # else
11106 # ifdef _AIX
11107 #pragma alloca
11108 # else
11109 # ifndef alloca /* predefined by HP cc +Olibcalls */
11110 char *alloca ();
11111 # endif
11112 # endif
11113 # endif
11114 # endif
11115 #endif
11118 main ()
11120 char *p = (char *) alloca (1);
11122 return 0;
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_cv_func_alloca_works=yes
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ac_cv_func_alloca_works=no
11144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11146 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11147 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11149 if test $ac_cv_func_alloca_works = yes; then
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_ALLOCA 1
11153 _ACEOF
11155 else
11156 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11157 # that cause trouble. Some versions do not even contain alloca or
11158 # contain a buggy version. If you still want to use their alloca,
11159 # use ar to extract alloca.o from them instead of compiling alloca.c.
11161 ALLOCA=alloca.$ac_objext
11163 cat >>confdefs.h <<\_ACEOF
11164 #define C_ALLOCA 1
11165 _ACEOF
11168 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11169 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11170 if test "${ac_cv_os_cray+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173 cat >conftest.$ac_ext <<_ACEOF
11174 #line $LINENO "configure"
11175 /* confdefs.h. */
11176 _ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 #if defined(CRAY) && ! defined(CRAY2)
11181 webecray
11182 #else
11183 wenotbecray
11184 #endif
11186 _ACEOF
11187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188 $EGREP "webecray" >/dev/null 2>&1; then
11189 ac_cv_os_cray=yes
11190 else
11191 ac_cv_os_cray=no
11193 rm -f conftest*
11196 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11197 echo "${ECHO_T}$ac_cv_os_cray" >&6
11198 if test $ac_cv_os_cray = yes; then
11199 for ac_func in _getb67 GETB67 getb67; do
11200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11201 echo "$as_me:$LINENO: checking for $ac_func" >&5
11202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_var+set}\" = set"; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 cat >conftest.$ac_ext <<_ACEOF
11207 #line $LINENO "configure"
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 /* System header to define __stub macros and hopefully few prototypes,
11214 which can conflict with char $ac_func (); below.
11215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11216 <limits.h> exists even on freestanding compilers. */
11217 #ifdef __STDC__
11218 # include <limits.h>
11219 #else
11220 # include <assert.h>
11221 #endif
11222 /* Override any gcc2 internal prototype to avoid an error. */
11223 #ifdef __cplusplus
11224 extern "C"
11226 #endif
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11229 char $ac_func ();
11230 /* The GNU C library defines this for functions which it implements
11231 to always fail with ENOSYS. Some functions are actually named
11232 something starting with __ and the normal name is an alias. */
11233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11234 choke me
11235 #else
11236 char (*f) () = $ac_func;
11237 #endif
11238 #ifdef __cplusplus
11240 #endif
11243 main ()
11245 return f != $ac_func;
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 eval "$as_ac_var=yes"
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 eval "$as_ac_var=no"
11269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define CRAY_STACKSEG_END $ac_func
11277 _ACEOF
11279 break
11282 done
11285 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11286 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11287 if test "${ac_cv_c_stack_direction+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 if test "$cross_compiling" = yes; then
11291 ac_cv_c_stack_direction=0
11292 else
11293 cat >conftest.$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11301 find_stack_direction ()
11303 static char *addr = 0;
11304 auto char dummy;
11305 if (addr == 0)
11307 addr = &dummy;
11308 return find_stack_direction ();
11310 else
11311 return (&dummy > addr) ? 1 : -1;
11315 main ()
11317 exit (find_stack_direction () < 0);
11319 _ACEOF
11320 rm -f conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322 (eval $ac_link) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 ac_cv_c_stack_direction=1
11332 else
11333 echo "$as_me: program exited with status $ac_status" >&5
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ( exit $ac_status )
11338 ac_cv_c_stack_direction=-1
11340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11344 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11346 cat >>confdefs.h <<_ACEOF
11347 #define STACK_DIRECTION $ac_cv_c_stack_direction
11348 _ACEOF
11354 # fmod, logb, and frexp are found in -lm on most systems.
11355 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11357 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
11358 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
11359 if test "${ac_cv_lib_m_sqrt+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-lm $LIBS"
11364 cat >conftest.$ac_ext <<_ACEOF
11365 #line $LINENO "configure"
11366 /* confdefs.h. */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11372 /* Override any gcc2 internal prototype to avoid an error. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 /* We use char because int might match the return type of a gcc2
11377 builtin and then its argument prototype would still apply. */
11378 char sqrt ();
11380 main ()
11382 sqrt ();
11384 return 0;
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389 (eval $ac_link) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -s conftest$ac_exeext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 ac_cv_lib_m_sqrt=yes
11400 else
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 ac_cv_lib_m_sqrt=no
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11409 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
11410 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
11411 if test $ac_cv_lib_m_sqrt = yes; then
11412 cat >>confdefs.h <<_ACEOF
11413 #define HAVE_LIBM 1
11414 _ACEOF
11416 LIBS="-lm $LIBS"
11421 # Check for mail-locking functions in a "mail" library. Probably this should
11422 # have the same check as for liblockfile below.
11424 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
11425 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
11426 if test "${ac_cv_lib_mail_maillock+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 else
11429 ac_check_lib_save_LIBS=$LIBS
11430 LIBS="-lmail $LIBS"
11431 cat >conftest.$ac_ext <<_ACEOF
11432 #line $LINENO "configure"
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11439 /* Override any gcc2 internal prototype to avoid an error. */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 /* We use char because int might match the return type of a gcc2
11444 builtin and then its argument prototype would still apply. */
11445 char maillock ();
11447 main ()
11449 maillock ();
11451 return 0;
11453 _ACEOF
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456 (eval $ac_link) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -s conftest$ac_exeext'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 ac_cv_lib_mail_maillock=yes
11467 else
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_cv_lib_mail_maillock=no
11473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11476 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11477 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11478 if test $ac_cv_lib_mail_maillock = yes; then
11479 cat >>confdefs.h <<_ACEOF
11480 #define HAVE_LIBMAIL 1
11481 _ACEOF
11483 LIBS="-lmail $LIBS"
11488 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11489 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11490 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493 ac_check_lib_save_LIBS=$LIBS
11494 LIBS="-llockfile $LIBS"
11495 cat >conftest.$ac_ext <<_ACEOF
11496 #line $LINENO "configure"
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11503 /* Override any gcc2 internal prototype to avoid an error. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11509 char maillock ();
11511 main ()
11513 maillock ();
11515 return 0;
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_lib_lockfile_maillock=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_cv_lib_lockfile_maillock=no
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538 LIBS=$ac_check_lib_save_LIBS
11540 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11541 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11542 if test $ac_cv_lib_lockfile_maillock = yes; then
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_LIBLOCKFILE 1
11545 _ACEOF
11547 LIBS="-llockfile $LIBS"
11551 # If we have the shared liblockfile, assume we must use it for mail
11552 # locking (e.g. Debian). If we couldn't link against liblockfile
11553 # (no liblockfile.a installed), ensure that we don't need to.
11554 if test "$ac_cv_lib_lockfile_maillock" = no; then
11555 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11556 set dummy liblockfile.so; ac_word=$2
11557 echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11559 if test "${ac_cv_prog_liblockfile+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 if test -n "$liblockfile"; then
11563 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11564 else
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11567 for as_dir in $as_dummy
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_prog_liblockfile="yes"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11577 done
11578 done
11580 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11583 liblockfile=$ac_cv_prog_liblockfile
11584 if test -n "$liblockfile"; then
11585 echo "$as_me:$LINENO: result: $liblockfile" >&5
11586 echo "${ECHO_T}$liblockfile" >&6
11587 else
11588 echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6
11592 if test $ac_cv_prog_liblockfile = yes; then
11593 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11594 This probably means that movemail could lose mail.
11595 There may be a \`development' package to install containing liblockfile." >&5
11596 echo "$as_me: error: Shared liblockfile found but can't link against it.
11597 This probably means that movemail could lose mail.
11598 There may be a \`development' package to install containing liblockfile." >&2;}
11599 { (exit 1); exit 1; }; }
11600 else :
11604 for ac_func in touchlock
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11609 if eval "test \"\${$as_ac_var+set}\" = set"; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 cat >conftest.$ac_ext <<_ACEOF
11613 #line $LINENO "configure"
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11623 #ifdef __STDC__
11624 # include <limits.h>
11625 #else
11626 # include <assert.h>
11627 #endif
11628 /* Override any gcc2 internal prototype to avoid an error. */
11629 #ifdef __cplusplus
11630 extern "C"
11632 #endif
11633 /* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11635 char $ac_func ();
11636 /* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11640 choke me
11641 #else
11642 char (*f) () = $ac_func;
11643 #endif
11644 #ifdef __cplusplus
11646 #endif
11649 main ()
11651 return f != $ac_func;
11653 return 0;
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 eval "$as_ac_var=yes"
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 eval "$as_ac_var=no"
11675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 _ACEOF
11685 done
11688 for ac_header in maillock.h
11690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11692 echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11699 else
11700 # Is the header compilable?
11701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11703 cat >conftest.$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11711 #include <$ac_header>
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -s conftest.$ac_objext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_header_compiler=yes
11726 else
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 ac_header_compiler=no
11732 rm -f conftest.$ac_objext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734 echo "${ECHO_T}$ac_header_compiler" >&6
11736 # Is the header present?
11737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11740 #line $LINENO "configure"
11741 /* confdefs.h. */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 #include <$ac_header>
11747 _ACEOF
11748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } >/dev/null; then
11756 if test -s conftest.err; then
11757 ac_cpp_err=$ac_c_preproc_warn_flag
11758 else
11759 ac_cpp_err=
11761 else
11762 ac_cpp_err=yes
11764 if test -z "$ac_cpp_err"; then
11765 ac_header_preproc=yes
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 ac_header_preproc=no
11772 rm -f conftest.err conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774 echo "${ECHO_T}$ac_header_preproc" >&6
11776 # So? What about this header?
11777 case $ac_header_compiler:$ac_header_preproc in
11778 yes:no )
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11784 cat <<\_ASBOX
11785 ## ------------------------------------ ##
11786 ## Report this to bug-autoconf@gnu.org. ##
11787 ## ------------------------------------ ##
11788 _ASBOX
11790 sed "s/^/$as_me: WARNING: /" >&2
11792 no:yes )
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11800 cat <<\_ASBOX
11801 ## ------------------------------------ ##
11802 ## Report this to bug-autoconf@gnu.org. ##
11803 ## ------------------------------------ ##
11804 _ASBOX
11806 sed "s/^/$as_me: WARNING: /" >&2
11808 esac
11809 echo "$as_me:$LINENO: checking for $ac_header" >&5
11810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 eval "$as_ac_Header=$ac_header_preproc"
11816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11821 cat >>confdefs.h <<_ACEOF
11822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823 _ACEOF
11827 done
11897 for ac_func in gethostname getdomainname dup2 \
11898 rename closedir mkdir rmdir sysinfo \
11899 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11900 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11901 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11902 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11903 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11904 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11905 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_var+set}\" = set"; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913 cat >conftest.$ac_ext <<_ACEOF
11914 #line $LINENO "configure"
11915 /* confdefs.h. */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 /* System header to define __stub macros and hopefully few prototypes,
11921 which can conflict with char $ac_func (); below.
11922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923 <limits.h> exists even on freestanding compilers. */
11924 #ifdef __STDC__
11925 # include <limits.h>
11926 #else
11927 # include <assert.h>
11928 #endif
11929 /* Override any gcc2 internal prototype to avoid an error. */
11930 #ifdef __cplusplus
11931 extern "C"
11933 #endif
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11936 char $ac_func ();
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11941 choke me
11942 #else
11943 char (*f) () = $ac_func;
11944 #endif
11945 #ifdef __cplusplus
11947 #endif
11950 main ()
11952 return f != $ac_func;
11954 return 0;
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -s conftest$ac_exeext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 eval "$as_ac_var=yes"
11970 else
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 eval "$as_ac_var=no"
11976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983 _ACEOF
11986 done
11990 for ac_header in sys/un.h
11992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11994 echo "$as_me:$LINENO: checking for $ac_header" >&5
11995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12001 else
12002 # Is the header compilable?
12003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 $ac_includes_default
12013 #include <$ac_header>
12014 _ACEOF
12015 rm -f conftest.$ac_objext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017 (eval $ac_compile) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_header_compiler=yes
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_header_compiler=no
12034 rm -f conftest.$ac_objext conftest.$ac_ext
12035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12036 echo "${ECHO_T}$ac_header_compiler" >&6
12038 # Is the header present?
12039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12042 #line $LINENO "configure"
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 #include <$ac_header>
12049 _ACEOF
12050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } >/dev/null; then
12058 if test -s conftest.err; then
12059 ac_cpp_err=$ac_c_preproc_warn_flag
12060 else
12061 ac_cpp_err=
12063 else
12064 ac_cpp_err=yes
12066 if test -z "$ac_cpp_err"; then
12067 ac_header_preproc=yes
12068 else
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_header_preproc=no
12074 rm -f conftest.err conftest.$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12076 echo "${ECHO_T}$ac_header_preproc" >&6
12078 # So? What about this header?
12079 case $ac_header_compiler:$ac_header_preproc in
12080 yes:no )
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12086 cat <<\_ASBOX
12087 ## ------------------------------------ ##
12088 ## Report this to bug-autoconf@gnu.org. ##
12089 ## ------------------------------------ ##
12090 _ASBOX
12092 sed "s/^/$as_me: WARNING: /" >&2
12094 no:yes )
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12102 cat <<\_ASBOX
12103 ## ------------------------------------ ##
12104 ## Report this to bug-autoconf@gnu.org. ##
12105 ## ------------------------------------ ##
12106 _ASBOX
12108 sed "s/^/$as_me: WARNING: /" >&2
12110 esac
12111 echo "$as_me:$LINENO: checking for $ac_header" >&5
12112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 eval "$as_ac_Header=$ac_header_preproc"
12118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125 _ACEOF
12129 done
12134 for ac_header in sys/time.h unistd.h
12136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12138 echo "$as_me:$LINENO: checking for $ac_header" >&5
12139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12145 else
12146 # Is the header compilable?
12147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12149 cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 $ac_includes_default
12157 #include <$ac_header>
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_header_compiler=yes
12172 else
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_header_compiler=no
12178 rm -f conftest.$ac_objext conftest.$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12180 echo "${ECHO_T}$ac_header_compiler" >&6
12182 # Is the header present?
12183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12185 cat >conftest.$ac_ext <<_ACEOF
12186 #line $LINENO "configure"
12187 /* confdefs.h. */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 #include <$ac_header>
12193 _ACEOF
12194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } >/dev/null; then
12202 if test -s conftest.err; then
12203 ac_cpp_err=$ac_c_preproc_warn_flag
12204 else
12205 ac_cpp_err=
12207 else
12208 ac_cpp_err=yes
12210 if test -z "$ac_cpp_err"; then
12211 ac_header_preproc=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_header_preproc=no
12218 rm -f conftest.err conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12220 echo "${ECHO_T}$ac_header_preproc" >&6
12222 # So? What about this header?
12223 case $ac_header_compiler:$ac_header_preproc in
12224 yes:no )
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12230 cat <<\_ASBOX
12231 ## ------------------------------------ ##
12232 ## Report this to bug-autoconf@gnu.org. ##
12233 ## ------------------------------------ ##
12234 _ASBOX
12236 sed "s/^/$as_me: WARNING: /" >&2
12238 no:yes )
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12246 cat <<\_ASBOX
12247 ## ------------------------------------ ##
12248 ## Report this to bug-autoconf@gnu.org. ##
12249 ## ------------------------------------ ##
12250 _ASBOX
12252 sed "s/^/$as_me: WARNING: /" >&2
12254 esac
12255 echo "$as_me:$LINENO: checking for $ac_header" >&5
12256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260 eval "$as_ac_Header=$ac_header_preproc"
12262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12267 cat >>confdefs.h <<_ACEOF
12268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12269 _ACEOF
12273 done
12276 for ac_func in alarm
12278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12279 echo "$as_me:$LINENO: checking for $ac_func" >&5
12280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12281 if eval "test \"\${$as_ac_var+set}\" = set"; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12286 /* confdefs.h. */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 /* System header to define __stub macros and hopefully few prototypes,
12292 which can conflict with char $ac_func (); below.
12293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12294 <limits.h> exists even on freestanding compilers. */
12295 #ifdef __STDC__
12296 # include <limits.h>
12297 #else
12298 # include <assert.h>
12299 #endif
12300 /* Override any gcc2 internal prototype to avoid an error. */
12301 #ifdef __cplusplus
12302 extern "C"
12304 #endif
12305 /* We use char because int might match the return type of a gcc2
12306 builtin and then its argument prototype would still apply. */
12307 char $ac_func ();
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12312 choke me
12313 #else
12314 char (*f) () = $ac_func;
12315 #endif
12316 #ifdef __cplusplus
12318 #endif
12321 main ()
12323 return f != $ac_func;
12325 return 0;
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -s conftest$ac_exeext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 eval "$as_ac_var=yes"
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 eval "$as_ac_var=no"
12347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352 cat >>confdefs.h <<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12354 _ACEOF
12357 done
12359 echo "$as_me:$LINENO: checking for working mktime" >&5
12360 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12361 if test "${ac_cv_func_working_mktime+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 if test "$cross_compiling" = yes; then
12365 ac_cv_func_working_mktime=no
12366 else
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 /* Test program from Paul Eggert and Tony Leneis. */
12375 #if TIME_WITH_SYS_TIME
12376 # include <sys/time.h>
12377 # include <time.h>
12378 #else
12379 # if HAVE_SYS_TIME_H
12380 # include <sys/time.h>
12381 # else
12382 # include <time.h>
12383 # endif
12384 #endif
12386 #if HAVE_UNISTD_H
12387 # include <unistd.h>
12388 #endif
12390 #if !HAVE_ALARM
12391 # define alarm(X) /* empty */
12392 #endif
12394 /* Work around redefinition to rpl_putenv by other config tests. */
12395 #undef putenv
12397 static time_t time_t_max;
12399 /* Values we'll use to set the TZ environment variable. */
12400 static const char *const tz_strings[] = {
12401 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12402 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12404 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12406 /* Fail if mktime fails to convert a date in the spring-forward gap.
12407 Based on a problem report from Andreas Jaeger. */
12408 static void
12409 spring_forward_gap ()
12411 /* glibc (up to about 1998-10-07) failed this test. */
12412 struct tm tm;
12414 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12415 instead of "TZ=America/Vancouver" in order to detect the bug even
12416 on systems that don't support the Olson extension, or don't have the
12417 full zoneinfo tables installed. */
12418 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12420 tm.tm_year = 98;
12421 tm.tm_mon = 3;
12422 tm.tm_mday = 5;
12423 tm.tm_hour = 2;
12424 tm.tm_min = 0;
12425 tm.tm_sec = 0;
12426 tm.tm_isdst = -1;
12427 if (mktime (&tm) == (time_t)-1)
12428 exit (1);
12431 static void
12432 mktime_test (now)
12433 time_t now;
12435 struct tm *lt;
12436 if ((lt = localtime (&now)) && mktime (lt) != now)
12437 exit (1);
12438 now = time_t_max - now;
12439 if ((lt = localtime (&now)) && mktime (lt) != now)
12440 exit (1);
12443 static void
12444 irix_6_4_bug ()
12446 /* Based on code from Ariel Faigon. */
12447 struct tm tm;
12448 tm.tm_year = 96;
12449 tm.tm_mon = 3;
12450 tm.tm_mday = 0;
12451 tm.tm_hour = 0;
12452 tm.tm_min = 0;
12453 tm.tm_sec = 0;
12454 tm.tm_isdst = -1;
12455 mktime (&tm);
12456 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12457 exit (1);
12460 static void
12461 bigtime_test (j)
12462 int j;
12464 struct tm tm;
12465 time_t now;
12466 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12467 now = mktime (&tm);
12468 if (now != (time_t) -1)
12470 struct tm *lt = localtime (&now);
12471 if (! (lt
12472 && lt->tm_year == tm.tm_year
12473 && lt->tm_mon == tm.tm_mon
12474 && lt->tm_mday == tm.tm_mday
12475 && lt->tm_hour == tm.tm_hour
12476 && lt->tm_min == tm.tm_min
12477 && lt->tm_sec == tm.tm_sec
12478 && lt->tm_yday == tm.tm_yday
12479 && lt->tm_wday == tm.tm_wday
12480 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12481 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12482 exit (1);
12487 main ()
12489 time_t t, delta;
12490 int i, j;
12492 /* This test makes some buggy mktime implementations loop.
12493 Give up after 60 seconds; a mktime slower than that
12494 isn't worth using anyway. */
12495 alarm (60);
12497 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12498 continue;
12499 time_t_max--;
12500 delta = time_t_max / 997; /* a suitable prime number */
12501 for (i = 0; i < N_STRINGS; i++)
12503 if (tz_strings[i])
12504 putenv (tz_strings[i]);
12506 for (t = 0; t <= time_t_max - delta; t += delta)
12507 mktime_test (t);
12508 mktime_test ((time_t) 60 * 60);
12509 mktime_test ((time_t) 60 * 60 * 24);
12511 for (j = 1; 0 < j; j *= 2)
12512 bigtime_test (j);
12513 bigtime_test (j - 1);
12515 irix_6_4_bug ();
12516 spring_forward_gap ();
12517 exit (0);
12519 _ACEOF
12520 rm -f conftest$ac_exeext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12522 (eval $ac_link) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; }; then
12531 ac_cv_func_working_mktime=yes
12532 else
12533 echo "$as_me: program exited with status $ac_status" >&5
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ( exit $ac_status )
12538 ac_cv_func_working_mktime=no
12540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12543 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12544 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12545 if test $ac_cv_func_working_mktime = no; then
12546 LIBOBJS="$LIBOBJS mktime.$ac_objext"
12549 if test "$ac_cv_func_working_mktime" = no; then
12551 cat >>confdefs.h <<\_ACEOF
12552 #define BROKEN_MKTIME 1
12553 _ACEOF
12557 ac_have_func=no # yes means we've found a way to get the load average.
12559 # Make sure getloadavg.c is where it belongs, at configure-time.
12560 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12561 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12562 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12563 { (exit 1); exit 1; }; }
12565 ac_save_LIBS=$LIBS
12567 # Check for getloadavg, but be sure not to touch the cache variable.
12568 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12569 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12570 if test "${ac_cv_func_getloadavg+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573 cat >conftest.$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12575 /* confdefs.h. */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 /* System header to define __stub macros and hopefully few prototypes,
12581 which can conflict with char getloadavg (); below.
12582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12583 <limits.h> exists even on freestanding compilers. */
12584 #ifdef __STDC__
12585 # include <limits.h>
12586 #else
12587 # include <assert.h>
12588 #endif
12589 /* Override any gcc2 internal prototype to avoid an error. */
12590 #ifdef __cplusplus
12591 extern "C"
12593 #endif
12594 /* We use char because int might match the return type of a gcc2
12595 builtin and then its argument prototype would still apply. */
12596 char getloadavg ();
12597 /* The GNU C library defines this for functions which it implements
12598 to always fail with ENOSYS. Some functions are actually named
12599 something starting with __ and the normal name is an alias. */
12600 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12601 choke me
12602 #else
12603 char (*f) () = getloadavg;
12604 #endif
12605 #ifdef __cplusplus
12607 #endif
12610 main ()
12612 return f != getloadavg;
12614 return 0;
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619 (eval $ac_link) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -s conftest$ac_exeext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_cv_func_getloadavg=yes
12630 else
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 ac_cv_func_getloadavg=no
12636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12638 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12639 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12640 if test $ac_cv_func_getloadavg = yes; then
12641 exit 0
12642 else
12643 exit 1
12645 ) && ac_have_func=yes
12647 # On HPUX9, an unprivileged user can get load averages through this function.
12649 for ac_func in pstat_getdynamic
12651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12652 echo "$as_me:$LINENO: checking for $ac_func" >&5
12653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12654 if eval "test \"\${$as_ac_var+set}\" = set"; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657 cat >conftest.$ac_ext <<_ACEOF
12658 #line $LINENO "configure"
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12668 #ifdef __STDC__
12669 # include <limits.h>
12670 #else
12671 # include <assert.h>
12672 #endif
12673 /* Override any gcc2 internal prototype to avoid an error. */
12674 #ifdef __cplusplus
12675 extern "C"
12677 #endif
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680 char $ac_func ();
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12685 choke me
12686 #else
12687 char (*f) () = $ac_func;
12688 #endif
12689 #ifdef __cplusplus
12691 #endif
12694 main ()
12696 return f != $ac_func;
12698 return 0;
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 eval "$as_ac_var=yes"
12714 else
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 eval "$as_ac_var=no"
12720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12724 if test `eval echo '${'$as_ac_var'}'` = yes; then
12725 cat >>confdefs.h <<_ACEOF
12726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12727 _ACEOF
12730 done
12733 # Solaris has libkstat which does not require root.
12735 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12736 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12737 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740 ac_check_lib_save_LIBS=$LIBS
12741 LIBS="-lkstat $LIBS"
12742 cat >conftest.$ac_ext <<_ACEOF
12743 #line $LINENO "configure"
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any gcc2 internal prototype to avoid an error. */
12751 #ifdef __cplusplus
12752 extern "C"
12753 #endif
12754 /* We use char because int might match the return type of a gcc2
12755 builtin and then its argument prototype would still apply. */
12756 char kstat_open ();
12758 main ()
12760 kstat_open ();
12762 return 0;
12764 _ACEOF
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -s conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_lib_kstat_kstat_open=yes
12778 else
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 ac_cv_lib_kstat_kstat_open=no
12784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12787 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12788 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12789 if test $ac_cv_lib_kstat_kstat_open = yes; then
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_LIBKSTAT 1
12792 _ACEOF
12794 LIBS="-lkstat $LIBS"
12798 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12800 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12801 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12802 # to get the right answer into the cache.
12803 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12804 if test $ac_have_func = no; then
12805 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12806 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12807 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lelf $LIBS"
12812 cat >conftest.$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12814 /* confdefs.h. */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12820 /* Override any gcc2 internal prototype to avoid an error. */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 /* We use char because int might match the return type of a gcc2
12825 builtin and then its argument prototype would still apply. */
12826 char elf_begin ();
12828 main ()
12830 elf_begin ();
12832 return 0;
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -s conftest$ac_exeext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_cv_lib_elf_elf_begin=yes
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_cv_lib_elf_elf_begin=no
12854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12855 LIBS=$ac_check_lib_save_LIBS
12857 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12858 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12859 if test $ac_cv_lib_elf_elf_begin = yes; then
12860 LIBS="-lelf $LIBS"
12864 if test $ac_have_func = no; then
12865 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12866 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12867 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870 ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-lkvm $LIBS"
12872 cat >conftest.$ac_ext <<_ACEOF
12873 #line $LINENO "configure"
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12880 /* Override any gcc2 internal prototype to avoid an error. */
12881 #ifdef __cplusplus
12882 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 kvm_open ();
12888 main ()
12890 kvm_open ();
12892 return 0;
12894 _ACEOF
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 ac_cv_lib_kvm_kvm_open=yes
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_cv_lib_kvm_kvm_open=no
12914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12915 LIBS=$ac_check_lib_save_LIBS
12917 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12918 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12919 if test $ac_cv_lib_kvm_kvm_open = yes; then
12920 LIBS="-lkvm $LIBS"
12923 # Check for the 4.4BSD definition of getloadavg.
12924 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12925 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12926 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929 ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lutil $LIBS"
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line $LINENO "configure"
12933 /* confdefs.h. */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12939 /* Override any gcc2 internal prototype to avoid an error. */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 /* We use char because int might match the return type of a gcc2
12944 builtin and then its argument prototype would still apply. */
12945 char getloadavg ();
12947 main ()
12949 getloadavg ();
12951 return 0;
12953 _ACEOF
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956 (eval $ac_link) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -s conftest$ac_exeext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_lib_util_getloadavg=yes
12967 else
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 ac_cv_lib_util_getloadavg=no
12973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12974 LIBS=$ac_check_lib_save_LIBS
12976 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12977 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12978 if test $ac_cv_lib_util_getloadavg = yes; then
12979 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12984 if test $ac_have_func = no; then
12985 # There is a commonly available library for RS/6000 AIX.
12986 # Since it is not a standard part of AIX, it might be installed locally.
12987 ac_getloadavg_LIBS=$LIBS
12988 LIBS="-L/usr/local/lib $LIBS"
12989 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12990 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12991 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-lgetloadavg $LIBS"
12996 cat >conftest.$ac_ext <<_ACEOF
12997 #line $LINENO "configure"
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13004 /* Override any gcc2 internal prototype to avoid an error. */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 /* We use char because int might match the return type of a gcc2
13009 builtin and then its argument prototype would still apply. */
13010 char getloadavg ();
13012 main ()
13014 getloadavg ();
13016 return 0;
13018 _ACEOF
13019 rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13021 (eval $ac_link) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -s conftest$ac_exeext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_cv_lib_getloadavg_getloadavg=yes
13032 else
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_cv_lib_getloadavg_getloadavg=no
13038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13039 LIBS=$ac_check_lib_save_LIBS
13041 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13042 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
13043 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
13044 LIBS="-lgetloadavg $LIBS"
13045 else
13046 LIBS=$ac_getloadavg_LIBS
13051 # Make sure it is really in the library, if we think we found it,
13052 # otherwise set up the replacement function.
13054 for ac_func in getloadavg
13056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13057 echo "$as_me:$LINENO: checking for $ac_func" >&5
13058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13059 if eval "test \"\${$as_ac_var+set}\" = set"; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062 cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13064 /* confdefs.h. */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 /* System header to define __stub macros and hopefully few prototypes,
13070 which can conflict with char $ac_func (); below.
13071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13072 <limits.h> exists even on freestanding compilers. */
13073 #ifdef __STDC__
13074 # include <limits.h>
13075 #else
13076 # include <assert.h>
13077 #endif
13078 /* Override any gcc2 internal prototype to avoid an error. */
13079 #ifdef __cplusplus
13080 extern "C"
13082 #endif
13083 /* We use char because int might match the return type of a gcc2
13084 builtin and then its argument prototype would still apply. */
13085 char $ac_func ();
13086 /* The GNU C library defines this for functions which it implements
13087 to always fail with ENOSYS. Some functions are actually named
13088 something starting with __ and the normal name is an alias. */
13089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13090 choke me
13091 #else
13092 char (*f) () = $ac_func;
13093 #endif
13094 #ifdef __cplusplus
13096 #endif
13099 main ()
13101 return f != $ac_func;
13103 return 0;
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13108 (eval $ac_link) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -s conftest$ac_exeext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 eval "$as_ac_var=yes"
13119 else
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13123 eval "$as_ac_var=no"
13125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130 cat >>confdefs.h <<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13132 _ACEOF
13134 else
13135 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13137 cat >>confdefs.h <<\_ACEOF
13138 #define C_GETLOADAVG 1
13139 _ACEOF
13141 # Figure out what our getloadavg.c needs.
13142 ac_have_func=no
13143 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13144 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13145 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13146 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13150 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13151 else
13152 # Is the header compilable?
13153 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
13154 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
13155 cat >conftest.$ac_ext <<_ACEOF
13156 #line $LINENO "configure"
13157 /* confdefs.h. */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13163 #include <sys/dg_sys_info.h>
13164 _ACEOF
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_header_compiler=yes
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_header_compiler=no
13184 rm -f conftest.$ac_objext conftest.$ac_ext
13185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13186 echo "${ECHO_T}$ac_header_compiler" >&6
13188 # Is the header present?
13189 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
13190 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
13191 cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13193 /* confdefs.h. */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 #include <sys/dg_sys_info.h>
13199 _ACEOF
13200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } >/dev/null; then
13208 if test -s conftest.err; then
13209 ac_cpp_err=$ac_c_preproc_warn_flag
13210 else
13211 ac_cpp_err=
13213 else
13214 ac_cpp_err=yes
13216 if test -z "$ac_cpp_err"; then
13217 ac_header_preproc=yes
13218 else
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_header_preproc=no
13224 rm -f conftest.err conftest.$ac_ext
13225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13226 echo "${ECHO_T}$ac_header_preproc" >&6
13228 # So? What about this header?
13229 case $ac_header_compiler:$ac_header_preproc in
13230 yes:no )
13231 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
13232 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13234 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13236 cat <<\_ASBOX
13237 ## ------------------------------------ ##
13238 ## Report this to bug-autoconf@gnu.org. ##
13239 ## ------------------------------------ ##
13240 _ASBOX
13242 sed "s/^/$as_me: WARNING: /" >&2
13244 no:yes )
13245 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13250 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13252 cat <<\_ASBOX
13253 ## ------------------------------------ ##
13254 ## Report this to bug-autoconf@gnu.org. ##
13255 ## ------------------------------------ ##
13256 _ASBOX
13258 sed "s/^/$as_me: WARNING: /" >&2
13260 esac
13261 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13262 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13263 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
13268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13269 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13272 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
13273 ac_have_func=yes
13275 cat >>confdefs.h <<\_ACEOF
13276 #define DGUX 1
13277 _ACEOF
13280 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
13281 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
13282 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285 ac_check_lib_save_LIBS=$LIBS
13286 LIBS="-ldgc $LIBS"
13287 cat >conftest.$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13289 /* confdefs.h. */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13295 /* Override any gcc2 internal prototype to avoid an error. */
13296 #ifdef __cplusplus
13297 extern "C"
13298 #endif
13299 /* We use char because int might match the return type of a gcc2
13300 builtin and then its argument prototype would still apply. */
13301 char dg_sys_info ();
13303 main ()
13305 dg_sys_info ();
13307 return 0;
13309 _ACEOF
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -s conftest$ac_exeext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_lib_dgc_dg_sys_info=yes
13323 else
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ac_cv_lib_dgc_dg_sys_info=no
13329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13332 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13333 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
13334 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_LIBDGC 1
13337 _ACEOF
13339 LIBS="-ldgc $LIBS"
13347 if test "${ac_cv_header_locale_h+set}" = set; then
13348 echo "$as_me:$LINENO: checking for locale.h" >&5
13349 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13350 if test "${ac_cv_header_locale_h+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13355 else
13356 # Is the header compilable?
13357 echo "$as_me:$LINENO: checking locale.h usability" >&5
13358 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
13359 cat >conftest.$ac_ext <<_ACEOF
13360 #line $LINENO "configure"
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 $ac_includes_default
13367 #include <locale.h>
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_header_compiler=yes
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 ac_header_compiler=no
13388 rm -f conftest.$ac_objext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390 echo "${ECHO_T}$ac_header_compiler" >&6
13392 # Is the header present?
13393 echo "$as_me:$LINENO: checking locale.h presence" >&5
13394 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
13395 cat >conftest.$ac_ext <<_ACEOF
13396 #line $LINENO "configure"
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 #include <locale.h>
13403 _ACEOF
13404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } >/dev/null; then
13412 if test -s conftest.err; then
13413 ac_cpp_err=$ac_c_preproc_warn_flag
13414 else
13415 ac_cpp_err=
13417 else
13418 ac_cpp_err=yes
13420 if test -z "$ac_cpp_err"; then
13421 ac_header_preproc=yes
13422 else
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_header_preproc=no
13428 rm -f conftest.err conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6
13432 # So? What about this header?
13433 case $ac_header_compiler:$ac_header_preproc in
13434 yes:no )
13435 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13438 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13440 cat <<\_ASBOX
13441 ## ------------------------------------ ##
13442 ## Report this to bug-autoconf@gnu.org. ##
13443 ## ------------------------------------ ##
13444 _ASBOX
13446 sed "s/^/$as_me: WARNING: /" >&2
13448 no:yes )
13449 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13450 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13452 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13454 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13456 cat <<\_ASBOX
13457 ## ------------------------------------ ##
13458 ## Report this to bug-autoconf@gnu.org. ##
13459 ## ------------------------------------ ##
13460 _ASBOX
13462 sed "s/^/$as_me: WARNING: /" >&2
13464 esac
13465 echo "$as_me:$LINENO: checking for locale.h" >&5
13466 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13467 if test "${ac_cv_header_locale_h+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470 ac_cv_header_locale_h=$ac_header_preproc
13472 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13473 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13479 for ac_func in setlocale
13481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13482 echo "$as_me:$LINENO: checking for $ac_func" >&5
13483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13484 if eval "test \"\${$as_ac_var+set}\" = set"; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487 cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 /* System header to define __stub macros and hopefully few prototypes,
13495 which can conflict with char $ac_func (); below.
13496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13497 <limits.h> exists even on freestanding compilers. */
13498 #ifdef __STDC__
13499 # include <limits.h>
13500 #else
13501 # include <assert.h>
13502 #endif
13503 /* Override any gcc2 internal prototype to avoid an error. */
13504 #ifdef __cplusplus
13505 extern "C"
13507 #endif
13508 /* We use char because int might match the return type of a gcc2
13509 builtin and then its argument prototype would still apply. */
13510 char $ac_func ();
13511 /* The GNU C library defines this for functions which it implements
13512 to always fail with ENOSYS. Some functions are actually named
13513 something starting with __ and the normal name is an alias. */
13514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13515 choke me
13516 #else
13517 char (*f) () = $ac_func;
13518 #endif
13519 #ifdef __cplusplus
13521 #endif
13524 main ()
13526 return f != $ac_func;
13528 return 0;
13530 _ACEOF
13531 rm -f conftest.$ac_objext conftest$ac_exeext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13533 (eval $ac_link) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 eval "$as_ac_var=yes"
13544 else
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 eval "$as_ac_var=no"
13550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13554 if test `eval echo '${'$as_ac_var'}'` = yes; then
13555 cat >>confdefs.h <<_ACEOF
13556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13557 _ACEOF
13560 done
13563 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13564 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13565 # Irix 4.0.5F has the header but not the library.
13566 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13567 ac_have_func=yes
13569 cat >>confdefs.h <<\_ACEOF
13570 #define SVR4 1
13571 _ACEOF
13575 if test $ac_have_func = no; then
13576 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13577 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13578 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13579 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13583 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13584 else
13585 # Is the header compilable?
13586 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13587 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13588 cat >conftest.$ac_ext <<_ACEOF
13589 #line $LINENO "configure"
13590 /* confdefs.h. */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13596 #include <inq_stats/cpustats.h>
13597 _ACEOF
13598 rm -f conftest.$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600 (eval $ac_compile) 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -s conftest.$ac_objext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
13610 ac_header_compiler=yes
13611 else
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 ac_header_compiler=no
13617 rm -f conftest.$ac_objext conftest.$ac_ext
13618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13619 echo "${ECHO_T}$ac_header_compiler" >&6
13621 # Is the header present?
13622 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13623 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13624 cat >conftest.$ac_ext <<_ACEOF
13625 #line $LINENO "configure"
13626 /* confdefs.h. */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13631 #include <inq_stats/cpustats.h>
13632 _ACEOF
13633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } >/dev/null; then
13641 if test -s conftest.err; then
13642 ac_cpp_err=$ac_c_preproc_warn_flag
13643 else
13644 ac_cpp_err=
13646 else
13647 ac_cpp_err=yes
13649 if test -z "$ac_cpp_err"; then
13650 ac_header_preproc=yes
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13655 ac_header_preproc=no
13657 rm -f conftest.err conftest.$ac_ext
13658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13659 echo "${ECHO_T}$ac_header_preproc" >&6
13661 # So? What about this header?
13662 case $ac_header_compiler:$ac_header_preproc in
13663 yes:no )
13664 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13665 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13667 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13669 cat <<\_ASBOX
13670 ## ------------------------------------ ##
13671 ## Report this to bug-autoconf@gnu.org. ##
13672 ## ------------------------------------ ##
13673 _ASBOX
13675 sed "s/^/$as_me: WARNING: /" >&2
13677 no:yes )
13678 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13679 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13681 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13683 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13685 cat <<\_ASBOX
13686 ## ------------------------------------ ##
13687 ## Report this to bug-autoconf@gnu.org. ##
13688 ## ------------------------------------ ##
13689 _ASBOX
13691 sed "s/^/$as_me: WARNING: /" >&2
13693 esac
13694 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13695 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13696 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13701 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13702 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13705 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13706 ac_have_func=yes
13708 cat >>confdefs.h <<\_ACEOF
13709 #define UMAX 1
13710 _ACEOF
13713 cat >>confdefs.h <<\_ACEOF
13714 #define UMAX4_3 1
13715 _ACEOF
13722 if test $ac_have_func = no; then
13723 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13724 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13725 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13726 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13730 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13731 else
13732 # Is the header compilable?
13733 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13734 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13735 cat >conftest.$ac_ext <<_ACEOF
13736 #line $LINENO "configure"
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13743 #include <sys/cpustats.h>
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_header_compiler=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_header_compiler=no
13764 rm -f conftest.$ac_objext conftest.$ac_ext
13765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13766 echo "${ECHO_T}$ac_header_compiler" >&6
13768 # Is the header present?
13769 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13770 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13772 #line $LINENO "configure"
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 #include <sys/cpustats.h>
13779 _ACEOF
13780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } >/dev/null; then
13788 if test -s conftest.err; then
13789 ac_cpp_err=$ac_c_preproc_warn_flag
13790 else
13791 ac_cpp_err=
13793 else
13794 ac_cpp_err=yes
13796 if test -z "$ac_cpp_err"; then
13797 ac_header_preproc=yes
13798 else
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13802 ac_header_preproc=no
13804 rm -f conftest.err conftest.$ac_ext
13805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13806 echo "${ECHO_T}$ac_header_preproc" >&6
13808 # So? What about this header?
13809 case $ac_header_compiler:$ac_header_preproc in
13810 yes:no )
13811 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13812 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13814 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13816 cat <<\_ASBOX
13817 ## ------------------------------------ ##
13818 ## Report this to bug-autoconf@gnu.org. ##
13819 ## ------------------------------------ ##
13820 _ASBOX
13822 sed "s/^/$as_me: WARNING: /" >&2
13824 no:yes )
13825 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13826 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13828 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13830 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13832 cat <<\_ASBOX
13833 ## ------------------------------------ ##
13834 ## Report this to bug-autoconf@gnu.org. ##
13835 ## ------------------------------------ ##
13836 _ASBOX
13838 sed "s/^/$as_me: WARNING: /" >&2
13840 esac
13841 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13842 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13843 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13849 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13852 if test $ac_cv_header_sys_cpustats_h = yes; then
13853 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13854 #define UMAX 1
13855 _ACEOF
13862 if test $ac_have_func = no; then
13864 for ac_header in mach/mach.h
13866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13868 echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13875 else
13876 # Is the header compilable?
13877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13879 cat >conftest.$ac_ext <<_ACEOF
13880 #line $LINENO "configure"
13881 /* confdefs.h. */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13887 #include <$ac_header>
13888 _ACEOF
13889 rm -f conftest.$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891 (eval $ac_compile) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_header_compiler=yes
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_header_compiler=no
13908 rm -f conftest.$ac_objext conftest.$ac_ext
13909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13910 echo "${ECHO_T}$ac_header_compiler" >&6
13912 # Is the header present?
13913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13915 cat >conftest.$ac_ext <<_ACEOF
13916 #line $LINENO "configure"
13917 /* confdefs.h. */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 #include <$ac_header>
13923 _ACEOF
13924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13926 ac_status=$?
13927 grep -v '^ *+' conftest.er1 >conftest.err
13928 rm -f conftest.er1
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } >/dev/null; then
13932 if test -s conftest.err; then
13933 ac_cpp_err=$ac_c_preproc_warn_flag
13934 else
13935 ac_cpp_err=
13937 else
13938 ac_cpp_err=yes
13940 if test -z "$ac_cpp_err"; then
13941 ac_header_preproc=yes
13942 else
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13946 ac_header_preproc=no
13948 rm -f conftest.err conftest.$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13950 echo "${ECHO_T}$ac_header_preproc" >&6
13952 # So? What about this header?
13953 case $ac_header_compiler:$ac_header_preproc in
13954 yes:no )
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13960 cat <<\_ASBOX
13961 ## ------------------------------------ ##
13962 ## Report this to bug-autoconf@gnu.org. ##
13963 ## ------------------------------------ ##
13964 _ASBOX
13966 sed "s/^/$as_me: WARNING: /" >&2
13968 no:yes )
13969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13976 cat <<\_ASBOX
13977 ## ------------------------------------ ##
13978 ## Report this to bug-autoconf@gnu.org. ##
13979 ## ------------------------------------ ##
13980 _ASBOX
13982 sed "s/^/$as_me: WARNING: /" >&2
13984 esac
13985 echo "$as_me:$LINENO: checking for $ac_header" >&5
13986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990 eval "$as_ac_Header=$ac_header_preproc"
13992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13997 cat >>confdefs.h <<_ACEOF
13998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13999 _ACEOF
14003 done
14008 for ac_header in nlist.h
14010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012 echo "$as_me:$LINENO: checking for $ac_header" >&5
14013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14019 else
14020 # Is the header compilable?
14021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 /* confdefs.h. */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 $ac_includes_default
14031 #include <$ac_header>
14032 _ACEOF
14033 rm -f conftest.$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_header_compiler=yes
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_header_compiler=no
14052 rm -f conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054 echo "${ECHO_T}$ac_header_compiler" >&6
14056 # Is the header present?
14057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14060 #line $LINENO "configure"
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 #include <$ac_header>
14067 _ACEOF
14068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } >/dev/null; then
14076 if test -s conftest.err; then
14077 ac_cpp_err=$ac_c_preproc_warn_flag
14078 else
14079 ac_cpp_err=
14081 else
14082 ac_cpp_err=yes
14084 if test -z "$ac_cpp_err"; then
14085 ac_header_preproc=yes
14086 else
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_header_preproc=no
14092 rm -f conftest.err conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094 echo "${ECHO_T}$ac_header_preproc" >&6
14096 # So? What about this header?
14097 case $ac_header_compiler:$ac_header_preproc in
14098 yes:no )
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14104 cat <<\_ASBOX
14105 ## ------------------------------------ ##
14106 ## Report this to bug-autoconf@gnu.org. ##
14107 ## ------------------------------------ ##
14108 _ASBOX
14110 sed "s/^/$as_me: WARNING: /" >&2
14112 no:yes )
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14120 cat <<\_ASBOX
14121 ## ------------------------------------ ##
14122 ## Report this to bug-autoconf@gnu.org. ##
14123 ## ------------------------------------ ##
14124 _ASBOX
14126 sed "s/^/$as_me: WARNING: /" >&2
14128 esac
14129 echo "$as_me:$LINENO: checking for $ac_header" >&5
14130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134 eval "$as_ac_Header=$ac_header_preproc"
14136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14141 cat >>confdefs.h <<_ACEOF
14142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14143 _ACEOF
14144 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
14145 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
14146 if test "${ac_cv_member_struct_nlist_n_un_n_name+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 #include <nlist.h>
14159 main ()
14161 static struct nlist ac_aggr;
14162 if (ac_aggr.n_un.n_name)
14163 return 0;
14165 return 0;
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_member_struct_nlist_n_un_n_name=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 cat >conftest.$ac_ext <<_ACEOF
14186 #line $LINENO "configure"
14187 /* confdefs.h. */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 #include <nlist.h>
14195 main ()
14197 static struct nlist ac_aggr;
14198 if (sizeof ac_aggr.n_un.n_name)
14199 return 0;
14201 return 0;
14203 _ACEOF
14204 rm -f conftest.$ac_objext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206 (eval $ac_compile) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -s conftest.$ac_objext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_member_struct_nlist_n_un_n_name=yes
14217 else
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 ac_cv_member_struct_nlist_n_un_n_name=no
14223 rm -f conftest.$ac_objext conftest.$ac_ext
14225 rm -f conftest.$ac_objext conftest.$ac_ext
14227 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
14228 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
14229 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14233 _ACEOF
14236 cat >>confdefs.h <<\_ACEOF
14237 #define NLIST_NAME_UNION 1
14238 _ACEOF
14245 done
14248 done
14251 # Some definitions of getloadavg require that the program be installed setgid.
14252 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
14253 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
14254 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257 cat >conftest.$ac_ext <<_ACEOF
14258 #line $LINENO "configure"
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
14265 #ifdef LDAV_PRIVILEGED
14266 Yowza Am I SETGID yet
14267 #endif
14268 _ACEOF
14269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14270 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
14271 ac_cv_func_getloadavg_setgid=yes
14272 else
14273 ac_cv_func_getloadavg_setgid=no
14275 rm -f conftest*
14278 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
14279 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
14280 if test $ac_cv_func_getloadavg_setgid = yes; then
14281 NEED_SETGID=true
14283 cat >>confdefs.h <<\_ACEOF
14284 #define GETLOADAVG_PRIVILEGED 1
14285 _ACEOF
14287 else
14288 NEED_SETGID=false
14291 if test $ac_cv_func_getloadavg_setgid = yes; then
14292 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
14293 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
14294 if test "${ac_cv_group_kmem+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
14298 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
14299 # If we got an error (system does not support symlinks), try without -L.
14300 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
14301 ac_cv_group_kmem=`echo $ac_ls_output \
14302 | sed -ne 's/[ ][ ]*/ /g;
14303 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
14304 / /s/.* //;p;'`
14307 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
14308 echo "${ECHO_T}$ac_cv_group_kmem" >&6
14309 KMEM_GROUP=$ac_cv_group_kmem
14311 if test "x$ac_save_LIBS" = x; then
14312 GETLOADAVG_LIBS=$LIBS
14313 else
14314 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
14316 LIBS=$ac_save_LIBS
14320 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14321 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14322 if test "${ac_cv_sys_largefile_source+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325 while :; do
14326 ac_cv_sys_largefile_source=no
14327 cat >conftest.$ac_ext <<_ACEOF
14328 #line $LINENO "configure"
14329 /* confdefs.h. */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 #include <stdio.h>
14336 main ()
14338 return !fseeko;
14340 return 0;
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>&5
14346 ac_status=$?
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 break
14356 else
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14361 rm -f conftest.$ac_objext conftest.$ac_ext
14362 cat >conftest.$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14364 /* confdefs.h. */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 #define _LARGEFILE_SOURCE 1
14370 #include <stdio.h>
14372 main ()
14374 return !fseeko;
14376 return 0;
14378 _ACEOF
14379 rm -f conftest.$ac_objext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381 (eval $ac_compile) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -s conftest.$ac_objext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_cv_sys_largefile_source=1; break
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14397 rm -f conftest.$ac_objext conftest.$ac_ext
14398 break
14399 done
14401 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14402 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14403 if test "$ac_cv_sys_largefile_source" != no; then
14405 cat >>confdefs.h <<_ACEOF
14406 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14407 _ACEOF
14410 rm -f conftest*
14412 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14413 # in glibc 2.1.3, but that breaks too many other things.
14414 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14415 echo "$as_me:$LINENO: checking for fseeko" >&5
14416 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14417 if test "${ac_cv_func_fseeko+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420 cat >conftest.$ac_ext <<_ACEOF
14421 #line $LINENO "configure"
14422 /* confdefs.h. */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 #include <stdio.h>
14429 main ()
14431 return fseeko && fseeko (stdin, 0, 0);
14433 return 0;
14435 _ACEOF
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438 (eval $ac_link) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
14442 { ac_try='test -s conftest$ac_exeext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_cv_func_fseeko=yes
14449 else
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_cv_func_fseeko=no
14455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14457 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
14458 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14459 if test $ac_cv_func_fseeko = yes; then
14461 cat >>confdefs.h <<\_ACEOF
14462 #define HAVE_FSEEKO 1
14463 _ACEOF
14468 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14469 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14470 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473 # Use it with a single arg.
14474 cat >conftest.$ac_ext <<_ACEOF
14475 #line $LINENO "configure"
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14483 main ()
14485 getpgrp (0);
14487 return 0;
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_func_getpgrp_void=no
14503 else
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_cv_func_getpgrp_void=yes
14509 rm -f conftest.$ac_objext conftest.$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14513 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14514 if test $ac_cv_func_getpgrp_void = yes; then
14516 cat >>confdefs.h <<\_ACEOF
14517 #define GETPGRP_VOID 1
14518 _ACEOF
14524 for ac_func in strftime
14526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14527 echo "$as_me:$LINENO: checking for $ac_func" >&5
14528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14529 if eval "test \"\${$as_ac_var+set}\" = set"; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532 cat >conftest.$ac_ext <<_ACEOF
14533 #line $LINENO "configure"
14534 /* confdefs.h. */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char $ac_func (); below.
14541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542 <limits.h> exists even on freestanding compilers. */
14543 #ifdef __STDC__
14544 # include <limits.h>
14545 #else
14546 # include <assert.h>
14547 #endif
14548 /* Override any gcc2 internal prototype to avoid an error. */
14549 #ifdef __cplusplus
14550 extern "C"
14552 #endif
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14555 char $ac_func ();
14556 /* The GNU C library defines this for functions which it implements
14557 to always fail with ENOSYS. Some functions are actually named
14558 something starting with __ and the normal name is an alias. */
14559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14560 choke me
14561 #else
14562 char (*f) () = $ac_func;
14563 #endif
14564 #ifdef __cplusplus
14566 #endif
14569 main ()
14571 return f != $ac_func;
14573 return 0;
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try='test -s conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 eval "$as_ac_var=yes"
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 eval "$as_ac_var=no"
14595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14599 if test `eval echo '${'$as_ac_var'}'` = yes; then
14600 cat >>confdefs.h <<_ACEOF
14601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14602 _ACEOF
14604 else
14605 # strftime is in -lintl on SCO UNIX.
14606 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14607 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14608 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-lintl $LIBS"
14613 cat >conftest.$ac_ext <<_ACEOF
14614 #line $LINENO "configure"
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14621 /* Override any gcc2 internal prototype to avoid an error. */
14622 #ifdef __cplusplus
14623 extern "C"
14624 #endif
14625 /* We use char because int might match the return type of a gcc2
14626 builtin and then its argument prototype would still apply. */
14627 char strftime ();
14629 main ()
14631 strftime ();
14633 return 0;
14635 _ACEOF
14636 rm -f conftest.$ac_objext conftest$ac_exeext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14638 (eval $ac_link) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_cv_lib_intl_strftime=yes
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_cv_lib_intl_strftime=no
14655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14658 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14659 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14660 if test $ac_cv_lib_intl_strftime = yes; then
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_STRFTIME 1
14663 _ACEOF
14665 LIBS="-lintl $LIBS"
14669 done
14672 # UNIX98 PTYs.
14674 for ac_func in grantpt
14676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14677 echo "$as_me:$LINENO: checking for $ac_func" >&5
14678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14679 if eval "test \"\${$as_ac_var+set}\" = set"; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682 cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 /* confdefs.h. */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689 /* System header to define __stub macros and hopefully few prototypes,
14690 which can conflict with char $ac_func (); below.
14691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692 <limits.h> exists even on freestanding compilers. */
14693 #ifdef __STDC__
14694 # include <limits.h>
14695 #else
14696 # include <assert.h>
14697 #endif
14698 /* Override any gcc2 internal prototype to avoid an error. */
14699 #ifdef __cplusplus
14700 extern "C"
14702 #endif
14703 /* We use char because int might match the return type of a gcc2
14704 builtin and then its argument prototype would still apply. */
14705 char $ac_func ();
14706 /* The GNU C library defines this for functions which it implements
14707 to always fail with ENOSYS. Some functions are actually named
14708 something starting with __ and the normal name is an alias. */
14709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14710 choke me
14711 #else
14712 char (*f) () = $ac_func;
14713 #endif
14714 #ifdef __cplusplus
14716 #endif
14719 main ()
14721 return f != $ac_func;
14723 return 0;
14725 _ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 eval "$as_ac_var=yes"
14739 else
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 eval "$as_ac_var=no"
14745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14749 if test `eval echo '${'$as_ac_var'}'` = yes; then
14750 cat >>confdefs.h <<_ACEOF
14751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14752 _ACEOF
14755 done
14758 # PTY-related GNU extensions.
14760 for ac_func in getpt
14762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14763 echo "$as_me:$LINENO: checking for $ac_func" >&5
14764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14765 if eval "test \"\${$as_ac_var+set}\" = set"; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 /* System header to define __stub macros and hopefully few prototypes,
14776 which can conflict with char $ac_func (); below.
14777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14778 <limits.h> exists even on freestanding compilers. */
14779 #ifdef __STDC__
14780 # include <limits.h>
14781 #else
14782 # include <assert.h>
14783 #endif
14784 /* Override any gcc2 internal prototype to avoid an error. */
14785 #ifdef __cplusplus
14786 extern "C"
14788 #endif
14789 /* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14791 char $ac_func ();
14792 /* The GNU C library defines this for functions which it implements
14793 to always fail with ENOSYS. Some functions are actually named
14794 something starting with __ and the normal name is an alias. */
14795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14796 choke me
14797 #else
14798 char (*f) () = $ac_func;
14799 #endif
14800 #ifdef __cplusplus
14802 #endif
14805 main ()
14807 return f != $ac_func;
14809 return 0;
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814 (eval $ac_link) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -s conftest$ac_exeext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 eval "$as_ac_var=yes"
14825 else
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 eval "$as_ac_var=no"
14831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14835 if test `eval echo '${'$as_ac_var'}'` = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14838 _ACEOF
14841 done
14844 # Check this now, so that we will NOT find the above functions in ncurses.
14845 # That is because we have not set up to link ncurses in lib-src.
14846 # It's better to believe a function is not available
14847 # than to expect to find it in ncurses.
14849 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14850 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14851 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854 ac_check_lib_save_LIBS=$LIBS
14855 LIBS="-lncurses $LIBS"
14856 cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 /* confdefs.h. */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14864 /* Override any gcc2 internal prototype to avoid an error. */
14865 #ifdef __cplusplus
14866 extern "C"
14867 #endif
14868 /* We use char because int might match the return type of a gcc2
14869 builtin and then its argument prototype would still apply. */
14870 char tparm ();
14872 main ()
14874 tparm ();
14876 return 0;
14878 _ACEOF
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -s conftest$ac_exeext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_cv_lib_ncurses_tparm=yes
14892 else
14893 echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14896 ac_cv_lib_ncurses_tparm=no
14898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14899 LIBS=$ac_check_lib_save_LIBS
14901 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14902 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14903 if test $ac_cv_lib_ncurses_tparm = yes; then
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE_LIBNCURSES 1
14906 _ACEOF
14908 LIBS="-lncurses $LIBS"
14913 # Do we need the Hesiod library to provide the support routines?
14914 if test "$with_hesiod" = yes ; then
14915 # Don't set $LIBS here -- see comments above.
14916 resolv=no
14917 echo "$as_me:$LINENO: checking for res_send" >&5
14918 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14919 if test "${ac_cv_func_res_send+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922 cat >conftest.$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14924 /* confdefs.h. */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929 /* System header to define __stub macros and hopefully few prototypes,
14930 which can conflict with char res_send (); below.
14931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14932 <limits.h> exists even on freestanding compilers. */
14933 #ifdef __STDC__
14934 # include <limits.h>
14935 #else
14936 # include <assert.h>
14937 #endif
14938 /* Override any gcc2 internal prototype to avoid an error. */
14939 #ifdef __cplusplus
14940 extern "C"
14942 #endif
14943 /* We use char because int might match the return type of a gcc2
14944 builtin and then its argument prototype would still apply. */
14945 char res_send ();
14946 /* The GNU C library defines this for functions which it implements
14947 to always fail with ENOSYS. Some functions are actually named
14948 something starting with __ and the normal name is an alias. */
14949 #if defined (__stub_res_send) || defined (__stub___res_send)
14950 choke me
14951 #else
14952 char (*f) () = res_send;
14953 #endif
14954 #ifdef __cplusplus
14956 #endif
14959 main ()
14961 return f != res_send;
14963 return 0;
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14968 (eval $ac_link) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -s conftest$ac_exeext'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 ac_cv_func_res_send=yes
14979 else
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_cv_func_res_send=no
14985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14987 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14988 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14989 if test $ac_cv_func_res_send = yes; then
14991 else
14992 echo "$as_me:$LINENO: checking for __res_send" >&5
14993 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14994 if test "${ac_cv_func___res_send+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 /* confdefs.h. */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 /* System header to define __stub macros and hopefully few prototypes,
15005 which can conflict with char __res_send (); below.
15006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15007 <limits.h> exists even on freestanding compilers. */
15008 #ifdef __STDC__
15009 # include <limits.h>
15010 #else
15011 # include <assert.h>
15012 #endif
15013 /* Override any gcc2 internal prototype to avoid an error. */
15014 #ifdef __cplusplus
15015 extern "C"
15017 #endif
15018 /* We use char because int might match the return type of a gcc2
15019 builtin and then its argument prototype would still apply. */
15020 char __res_send ();
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub___res_send) || defined (__stub_____res_send)
15025 choke me
15026 #else
15027 char (*f) () = __res_send;
15028 #endif
15029 #ifdef __cplusplus
15031 #endif
15034 main ()
15036 return f != __res_send;
15038 return 0;
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043 (eval $ac_link) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_func___res_send=yes
15054 else
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_cv_func___res_send=no
15060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15062 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
15063 echo "${ECHO_T}$ac_cv_func___res_send" >&6
15064 if test $ac_cv_func___res_send = yes; then
15066 else
15067 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
15068 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
15069 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072 ac_check_lib_save_LIBS=$LIBS
15073 LIBS="-lresolv $LIBS"
15074 cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15076 /* confdefs.h. */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15082 /* Override any gcc2 internal prototype to avoid an error. */
15083 #ifdef __cplusplus
15084 extern "C"
15085 #endif
15086 /* We use char because int might match the return type of a gcc2
15087 builtin and then its argument prototype would still apply. */
15088 char res_send ();
15090 main ()
15092 res_send ();
15094 return 0;
15096 _ACEOF
15097 rm -f conftest.$ac_objext conftest$ac_exeext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_cv_lib_resolv_res_send=yes
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 ac_cv_lib_resolv_res_send=no
15116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15119 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
15120 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
15121 if test $ac_cv_lib_resolv_res_send = yes; then
15122 resolv=yes
15123 else
15124 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
15125 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
15126 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 else
15129 ac_check_lib_save_LIBS=$LIBS
15130 LIBS="-lresolv $LIBS"
15131 cat >conftest.$ac_ext <<_ACEOF
15132 #line $LINENO "configure"
15133 /* confdefs.h. */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any gcc2 internal prototype to avoid an error. */
15140 #ifdef __cplusplus
15141 extern "C"
15142 #endif
15143 /* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */
15145 char __res_send ();
15147 main ()
15149 __res_send ();
15151 return 0;
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -s conftest$ac_exeext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_lib_resolv___res_send=yes
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_resolv___res_send=no
15173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15174 LIBS=$ac_check_lib_save_LIBS
15176 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
15177 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
15178 if test $ac_cv_lib_resolv___res_send = yes; then
15179 resolv=yes
15188 if test "$resolv" = yes ; then
15189 RESOLVLIB=-lresolv
15191 cat >>confdefs.h <<\_ACEOF
15192 #define HAVE_LIBRESOLV 1
15193 _ACEOF
15195 else
15196 RESOLVLIB=
15198 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
15199 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
15200 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203 cat >conftest.$ac_ext <<_ACEOF
15204 #line $LINENO "configure"
15205 /* confdefs.h. */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char hes_getmailhost (); below.
15212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15213 <limits.h> exists even on freestanding compilers. */
15214 #ifdef __STDC__
15215 # include <limits.h>
15216 #else
15217 # include <assert.h>
15218 #endif
15219 /* Override any gcc2 internal prototype to avoid an error. */
15220 #ifdef __cplusplus
15221 extern "C"
15223 #endif
15224 /* We use char because int might match the return type of a gcc2
15225 builtin and then its argument prototype would still apply. */
15226 char hes_getmailhost ();
15227 /* The GNU C library defines this for functions which it implements
15228 to always fail with ENOSYS. Some functions are actually named
15229 something starting with __ and the normal name is an alias. */
15230 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
15231 choke me
15232 #else
15233 char (*f) () = hes_getmailhost;
15234 #endif
15235 #ifdef __cplusplus
15237 #endif
15240 main ()
15242 return f != hes_getmailhost;
15244 return 0;
15246 _ACEOF
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15249 (eval $ac_link) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_func_hes_getmailhost=yes
15260 else
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_func_hes_getmailhost=no
15266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15268 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
15269 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
15270 if test $ac_cv_func_hes_getmailhost = yes; then
15272 else
15273 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
15274 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
15275 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278 ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lhesiod $RESOLVLIB $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15281 #line $LINENO "configure"
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15288 /* Override any gcc2 internal prototype to avoid an error. */
15289 #ifdef __cplusplus
15290 extern "C"
15291 #endif
15292 /* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15294 char hes_getmailhost ();
15296 main ()
15298 hes_getmailhost ();
15300 return 0;
15302 _ACEOF
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15305 (eval $ac_link) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try='test -s conftest$ac_exeext'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_cv_lib_hesiod_hes_getmailhost=yes
15316 else
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ac_cv_lib_hesiod_hes_getmailhost=no
15322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15326 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
15327 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE_LIBHESIOD 1
15331 _ACEOF
15333 else
15341 # These tell us which Kerberos-related libraries to use.
15342 if test "${with_kerberos+set}" = set; then
15344 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
15345 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
15346 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349 ac_check_lib_save_LIBS=$LIBS
15350 LIBS="-lcom_err $LIBS"
15351 cat >conftest.$ac_ext <<_ACEOF
15352 #line $LINENO "configure"
15353 /* confdefs.h. */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15359 /* Override any gcc2 internal prototype to avoid an error. */
15360 #ifdef __cplusplus
15361 extern "C"
15362 #endif
15363 /* We use char because int might match the return type of a gcc2
15364 builtin and then its argument prototype would still apply. */
15365 char com_err ();
15367 main ()
15369 com_err ();
15371 return 0;
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376 (eval $ac_link) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -s conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_cv_lib_com_err_com_err=yes
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 ac_cv_lib_com_err_com_err=no
15393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15394 LIBS=$ac_check_lib_save_LIBS
15396 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
15397 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
15398 if test $ac_cv_lib_com_err_com_err = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400 #define HAVE_LIBCOM_ERR 1
15401 _ACEOF
15403 LIBS="-lcom_err $LIBS"
15408 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15409 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
15410 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 ac_check_lib_save_LIBS=$LIBS
15414 LIBS="-lk5crypto $LIBS"
15415 cat >conftest.$ac_ext <<_ACEOF
15416 #line $LINENO "configure"
15417 /* confdefs.h. */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15423 /* Override any gcc2 internal prototype to avoid an error. */
15424 #ifdef __cplusplus
15425 extern "C"
15426 #endif
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char mit_des_cbc_encrypt ();
15431 main ()
15433 mit_des_cbc_encrypt ();
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440 (eval $ac_link) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15458 LIBS=$ac_check_lib_save_LIBS
15460 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15461 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
15462 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_LIBK5CRYPTO 1
15465 _ACEOF
15467 LIBS="-lk5crypto $LIBS"
15472 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15473 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15474 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477 ac_check_lib_save_LIBS=$LIBS
15478 LIBS="-lcrypto $LIBS"
15479 cat >conftest.$ac_ext <<_ACEOF
15480 #line $LINENO "configure"
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15487 /* Override any gcc2 internal prototype to avoid an error. */
15488 #ifdef __cplusplus
15489 extern "C"
15490 #endif
15491 /* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15493 char mit_des_cbc_encrypt ();
15495 main ()
15497 mit_des_cbc_encrypt ();
15499 return 0;
15501 _ACEOF
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15504 (eval $ac_link) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -s conftest$ac_exeext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15515 else
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15525 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15526 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBCRYPTO 1
15529 _ACEOF
15531 LIBS="-lcrypto $LIBS"
15536 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15537 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15538 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541 ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-lkrb5 $LIBS"
15543 cat >conftest.$ac_ext <<_ACEOF
15544 #line $LINENO "configure"
15545 /* confdefs.h. */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15551 /* Override any gcc2 internal prototype to avoid an error. */
15552 #ifdef __cplusplus
15553 extern "C"
15554 #endif
15555 /* We use char because int might match the return type of a gcc2
15556 builtin and then its argument prototype would still apply. */
15557 char krb5_init_context ();
15559 main ()
15561 krb5_init_context ();
15563 return 0;
15565 _ACEOF
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568 (eval $ac_link) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -s conftest$ac_exeext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_lib_krb5_krb5_init_context=yes
15579 else
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 ac_cv_lib_krb5_krb5_init_context=no
15585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15586 LIBS=$ac_check_lib_save_LIBS
15588 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15589 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15590 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15591 cat >>confdefs.h <<_ACEOF
15592 #define HAVE_LIBKRB5 1
15593 _ACEOF
15595 LIBS="-lkrb5 $LIBS"
15599 if test "${with_kerberos5+set}" != set; then
15601 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15602 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15603 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 ac_check_lib_save_LIBS=$LIBS
15607 LIBS="-ldes425 $LIBS"
15608 cat >conftest.$ac_ext <<_ACEOF
15609 #line $LINENO "configure"
15610 /* confdefs.h. */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15616 /* Override any gcc2 internal prototype to avoid an error. */
15617 #ifdef __cplusplus
15618 extern "C"
15619 #endif
15620 /* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15622 char des_cbc_encrypt ();
15624 main ()
15626 des_cbc_encrypt ();
15628 return 0;
15630 _ACEOF
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -s conftest$ac_exeext'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 ac_cv_lib_des425_des_cbc_encrypt=yes
15644 else
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 ac_cv_lib_des425_des_cbc_encrypt=no
15650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15651 LIBS=$ac_check_lib_save_LIBS
15653 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15654 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15655 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15656 cat >>confdefs.h <<_ACEOF
15657 #define HAVE_LIBDES425 1
15658 _ACEOF
15660 LIBS="-ldes425 $LIBS"
15662 else
15664 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15665 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15666 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669 ac_check_lib_save_LIBS=$LIBS
15670 LIBS="-ldes $LIBS"
15671 cat >conftest.$ac_ext <<_ACEOF
15672 #line $LINENO "configure"
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15679 /* Override any gcc2 internal prototype to avoid an error. */
15680 #ifdef __cplusplus
15681 extern "C"
15682 #endif
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15685 char des_cbc_encrypt ();
15687 main ()
15689 des_cbc_encrypt ();
15691 return 0;
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_lib_des_des_cbc_encrypt=yes
15707 else
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ac_cv_lib_des_des_cbc_encrypt=no
15713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15717 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15718 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE_LIBDES 1
15721 _ACEOF
15723 LIBS="-ldes $LIBS"
15730 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15731 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15732 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735 ac_check_lib_save_LIBS=$LIBS
15736 LIBS="-lkrb4 $LIBS"
15737 cat >conftest.$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15739 /* confdefs.h. */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15745 /* Override any gcc2 internal prototype to avoid an error. */
15746 #ifdef __cplusplus
15747 extern "C"
15748 #endif
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15751 char krb_get_cred ();
15753 main ()
15755 krb_get_cred ();
15757 return 0;
15759 _ACEOF
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15762 (eval $ac_link) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -s conftest$ac_exeext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_cv_lib_krb4_krb_get_cred=yes
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 ac_cv_lib_krb4_krb_get_cred=no
15779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15780 LIBS=$ac_check_lib_save_LIBS
15782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15783 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15784 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15785 cat >>confdefs.h <<_ACEOF
15786 #define HAVE_LIBKRB4 1
15787 _ACEOF
15789 LIBS="-lkrb4 $LIBS"
15791 else
15793 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15794 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15795 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798 ac_check_lib_save_LIBS=$LIBS
15799 LIBS="-lkrb $LIBS"
15800 cat >conftest.$ac_ext <<_ACEOF
15801 #line $LINENO "configure"
15802 /* confdefs.h. */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15808 /* Override any gcc2 internal prototype to avoid an error. */
15809 #ifdef __cplusplus
15810 extern "C"
15811 #endif
15812 /* We use char because int might match the return type of a gcc2
15813 builtin and then its argument prototype would still apply. */
15814 char krb_get_cred ();
15816 main ()
15818 krb_get_cred ();
15820 return 0;
15822 _ACEOF
15823 rm -f conftest.$ac_objext conftest$ac_exeext
15824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15825 (eval $ac_link) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -s conftest$ac_exeext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_cv_lib_krb_krb_get_cred=yes
15836 else
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ac_cv_lib_krb_krb_get_cred=no
15842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15843 LIBS=$ac_check_lib_save_LIBS
15845 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15846 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15847 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_LIBKRB 1
15850 _ACEOF
15852 LIBS="-lkrb $LIBS"
15860 if test "${with_kerberos5+set}" = set; then
15862 for ac_header in krb5.h
15864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15866 echo "$as_me:$LINENO: checking for $ac_header" >&5
15867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15873 else
15874 # Is the header compilable?
15875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15877 cat >conftest.$ac_ext <<_ACEOF
15878 #line $LINENO "configure"
15879 /* confdefs.h. */
15880 _ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15884 $ac_includes_default
15885 #include <$ac_header>
15886 _ACEOF
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_header_compiler=yes
15900 else
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_header_compiler=no
15906 rm -f conftest.$ac_objext conftest.$ac_ext
15907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15908 echo "${ECHO_T}$ac_header_compiler" >&6
15910 # Is the header present?
15911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15913 cat >conftest.$ac_ext <<_ACEOF
15914 #line $LINENO "configure"
15915 /* confdefs.h. */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 #include <$ac_header>
15921 _ACEOF
15922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } >/dev/null; then
15930 if test -s conftest.err; then
15931 ac_cpp_err=$ac_c_preproc_warn_flag
15932 else
15933 ac_cpp_err=
15935 else
15936 ac_cpp_err=yes
15938 if test -z "$ac_cpp_err"; then
15939 ac_header_preproc=yes
15940 else
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_header_preproc=no
15946 rm -f conftest.err conftest.$ac_ext
15947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15948 echo "${ECHO_T}$ac_header_preproc" >&6
15950 # So? What about this header?
15951 case $ac_header_compiler:$ac_header_preproc in
15952 yes:no )
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15958 cat <<\_ASBOX
15959 ## ------------------------------------ ##
15960 ## Report this to bug-autoconf@gnu.org. ##
15961 ## ------------------------------------ ##
15962 _ASBOX
15964 sed "s/^/$as_me: WARNING: /" >&2
15966 no:yes )
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15974 cat <<\_ASBOX
15975 ## ------------------------------------ ##
15976 ## Report this to bug-autoconf@gnu.org. ##
15977 ## ------------------------------------ ##
15978 _ASBOX
15980 sed "s/^/$as_me: WARNING: /" >&2
15982 esac
15983 echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988 eval "$as_ac_Header=$ac_header_preproc"
15990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15997 _ACEOF
16001 done
16003 else
16005 for ac_header in des.h
16007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16009 echo "$as_me:$LINENO: checking for $ac_header" >&5
16010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16016 else
16017 # Is the header compilable?
16018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16020 cat >conftest.$ac_ext <<_ACEOF
16021 #line $LINENO "configure"
16022 /* confdefs.h. */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 $ac_includes_default
16028 #include <$ac_header>
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032 (eval $ac_compile) 2>&5
16033 ac_status=$?
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try='test -s conftest.$ac_objext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_header_compiler=yes
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_header_compiler=no
16049 rm -f conftest.$ac_objext conftest.$ac_ext
16050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16051 echo "${ECHO_T}$ac_header_compiler" >&6
16053 # Is the header present?
16054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16056 cat >conftest.$ac_ext <<_ACEOF
16057 #line $LINENO "configure"
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <$ac_header>
16064 _ACEOF
16065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16067 ac_status=$?
16068 grep -v '^ *+' conftest.er1 >conftest.err
16069 rm -f conftest.er1
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } >/dev/null; then
16073 if test -s conftest.err; then
16074 ac_cpp_err=$ac_c_preproc_warn_flag
16075 else
16076 ac_cpp_err=
16078 else
16079 ac_cpp_err=yes
16081 if test -z "$ac_cpp_err"; then
16082 ac_header_preproc=yes
16083 else
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16087 ac_header_preproc=no
16089 rm -f conftest.err conftest.$ac_ext
16090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc in
16095 yes:no )
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16101 cat <<\_ASBOX
16102 ## ------------------------------------ ##
16103 ## Report this to bug-autoconf@gnu.org. ##
16104 ## ------------------------------------ ##
16105 _ASBOX
16107 sed "s/^/$as_me: WARNING: /" >&2
16109 no:yes )
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 cat <<\_ASBOX
16118 ## ------------------------------------ ##
16119 ## Report this to bug-autoconf@gnu.org. ##
16120 ## ------------------------------------ ##
16121 _ASBOX
16123 sed "s/^/$as_me: WARNING: /" >&2
16125 esac
16126 echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 else
16131 eval "$as_ac_Header=$ac_header_preproc"
16133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16138 cat >>confdefs.h <<_ACEOF
16139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16140 _ACEOF
16142 else
16144 for ac_header in kerberosIV/des.h
16146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16148 echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16155 else
16156 # Is the header compilable?
16157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16159 cat >conftest.$ac_ext <<_ACEOF
16160 #line $LINENO "configure"
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 #include <$ac_header>
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -s conftest.$ac_objext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_header_compiler=yes
16182 else
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 ac_header_compiler=no
16188 rm -f conftest.$ac_objext conftest.$ac_ext
16189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16190 echo "${ECHO_T}$ac_header_compiler" >&6
16192 # Is the header present?
16193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16195 cat >conftest.$ac_ext <<_ACEOF
16196 #line $LINENO "configure"
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <$ac_header>
16203 _ACEOF
16204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } >/dev/null; then
16212 if test -s conftest.err; then
16213 ac_cpp_err=$ac_c_preproc_warn_flag
16214 else
16215 ac_cpp_err=
16217 else
16218 ac_cpp_err=yes
16220 if test -z "$ac_cpp_err"; then
16221 ac_header_preproc=yes
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 ac_header_preproc=no
16228 rm -f conftest.err conftest.$ac_ext
16229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16230 echo "${ECHO_T}$ac_header_preproc" >&6
16232 # So? What about this header?
16233 case $ac_header_compiler:$ac_header_preproc in
16234 yes:no )
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16240 cat <<\_ASBOX
16241 ## ------------------------------------ ##
16242 ## Report this to bug-autoconf@gnu.org. ##
16243 ## ------------------------------------ ##
16244 _ASBOX
16246 sed "s/^/$as_me: WARNING: /" >&2
16248 no:yes )
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16256 cat <<\_ASBOX
16257 ## ------------------------------------ ##
16258 ## Report this to bug-autoconf@gnu.org. ##
16259 ## ------------------------------------ ##
16260 _ASBOX
16262 sed "s/^/$as_me: WARNING: /" >&2
16264 esac
16265 echo "$as_me:$LINENO: checking for $ac_header" >&5
16266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270 eval "$as_ac_Header=$ac_header_preproc"
16272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16277 cat >>confdefs.h <<_ACEOF
16278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16279 _ACEOF
16281 else
16283 for ac_header in kerberos/des.h
16285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16287 echo "$as_me:$LINENO: checking for $ac_header" >&5
16288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16294 else
16295 # Is the header compilable?
16296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16298 cat >conftest.$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 $ac_includes_default
16306 #include <$ac_header>
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ac_header_compiler=yes
16321 else
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_compiler=no
16327 rm -f conftest.$ac_objext conftest.$ac_ext
16328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16329 echo "${ECHO_T}$ac_header_compiler" >&6
16331 # Is the header present?
16332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16334 cat >conftest.$ac_ext <<_ACEOF
16335 #line $LINENO "configure"
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 #include <$ac_header>
16342 _ACEOF
16343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } >/dev/null; then
16351 if test -s conftest.err; then
16352 ac_cpp_err=$ac_c_preproc_warn_flag
16353 else
16354 ac_cpp_err=
16356 else
16357 ac_cpp_err=yes
16359 if test -z "$ac_cpp_err"; then
16360 ac_header_preproc=yes
16361 else
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 ac_header_preproc=no
16367 rm -f conftest.err conftest.$ac_ext
16368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6
16371 # So? What about this header?
16372 case $ac_header_compiler:$ac_header_preproc in
16373 yes:no )
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16379 cat <<\_ASBOX
16380 ## ------------------------------------ ##
16381 ## Report this to bug-autoconf@gnu.org. ##
16382 ## ------------------------------------ ##
16383 _ASBOX
16385 sed "s/^/$as_me: WARNING: /" >&2
16387 no:yes )
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16395 cat <<\_ASBOX
16396 ## ------------------------------------ ##
16397 ## Report this to bug-autoconf@gnu.org. ##
16398 ## ------------------------------------ ##
16399 _ASBOX
16401 sed "s/^/$as_me: WARNING: /" >&2
16403 esac
16404 echo "$as_me:$LINENO: checking for $ac_header" >&5
16405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409 eval "$as_ac_Header=$ac_header_preproc"
16411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16416 cat >>confdefs.h <<_ACEOF
16417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16418 _ACEOF
16422 done
16426 done
16430 done
16433 for ac_header in krb.h
16435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16437 echo "$as_me:$LINENO: checking for $ac_header" >&5
16438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16444 else
16445 # Is the header compilable?
16446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16450 /* confdefs.h. */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 $ac_includes_default
16456 #include <$ac_header>
16457 _ACEOF
16458 rm -f conftest.$ac_objext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16460 (eval $ac_compile) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } &&
16464 { ac_try='test -s conftest.$ac_objext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 ac_header_compiler=yes
16471 else
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ac_header_compiler=no
16477 rm -f conftest.$ac_objext conftest.$ac_ext
16478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16479 echo "${ECHO_T}$ac_header_compiler" >&6
16481 # Is the header present?
16482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16484 cat >conftest.$ac_ext <<_ACEOF
16485 #line $LINENO "configure"
16486 /* confdefs.h. */
16487 _ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 #include <$ac_header>
16492 _ACEOF
16493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } >/dev/null; then
16501 if test -s conftest.err; then
16502 ac_cpp_err=$ac_c_preproc_warn_flag
16503 else
16504 ac_cpp_err=
16506 else
16507 ac_cpp_err=yes
16509 if test -z "$ac_cpp_err"; then
16510 ac_header_preproc=yes
16511 else
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 ac_header_preproc=no
16517 rm -f conftest.err conftest.$ac_ext
16518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16519 echo "${ECHO_T}$ac_header_preproc" >&6
16521 # So? What about this header?
16522 case $ac_header_compiler:$ac_header_preproc in
16523 yes:no )
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16529 cat <<\_ASBOX
16530 ## ------------------------------------ ##
16531 ## Report this to bug-autoconf@gnu.org. ##
16532 ## ------------------------------------ ##
16533 _ASBOX
16535 sed "s/^/$as_me: WARNING: /" >&2
16537 no:yes )
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16545 cat <<\_ASBOX
16546 ## ------------------------------------ ##
16547 ## Report this to bug-autoconf@gnu.org. ##
16548 ## ------------------------------------ ##
16549 _ASBOX
16551 sed "s/^/$as_me: WARNING: /" >&2
16553 esac
16554 echo "$as_me:$LINENO: checking for $ac_header" >&5
16555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559 eval "$as_ac_Header=$ac_header_preproc"
16561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16566 cat >>confdefs.h <<_ACEOF
16567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16568 _ACEOF
16570 else
16572 for ac_header in kerberosIV/krb.h
16574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16576 echo "$as_me:$LINENO: checking for $ac_header" >&5
16577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16583 else
16584 # Is the header compilable?
16585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16587 cat >conftest.$ac_ext <<_ACEOF
16588 #line $LINENO "configure"
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 #include <$ac_header>
16596 _ACEOF
16597 rm -f conftest.$ac_objext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16599 (eval $ac_compile) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -s conftest.$ac_objext'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_header_compiler=yes
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_header_compiler=no
16616 rm -f conftest.$ac_objext conftest.$ac_ext
16617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16618 echo "${ECHO_T}$ac_header_compiler" >&6
16620 # Is the header present?
16621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16623 cat >conftest.$ac_ext <<_ACEOF
16624 #line $LINENO "configure"
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <$ac_header>
16631 _ACEOF
16632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } >/dev/null; then
16640 if test -s conftest.err; then
16641 ac_cpp_err=$ac_c_preproc_warn_flag
16642 else
16643 ac_cpp_err=
16645 else
16646 ac_cpp_err=yes
16648 if test -z "$ac_cpp_err"; then
16649 ac_header_preproc=yes
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 ac_header_preproc=no
16656 rm -f conftest.err conftest.$ac_ext
16657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16658 echo "${ECHO_T}$ac_header_preproc" >&6
16660 # So? What about this header?
16661 case $ac_header_compiler:$ac_header_preproc in
16662 yes:no )
16663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16668 cat <<\_ASBOX
16669 ## ------------------------------------ ##
16670 ## Report this to bug-autoconf@gnu.org. ##
16671 ## ------------------------------------ ##
16672 _ASBOX
16674 sed "s/^/$as_me: WARNING: /" >&2
16676 no:yes )
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16684 cat <<\_ASBOX
16685 ## ------------------------------------ ##
16686 ## Report this to bug-autoconf@gnu.org. ##
16687 ## ------------------------------------ ##
16688 _ASBOX
16690 sed "s/^/$as_me: WARNING: /" >&2
16692 esac
16693 echo "$as_me:$LINENO: checking for $ac_header" >&5
16694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698 eval "$as_ac_Header=$ac_header_preproc"
16700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16705 cat >>confdefs.h <<_ACEOF
16706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16707 _ACEOF
16709 else
16711 for ac_header in kerberos/krb.h
16713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16715 echo "$as_me:$LINENO: checking for $ac_header" >&5
16716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16722 else
16723 # Is the header compilable?
16724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16726 cat >conftest.$ac_ext <<_ACEOF
16727 #line $LINENO "configure"
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16734 #include <$ac_header>
16735 _ACEOF
16736 rm -f conftest.$ac_objext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738 (eval $ac_compile) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_header_compiler=yes
16749 else
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_header_compiler=no
16755 rm -f conftest.$ac_objext conftest.$ac_ext
16756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16757 echo "${ECHO_T}$ac_header_compiler" >&6
16759 # Is the header present?
16760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16762 cat >conftest.$ac_ext <<_ACEOF
16763 #line $LINENO "configure"
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <$ac_header>
16770 _ACEOF
16771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16773 ac_status=$?
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } >/dev/null; then
16779 if test -s conftest.err; then
16780 ac_cpp_err=$ac_c_preproc_warn_flag
16781 else
16782 ac_cpp_err=
16784 else
16785 ac_cpp_err=yes
16787 if test -z "$ac_cpp_err"; then
16788 ac_header_preproc=yes
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 ac_header_preproc=no
16795 rm -f conftest.err conftest.$ac_ext
16796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16797 echo "${ECHO_T}$ac_header_preproc" >&6
16799 # So? What about this header?
16800 case $ac_header_compiler:$ac_header_preproc in
16801 yes:no )
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807 cat <<\_ASBOX
16808 ## ------------------------------------ ##
16809 ## Report this to bug-autoconf@gnu.org. ##
16810 ## ------------------------------------ ##
16811 _ASBOX
16813 sed "s/^/$as_me: WARNING: /" >&2
16815 no:yes )
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16823 cat <<\_ASBOX
16824 ## ------------------------------------ ##
16825 ## Report this to bug-autoconf@gnu.org. ##
16826 ## ------------------------------------ ##
16827 _ASBOX
16829 sed "s/^/$as_me: WARNING: /" >&2
16831 esac
16832 echo "$as_me:$LINENO: checking for $ac_header" >&5
16833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837 eval "$as_ac_Header=$ac_header_preproc"
16839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16844 cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16846 _ACEOF
16850 done
16854 done
16858 done
16862 for ac_header in com_err.h
16864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16873 else
16874 # Is the header compilable?
16875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16877 cat >conftest.$ac_ext <<_ACEOF
16878 #line $LINENO "configure"
16879 /* confdefs.h. */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 $ac_includes_default
16885 #include <$ac_header>
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16889 (eval $ac_compile) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_header_compiler=yes
16900 else
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ac_header_compiler=no
16906 rm -f conftest.$ac_objext conftest.$ac_ext
16907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16908 echo "${ECHO_T}$ac_header_compiler" >&6
16910 # Is the header present?
16911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16913 cat >conftest.$ac_ext <<_ACEOF
16914 #line $LINENO "configure"
16915 /* confdefs.h. */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 #include <$ac_header>
16921 _ACEOF
16922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } >/dev/null; then
16930 if test -s conftest.err; then
16931 ac_cpp_err=$ac_c_preproc_warn_flag
16932 else
16933 ac_cpp_err=
16935 else
16936 ac_cpp_err=yes
16938 if test -z "$ac_cpp_err"; then
16939 ac_header_preproc=yes
16940 else
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_header_preproc=no
16946 rm -f conftest.err conftest.$ac_ext
16947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16948 echo "${ECHO_T}$ac_header_preproc" >&6
16950 # So? What about this header?
16951 case $ac_header_compiler:$ac_header_preproc in
16952 yes:no )
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16958 cat <<\_ASBOX
16959 ## ------------------------------------ ##
16960 ## Report this to bug-autoconf@gnu.org. ##
16961 ## ------------------------------------ ##
16962 _ASBOX
16964 sed "s/^/$as_me: WARNING: /" >&2
16966 no:yes )
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16974 cat <<\_ASBOX
16975 ## ------------------------------------ ##
16976 ## Report this to bug-autoconf@gnu.org. ##
16977 ## ------------------------------------ ##
16978 _ASBOX
16980 sed "s/^/$as_me: WARNING: /" >&2
16982 esac
16983 echo "$as_me:$LINENO: checking for $ac_header" >&5
16984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988 eval "$as_ac_Header=$ac_header_preproc"
16990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16995 cat >>confdefs.h <<_ACEOF
16996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16997 _ACEOF
17001 done
17005 # Solaris requires -lintl if you want strerror (which calls dgettext)
17006 # to return localized messages.
17008 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
17009 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
17010 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013 ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lintl $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17017 /* confdefs.h. */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17023 /* Override any gcc2 internal prototype to avoid an error. */
17024 #ifdef __cplusplus
17025 extern "C"
17026 #endif
17027 /* We use char because int might match the return type of a gcc2
17028 builtin and then its argument prototype would still apply. */
17029 char dgettext ();
17031 main ()
17033 dgettext ();
17035 return 0;
17037 _ACEOF
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -s conftest$ac_exeext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_lib_intl_dgettext=yes
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_cv_lib_intl_dgettext=no
17057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17060 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
17061 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
17062 if test $ac_cv_lib_intl_dgettext = yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_LIBINTL 1
17065 _ACEOF
17067 LIBS="-lintl $LIBS"
17072 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
17073 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
17074 if test "${emacs_cv_localtime_cache+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077 if test x$ac_cv_func_tzset = xyes; then
17078 if test "$cross_compiling" = yes; then
17079 # If we have tzset, assume the worst when cross-compiling.
17080 emacs_cv_localtime_cache=yes
17081 else
17082 cat >conftest.$ac_ext <<_ACEOF
17083 #line $LINENO "configure"
17084 /* confdefs.h. */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 #include <time.h>
17090 extern char **environ;
17091 unset_TZ ()
17093 char **from, **to;
17094 for (to = from = environ; (*to = *from); from++)
17095 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
17096 to++;
17098 char TZ_GMT0[] = "TZ=GMT0";
17099 char TZ_PST8[] = "TZ=PST8";
17100 main()
17102 time_t now = time ((time_t *) 0);
17103 int hour_GMT0, hour_unset;
17104 if (putenv (TZ_GMT0) != 0)
17105 exit (1);
17106 hour_GMT0 = localtime (&now)->tm_hour;
17107 unset_TZ ();
17108 hour_unset = localtime (&now)->tm_hour;
17109 if (putenv (TZ_PST8) != 0)
17110 exit (1);
17111 if (localtime (&now)->tm_hour == hour_GMT0)
17112 exit (1);
17113 unset_TZ ();
17114 if (localtime (&now)->tm_hour != hour_unset)
17115 exit (1);
17116 exit (0);
17118 _ACEOF
17119 rm -f conftest$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 emacs_cv_localtime_cache=no
17131 else
17132 echo "$as_me: program exited with status $ac_status" >&5
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ( exit $ac_status )
17137 emacs_cv_localtime_cache=yes
17139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17141 else
17142 # If we lack tzset, report that localtime does not cache TZ,
17143 # since we can't invalidate the cache if we don't have tzset.
17144 emacs_cv_localtime_cache=no
17147 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
17148 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
17149 if test $emacs_cv_localtime_cache = yes; then
17151 cat >>confdefs.h <<\_ACEOF
17152 #define LOCALTIME_CACHE 1
17153 _ACEOF
17157 if test "x$HAVE_TIMEVAL" = xyes; then
17159 for ac_func in gettimeofday
17161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17162 echo "$as_me:$LINENO: checking for $ac_func" >&5
17163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17164 if eval "test \"\${$as_ac_var+set}\" = set"; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 cat >conftest.$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17169 /* confdefs.h. */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 /* System header to define __stub macros and hopefully few prototypes,
17175 which can conflict with char $ac_func (); below.
17176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177 <limits.h> exists even on freestanding compilers. */
17178 #ifdef __STDC__
17179 # include <limits.h>
17180 #else
17181 # include <assert.h>
17182 #endif
17183 /* Override any gcc2 internal prototype to avoid an error. */
17184 #ifdef __cplusplus
17185 extern "C"
17187 #endif
17188 /* We use char because int might match the return type of a gcc2
17189 builtin and then its argument prototype would still apply. */
17190 char $ac_func ();
17191 /* The GNU C library defines this for functions which it implements
17192 to always fail with ENOSYS. Some functions are actually named
17193 something starting with __ and the normal name is an alias. */
17194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17195 choke me
17196 #else
17197 char (*f) () = $ac_func;
17198 #endif
17199 #ifdef __cplusplus
17201 #endif
17204 main ()
17206 return f != $ac_func;
17208 return 0;
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17213 (eval $ac_link) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 eval "$as_ac_var=yes"
17224 else
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 eval "$as_ac_var=no"
17230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17234 if test `eval echo '${'$as_ac_var'}'` = yes; then
17235 cat >>confdefs.h <<_ACEOF
17236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17237 _ACEOF
17240 done
17242 if test $ac_cv_func_gettimeofday = yes; then
17243 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
17244 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
17245 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248 cat >conftest.$ac_ext <<_ACEOF
17249 #line $LINENO "configure"
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17256 #ifdef TIME_WITH_SYS_TIME
17257 #include <sys/time.h>
17258 #include <time.h>
17259 #else
17260 #ifdef HAVE_SYS_TIME_H
17261 #include <sys/time.h>
17262 #else
17263 #include <time.h>
17264 #endif
17265 #endif
17267 main ()
17269 struct timeval time;
17270 gettimeofday (&time, 0);
17272 return 0;
17274 _ACEOF
17275 rm -f conftest.$ac_objext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277 (eval $ac_compile) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -s conftest.$ac_objext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 emacs_cv_gettimeofday_two_arguments=yes
17288 else
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 emacs_cv_gettimeofday_two_arguments=no
17294 rm -f conftest.$ac_objext conftest.$ac_ext
17296 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
17297 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
17298 if test $emacs_cv_gettimeofday_two_arguments = no; then
17300 cat >>confdefs.h <<\_ACEOF
17301 #define GETTIMEOFDAY_ONE_ARGUMENT 1
17302 _ACEOF
17308 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17309 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17310 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17311 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314 cat >conftest.$ac_ext <<_ACEOF
17315 #line $LINENO "configure"
17316 /* confdefs.h. */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 #include <sys/types.h>
17322 #include <$ac_cv_struct_tm>
17326 main ()
17328 static struct tm ac_aggr;
17329 if (ac_aggr.tm_zone)
17330 return 0;
17332 return 0;
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337 (eval $ac_compile) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
17341 { ac_try='test -s conftest.$ac_objext'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
17347 ac_cv_member_struct_tm_tm_zone=yes
17348 else
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 cat >conftest.$ac_ext <<_ACEOF
17353 #line $LINENO "configure"
17354 /* confdefs.h. */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <sys/types.h>
17360 #include <$ac_cv_struct_tm>
17364 main ()
17366 static struct tm ac_aggr;
17367 if (sizeof ac_aggr.tm_zone)
17368 return 0;
17370 return 0;
17372 _ACEOF
17373 rm -f conftest.$ac_objext
17374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17375 (eval $ac_compile) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try='test -s conftest.$ac_objext'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_member_struct_tm_tm_zone=yes
17386 else
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 ac_cv_member_struct_tm_tm_zone=no
17392 rm -f conftest.$ac_objext conftest.$ac_ext
17394 rm -f conftest.$ac_objext conftest.$ac_ext
17396 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17397 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17398 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17400 cat >>confdefs.h <<_ACEOF
17401 #define HAVE_STRUCT_TM_TM_ZONE 1
17402 _ACEOF
17407 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_TM_ZONE 1
17411 _ACEOF
17413 else
17414 echo "$as_me:$LINENO: checking for tzname" >&5
17415 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17416 if test "${ac_cv_var_tzname+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419 cat >conftest.$ac_ext <<_ACEOF
17420 #line $LINENO "configure"
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 #include <time.h>
17427 #ifndef tzname /* For SGI. */
17428 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17429 #endif
17432 main ()
17434 atoi(*tzname);
17436 return 0;
17438 _ACEOF
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17441 (eval $ac_link) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_var_tzname=yes
17452 else
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_cv_var_tzname=no
17458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17460 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17461 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17462 if test $ac_cv_var_tzname = yes; then
17464 cat >>confdefs.h <<\_ACEOF
17465 #define HAVE_TZNAME 1
17466 _ACEOF
17472 if test "$ac_cv_func_gettimeofday" = yes; then
17473 echo "$as_me:$LINENO: checking for struct timezone" >&5
17474 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17475 if test "${emacs_cv_struct_timezone+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478 cat >conftest.$ac_ext <<_ACEOF
17479 #line $LINENO "configure"
17480 /* confdefs.h. */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 #include <sys/time.h>
17487 main ()
17489 struct timezone tz;
17491 return 0;
17493 _ACEOF
17494 rm -f conftest.$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 if test "$cross_compiling" = yes; then
17507 emacs_cv_struct_timezone=yes
17508 else
17509 cat >conftest.$ac_ext <<_ACEOF
17510 #line $LINENO "configure"
17511 /* confdefs.h. */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17517 #ifdef TIME_WITH_SYS_TIME
17518 #include <sys/time.h>
17519 #include <time.h>
17520 #else
17521 #ifdef HAVE_SYS_TIME_H
17522 #include <sys/time.h>
17523 #else
17524 #include <time.h>
17525 #endif
17526 #endif
17527 main () {
17528 struct timeval time;
17529 struct timezone dummy;
17530 exit (gettimeofday (&time, &dummy));
17532 _ACEOF
17533 rm -f conftest$ac_exeext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 (eval $ac_link) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 emacs_cv_struct_timezone=yes
17545 else
17546 echo "$as_me: program exited with status $ac_status" >&5
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ( exit $ac_status )
17551 emacs_cv_struct_timezone=no
17553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17555 else
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 emacs_cv_struct_timezone=no
17561 rm -f conftest.$ac_objext conftest.$ac_ext
17563 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17564 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17567 ok_so_far=yes
17568 echo "$as_me:$LINENO: checking for socket" >&5
17569 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17570 if test "${ac_cv_func_socket+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573 cat >conftest.$ac_ext <<_ACEOF
17574 #line $LINENO "configure"
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 /* System header to define __stub macros and hopefully few prototypes,
17581 which can conflict with char socket (); below.
17582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17583 <limits.h> exists even on freestanding compilers. */
17584 #ifdef __STDC__
17585 # include <limits.h>
17586 #else
17587 # include <assert.h>
17588 #endif
17589 /* Override any gcc2 internal prototype to avoid an error. */
17590 #ifdef __cplusplus
17591 extern "C"
17593 #endif
17594 /* We use char because int might match the return type of a gcc2
17595 builtin and then its argument prototype would still apply. */
17596 char socket ();
17597 /* The GNU C library defines this for functions which it implements
17598 to always fail with ENOSYS. Some functions are actually named
17599 something starting with __ and the normal name is an alias. */
17600 #if defined (__stub_socket) || defined (__stub___socket)
17601 choke me
17602 #else
17603 char (*f) () = socket;
17604 #endif
17605 #ifdef __cplusplus
17607 #endif
17610 main ()
17612 return f != socket;
17614 return 0;
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 ac_cv_func_socket=yes
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 ac_cv_func_socket=no
17636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17638 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17639 echo "${ECHO_T}$ac_cv_func_socket" >&6
17640 if test $ac_cv_func_socket = yes; then
17642 else
17643 ok_so_far=no
17646 if test $ok_so_far = yes; then
17647 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17648 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17649 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17650 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17654 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17655 else
17656 # Is the header compilable?
17657 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17658 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17659 cat >conftest.$ac_ext <<_ACEOF
17660 #line $LINENO "configure"
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 $ac_includes_default
17667 #include <netinet/in.h>
17668 _ACEOF
17669 rm -f conftest.$ac_objext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17671 (eval $ac_compile) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } &&
17675 { ac_try='test -s conftest.$ac_objext'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_header_compiler=yes
17682 else
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_header_compiler=no
17688 rm -f conftest.$ac_objext conftest.$ac_ext
17689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17690 echo "${ECHO_T}$ac_header_compiler" >&6
17692 # Is the header present?
17693 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17694 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17695 cat >conftest.$ac_ext <<_ACEOF
17696 #line $LINENO "configure"
17697 /* confdefs.h. */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 #include <netinet/in.h>
17703 _ACEOF
17704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } >/dev/null; then
17712 if test -s conftest.err; then
17713 ac_cpp_err=$ac_c_preproc_warn_flag
17714 else
17715 ac_cpp_err=
17717 else
17718 ac_cpp_err=yes
17720 if test -z "$ac_cpp_err"; then
17721 ac_header_preproc=yes
17722 else
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_header_preproc=no
17728 rm -f conftest.err conftest.$ac_ext
17729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17730 echo "${ECHO_T}$ac_header_preproc" >&6
17732 # So? What about this header?
17733 case $ac_header_compiler:$ac_header_preproc in
17734 yes:no )
17735 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17736 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17740 cat <<\_ASBOX
17741 ## ------------------------------------ ##
17742 ## Report this to bug-autoconf@gnu.org. ##
17743 ## ------------------------------------ ##
17744 _ASBOX
17746 sed "s/^/$as_me: WARNING: /" >&2
17748 no:yes )
17749 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17750 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17752 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17756 cat <<\_ASBOX
17757 ## ------------------------------------ ##
17758 ## Report this to bug-autoconf@gnu.org. ##
17759 ## ------------------------------------ ##
17760 _ASBOX
17762 sed "s/^/$as_me: WARNING: /" >&2
17764 esac
17765 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17766 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17767 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770 ac_cv_header_netinet_in_h=$ac_header_preproc
17772 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17773 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17776 if test $ac_cv_header_netinet_in_h = yes; then
17778 else
17779 ok_so_far=no
17784 if test $ok_so_far = yes; then
17785 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17786 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17787 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17788 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17792 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17793 else
17794 # Is the header compilable?
17795 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17796 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17797 cat >conftest.$ac_ext <<_ACEOF
17798 #line $LINENO "configure"
17799 /* confdefs.h. */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 $ac_includes_default
17805 #include <arpa/inet.h>
17806 _ACEOF
17807 rm -f conftest.$ac_objext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17809 (eval $ac_compile) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -s conftest.$ac_objext'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_header_compiler=yes
17820 else
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17824 ac_header_compiler=no
17826 rm -f conftest.$ac_objext conftest.$ac_ext
17827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17828 echo "${ECHO_T}$ac_header_compiler" >&6
17830 # Is the header present?
17831 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17832 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17833 cat >conftest.$ac_ext <<_ACEOF
17834 #line $LINENO "configure"
17835 /* confdefs.h. */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 #include <arpa/inet.h>
17841 _ACEOF
17842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } >/dev/null; then
17850 if test -s conftest.err; then
17851 ac_cpp_err=$ac_c_preproc_warn_flag
17852 else
17853 ac_cpp_err=
17855 else
17856 ac_cpp_err=yes
17858 if test -z "$ac_cpp_err"; then
17859 ac_header_preproc=yes
17860 else
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_header_preproc=no
17866 rm -f conftest.err conftest.$ac_ext
17867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17868 echo "${ECHO_T}$ac_header_preproc" >&6
17870 # So? What about this header?
17871 case $ac_header_compiler:$ac_header_preproc in
17872 yes:no )
17873 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17874 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17876 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17878 cat <<\_ASBOX
17879 ## ------------------------------------ ##
17880 ## Report this to bug-autoconf@gnu.org. ##
17881 ## ------------------------------------ ##
17882 _ASBOX
17884 sed "s/^/$as_me: WARNING: /" >&2
17886 no:yes )
17887 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17888 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17890 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17892 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17894 cat <<\_ASBOX
17895 ## ------------------------------------ ##
17896 ## Report this to bug-autoconf@gnu.org. ##
17897 ## ------------------------------------ ##
17898 _ASBOX
17900 sed "s/^/$as_me: WARNING: /" >&2
17902 esac
17903 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17904 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17905 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908 ac_cv_header_arpa_inet_h=$ac_header_preproc
17910 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17911 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17914 if test $ac_cv_header_arpa_inet_h = yes; then
17916 else
17917 ok_so_far=no
17922 if test $ok_so_far = yes; then
17924 cat >>confdefs.h <<\_ACEOF
17925 #define HAVE_INET_SOCKETS 1
17926 _ACEOF
17932 for ac_header in sys/ioctl.h net/if.h
17934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17936 echo "$as_me:$LINENO: checking for $ac_header" >&5
17937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17943 else
17944 # Is the header compilable?
17945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17947 cat >conftest.$ac_ext <<_ACEOF
17948 #line $LINENO "configure"
17949 /* confdefs.h. */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 $ac_includes_default
17955 #include <$ac_header>
17956 _ACEOF
17957 rm -f conftest.$ac_objext
17958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17959 (eval $ac_compile) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_header_compiler=yes
17970 else
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ac_header_compiler=no
17976 rm -f conftest.$ac_objext conftest.$ac_ext
17977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17978 echo "${ECHO_T}$ac_header_compiler" >&6
17980 # Is the header present?
17981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17983 cat >conftest.$ac_ext <<_ACEOF
17984 #line $LINENO "configure"
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <$ac_header>
17991 _ACEOF
17992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } >/dev/null; then
18000 if test -s conftest.err; then
18001 ac_cpp_err=$ac_c_preproc_warn_flag
18002 else
18003 ac_cpp_err=
18005 else
18006 ac_cpp_err=yes
18008 if test -z "$ac_cpp_err"; then
18009 ac_header_preproc=yes
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_header_preproc=no
18016 rm -f conftest.err conftest.$ac_ext
18017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18018 echo "${ECHO_T}$ac_header_preproc" >&6
18020 # So? What about this header?
18021 case $ac_header_compiler:$ac_header_preproc in
18022 yes:no )
18023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18028 cat <<\_ASBOX
18029 ## ------------------------------------ ##
18030 ## Report this to bug-autoconf@gnu.org. ##
18031 ## ------------------------------------ ##
18032 _ASBOX
18034 sed "s/^/$as_me: WARNING: /" >&2
18036 no:yes )
18037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18044 cat <<\_ASBOX
18045 ## ------------------------------------ ##
18046 ## Report this to bug-autoconf@gnu.org. ##
18047 ## ------------------------------------ ##
18048 _ASBOX
18050 sed "s/^/$as_me: WARNING: /" >&2
18052 esac
18053 echo "$as_me:$LINENO: checking for $ac_header" >&5
18054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058 eval "$as_ac_Header=$ac_header_preproc"
18060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18067 _ACEOF
18071 done
18074 if test -f /usr/lpp/X11/bin/smt.exp; then
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_AIX_SMT_EXP 1
18078 _ACEOF
18082 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
18083 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
18084 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18085 echo "$as_me:$LINENO: result: yes" >&5
18086 echo "${ECHO_T}yes" >&6
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE_DEV_PTMX 1
18090 _ACEOF
18092 else
18093 echo "$as_me:$LINENO: result: no" >&5
18094 echo "${ECHO_T}no" >&6
18097 echo "$as_me:$LINENO: checking for pid_t" >&5
18098 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18099 if test "${ac_cv_type_pid_t+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102 cat >conftest.$ac_ext <<_ACEOF
18103 #line $LINENO "configure"
18104 /* confdefs.h. */
18105 _ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109 $ac_includes_default
18111 main ()
18113 if ((pid_t *) 0)
18114 return 0;
18115 if (sizeof (pid_t))
18116 return 0;
18118 return 0;
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } &&
18127 { ac_try='test -s conftest.$ac_objext'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_type_pid_t=yes
18134 else
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_cv_type_pid_t=no
18140 rm -f conftest.$ac_objext conftest.$ac_ext
18142 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18143 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18144 if test $ac_cv_type_pid_t = yes; then
18146 else
18148 cat >>confdefs.h <<_ACEOF
18149 #define pid_t int
18150 _ACEOF
18156 for ac_header in unistd.h vfork.h
18158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18160 echo "$as_me:$LINENO: checking for $ac_header" >&5
18161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18167 else
18168 # Is the header compilable?
18169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18171 cat >conftest.$ac_ext <<_ACEOF
18172 #line $LINENO "configure"
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 $ac_includes_default
18179 #include <$ac_header>
18180 _ACEOF
18181 rm -f conftest.$ac_objext
18182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18183 (eval $ac_compile) 2>&5
18184 ac_status=$?
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -s conftest.$ac_objext'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; }; then
18193 ac_header_compiler=yes
18194 else
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18198 ac_header_compiler=no
18200 rm -f conftest.$ac_objext conftest.$ac_ext
18201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18202 echo "${ECHO_T}$ac_header_compiler" >&6
18204 # Is the header present?
18205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18207 cat >conftest.$ac_ext <<_ACEOF
18208 #line $LINENO "configure"
18209 /* confdefs.h. */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 #include <$ac_header>
18215 _ACEOF
18216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } >/dev/null; then
18224 if test -s conftest.err; then
18225 ac_cpp_err=$ac_c_preproc_warn_flag
18226 else
18227 ac_cpp_err=
18229 else
18230 ac_cpp_err=yes
18232 if test -z "$ac_cpp_err"; then
18233 ac_header_preproc=yes
18234 else
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 ac_header_preproc=no
18240 rm -f conftest.err conftest.$ac_ext
18241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18242 echo "${ECHO_T}$ac_header_preproc" >&6
18244 # So? What about this header?
18245 case $ac_header_compiler:$ac_header_preproc in
18246 yes:no )
18247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18252 cat <<\_ASBOX
18253 ## ------------------------------------ ##
18254 ## Report this to bug-autoconf@gnu.org. ##
18255 ## ------------------------------------ ##
18256 _ASBOX
18258 sed "s/^/$as_me: WARNING: /" >&2
18260 no:yes )
18261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18268 cat <<\_ASBOX
18269 ## ------------------------------------ ##
18270 ## Report this to bug-autoconf@gnu.org. ##
18271 ## ------------------------------------ ##
18272 _ASBOX
18274 sed "s/^/$as_me: WARNING: /" >&2
18276 esac
18277 echo "$as_me:$LINENO: checking for $ac_header" >&5
18278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282 eval "$as_ac_Header=$ac_header_preproc"
18284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18289 cat >>confdefs.h <<_ACEOF
18290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18291 _ACEOF
18295 done
18299 for ac_func in fork vfork
18301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18302 echo "$as_me:$LINENO: checking for $ac_func" >&5
18303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18304 if eval "test \"\${$as_ac_var+set}\" = set"; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line $LINENO "configure"
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 /* System header to define __stub macros and hopefully few prototypes,
18315 which can conflict with char $ac_func (); below.
18316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18317 <limits.h> exists even on freestanding compilers. */
18318 #ifdef __STDC__
18319 # include <limits.h>
18320 #else
18321 # include <assert.h>
18322 #endif
18323 /* Override any gcc2 internal prototype to avoid an error. */
18324 #ifdef __cplusplus
18325 extern "C"
18327 #endif
18328 /* We use char because int might match the return type of a gcc2
18329 builtin and then its argument prototype would still apply. */
18330 char $ac_func ();
18331 /* The GNU C library defines this for functions which it implements
18332 to always fail with ENOSYS. Some functions are actually named
18333 something starting with __ and the normal name is an alias. */
18334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18335 choke me
18336 #else
18337 char (*f) () = $ac_func;
18338 #endif
18339 #ifdef __cplusplus
18341 #endif
18344 main ()
18346 return f != $ac_func;
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext conftest$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -s conftest$ac_exeext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 eval "$as_ac_var=yes"
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 eval "$as_ac_var=no"
18370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18374 if test `eval echo '${'$as_ac_var'}'` = yes; then
18375 cat >>confdefs.h <<_ACEOF
18376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18377 _ACEOF
18380 done
18382 if test "x$ac_cv_func_fork" = xyes; then
18383 echo "$as_me:$LINENO: checking for working fork" >&5
18384 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18385 if test "${ac_cv_func_fork_works+set}" = set; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388 if test "$cross_compiling" = yes; then
18389 ac_cv_func_fork_works=cross
18390 else
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* By Ruediger Kuhlmann. */
18393 #include <sys/types.h>
18394 #if HAVE_UNISTD_H
18395 # include <unistd.h>
18396 #endif
18397 /* Some systems only have a dummy stub for fork() */
18398 int main ()
18400 if (fork() < 0)
18401 exit (1);
18402 exit (0);
18404 _ACEOF
18405 rm -f conftest$ac_exeext
18406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18407 (eval $ac_link) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_func_fork_works=yes
18417 else
18418 echo "$as_me: program exited with status $ac_status" >&5
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ( exit $ac_status )
18423 ac_cv_func_fork_works=no
18425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18428 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18429 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18431 else
18432 ac_cv_func_fork_works=$ac_cv_func_fork
18434 if test "x$ac_cv_func_fork_works" = xcross; then
18435 case $host in
18436 *-*-amigaos* | *-*-msdosdjgpp*)
18437 # Override, as these systems have only a dummy fork() stub
18438 ac_cv_func_fork_works=no
18441 ac_cv_func_fork_works=yes
18443 esac
18444 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18445 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18447 ac_cv_func_vfork_works=$ac_cv_func_vfork
18448 if test "x$ac_cv_func_vfork" = xyes; then
18449 echo "$as_me:$LINENO: checking for working vfork" >&5
18450 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18451 if test "${ac_cv_func_vfork_works+set}" = set; then
18452 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 else
18454 if test "$cross_compiling" = yes; then
18455 ac_cv_func_vfork_works=cross
18456 else
18457 cat >conftest.$ac_ext <<_ACEOF
18458 #line $LINENO "configure"
18459 /* confdefs.h. */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 /* Thanks to Paul Eggert for this test. */
18465 #include <stdio.h>
18466 #include <stdlib.h>
18467 #include <sys/types.h>
18468 #include <sys/stat.h>
18469 #include <sys/wait.h>
18470 #if HAVE_UNISTD_H
18471 # include <unistd.h>
18472 #endif
18473 #if HAVE_VFORK_H
18474 # include <vfork.h>
18475 #endif
18476 /* On some sparc systems, changes by the child to local and incoming
18477 argument registers are propagated back to the parent. The compiler
18478 is told about this with #include <vfork.h>, but some compilers
18479 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18480 static variable whose address is put into a register that is
18481 clobbered by the vfork. */
18482 static void
18483 #ifdef __cplusplus
18484 sparc_address_test (int arg)
18485 # else
18486 sparc_address_test (arg) int arg;
18487 #endif
18489 static pid_t child;
18490 if (!child) {
18491 child = vfork ();
18492 if (child < 0) {
18493 perror ("vfork");
18494 _exit(2);
18496 if (!child) {
18497 arg = getpid();
18498 write(-1, "", 0);
18499 _exit (arg);
18505 main ()
18507 pid_t parent = getpid ();
18508 pid_t child;
18510 sparc_address_test (0);
18512 child = vfork ();
18514 if (child == 0) {
18515 /* Here is another test for sparc vfork register problems. This
18516 test uses lots of local variables, at least as many local
18517 variables as main has allocated so far including compiler
18518 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18519 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18520 reuse the register of parent for one of the local variables,
18521 since it will think that parent can't possibly be used any more
18522 in this routine. Assigning to the local variable will thus
18523 munge parent in the parent process. */
18524 pid_t
18525 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18526 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18527 /* Convince the compiler that p..p7 are live; otherwise, it might
18528 use the same hardware register for all 8 local variables. */
18529 if (p != p1 || p != p2 || p != p3 || p != p4
18530 || p != p5 || p != p6 || p != p7)
18531 _exit(1);
18533 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18534 from child file descriptors. If the child closes a descriptor
18535 before it execs or exits, this munges the parent's descriptor
18536 as well. Test for this by closing stdout in the child. */
18537 _exit(close(fileno(stdout)) != 0);
18538 } else {
18539 int status;
18540 struct stat st;
18542 while (wait(&status) != child)
18544 exit(
18545 /* Was there some problem with vforking? */
18546 child < 0
18548 /* Did the child fail? (This shouldn't happen.) */
18549 || status
18551 /* Did the vfork/compiler bug occur? */
18552 || parent != getpid()
18554 /* Did the file descriptor bug occur? */
18555 || fstat(fileno(stdout), &st) != 0
18559 _ACEOF
18560 rm -f conftest$ac_exeext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18562 (eval $ac_link) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 ac_cv_func_vfork_works=yes
18572 else
18573 echo "$as_me: program exited with status $ac_status" >&5
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 ( exit $ac_status )
18578 ac_cv_func_vfork_works=no
18580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18583 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18584 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18587 if test "x$ac_cv_func_fork_works" = xcross; then
18588 ac_cv_func_vfork_works=ac_cv_func_vfork
18589 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18590 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18593 if test "x$ac_cv_func_vfork_works" = xyes; then
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE_WORKING_VFORK 1
18597 _ACEOF
18599 else
18601 cat >>confdefs.h <<\_ACEOF
18602 #define vfork fork
18603 _ACEOF
18606 if test "x$ac_cv_func_fork_works" = xyes; then
18608 cat >>confdefs.h <<\_ACEOF
18609 #define HAVE_WORKING_FORK 1
18610 _ACEOF
18615 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18616 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18617 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 else
18620 cat >conftest.$ac_ext <<_ACEOF
18621 #line $LINENO "configure"
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 #include <langinfo.h>
18629 main ()
18631 char* cs = nl_langinfo(CODESET);
18633 return 0;
18635 _ACEOF
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638 (eval $ac_link) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 emacs_cv_langinfo_codeset=yes
18649 else
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 emacs_cv_langinfo_codeset=no
18655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18658 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18659 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18660 if test $emacs_cv_langinfo_codeset = yes; then
18662 cat >>confdefs.h <<\_ACEOF
18663 #define HAVE_LANGINFO_CODESET 1
18664 _ACEOF
18668 echo "$as_me:$LINENO: checking for size_t" >&5
18669 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18670 if test "${ac_cv_type_size_t+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673 cat >conftest.$ac_ext <<_ACEOF
18674 #line $LINENO "configure"
18675 /* confdefs.h. */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 $ac_includes_default
18682 main ()
18684 if ((size_t *) 0)
18685 return 0;
18686 if (sizeof (size_t))
18687 return 0;
18689 return 0;
18691 _ACEOF
18692 rm -f conftest.$ac_objext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18694 (eval $ac_compile) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
18698 { ac_try='test -s conftest.$ac_objext'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_type_size_t=yes
18705 else
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 ac_cv_type_size_t=no
18711 rm -f conftest.$ac_objext conftest.$ac_ext
18713 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18714 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18715 if test $ac_cv_type_size_t = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define HAVE_SIZE_T 1
18719 _ACEOF
18725 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18726 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18727 if test "${ac_cv_type_mbstate_t+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730 cat >conftest.$ac_ext <<_ACEOF
18731 #line $LINENO "configure"
18732 /* confdefs.h. */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737 $ac_includes_default
18738 # include <wchar.h>
18740 main ()
18742 mbstate_t x; return sizeof x;
18744 return 0;
18746 _ACEOF
18747 rm -f conftest.$ac_objext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749 (eval $ac_compile) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } &&
18753 { ac_try='test -s conftest.$ac_objext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_type_mbstate_t=yes
18760 else
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_cv_type_mbstate_t=no
18766 rm -f conftest.$ac_objext conftest.$ac_ext
18768 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18769 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18770 if test $ac_cv_type_mbstate_t = yes; then
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE_MBSTATE_T 1
18774 _ACEOF
18776 else
18778 cat >>confdefs.h <<\_ACEOF
18779 #define mbstate_t int
18780 _ACEOF
18784 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18785 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18786 if test "${emacs_cv_c_restrict+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789 cat >conftest.$ac_ext <<_ACEOF
18790 #line $LINENO "configure"
18791 /* confdefs.h. */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 void fred (int *restrict x);
18798 main ()
18802 return 0;
18804 _ACEOF
18805 rm -f conftest.$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -s conftest.$ac_objext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 emacs_cv_c_restrict=yes
18818 else
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 cat >conftest.$ac_ext <<_ACEOF
18823 #line $LINENO "configure"
18824 /* confdefs.h. */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 void fred (int *__restrict x);
18831 main ()
18835 return 0;
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -s conftest.$ac_objext'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; }; then
18850 emacs_cv_c_restrict=__restrict
18851 else
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18855 emacs_cv_c_restrict=no
18857 rm -f conftest.$ac_objext conftest.$ac_ext
18859 rm -f conftest.$ac_objext conftest.$ac_ext
18861 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18862 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18863 case "$emacs_cv_c_restrict" in
18864 yes) emacs_restrict=restrict;;
18865 no) emacs_restrict="";;
18866 *) emacs_restrict="$emacs_cv_c_restrict";;
18867 esac
18868 if test "$emacs_restrict" != __restrict; then
18870 cat >>confdefs.h <<_ACEOF
18871 #define __restrict $emacs_restrict
18872 _ACEOF
18876 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18877 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18878 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881 cat >conftest.$ac_ext <<_ACEOF
18882 #line $LINENO "configure"
18883 /* confdefs.h. */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 void fred (int x[__restrict]);
18890 main ()
18894 return 0;
18896 _ACEOF
18897 rm -f conftest.$ac_objext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18899 (eval $ac_compile) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -s conftest.$ac_objext'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 emacs_cv_c_restrict_arr=yes
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 emacs_cv_c_restrict_arr=no
18916 rm -f conftest.$ac_objext conftest.$ac_ext
18918 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18919 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18920 if test "$emacs_cv_c_restrict_arr" = yes; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define __restrict_arr __restrict
18924 _ACEOF
18930 # Set up the CFLAGS for real compilation, so we can substitute it.
18931 CFLAGS="$REAL_CFLAGS"
18932 CPPFLAGS="$REAL_CPPFLAGS"
18934 #### Find out which version of Emacs this is.
18935 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18936 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18937 if test x"${version}" = x; then
18938 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18939 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18940 { (exit 1); exit 1; }; }
18943 ### Specify what sort of things we'll be editing into Makefile and config.h.
18944 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18980 cat >>confdefs.h <<_ACEOF
18981 #define EMACS_CONFIGURATION "${canonical}"
18982 _ACEOF
18985 cat >>confdefs.h <<_ACEOF
18986 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18987 _ACEOF
18990 cat >>confdefs.h <<_ACEOF
18991 #define config_machfile "${machfile}"
18992 _ACEOF
18995 cat >>confdefs.h <<_ACEOF
18996 #define config_opsysfile "${opsysfile}"
18997 _ACEOF
19000 cat >>confdefs.h <<_ACEOF
19001 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
19002 _ACEOF
19005 cat >>confdefs.h <<_ACEOF
19006 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
19007 _ACEOF
19010 cat >>confdefs.h <<_ACEOF
19011 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
19012 _ACEOF
19015 cat >>confdefs.h <<_ACEOF
19016 #define UNEXEC_SRC ${UNEXEC_SRC}
19017 _ACEOF
19020 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19022 cat >>confdefs.h <<\_ACEOF
19023 #define HAVE_X_WINDOWS 1
19024 _ACEOF
19027 if test "${USE_X_TOOLKIT}" != "none" ; then
19029 cat >>confdefs.h <<\_ACEOF
19030 #define USE_X_TOOLKIT 1
19031 _ACEOF
19034 if test "${HAVE_X11}" = "yes" ; then
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_X11 1
19038 _ACEOF
19041 if test "${HAVE_XFREE386}" = "yes" ; then
19043 cat >>confdefs.h <<\_ACEOF
19044 #define HAVE_XFREE386 1
19045 _ACEOF
19048 if test "${HAVE_MENUS}" = "yes" ; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_MENUS 1
19052 _ACEOF
19055 if test "${GNU_MALLOC}" = "yes" ; then
19057 cat >>confdefs.h <<\_ACEOF
19058 #define GNU_MALLOC 1
19059 _ACEOF
19062 if test "${REL_ALLOC}" = "yes" ; then
19064 cat >>confdefs.h <<\_ACEOF
19065 #define REL_ALLOC 1
19066 _ACEOF
19074 #### Report on what we decided to do.
19075 #### Report GTK as a toolkit, even if it doesn't use Xt.
19076 #### It makes printing result more understandable as using GTK sets
19077 #### toolkit_scroll_bars to yes by default.
19078 if test "${HAVE_GTK}" = "yes"; then
19079 USE_X_TOOLKIT=GTK
19082 echo "
19083 Configured for \`${canonical}'.
19085 Where should the build process find the source code? ${srcdir}
19086 What operating system and machine description files should Emacs use?
19087 \`${opsysfile}' and \`${machfile}'
19088 What compiler should emacs be built with? ${CC} ${CFLAGS}
19089 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19090 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19091 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19092 What window system should Emacs use? ${window_system}
19093 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19095 if test -n "${x_includes}"; then
19096 echo " Where do we find X Windows header files? ${x_includes}"
19097 else
19098 echo " Where do we find X Windows header files? Standard dirs"
19100 if test -n "${x_libraries}"; then
19101 echo " Where do we find X Windows libraries? ${x_libraries}"
19102 else
19103 echo " Where do we find X Windows libraries? Standard dirs"
19106 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19107 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19108 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19109 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19110 echo " Does Emacs use -lungif? ${HAVE_GIF}"
19111 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19112 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19113 echo
19115 # Remove any trailing slashes in these variables.
19116 test "${prefix}" != NONE &&
19117 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19118 test "${exec_prefix}" != NONE &&
19119 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19121 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
19122 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
19123 ## from Makefile.c can correctly provide the arg `-traditional' to the
19124 ## C preprocessor.
19126 cat >conftest.$ac_ext <<_ACEOF
19127 #line $LINENO "configure"
19128 /* confdefs.h. */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 yes..yes
19134 _ACEOF
19135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19136 $EGREP "yes..yes" >/dev/null 2>&1; then
19137 CPP_NEED_TRADITIONAL=no
19138 else
19139 CPP_NEED_TRADITIONAL=yes
19141 rm -f conftest*
19144 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"
19145 ac_config_commands="$ac_config_commands default"
19146 cat >confcache <<\_ACEOF
19147 # This file is a shell script that caches the results of configure
19148 # tests run on this system so they can be shared between configure
19149 # scripts and configure runs, see configure's option --config-cache.
19150 # It is not useful on other systems. If it contains results you don't
19151 # want to keep, you may remove or edit it.
19153 # config.status only pays attention to the cache file if you give it
19154 # the --recheck option to rerun configure.
19156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19158 # following values.
19160 _ACEOF
19162 # The following way of writing the cache mishandles newlines in values,
19163 # but we know of no workaround that is simple, portable, and efficient.
19164 # So, don't put newlines in cache variables' values.
19165 # Ultrix sh set writes to stderr and can't be redirected directly,
19166 # and sets the high bit in the cache file unless we assign to the vars.
19168 (set) 2>&1 |
19169 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19170 *ac_space=\ *)
19171 # `set' does not quote correctly, so add quotes (double-quote
19172 # substitution turns \\\\ into \\, and sed turns \\ into \).
19173 sed -n \
19174 "s/'/'\\\\''/g;
19175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19178 # `set' quotes correctly as required by POSIX, so do not add quotes.
19179 sed -n \
19180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19182 esac;
19184 sed '
19185 t clear
19186 : clear
19187 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19188 t end
19189 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19190 : end' >>confcache
19191 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19192 if test -w $cache_file; then
19193 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19194 cat confcache >$cache_file
19195 else
19196 echo "not updating unwritable cache $cache_file"
19199 rm -f confcache
19201 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19202 # Let make expand exec_prefix.
19203 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19207 # trailing colons and then remove the whole line if VPATH becomes empty
19208 # (actually we leave an empty line to preserve line numbers).
19209 if test "x$srcdir" = x.; then
19210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19211 s/:*\$(srcdir):*/:/;
19212 s/:*\${srcdir}:*/:/;
19213 s/:*@srcdir@:*/:/;
19214 s/^\([^=]*=[ ]*\):*/\1/;
19215 s/:*$//;
19216 s/^[^=]*=[ ]*$//;
19220 DEFS=-DHAVE_CONFIG_H
19222 ac_libobjs=
19223 ac_ltlibobjs=
19224 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19225 # 1. Remove the extension, and $U if already installed.
19226 ac_i=`echo "$ac_i" |
19227 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19228 # 2. Add them.
19229 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19230 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19231 done
19232 LIBOBJS=$ac_libobjs
19234 LTLIBOBJS=$ac_ltlibobjs
19238 : ${CONFIG_STATUS=./config.status}
19239 ac_clean_files_save=$ac_clean_files
19240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19242 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19243 cat >$CONFIG_STATUS <<_ACEOF
19244 #! $SHELL
19245 # Generated by $as_me.
19246 # Run this file to recreate the current configuration.
19247 # Compiler output produced by configure, useful for debugging
19248 # configure, is in config.log if it exists.
19250 debug=false
19251 ac_cs_recheck=false
19252 ac_cs_silent=false
19253 SHELL=\${CONFIG_SHELL-$SHELL}
19254 _ACEOF
19256 cat >>$CONFIG_STATUS <<\_ACEOF
19257 ## --------------------- ##
19258 ## M4sh Initialization. ##
19259 ## --------------------- ##
19261 # Be Bourne compatible
19262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19263 emulate sh
19264 NULLCMD=:
19265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19266 # is contrary to our usage. Disable this feature.
19267 alias -g '${1+"$@"}'='"$@"'
19268 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19269 set -o posix
19272 # Support unset when possible.
19273 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19274 as_unset=unset
19275 else
19276 as_unset=false
19280 # Work around bugs in pre-3.0 UWIN ksh.
19281 $as_unset ENV MAIL MAILPATH
19282 PS1='$ '
19283 PS2='> '
19284 PS4='+ '
19286 # NLS nuisances.
19287 for as_var in \
19288 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19289 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19290 LC_TELEPHONE LC_TIME
19292 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19293 eval $as_var=C; export $as_var
19294 else
19295 $as_unset $as_var
19297 done
19299 # Required to use basename.
19300 if expr a : '\(a\)' >/dev/null 2>&1; then
19301 as_expr=expr
19302 else
19303 as_expr=false
19306 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19307 as_basename=basename
19308 else
19309 as_basename=false
19313 # Name of the executable.
19314 as_me=`$as_basename "$0" ||
19315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19316 X"$0" : 'X\(//\)$' \| \
19317 X"$0" : 'X\(/\)$' \| \
19318 . : '\(.\)' 2>/dev/null ||
19319 echo X/"$0" |
19320 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19321 /^X\/\(\/\/\)$/{ s//\1/; q; }
19322 /^X\/\(\/\).*/{ s//\1/; q; }
19323 s/.*/./; q'`
19326 # PATH needs CR, and LINENO needs CR and PATH.
19327 # Avoid depending upon Character Ranges.
19328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19331 as_cr_digits='0123456789'
19332 as_cr_alnum=$as_cr_Letters$as_cr_digits
19334 # The user is always right.
19335 if test "${PATH_SEPARATOR+set}" != set; then
19336 echo "#! /bin/sh" >conf$$.sh
19337 echo "exit 0" >>conf$$.sh
19338 chmod +x conf$$.sh
19339 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19340 PATH_SEPARATOR=';'
19341 else
19342 PATH_SEPARATOR=:
19344 rm -f conf$$.sh
19348 as_lineno_1=$LINENO
19349 as_lineno_2=$LINENO
19350 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19351 test "x$as_lineno_1" != "x$as_lineno_2" &&
19352 test "x$as_lineno_3" = "x$as_lineno_2" || {
19353 # Find who we are. Look in the path if we contain no path at all
19354 # relative or not.
19355 case $0 in
19356 *[\\/]* ) as_myself=$0 ;;
19357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19358 for as_dir in $PATH
19360 IFS=$as_save_IFS
19361 test -z "$as_dir" && as_dir=.
19362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19363 done
19366 esac
19367 # We did not find ourselves, most probably we were run as `sh COMMAND'
19368 # in which case we are not to be found in the path.
19369 if test "x$as_myself" = x; then
19370 as_myself=$0
19372 if test ! -f "$as_myself"; then
19373 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19374 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19375 { (exit 1); exit 1; }; }
19377 case $CONFIG_SHELL in
19379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19380 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19382 IFS=$as_save_IFS
19383 test -z "$as_dir" && as_dir=.
19384 for as_base in sh bash ksh sh5; do
19385 case $as_dir in
19387 if ("$as_dir/$as_base" -c '
19388 as_lineno_1=$LINENO
19389 as_lineno_2=$LINENO
19390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19391 test "x$as_lineno_1" != "x$as_lineno_2" &&
19392 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19393 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19394 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19395 CONFIG_SHELL=$as_dir/$as_base
19396 export CONFIG_SHELL
19397 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19398 fi;;
19399 esac
19400 done
19401 done
19403 esac
19405 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19406 # uniformly replaced by the line number. The first 'sed' inserts a
19407 # line-number line before each line; the second 'sed' does the real
19408 # work. The second script uses 'N' to pair each line-number line
19409 # with the numbered line, and appends trailing '-' during
19410 # substitution so that $LINENO is not a special case at line end.
19411 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19412 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19413 sed '=' <$as_myself |
19414 sed '
19416 s,$,-,
19417 : loop
19418 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19419 t loop
19420 s,-$,,
19421 s,^['$as_cr_digits']*\n,,
19422 ' >$as_me.lineno &&
19423 chmod +x $as_me.lineno ||
19424 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19425 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19426 { (exit 1); exit 1; }; }
19428 # Don't try to exec as it changes $[0], causing all sort of problems
19429 # (the dirname of $[0] is not the place where we might find the
19430 # original and so on. Autoconf is especially sensible to this).
19431 . ./$as_me.lineno
19432 # Exit status is that of the last command.
19433 exit
19437 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19438 *c*,-n*) ECHO_N= ECHO_C='
19439 ' ECHO_T=' ' ;;
19440 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19441 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19442 esac
19444 if expr a : '\(a\)' >/dev/null 2>&1; then
19445 as_expr=expr
19446 else
19447 as_expr=false
19450 rm -f conf$$ conf$$.exe conf$$.file
19451 echo >conf$$.file
19452 if ln -s conf$$.file conf$$ 2>/dev/null; then
19453 # We could just check for DJGPP; but this test a) works b) is more generic
19454 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19455 if test -f conf$$.exe; then
19456 # Don't use ln at all; we don't have any links
19457 as_ln_s='cp -p'
19458 else
19459 as_ln_s='ln -s'
19461 elif ln conf$$.file conf$$ 2>/dev/null; then
19462 as_ln_s=ln
19463 else
19464 as_ln_s='cp -p'
19466 rm -f conf$$ conf$$.exe conf$$.file
19468 if mkdir -p . 2>/dev/null; then
19469 as_mkdir_p=:
19470 else
19471 as_mkdir_p=false
19474 as_executable_p="test -f"
19476 # Sed expression to map a string onto a valid CPP name.
19477 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19479 # Sed expression to map a string onto a valid variable name.
19480 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19483 # IFS
19484 # We need space, tab and new line, in precisely that order.
19485 as_nl='
19487 IFS=" $as_nl"
19489 # CDPATH.
19490 $as_unset CDPATH
19492 exec 6>&1
19494 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19495 # report actual input values of CONFIG_FILES etc. instead of their
19496 # values after options handling. Logging --version etc. is OK.
19497 exec 5>>config.log
19499 echo
19500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19501 ## Running $as_me. ##
19502 _ASBOX
19503 } >&5
19504 cat >&5 <<_CSEOF
19506 This file was extended by $as_me, which was
19507 generated by GNU Autoconf 2.57. Invocation command line was
19509 CONFIG_FILES = $CONFIG_FILES
19510 CONFIG_HEADERS = $CONFIG_HEADERS
19511 CONFIG_LINKS = $CONFIG_LINKS
19512 CONFIG_COMMANDS = $CONFIG_COMMANDS
19513 $ $0 $@
19515 _CSEOF
19516 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19517 echo >&5
19518 _ACEOF
19520 # Files that config.status was made for.
19521 if test -n "$ac_config_files"; then
19522 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19525 if test -n "$ac_config_headers"; then
19526 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19529 if test -n "$ac_config_links"; then
19530 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19533 if test -n "$ac_config_commands"; then
19534 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19537 cat >>$CONFIG_STATUS <<\_ACEOF
19539 ac_cs_usage="\
19540 \`$as_me' instantiates files from templates according to the
19541 current configuration.
19543 Usage: $0 [OPTIONS] [FILE]...
19545 -h, --help print this help, then exit
19546 -V, --version print version number, then exit
19547 -q, --quiet do not print progress messages
19548 -d, --debug don't remove temporary files
19549 --recheck update $as_me by reconfiguring in the same conditions
19550 --file=FILE[:TEMPLATE]
19551 instantiate the configuration file FILE
19552 --header=FILE[:TEMPLATE]
19553 instantiate the configuration header FILE
19555 Configuration files:
19556 $config_files
19558 Configuration headers:
19559 $config_headers
19561 Configuration commands:
19562 $config_commands
19564 Report bugs to <bug-autoconf@gnu.org>."
19565 _ACEOF
19567 cat >>$CONFIG_STATUS <<_ACEOF
19568 ac_cs_version="\\
19569 config.status
19570 configured by $0, generated by GNU Autoconf 2.57,
19571 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19573 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19574 Free Software Foundation, Inc.
19575 This config.status script is free software; the Free Software Foundation
19576 gives unlimited permission to copy, distribute and modify it."
19577 srcdir=$srcdir
19578 INSTALL="$INSTALL"
19579 _ACEOF
19581 cat >>$CONFIG_STATUS <<\_ACEOF
19582 # If no file are specified by the user, then we need to provide default
19583 # value. By we need to know if files were specified by the user.
19584 ac_need_defaults=:
19585 while test $# != 0
19587 case $1 in
19588 --*=*)
19589 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19590 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19591 ac_shift=:
19594 ac_option=$1
19595 ac_optarg=$2
19596 ac_shift=shift
19598 *) # This is not an option, so the user has probably given explicit
19599 # arguments.
19600 ac_option=$1
19601 ac_need_defaults=false;;
19602 esac
19604 case $ac_option in
19605 # Handling of the options.
19606 _ACEOF
19607 cat >>$CONFIG_STATUS <<\_ACEOF
19608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19609 ac_cs_recheck=: ;;
19610 --version | --vers* | -V )
19611 echo "$ac_cs_version"; exit 0 ;;
19612 --he | --h)
19613 # Conflict between --help and --header
19614 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19615 Try \`$0 --help' for more information." >&5
19616 echo "$as_me: error: ambiguous option: $1
19617 Try \`$0 --help' for more information." >&2;}
19618 { (exit 1); exit 1; }; };;
19619 --help | --hel | -h )
19620 echo "$ac_cs_usage"; exit 0 ;;
19621 --debug | --d* | -d )
19622 debug=: ;;
19623 --file | --fil | --fi | --f )
19624 $ac_shift
19625 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19626 ac_need_defaults=false;;
19627 --header | --heade | --head | --hea )
19628 $ac_shift
19629 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19630 ac_need_defaults=false;;
19631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19633 ac_cs_silent=: ;;
19635 # This is an error.
19636 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19637 Try \`$0 --help' for more information." >&5
19638 echo "$as_me: error: unrecognized option: $1
19639 Try \`$0 --help' for more information." >&2;}
19640 { (exit 1); exit 1; }; } ;;
19642 *) ac_config_targets="$ac_config_targets $1" ;;
19644 esac
19645 shift
19646 done
19648 ac_configure_extra_args=
19650 if $ac_cs_silent; then
19651 exec 6>/dev/null
19652 ac_configure_extra_args="$ac_configure_extra_args --silent"
19655 _ACEOF
19656 cat >>$CONFIG_STATUS <<_ACEOF
19657 if \$ac_cs_recheck; then
19658 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19659 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19662 _ACEOF
19664 cat >>$CONFIG_STATUS <<_ACEOF
19666 # INIT-COMMANDS section.
19669 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19671 _ACEOF
19675 cat >>$CONFIG_STATUS <<\_ACEOF
19676 for ac_config_target in $ac_config_targets
19678 case "$ac_config_target" in
19679 # Handling of arguments.
19680 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19681 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19682 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
19683 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19684 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
19685 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19686 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
19687 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
19688 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
19689 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
19690 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19691 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19692 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19693 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19694 { (exit 1); exit 1; }; };;
19695 esac
19696 done
19698 # If the user did not use the arguments to specify the items to instantiate,
19699 # then the envvar interface is used. Set only those that are not.
19700 # We use the long form for the default assignment because of an extremely
19701 # bizarre bug on SunOS 4.1.3.
19702 if $ac_need_defaults; then
19703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19708 # Have a temporary directory for convenience. Make it in the build tree
19709 # simply because there is no reason to put it here, and in addition,
19710 # creating and moving files from /tmp can sometimes cause problems.
19711 # Create a temporary directory, and hook for its removal unless debugging.
19712 $debug ||
19714 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19715 trap '{ (exit 1); exit 1; }' 1 2 13 15
19718 # Create a (secure) tmp directory for tmp files.
19721 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19722 test -n "$tmp" && test -d "$tmp"
19723 } ||
19725 tmp=./confstat$$-$RANDOM
19726 (umask 077 && mkdir $tmp)
19727 } ||
19729 echo "$me: cannot create a temporary directory in ." >&2
19730 { (exit 1); exit 1; }
19733 _ACEOF
19735 cat >>$CONFIG_STATUS <<_ACEOF
19738 # CONFIG_FILES section.
19741 # No need to generate the scripts if there are no CONFIG_FILES.
19742 # This happens for instance when ./config.status config.h
19743 if test -n "\$CONFIG_FILES"; then
19744 # Protect against being on the right side of a sed subst in config.status.
19745 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19746 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19747 s,@SHELL@,$SHELL,;t t
19748 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19749 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19750 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19751 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19752 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19753 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19754 s,@exec_prefix@,$exec_prefix,;t t
19755 s,@prefix@,$prefix,;t t
19756 s,@program_transform_name@,$program_transform_name,;t t
19757 s,@bindir@,$bindir,;t t
19758 s,@sbindir@,$sbindir,;t t
19759 s,@libexecdir@,$libexecdir,;t t
19760 s,@datadir@,$datadir,;t t
19761 s,@sysconfdir@,$sysconfdir,;t t
19762 s,@sharedstatedir@,$sharedstatedir,;t t
19763 s,@localstatedir@,$localstatedir,;t t
19764 s,@libdir@,$libdir,;t t
19765 s,@includedir@,$includedir,;t t
19766 s,@oldincludedir@,$oldincludedir,;t t
19767 s,@infodir@,$infodir,;t t
19768 s,@mandir@,$mandir,;t t
19769 s,@build_alias@,$build_alias,;t t
19770 s,@host_alias@,$host_alias,;t t
19771 s,@target_alias@,$target_alias,;t t
19772 s,@DEFS@,$DEFS,;t t
19773 s,@ECHO_C@,$ECHO_C,;t t
19774 s,@ECHO_N@,$ECHO_N,;t t
19775 s,@ECHO_T@,$ECHO_T,;t t
19776 s,@LIBS@,$LIBS,;t t
19777 s,@MAINT@,$MAINT,;t t
19778 s,@build@,$build,;t t
19779 s,@build_cpu@,$build_cpu,;t t
19780 s,@build_vendor@,$build_vendor,;t t
19781 s,@build_os@,$build_os,;t t
19782 s,@host@,$host,;t t
19783 s,@host_cpu@,$host_cpu,;t t
19784 s,@host_vendor@,$host_vendor,;t t
19785 s,@host_os@,$host_os,;t t
19786 s,@CC@,$CC,;t t
19787 s,@CFLAGS@,$CFLAGS,;t t
19788 s,@LDFLAGS@,$LDFLAGS,;t t
19789 s,@CPPFLAGS@,$CPPFLAGS,;t t
19790 s,@ac_ct_CC@,$ac_ct_CC,;t t
19791 s,@EXEEXT@,$EXEEXT,;t t
19792 s,@OBJEXT@,$OBJEXT,;t t
19793 s,@LN_S@,$LN_S,;t t
19794 s,@CPP@,$CPP,;t t
19795 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19796 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19797 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19798 s,@RANLIB@,$RANLIB,;t t
19799 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19800 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19801 s,@EGREP@,$EGREP,;t t
19802 s,@LIBSOUND@,$LIBSOUND,;t t
19803 s,@SET_MAKE@,$SET_MAKE,;t t
19804 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19805 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19806 s,@GTK_LIBS@,$GTK_LIBS,;t t
19807 s,@ALLOCA@,$ALLOCA,;t t
19808 s,@liblockfile@,$liblockfile,;t t
19809 s,@LIBOBJS@,$LIBOBJS,;t t
19810 s,@NEED_SETGID@,$NEED_SETGID,;t t
19811 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19812 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19813 s,@version@,$version,;t t
19814 s,@configuration@,$configuration,;t t
19815 s,@canonical@,$canonical,;t t
19816 s,@srcdir@,$srcdir,;t t
19817 s,@lispdir@,$lispdir,;t t
19818 s,@locallisppath@,$locallisppath,;t t
19819 s,@lisppath@,$lisppath,;t t
19820 s,@x_default_search_path@,$x_default_search_path,;t t
19821 s,@etcdir@,$etcdir,;t t
19822 s,@archlibdir@,$archlibdir,;t t
19823 s,@docdir@,$docdir,;t t
19824 s,@bitmapdir@,$bitmapdir,;t t
19825 s,@gamedir@,$gamedir,;t t
19826 s,@gameuser@,$gameuser,;t t
19827 s,@c_switch_system@,$c_switch_system,;t t
19828 s,@c_switch_machine@,$c_switch_machine,;t t
19829 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19830 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19831 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19832 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19833 s,@machfile@,$machfile,;t t
19834 s,@opsysfile@,$opsysfile,;t t
19835 s,@carbon_appdir@,$carbon_appdir,;t t
19836 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19837 CEOF
19839 _ACEOF
19841 cat >>$CONFIG_STATUS <<\_ACEOF
19842 # Split the substitutions into bite-sized pieces for seds with
19843 # small command number limits, like on Digital OSF/1 and HP-UX.
19844 ac_max_sed_lines=48
19845 ac_sed_frag=1 # Number of current file.
19846 ac_beg=1 # First line for current file.
19847 ac_end=$ac_max_sed_lines # Line after last line for current file.
19848 ac_more_lines=:
19849 ac_sed_cmds=
19850 while $ac_more_lines; do
19851 if test $ac_beg -gt 1; then
19852 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19853 else
19854 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19856 if test ! -s $tmp/subs.frag; then
19857 ac_more_lines=false
19858 else
19859 # The purpose of the label and of the branching condition is to
19860 # speed up the sed processing (if there are no `@' at all, there
19861 # is no need to browse any of the substitutions).
19862 # These are the two extra sed commands mentioned above.
19863 (echo ':t
19864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19865 if test -z "$ac_sed_cmds"; then
19866 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19867 else
19868 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19870 ac_sed_frag=`expr $ac_sed_frag + 1`
19871 ac_beg=$ac_end
19872 ac_end=`expr $ac_end + $ac_max_sed_lines`
19874 done
19875 if test -z "$ac_sed_cmds"; then
19876 ac_sed_cmds=cat
19878 fi # test -n "$CONFIG_FILES"
19880 _ACEOF
19881 cat >>$CONFIG_STATUS <<\_ACEOF
19882 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19883 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19884 case $ac_file in
19885 - | *:- | *:-:* ) # input from stdin
19886 cat >$tmp/stdin
19887 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19888 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19889 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19890 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19891 * ) ac_file_in=$ac_file.in ;;
19892 esac
19894 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19895 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19897 X"$ac_file" : 'X\(//\)[^/]' \| \
19898 X"$ac_file" : 'X\(//\)$' \| \
19899 X"$ac_file" : 'X\(/\)' \| \
19900 . : '\(.\)' 2>/dev/null ||
19901 echo X"$ac_file" |
19902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19904 /^X\(\/\/\)$/{ s//\1/; q; }
19905 /^X\(\/\).*/{ s//\1/; q; }
19906 s/.*/./; q'`
19907 { if $as_mkdir_p; then
19908 mkdir -p "$ac_dir"
19909 else
19910 as_dir="$ac_dir"
19911 as_dirs=
19912 while test ! -d "$as_dir"; do
19913 as_dirs="$as_dir $as_dirs"
19914 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19916 X"$as_dir" : 'X\(//\)[^/]' \| \
19917 X"$as_dir" : 'X\(//\)$' \| \
19918 X"$as_dir" : 'X\(/\)' \| \
19919 . : '\(.\)' 2>/dev/null ||
19920 echo X"$as_dir" |
19921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19923 /^X\(\/\/\)$/{ s//\1/; q; }
19924 /^X\(\/\).*/{ s//\1/; q; }
19925 s/.*/./; q'`
19926 done
19927 test ! -n "$as_dirs" || mkdir $as_dirs
19928 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19929 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19930 { (exit 1); exit 1; }; }; }
19932 ac_builddir=.
19934 if test "$ac_dir" != .; then
19935 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19936 # A "../" for each directory in $ac_dir_suffix.
19937 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19938 else
19939 ac_dir_suffix= ac_top_builddir=
19942 case $srcdir in
19943 .) # No --srcdir option. We are building in place.
19944 ac_srcdir=.
19945 if test -z "$ac_top_builddir"; then
19946 ac_top_srcdir=.
19947 else
19948 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19949 fi ;;
19950 [\\/]* | ?:[\\/]* ) # Absolute path.
19951 ac_srcdir=$srcdir$ac_dir_suffix;
19952 ac_top_srcdir=$srcdir ;;
19953 *) # Relative path.
19954 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19955 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19956 esac
19957 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19958 # absolute.
19959 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19960 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19961 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19962 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19965 case $INSTALL in
19966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19967 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19968 esac
19970 if test x"$ac_file" != x-; then
19971 { echo "$as_me:$LINENO: creating $ac_file" >&5
19972 echo "$as_me: creating $ac_file" >&6;}
19973 rm -f "$ac_file"
19975 # Let's still pretend it is `configure' which instantiates (i.e., don't
19976 # use $as_me), people would be surprised to read:
19977 # /* config.h. Generated by config.status. */
19978 if test x"$ac_file" = x-; then
19979 configure_input=
19980 else
19981 configure_input="$ac_file. "
19983 configure_input=$configure_input"Generated from `echo $ac_file_in |
19984 sed 's,.*/,,'` by configure."
19986 # First look for the input files in the build tree, otherwise in the
19987 # src tree.
19988 ac_file_inputs=`IFS=:
19989 for f in $ac_file_in; do
19990 case $f in
19991 -) echo $tmp/stdin ;;
19992 [\\/$]*)
19993 # Absolute (can't be DOS-style, as IFS=:)
19994 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19995 echo "$as_me: error: cannot find input file: $f" >&2;}
19996 { (exit 1); exit 1; }; }
19997 echo $f;;
19998 *) # Relative
19999 if test -f "$f"; then
20000 # Build tree
20001 echo $f
20002 elif test -f "$srcdir/$f"; then
20003 # Source tree
20004 echo $srcdir/$f
20005 else
20006 # /dev/null tree
20007 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20008 echo "$as_me: error: cannot find input file: $f" >&2;}
20009 { (exit 1); exit 1; }; }
20010 fi;;
20011 esac
20012 done` || { (exit 1); exit 1; }
20013 _ACEOF
20014 cat >>$CONFIG_STATUS <<_ACEOF
20015 sed "$ac_vpsub
20016 $extrasub
20017 _ACEOF
20018 cat >>$CONFIG_STATUS <<\_ACEOF
20020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20021 s,@configure_input@,$configure_input,;t t
20022 s,@srcdir@,$ac_srcdir,;t t
20023 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20024 s,@top_srcdir@,$ac_top_srcdir,;t t
20025 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20026 s,@builddir@,$ac_builddir,;t t
20027 s,@abs_builddir@,$ac_abs_builddir,;t t
20028 s,@top_builddir@,$ac_top_builddir,;t t
20029 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20030 s,@INSTALL@,$ac_INSTALL,;t t
20031 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20032 rm -f $tmp/stdin
20033 if test x"$ac_file" != x-; then
20034 mv $tmp/out $ac_file
20035 else
20036 cat $tmp/out
20037 rm -f $tmp/out
20040 done
20041 _ACEOF
20042 cat >>$CONFIG_STATUS <<\_ACEOF
20045 # CONFIG_HEADER section.
20048 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20049 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20051 # ac_d sets the value in "#define NAME VALUE" lines.
20052 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20053 ac_dB='[ ].*$,\1#\2'
20054 ac_dC=' '
20055 ac_dD=',;t'
20056 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20057 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20058 ac_uB='$,\1#\2define\3'
20059 ac_uC=' '
20060 ac_uD=',;t'
20062 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20064 case $ac_file in
20065 - | *:- | *:-:* ) # input from stdin
20066 cat >$tmp/stdin
20067 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20069 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20070 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20071 * ) ac_file_in=$ac_file.in ;;
20072 esac
20074 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20075 echo "$as_me: creating $ac_file" >&6;}
20077 # First look for the input files in the build tree, otherwise in the
20078 # src tree.
20079 ac_file_inputs=`IFS=:
20080 for f in $ac_file_in; do
20081 case $f in
20082 -) echo $tmp/stdin ;;
20083 [\\/$]*)
20084 # Absolute (can't be DOS-style, as IFS=:)
20085 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20086 echo "$as_me: error: cannot find input file: $f" >&2;}
20087 { (exit 1); exit 1; }; }
20088 echo $f;;
20089 *) # Relative
20090 if test -f "$f"; then
20091 # Build tree
20092 echo $f
20093 elif test -f "$srcdir/$f"; then
20094 # Source tree
20095 echo $srcdir/$f
20096 else
20097 # /dev/null tree
20098 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20099 echo "$as_me: error: cannot find input file: $f" >&2;}
20100 { (exit 1); exit 1; }; }
20101 fi;;
20102 esac
20103 done` || { (exit 1); exit 1; }
20104 # Remove the trailing spaces.
20105 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20107 _ACEOF
20109 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20110 # `conftest.undefs', that substitutes the proper values into
20111 # config.h.in to produce config.h. The first handles `#define'
20112 # templates, and the second `#undef' templates.
20113 # And first: Protect against being on the right side of a sed subst in
20114 # config.status. Protect against being in an unquoted here document
20115 # in config.status.
20116 rm -f conftest.defines conftest.undefs
20117 # Using a here document instead of a string reduces the quoting nightmare.
20118 # Putting comments in sed scripts is not portable.
20120 # `end' is used to avoid that the second main sed command (meant for
20121 # 0-ary CPP macros) applies to n-ary macro definitions.
20122 # See the Autoconf documentation for `clear'.
20123 cat >confdef2sed.sed <<\_ACEOF
20124 s/[\\&,]/\\&/g
20125 s,[\\$`],\\&,g
20126 t clear
20127 : clear
20128 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20129 t end
20130 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20131 : end
20132 _ACEOF
20133 # If some macros were called several times there might be several times
20134 # the same #defines, which is useless. Nevertheless, we may not want to
20135 # sort them, since we want the *last* AC-DEFINE to be honored.
20136 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20137 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20138 rm -f confdef2sed.sed
20140 # This sed command replaces #undef with comments. This is necessary, for
20141 # example, in the case of _POSIX_SOURCE, which is predefined and required
20142 # on some systems where configure will not decide to define it.
20143 cat >>conftest.undefs <<\_ACEOF
20144 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20145 _ACEOF
20147 # Break up conftest.defines because some shells have a limit on the size
20148 # of here documents, and old seds have small limits too (100 cmds).
20149 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20150 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20151 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20152 echo ' :' >>$CONFIG_STATUS
20153 rm -f conftest.tail
20154 while grep . conftest.defines >/dev/null
20156 # Write a limited-size here document to $tmp/defines.sed.
20157 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20158 # Speed up: don't consider the non `#define' lines.
20159 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20160 # Work around the forget-to-reset-the-flag bug.
20161 echo 't clr' >>$CONFIG_STATUS
20162 echo ': clr' >>$CONFIG_STATUS
20163 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20164 echo 'CEOF
20165 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20166 rm -f $tmp/in
20167 mv $tmp/out $tmp/in
20168 ' >>$CONFIG_STATUS
20169 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20170 rm -f conftest.defines
20171 mv conftest.tail conftest.defines
20172 done
20173 rm -f conftest.defines
20174 echo ' fi # grep' >>$CONFIG_STATUS
20175 echo >>$CONFIG_STATUS
20177 # Break up conftest.undefs because some shells have a limit on the size
20178 # of here documents, and old seds have small limits too (100 cmds).
20179 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20180 rm -f conftest.tail
20181 while grep . conftest.undefs >/dev/null
20183 # Write a limited-size here document to $tmp/undefs.sed.
20184 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20185 # Speed up: don't consider the non `#undef'
20186 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20187 # Work around the forget-to-reset-the-flag bug.
20188 echo 't clr' >>$CONFIG_STATUS
20189 echo ': clr' >>$CONFIG_STATUS
20190 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20191 echo 'CEOF
20192 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20193 rm -f $tmp/in
20194 mv $tmp/out $tmp/in
20195 ' >>$CONFIG_STATUS
20196 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20197 rm -f conftest.undefs
20198 mv conftest.tail conftest.undefs
20199 done
20200 rm -f conftest.undefs
20202 cat >>$CONFIG_STATUS <<\_ACEOF
20203 # Let's still pretend it is `configure' which instantiates (i.e., don't
20204 # use $as_me), people would be surprised to read:
20205 # /* config.h. Generated by config.status. */
20206 if test x"$ac_file" = x-; then
20207 echo "/* Generated by configure. */" >$tmp/config.h
20208 else
20209 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20211 cat $tmp/in >>$tmp/config.h
20212 rm -f $tmp/in
20213 if test x"$ac_file" != x-; then
20214 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20215 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20216 echo "$as_me: $ac_file is unchanged" >&6;}
20217 else
20218 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20219 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20220 X"$ac_file" : 'X\(//\)[^/]' \| \
20221 X"$ac_file" : 'X\(//\)$' \| \
20222 X"$ac_file" : 'X\(/\)' \| \
20223 . : '\(.\)' 2>/dev/null ||
20224 echo X"$ac_file" |
20225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20227 /^X\(\/\/\)$/{ s//\1/; q; }
20228 /^X\(\/\).*/{ s//\1/; q; }
20229 s/.*/./; q'`
20230 { if $as_mkdir_p; then
20231 mkdir -p "$ac_dir"
20232 else
20233 as_dir="$ac_dir"
20234 as_dirs=
20235 while test ! -d "$as_dir"; do
20236 as_dirs="$as_dir $as_dirs"
20237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20239 X"$as_dir" : 'X\(//\)[^/]' \| \
20240 X"$as_dir" : 'X\(//\)$' \| \
20241 X"$as_dir" : 'X\(/\)' \| \
20242 . : '\(.\)' 2>/dev/null ||
20243 echo X"$as_dir" |
20244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20246 /^X\(\/\/\)$/{ s//\1/; q; }
20247 /^X\(\/\).*/{ s//\1/; q; }
20248 s/.*/./; q'`
20249 done
20250 test ! -n "$as_dirs" || mkdir $as_dirs
20251 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20252 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20253 { (exit 1); exit 1; }; }; }
20255 rm -f $ac_file
20256 mv $tmp/config.h $ac_file
20258 else
20259 cat $tmp/config.h
20260 rm -f $tmp/config.h
20262 done
20263 _ACEOF
20264 cat >>$CONFIG_STATUS <<\_ACEOF
20267 # CONFIG_COMMANDS section.
20269 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20270 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20271 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20272 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20273 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20274 X"$ac_dest" : 'X\(//\)[^/]' \| \
20275 X"$ac_dest" : 'X\(//\)$' \| \
20276 X"$ac_dest" : 'X\(/\)' \| \
20277 . : '\(.\)' 2>/dev/null ||
20278 echo X"$ac_dest" |
20279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20281 /^X\(\/\/\)$/{ s//\1/; q; }
20282 /^X\(\/\).*/{ s//\1/; q; }
20283 s/.*/./; q'`
20284 ac_builddir=.
20286 if test "$ac_dir" != .; then
20287 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20288 # A "../" for each directory in $ac_dir_suffix.
20289 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20290 else
20291 ac_dir_suffix= ac_top_builddir=
20294 case $srcdir in
20295 .) # No --srcdir option. We are building in place.
20296 ac_srcdir=.
20297 if test -z "$ac_top_builddir"; then
20298 ac_top_srcdir=.
20299 else
20300 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20301 fi ;;
20302 [\\/]* | ?:[\\/]* ) # Absolute path.
20303 ac_srcdir=$srcdir$ac_dir_suffix;
20304 ac_top_srcdir=$srcdir ;;
20305 *) # Relative path.
20306 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20307 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20308 esac
20309 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20310 # absolute.
20311 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20312 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20313 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20314 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20317 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20318 echo "$as_me: executing $ac_dest commands" >&6;}
20319 case $ac_dest in
20320 default )
20322 ### Make the necessary directories, if they don't exist.
20323 for dir in etc lisp ; do
20324 test -d ${dir} || mkdir ${dir}
20325 done
20327 # Build src/Makefile from ${srcdir}/src/Makefile.c
20328 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
20329 # This must be done after src/config.h is built, since we rely on that file.
20331 # Now get this: Some word that is part of the ${srcdir} directory name
20332 # or the ${configuration} value might, just might, happen to be an
20333 # identifier like `sun4' or `i386' or something, and be predefined by
20334 # the C preprocessor to some helpful value like 1, or maybe the empty
20335 # string. Needless to say consequent macro substitutions are less
20336 # than conducive to the makefile finding the correct directory.
20337 undefs="`echo $top_srcdir $configuration $canonical |
20338 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
20339 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
20342 echo creating src/epaths.h
20343 ${MAKE-make} epaths-force
20345 # As of 2000-11-19, newest development versions of GNU cpp preprocess
20346 # `..' to `. .' unless invoked with -traditional
20348 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
20349 CPPFLAGS="$CPPFLAGS -traditional"
20352 echo creating lib-src/Makefile
20353 ( cd lib-src
20354 rm -f junk.c junk1.c junk2.c
20355 sed -e '/start of cpp stuff/q' \
20356 < Makefile.c > junk1.c
20357 sed -e '1,/start of cpp stuff/d'\
20358 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20359 < Makefile.c > junk.c
20360 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
20361 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20362 cat junk1.c junk2.c > Makefile.new
20363 rm -f junk.c junk1.c junk2.c
20364 chmod 444 Makefile.new
20365 mv -f Makefile.new Makefile
20368 echo creating src/Makefile
20369 ( cd src
20370 rm -f junk.c junk1.c junk2.c
20371 sed -e '/start of cpp stuff/q' \
20372 < Makefile.c > junk1.c
20373 sed -e '1,/start of cpp stuff/d'\
20374 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20375 < Makefile.c > junk.c
20376 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
20377 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20378 cat junk1.c junk2.c > Makefile.new
20379 rm -f junk.c junk1.c junk2.c
20380 chmod 444 Makefile.new
20381 mv -f Makefile.new Makefile
20384 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20385 echo creating src/.gdbinit
20386 echo source $srcdir/src/.gdbinit > src/.gdbinit
20389 # This is how we know whether to re-run configure in certain cases.
20390 touch src/config.stamp
20393 esac
20394 done
20395 _ACEOF
20397 cat >>$CONFIG_STATUS <<\_ACEOF
20399 { (exit 0); exit 0; }
20400 _ACEOF
20401 chmod +x $CONFIG_STATUS
20402 ac_clean_files=$ac_clean_files_save
20405 # configure is writing to config.log, and then calls config.status.
20406 # config.status does its own redirection, appending to config.log.
20407 # Unfortunately, on DOS this fails, as config.log is still kept open
20408 # by configure, so config.status won't be able to write to it; its
20409 # output is simply discarded. So we exec the FD to /dev/null,
20410 # effectively closing config.log, so it can be properly (re)opened and
20411 # appended to by config.status. When coming back to configure, we
20412 # need to make the FD available again.
20413 if test "$no_create" != yes; then
20414 ac_cs_success=:
20415 ac_config_status_args=
20416 test "$silent" = yes &&
20417 ac_config_status_args="$ac_config_status_args --quiet"
20418 exec 5>/dev/null
20419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20420 exec 5>>config.log
20421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20422 # would make configure fail if this is the last instruction.
20423 $ac_cs_success || { (exit 1); exit 1; }